hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT + 60 * ( + + COUNT( * ) ) FROM tab1 cor0
----
180

skipif mysql # not compatible
query I rowsort label-1
SELECT + 60 * ( + + COUNT ( * ) ) FROM tab1 cor0
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 40 * - + col1 col1 FROM tab0 AS cor0
----
10
-840
47
-3240
99
-40

query I rowsort
SELECT ALL + 67 * - + 75 * 2 FROM tab1 AS cor0
----
-10050
-10050
-10050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT ALL + - 58 DIV + + MAX( + + 40 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + - 58 / + + MAX ( + + 40 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT ALL - col0 AS col2, + 94 AS col2 FROM tab0 AS cor0
----
-15
94
-87
94
-97
94

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9
SELECT + COUNT( * ) * - COUNT( * ) * - 12 DIV - - COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9
SELECT + COUNT ( * ) * - COUNT ( * ) * - 12 / - - COUNT ( * ) FROM tab1
----
36

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

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

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

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT + COUNT ( ALL - - 80 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT 0 * + + MIN( + 50 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-13
SELECT 0 * + + MIN ( + 50 ) FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col2 FROM tab0 AS cor0
----
-15
-87
-97

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

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

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

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

query I rowsort
SELECT ALL - 57 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL MIN( ALL - - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * - 35 * + - col1 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL MIN ( ALL - - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * - 35 * + - col1 AND + col1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col0, col0 * + col1 )
----

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

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

query I rowsort
SELECT ALL + - 25 FROM tab2 AS cor0 WHERE NOT 71 IS NULL
----
-25
-25
-25

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

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

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 89 AND 33
----

query I rowsort
SELECT - ( + col0 ) * + + 32 FROM tab2 AS cor0
----
-1472
-2048
-2400

query III rowsort
SELECT * FROM tab1 WHERE - - 11 IS NULL
----

query II rowsort
SELECT ( - col2 ) AS col2, col0 FROM tab1 WHERE - col2 + col1 * 5 + - - 85 IN ( col0 )
----

query II rowsort
SELECT ALL 70, 33 AS col2 FROM tab0
----
70
33
70
33
70
33

onlyif mysql # DIV for integer division: 
query I rowsort label-30
SELECT ALL - col1 + + 21 DIV + 83 AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL - col1 + + 21 / + 83 AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-31
SELECT - + 87 / + CAST( NULL AS DECIMAL ) - - + col2 + + ( + col2 ) * + 10 * col0 / - col0 * - col2 FROM tab2 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT - + 87 / + CAST ( NULL AS REAL ) - - + col2 + + ( + col2 ) * + 10 * col0 / - col0 * - col2 FROM tab2 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 83 + - - 32 + - col0 FROM tab0
----
100
18
28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-35
SELECT DISTINCT + + MIN( - - col2 ) col2, MIN( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-35
SELECT DISTINCT + + MIN ( - - col2 ) col2, MIN ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-38
SELECT ALL + - col1 * + 50, 3 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE col2 = NULL
----

skipif mysql # not compatible
query II rowsort label-38
SELECT ALL + - col1 * + 50, 3 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE col2 = NULL
----

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

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

query II rowsort
SELECT ALL + 99 * - - col2, - 12 AS col2 FROM tab0 AS cor0
----
4653
-12
9801
-12
990
-12

query I rowsort
SELECT DISTINCT - + ( - col2 ) * + col0 * 23 + - col2 AS col0 FROM tab2 AS cor0
----
24311
58840
99992

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

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

query I rowsort
SELECT ALL + col0 * - col1 + + - 94 AS col2 FROM tab0 AS cor0
----
-1309
-191
-1921

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-45
SELECT - MIN( DISTINCT ( + CAST( 79 AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-45
SELECT - MIN ( DISTINCT ( + CAST ( 79 AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
-79

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col2 ) = 97
----

query I rowsort
SELECT - 21 * - 85 - - + col0 * col0 FROM tab2 WHERE NOT + 58 IS NULL
----
3901
5881
7410

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

skipif mysql # not compatible
query I rowsort label-48
SELECT - COUNT ( - 34 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 + 76 * + + col2 * + col2 FROM tab0
----
167965
744877
7621

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

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

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

skipif mysql # not compatible
query I rowsort label-51
SELECT - col0 * - + col2 FROM tab1 WHERE + + col2 / - CAST ( NULL AS REAL ) > col2 * - - col2
----

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

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

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

query I rowsort
SELECT + + 42 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 77 - + - 97 AS col0 FROM tab0 AS cor0
----
174

query I rowsort
SELECT 57 * - - col0 * col0 + - col1 * - 25 + col1 * - + col2 AS col0 FROM tab2
----
120714
232317
318414

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-58
SELECT col0 + + CAST ( - col0 AS INTEGER ) - - 3 col0 FROM tab0
----
3
3
3

query I rowsort
SELECT + col1 + + 29 AS col0 FROM tab1
----
34
43
76

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE - - 32 < + 98
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE - - 32 < + 98
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0, col2 )
----

query I rowsort
SELECT DISTINCT - 53 * - col1 AS col2 FROM tab1 AS cor0
----
2491
265
742

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-65
SELECT DISTINCT + - 33 AS col2, col1 FROM tab0 cor0 WHERE NOT CAST( 54 AS SIGNED ) * - 8 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-65
SELECT DISTINCT + - 33 AS col2, col1 FROM tab0 cor0 WHERE NOT CAST ( 54 AS INTEGER ) * - 8 IS NOT NULL
----

query I rowsort
SELECT 49 * - - col2 FROM tab0
----
2303
4851
490

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - col0 - ( 85 ) + - 66 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) * + col0 col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT ( NOT 29 BETWEEN + 0 * col2 AND - 47 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-72
SELECT DISTINCT - 42 DIV + 29 + + col1 col2 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-72
SELECT DISTINCT - 42 / + 29 + + col1 col2 FROM tab1 AS cor0
----
13
4
46

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

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

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

query II rowsort
SELECT DISTINCT col0, col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT + COUNT( * ) + - 16 * - + 38 AS col2 FROM tab1 AS cor0
----
611

skipif mysql # not compatible
query I rowsort label-77
SELECT + COUNT ( * ) + - 16 * - + 38 AS col2 FROM tab1 AS cor0
----
611

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - col1 ) * - - 87 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT DISTINCT - COUNT( + 20 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT - COUNT ( + 20 ) FROM tab0
----
-3

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

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT ( - col0 ) / - - 94 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL col2 * ( + - col2 ) * col0 + 6 FROM tab2
----
-102394
-24328
-252294

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL SUM( 46 ) + - 68 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL SUM ( 46 ) + - 68 FROM tab1
----
70

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-86
SELECT DISTINCT - 48 + col2 + - + col1 + col2 * col2 * + + col2 * ( 79 ) + col0 - + CAST( NULL AS DECIMAL ) * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT - 48 + col2 + - + col1 + col2 * col2 * + + col2 * ( 79 ) + col0 - + CAST ( NULL AS REAL ) * - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-87
SELECT ALL + + 65 DIV - col1 + - + col2 FROM tab1 AS cor0
----
-100
-69
-72

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL + + 65 / - col1 + - + col2 FROM tab1 AS cor0
----
-100
-69
-72

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

query I rowsort
SELECT DISTINCT + - 69 + - - col0 + - 50 * + 47 AS col1 FROM tab2 AS cor0
----
-2344
-2355
-2373

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

onlyif mysql # DIV for integer division: 
query II rowsort label-91
SELECT - col1 + - + col0 + + - col2 DIV - col0 + - + 72, - col0 + - + col1 AS col1 FROM tab1 AS cor0
----
-136
-65
-162
-90
-210
-138

skipif mysql # not compatible
query II rowsort label-91
SELECT - col1 + - + col0 + + - col2 / - col0 + - + 72, - col0 + - + col1 AS col1 FROM tab1 AS cor0
----
-136
-65
-162
-90
-210
-138

query II rowsort
SELECT + 26 + + col0 + 42 AS col2, - 11 FROM tab2 AS cor0
----
114
-11
132
-11
143
-11

query II rowsort
SELECT ALL + 50 + - col1 AS col1, ( + - 83 ) * - 27 + 56 AS col2 FROM tab1 AS cor0
----
3
2297
36
2297
45
2297

query I rowsort
SELECT + 24 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT + + col1 - + col0 * - col2 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT + 72 + col0 AS col0 FROM tab0 AS cor0
----
159
169
87

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <= - 42
----

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

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

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

query I rowsort
SELECT + 49 * col0 * - col2 FROM tab0
----
-34545
-42630
-470547

query I rowsort
SELECT DISTINCT 57 * + ( - col2 ) FROM tab2
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + + 84 + - COUNT( * ) FROM tab2 WHERE NOT ( + 22 <= + col0 )
----
84

skipif mysql # not compatible
query I rowsort label-102
SELECT + + 84 + - COUNT ( * ) FROM tab2 WHERE NOT ( + 22 <= + col0 )
----
84

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 18 + + col1 > NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 94 AS col1 FROM tab2
----
2162
3760
5452

query I rowsort
SELECT + + 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col1 ) * + + 69 FROM tab0 AS cor0
----
1449
5589
69

query I rowsort
SELECT DISTINCT + 38 * + + col2 AS col1 FROM tab1
----
2242
2584
3648

query I rowsort
SELECT 66 * + col1 FROM tab2
----
3366
4422
5082

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

query I rowsort
SELECT DISTINCT - 36 * col2 FROM tab0 AS cor0
----
-1692
-3564
-360

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

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

query I rowsort
SELECT DISTINCT col0 * col2 + + + 98 FROM tab0
----
803
968
9701

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

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

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

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

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 FROM tab2 WHERE col0 / + + col2 * + 38 IS NOT NULL
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-117
SELECT 53 + - CAST( + + 36 AS SIGNED ) * CAST( - - col0 AS SIGNED ) FROM tab2
----
-1603
-2251
-2647

skipif mysql # not compatible
query I rowsort label-117
SELECT 53 + - CAST ( + + 36 AS INTEGER ) * CAST ( - - col0 AS INTEGER ) FROM tab2
----
-1603
-2251
-2647

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

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

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

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE - 55 * col0 * col0 - col2 + - - 57 + 67 - + 67 + - - col2 / + col0 IS NULL
----

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

query I rowsort
SELECT ALL 12 * + + 61 AS col1 FROM tab1 AS cor0
----
732
732
732

query II rowsort
SELECT + + col0, - col1 * + + 94 * - - col0 - - col0 FROM tab0 AS cor0
----
15
-114195
87
-171651
97
-9021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + 60 + - 39 + - - 98 + - col2 col1, ( - 35 ) FROM tab2
----
119
-35
119
-35
119
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-125
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-125
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-126
SELECT DISTINCT + 1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT + 1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col2 FROM tab1
----
-23
-26
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 18 ) * + ( + + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 NOT BETWEEN - 43 AND - col0
----

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

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

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

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

query II rowsort
SELECT ALL + 70 AS col1, 34 AS col0 FROM tab2
----
70
34
70
34
70
34

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN - col2 / col2 * + col2 AND + - 37 + - - 85
----

query I rowsort
SELECT - 99 * - - col0 AS col2 FROM tab1
----
-5049
-8415
-9009

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT - ( + MIN( ALL - + 72 ) ) DIV SUM( ALL - + 30 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-139
SELECT - ( + MIN ( ALL - + 72 ) ) / SUM ( ALL - + 30 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT MAX( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT MAX ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT col0 AS col2, 93 FROM tab0 cor0
----
15
93
87
93
97
93

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

query II rowsort
SELECT ALL 61 * - col0 + col1 * - col0, - 7 * col2 * 92 AS col2 FROM tab2 AS cor0
----
-5152
-14812
-8832
-25760
-9600
-37352

query I rowsort
SELECT ALL - 87 AS col2 FROM tab2
----
-87
-87
-87

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

query I rowsort
SELECT + - 71 * - col1 + - + 1 * - + col1 FROM tab0 AS cor0
----
1512
5832
72

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT ALL - - COUNT( * ) * - 34 * + + COUNT( * ) col1 FROM tab0 AS cor0
----
-306

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-147
SELECT ALL - - COUNT ( * ) * - 34 * + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-306

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

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

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

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

query I rowsort
SELECT - col0 * 6 + + - col2 AS col0 FROM tab2 AS cor0
----
-299
-424
-508

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT ALL 14 + + MAX( - - col2 ) - - COUNT( * ) * + ( COUNT( * ) ) FROM tab0 cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL 14 + + MAX ( - - col2 ) - - COUNT ( * ) * + ( COUNT ( * ) ) FROM tab0 cor0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT + - col1 + + + ( - col1 ) * - - 98 FROM tab2 cor0
----
-5049
-6633
-7623

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-155
SELECT - + col1 - + - CAST( NULL AS SIGNED ) + - - 1 FROM tab1 WHERE ( NOT col1 IN ( - col2, + ( - - col1 ), - col2, + + col1, - - col1 * + ( - - 0 ) * col2 ) )
----

skipif mysql # not compatible
query I rowsort label-155
SELECT - + col1 - + - CAST ( NULL AS INTEGER ) + - - 1 FROM tab1 WHERE ( NOT col1 IN ( - col2, + ( - - col1 ), - col2, + + col1, - - col1 * + ( - - 0 ) * col2 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - SUM( ALL ( 10 ) ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-157
SELECT - SUM ( ALL ( 10 ) ) FROM tab0
----
-30

query I rowsort
SELECT ALL + col0 + - 24 FROM tab2
----
22
40
51

query I rowsort
SELECT ALL col2 * - 26 AS col2 FROM tab2
----
-1040
-1508
-598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT - - col1 * col0 + + ( + - 44 ) AS col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
2302
4884
4981

skipif mysql # not compatible
query I rowsort label-160
SELECT - - col1 * col0 + + ( + - 44 ) AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
2302
4884
4981

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

query I rowsort
SELECT DISTINCT 58 + - - ( - col0 ) AS col2 FROM tab2
----
-17
-6
12

query I rowsort
SELECT DISTINCT + 63 * - col2 AS col2 FROM tab1 AS cor0
----
-3717
-4284
-6048

query I rowsort
SELECT DISTINCT + - ( + + col0 ) - - 32 + + col1 AS col1 FROM tab1 cor0
----
-12
-48
-5

query I rowsort
SELECT + - col0 - - 89 FROM tab1 AS cor0
----
-2
38
4

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT COUNT( * ) - + ( - 80 ) AS col1 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-166
SELECT COUNT ( * ) - + ( - 80 ) AS col1 FROM tab0 AS cor0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE col0 * col2 * - col2 * - col2 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-167
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 * col2 * - col2 * - col2 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----
0

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

query I rowsort
SELECT - - col2 + + + col1 * + col2 * - col2 * col0 FROM tab2 AS cor0
----
-1241011
-16904042
-7884760

query I rowsort
SELECT ALL - + col0 + col2 * - 81 * - - 51 + ( + col0 ) FROM tab1 AS cor0
----
-243729
-280908
-396576

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 5 ) = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col1 FROM tab0 WHERE + + col1 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT + COUNT( * ) + - ( + 89 ) AS col0 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT + COUNT ( * ) + - ( + 89 ) AS col0 FROM tab0
----
-86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 31 * + - 71 * + ( - - col0 ) + + 55 + + - col2 >= - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT - 76 + - MAX( ALL col1 ) AS col0 FROM tab0 WHERE NOT - col0 - col2 >= - col2 + + 27
----
-157

skipif mysql # not compatible
query I rowsort label-176
SELECT - 76 + - MAX ( ALL col1 ) AS col0 FROM tab0 WHERE NOT - col0 - col2 >= - col2 + + 27
----
-157

query II rowsort
SELECT + 1 AS col1, 87 FROM tab0
----
1
87
1
87
1
87

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

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

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

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

query I rowsort
SELECT ALL - 90 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-4641
-7735
-8281

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) = NULL OR col1 > + ( + ( + + 23 ) ) / 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-183
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

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

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

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

query II rowsort
SELECT col1 * col0 AS col1, col2 FROM tab2
----
2346
23
4928
40
5025
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT + MIN( ALL + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT + MIN ( ALL + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT + 73 * - ( 60 ) + - col2 + - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT MIN( 50 ) AS col1 FROM tab2, tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-191
SELECT MIN ( 50 ) AS col1 FROM tab2, tab2 AS cor0
----
50

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 - + - ( + 86 ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1402786d12a73d4fcc946bf6a6fd981

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-194
SELECT + + col1 col0, col0 * + col0 + + ( - + CAST( NULL AS SIGNED ) ) + col2 col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-194
SELECT + + col1 col0, col0 * + col0 + + ( - + CAST ( NULL AS INTEGER ) ) + col2 col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT DISTINCT + 23 * + - MIN( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-1173

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT + 23 * + - MIN ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ( - MIN( - 65 ) ) AS col0 FROM tab0 cor0
----
65

skipif mysql # not compatible
query I rowsort label-196
SELECT ( - MIN ( - 65 ) ) AS col0 FROM tab0 cor0
----
65

query I rowsort
SELECT DISTINCT - col0 + col1 + + 81 FROM tab0
----
-15
147
15

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

query I rowsort
SELECT + col2 * + col0 + + col1 AS col2 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT 4 + - MAX( DISTINCT + col1 ) AS col1 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-200
SELECT 4 + - MAX ( DISTINCT + col1 ) AS col1 FROM tab0
----
-77

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

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

query I rowsort
SELECT DISTINCT col2 + + 23 * - col1 FROM tab1
----
-1013
-226
-56

query I rowsort
SELECT 53 + - 87 * col0 AS col2 FROM tab1
----
-4384
-7342
-7864

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > 86
----
51
14
96

query I rowsort
SELECT - + col2 * + + col1 + - - col1 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-207
SELECT DISTINCT + COUNT( DISTINCT col1 ) DIV + + MIN( - col0 ) col2 FROM tab2 AS cor0
----
0

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 25 * + col0 - + col1 BETWEEN - col1 + + - col2 / - col0 AND NULL
----

query II rowsort
SELECT DISTINCT + 46, + col1 AS col1 FROM tab1 AS cor0
----
46
14
46
47
46
5

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 60 FROM tab0 WHERE NULL IS NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT MIN( DISTINCT col2 ) * - - COUNT( * ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-215
SELECT MIN ( DISTINCT col2 ) * - - COUNT ( * ) AS col2 FROM tab0
----
30

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT MAX( ( + - 24 ) ) * + COUNT( DISTINCT - 44 ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-220
SELECT MAX ( ( + - 24 ) ) * + COUNT ( DISTINCT - 44 ) AS col2 FROM tab2 AS cor0
----
-24

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 + - - 68 FROM tab1 AS cor0
----
115
73
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-224
SELECT + SUM( ALL - CAST( + + col0 AS SIGNED ) ) + - COUNT( * ) AS col0 FROM tab1 cor0
----
-230

skipif mysql # not compatible
query I rowsort label-224
SELECT + SUM ( ALL - CAST ( + + col0 AS INTEGER ) ) + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-230

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

onlyif mysql # DIV for integer division: 
query II rowsort label-226
SELECT DISTINCT 76 * + - 8 AS col2, col2 DIV 30 * - col0 + col1 + + col2 * - col2 + - col2 FROM tab0 AS cor0
----
-608
-10190
-608
-2190
-608
-89

skipif mysql # not compatible
query II rowsort label-226
SELECT DISTINCT 76 * + - 8 AS col2, col2 / 30 * - col0 + col1 + + col2 * - col2 + - col2 FROM tab0 AS cor0
----
-608
-10190
-608
-2190
-608
-89

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

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-228
SELECT DISTINCT CAST( NULL AS DECIMAL ), + col0 DIV + 14 AS col0 FROM tab2
----
NULL
3
NULL
4
NULL
5

skipif mysql # not compatible
query II rowsort label-228
SELECT DISTINCT CAST ( NULL AS REAL ), + col0 / + 14 AS col0 FROM tab2
----
NULL
3
NULL
4
NULL
5

query I rowsort
SELECT DISTINCT + 68 + + col0 AS col1 FROM tab0
----
155
165
83

query I rowsort
SELECT ALL + col1 + - - 43 FROM tab2
----
110
120
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + - col2 col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL + - 55 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-234
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col1 + - CAST( NULL AS DECIMAL ) + + 3 * + 67 + - col0 IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col1 + - CAST ( NULL AS REAL ) + + 3 * + 67 + - col0 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - - col2 + col1 + + col0 + + - ( - col1 )
----

query I rowsort
SELECT DISTINCT - 58 * - col0 * + col0 FROM tab1
----
150858
419050
480298

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

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NULL )
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-239
SELECT + CAST ( - + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - - col2 + - 76 * 25 * col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT + + COUNT ( * ) / CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - - col0 ) col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND 46
----
87
21
10
97
1
99

query I rowsort
SELECT - ( - 68 ) FROM tab1
----
68
68
68

query I rowsort
SELECT ALL ( + + 65 ) * 72 FROM tab2
----
4680
4680
4680

query I rowsort
SELECT + 23 * - - ( 87 ) FROM tab1
----
2001
2001
2001

onlyif mysql # DIV for integer division: 
query I rowsort label-248
SELECT DISTINCT col0 + - col0 * 27 + col2 DIV + - col0 AS col1 FROM tab2
----
-1196
-1664
-1950

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT col0 + - col0 * 27 + col2 / + - col0 AS col1 FROM tab2
----
-1196
-1664
-1950

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-249
SELECT DISTINCT 71 DIV + - CAST( - 10 AS SIGNED ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT 71 / + - CAST ( - 10 AS INTEGER ) FROM tab1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-250
SELECT 87 DIV - col1 AS col1 FROM tab1
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-250
SELECT 87 / - col1 AS col1 FROM tab1
----
-1
-17
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-251
SELECT DISTINCT + col0 DIV - + ( - 7 ) AS col1 FROM tab1
----
12
13
7

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT + col0 / - + ( - 7 ) AS col1 FROM tab1
----
12
13
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - - 92 + - col0 * + col1 + + col0
----

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

query II rowsort
SELECT + 12, + col1 AS col0 FROM tab0
----
12
1
12
21
12
81

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT - col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 + + + 97 FROM tab1
----
102
111
144

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + - 45 + + 92 + + COUNT( * ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-257
SELECT + - 45 + + 92 + + COUNT ( * ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT + 95 + + col1 AS col2 FROM tab2 AS cor0
----
146
162
172

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT 88 + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
97

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT 88 + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
97

query I rowsort
SELECT ALL ( ( - 28 ) ) AS col1 FROM tab1
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + col0 * - 92 + - col2 * ( - 76 ) AS col1 FROM tab2
----
-2484
-2492
-2848

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT ALL - COUNT( DISTINCT - - 31 ) FROM tab1 AS cor0 WHERE col0 > + + 22
----
-1

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL - COUNT ( DISTINCT - - 31 ) FROM tab1 AS cor0 WHERE col0 > + + 22
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT DISTINCT - + 74 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT - + 74 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-77

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

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

query I rowsort
SELECT + 41 + + col0 + 28 * + col1 AS col2 FROM tab0 AS cor0
----
166
2324
716

query II rowsort
SELECT - col2 + - col1, - col0 AS col2 FROM tab1
----
-110
-51
-115
-91
-64
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT ALL SUM( DISTINCT + 84 ) AS col2 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL SUM ( DISTINCT + 84 ) AS col2 FROM tab2
----
84

query I rowsort
SELECT ALL col1 + ( + + 16 ) FROM tab1
----
21
30
63

query I rowsort
SELECT col2 + - 0 + - 56 + 50 FROM tab1
----
53
62
90

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT SUM( + - col0 ) + COUNT( * ) col2 FROM tab2
----
-182

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

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + COUNT( * ) + 19 AS col2 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-272
SELECT + COUNT ( * ) + 19 AS col2 FROM tab0
----
22

query I rowsort
SELECT DISTINCT + 19 - - 67 - + + col2 FROM tab2
----
28
46
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT + MAX( DISTINCT 42 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-276
SELECT + MAX ( DISTINCT 42 ) FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-277
SELECT 4, ( COUNT( * ) ) * 48 * - COUNT( * ) * - + ( + COUNT( * ) ) + + + AVG ( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
4
NULL

skipif mysql # not compatible
query II rowsort label-277
SELECT 4, ( COUNT ( * ) ) * 48 * - COUNT ( * ) * - + ( + COUNT ( * ) ) + + + AVG ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL 46 * COUNT( * ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL 46 * COUNT ( * ) FROM tab0 AS cor0
----
138

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

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT - MIN ( - col0 ) AS col1 FROM tab2 cor0
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - MAX( - 20 ) + + - 49 * ( + - MIN( DISTINCT - + col0 ) ) FROM tab2 cor0
----
-3655

skipif mysql # not compatible
query I rowsort label-281
SELECT - MAX ( - 20 ) + + - 49 * ( + - MIN ( DISTINCT - + col0 ) ) FROM tab2 cor0
----
-3655

query I rowsort
SELECT col2 + + 49 FROM tab0 AS cor0
----
148
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT - SUM( ALL - + col0 ) FROM tab0 AS cor0 WHERE NULL <> - col2 + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT - SUM ( ALL - + col0 ) FROM tab0 AS cor0 WHERE NULL <> - col2 + - 56
----
NULL

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

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

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

query I rowsort
SELECT ( - 86 ) AS col0 FROM tab2
----
-86
-86
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT DISTINCT + col2 DIV - - ( - 27 ) AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT + col2 / - - ( - 27 ) AS col2 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL col1 + - 70 FROM tab0
----
-49
-69
11

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

query I rowsort
SELECT ALL - 85 AS col0 FROM tab1
----
-85
-85
-85

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

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL CAST ( NULL AS INTEGER ) + - 22 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 41 * - col2 AS col1 FROM tab1 AS cor0
----
-2419
-2788
-3936

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

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

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

query I rowsort
SELECT + 82 * + col1 + - col0 AS col0 FROM tab0
----
-15
1635
6627

query I rowsort
SELECT 52 * - - 23 FROM tab2 AS cor0
----
1196
1196
1196

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT ALL - - col1 * + + 27 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
102789
2673
5670

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - - col1 * + + 27 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
102789
2673
5670

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

query I rowsort
SELECT 34 * col0 AS col0 FROM tab1 AS cor0
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT MIN( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-301
SELECT MIN ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT DISTINCT - - ( - COUNT( ALL col0 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - - ( - COUNT ( ALL col0 ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0

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

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

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

query I rowsort
SELECT 59 FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 94 AS col1 FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-307
SELECT + + 85 AS col1, col0 DIV col2 FROM tab0 AS cor0
----
85
0
85
0
85
8

skipif mysql # not compatible
query II rowsort label-307
SELECT + + 85 AS col1, col0 / col2 FROM tab0 AS cor0
----
85
0
85
0
85
8

query II rowsort
SELECT + + 55 AS col2, - col0 * col0 FROM tab2 AS cor0
----
55
-2116
55
-4096
55
-5625

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 83 NOT BETWEEN - 68 AND col0 * - col2
----

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

skipif mysql # not compatible
query I rowsort label-311
SELECT - col2 / + - col0 FROM tab0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT - 58 DIV - ( col0 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-312
SELECT - 58 / - ( col0 ) FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-313
SELECT COUNT( * ) * - COUNT( * ) AS col2, 32 DIV + - 46 AS col2 FROM tab2
----
-9
0

skipif mysql # not compatible
query II rowsort label-313
SELECT COUNT ( * ) * - COUNT ( * ) AS col2, 32 / + - 46 AS col2 FROM tab2
----
-9
0

query I rowsort
SELECT - + col0 * - col0 - 87 AS col0 FROM tab2 AS cor0
----
2029
4009
5538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-315
SELECT DISTINCT MAX( CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT MAX ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 49 - 35 >= - - 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 96 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ( - MIN( - col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-318
SELECT ( - MIN ( - col1 ) ) AS col0 FROM tab0
----
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 * - col2 * 5 + + 1 col2 FROM tab1
----
-5899
-6799
-9599

query I rowsort
SELECT + col2 * col1 * col1 + - col1 * + - col0 AS col0 FROM tab1 AS cor0
----
154489
1900
19530

query I rowsort
SELECT DISTINCT + col2 * - col2 - - 48 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2161
-52
-9753

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 <> ( col0 ) * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 6 = - col2
----

query I rowsort
SELECT ALL + 51 * - col1 AS col1 FROM tab1
----
-2397
-255
-714

query I rowsort
SELECT col0 + - 34 FROM tab0
----
-19
53
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-327
SELECT ALL CAST( COUNT( DISTINCT 43 ) AS SIGNED ) FROM tab2 WHERE NOT 61 NOT IN ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL CAST ( COUNT ( DISTINCT 43 ) AS INTEGER ) FROM tab2 WHERE NOT 61 NOT IN ( CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-328
SELECT DISTINCT - col0 DIV - 18 AS col0 FROM tab1
----
2
4
5

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT - col0 / - 18 AS col0 FROM tab1
----
2
4
5

query I rowsort
SELECT col2 FROM tab2 WHERE ( ( - col2 ) ) * 43 IN ( + 96 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE 8 BETWEEN col1 * - 57 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - 63 AS col0 FROM tab0
----
-1323
-5103
-63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 73 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * + col0 < ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT 34 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-334
SELECT 34 / col2 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-336
SELECT 71 DIV + COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-336
SELECT 71 / + COUNT ( * ) FROM tab2
----
23

query I rowsort
SELECT 40 * + col1 AS col2 FROM tab2
----
2040
2680
3080

query I rowsort
SELECT ALL 15 + col0 AS col2 FROM tab2
----
61
79
90

query I rowsort
SELECT - 26 * - 48 FROM tab0
----
1248
1248
1248

query I rowsort
SELECT - 10 FROM tab2 WHERE col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT col1 * col1 + - 7 * col2 FROM tab0
----
-692
371
6232

query I rowsort
SELECT DISTINCT 39 FROM tab1 WHERE NOT + 52 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT CAST( col0 AS SIGNED ) BETWEEN + ( - col1 ) AND ( - col0 )
----
121

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT CAST ( col0 AS INTEGER ) BETWEEN + ( - col1 ) AND ( - col0 )
----
121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT MAX( ALL ( 74 ) ) AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-347
SELECT MAX ( ALL ( 74 ) ) AS col1 FROM tab1 AS cor0
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT DISTINCT 82 DIV - ( 14 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT 82 / - ( 14 ) FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT + CAST( + MAX( col2 ) AS SIGNED ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-350
SELECT + CAST ( + MAX ( col2 ) AS INTEGER ) col1 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col0 FROM tab2
----
-46
-64
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + COUNT( * ) + - 82 FROM tab1 cor0 WHERE NOT col1 + + col0 * 43 NOT IN ( col0 )
----
-82

skipif mysql # not compatible
query I rowsort label-353
SELECT + COUNT ( * ) + - 82 FROM tab1 cor0 WHERE NOT col1 + + col0 * 43 NOT IN ( col0 )
----
-82

query I rowsort
SELECT - 89 * - col1 + - 83 FROM tab2 cor0
----
4456
5880
6770

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 43 * col2 > + col1 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-355
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 43 * col2 > + col1 * - col0
----
0

query I rowsort
SELECT ( 31 ) + 74 FROM tab1 AS cor0
----
105
105
105

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-357
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 68 / + CAST( 34 * col2 AS SIGNED ) + 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-357
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 68 / + CAST ( 34 * col2 AS INTEGER ) + 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( 54 ) * col1 AS col2 FROM tab2 AS cor0 WHERE col1 + col0 NOT IN ( 69 )
----
2754
3618
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT DISTINCT + MIN( - ( - col0 ) ) + 99 FROM tab2 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT + MIN ( - ( - col0 ) ) + 99 FROM tab2 AS cor0
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT + col1 * col0 + 67 DIV 36 FROM tab0 AS cor0
----
1216
1828
98

skipif mysql # not compatible
query I rowsort label-360
SELECT + col1 * col0 + 67 / 36 FROM tab0 AS cor0
----
1216
1828
98

query I rowsort
SELECT ALL + - col1 * - 16 FROM tab2 AS cor0
----
1072
1232
816

query I rowsort
SELECT col0 + ( + col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT + - col1 * ( 84 ) + col0 AS col2 FROM tab2 cor0
----
-4238
-5553
-6404

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 96 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT COUNT( * ) FROM tab0 WHERE ( + 44 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-366
SELECT COUNT ( * ) FROM tab0 WHERE ( + 44 ) IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT COUNT ( * ) + - 47 * - COUNT ( * ) FROM tab0
----
144

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

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

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

query I rowsort
SELECT ALL col0 + - col2 + + col0 FROM tab2
----
69
88
92

query I rowsort
SELECT ( 63 ) AS col2 FROM tab0 WHERE ( col0 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + col0 * - col2 )
----

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

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

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

query I rowsort
SELECT - + col2 + - col0 + - col1 FROM tab2 AS cor0
----
-120
-181
-200

query I rowsort
SELECT + + col0 * - + col1 * - ( col0 ) + col1 FROM tab0 AS cor0
----
158970
18306
9410

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL MAX( DISTINCT + col0 ) + - COUNT( * ) * 50 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL MAX ( DISTINCT + col0 ) + - COUNT ( * ) * 50 FROM tab2
----
-75

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

query I rowsort
SELECT ALL - + col0 * + 66 FROM tab0 AS cor0
----
-5742
-6402
-990

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 <> ( + col2 )
----

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

skipif mysql # not compatible
query III rowsort label-383
SELECT ALL * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 + col2 >= + col1
----

query I rowsort
SELECT + col1 * 91 FROM tab2 WHERE NOT - col1 + col2 + - 97 > ( col2 + col0 )
----
4641
6097
7007

query I rowsort
SELECT 78 AS col2 FROM tab2 WHERE NOT ( NULL ) = + 19 - 28 + - col0
----

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

query I rowsort
SELECT DISTINCT col2 * + col0 * col2 FROM tab0
----
33135
8700
950697

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-390
SELECT CAST( - 54 AS SIGNED ) AS col2 FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-390
SELECT CAST ( - 54 AS INTEGER ) AS col2 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 64 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT + COUNT( ALL - - 44 ) AS col0, - SUM( ALL - 33 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
297

skipif mysql # not compatible
query II rowsort label-392
SELECT + COUNT ( ALL - - 44 ) AS col0, - SUM ( ALL - 33 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
297

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE col1 >= ( - 91 )
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 FROM tab1 AS cor0
----
1395
3287
380

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

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

query II rowsort
SELECT ALL col1 + col2, 53 AS col1 FROM tab1 AS cor0
----
110
53
115
53
64
53

query I rowsort
SELECT 41 * + 75 * - col0 FROM tab1
----
-156825
-261375
-279825

query III rowsort
SELECT * FROM tab0 WHERE + col2 + - 74 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT 81 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-400
SELECT 81 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT + 87 * COUNT( - - col0 ) AS col0 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-401
SELECT + 87 * COUNT ( - - col0 ) AS col0 FROM tab0 AS cor0
----
261

query I rowsort
SELECT ALL - + col1 * 41 + 46 AS col2 FROM tab2 AS cor0 WHERE NOT + 19 + col1 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL - ( + MAX( ALL - col1 ) ) AS col2 FROM tab1 AS cor0 WHERE - col1 + - 68 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL - ( + MAX ( ALL - col1 ) ) AS col2 FROM tab1 AS cor0 WHERE - col1 + - 68 IS NOT NULL
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL - 90 + + - MAX( DISTINCT col1 ) FROM tab2
----
-167

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - 90 + + - MAX ( DISTINCT col1 ) FROM tab2
----
-167

query I rowsort
SELECT col1 + col0 * + col1 AS col1 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT DISTINCT - SUM( DISTINCT - 8 ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - SUM ( DISTINCT - 8 ) AS col2 FROM tab2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT + col1 DIV + col1 + + 81 AS col0 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-409
SELECT + col1 / + col1 + + 81 AS col0 FROM tab0
----
82
82
82

query II rowsort
SELECT ALL col1 AS col0, 0 * 91 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT DISTINCT 65 * - col0 + + col0 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT DISTINCT col2 - + col0 * + - col1 + - - CAST( + + col1 AS SIGNED ) FROM tab0
----
1343
1858
197

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT col2 - + col0 * + - col1 + - - CAST ( + + col1 AS INTEGER ) FROM tab0
----
1343
1858
197

query I rowsort
SELECT ALL - col2 * + col2 + - col1 - ( 90 ) + ( 77 ) + + 34 * col1 AS col2 FROM tab0
----
-9781
451
580

query I rowsort
SELECT DISTINCT - 30 + - col2 * - col1 FROM tab0
----
180
3777
69

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + + 51 )
----

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

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

query I rowsort
SELECT ALL col2 - col2 + + col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT ALL - 37 + + COUNT( * ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - 37 + + COUNT ( * ) FROM tab2
----
-34

query I rowsort
SELECT + col1 + + col0 + + col1 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-420
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) * - CAST( NULL AS SIGNED ) + col1 + col1 + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-420
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) * - CAST ( NULL AS INTEGER ) + col1 + col1 + + col0 IS NULL
----

query II rowsort
SELECT ALL col0 AS col0, col2 - + col1 FROM tab2 AS cor0
----
46
-28
64
-37
75
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab0 AS cor0 WHERE + - col2 / + - col2 + col0 < - - 44 * - col2 OR NOT ( ( col0 ) ) IS NULL
----
35
35
35

onlyif mysql # aggregate syntax: 
query II rowsort label-423
SELECT DISTINCT COUNT( * ), ( COUNT( * ) ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-423
SELECT DISTINCT COUNT ( * ), ( COUNT ( * ) ) FROM tab1 AS cor0
----
3
3

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

skipif mysql # not compatible
query I rowsort label-424
SELECT ( - SUM ( + col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT DISTINCT 70 + col1 + + col0 FROM tab1
----
135
160
208

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( NULL ) AND NULL = - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT - col2 DIV - - 93 - - col1 + - + 17 AS col0 FROM tab1
----
-12
-4
30

skipif mysql # not compatible
query I rowsort label-427
SELECT - col2 / - - 93 - - col1 + - + 17 AS col0 FROM tab1
----
-12
-4
30

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE 68 IN ( - col0 + - - ( col1 ) + + col2 + 13 )
----

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

query I rowsort
SELECT + col2 + 92 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
102
139
191

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-432
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-432
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL
23
NULL
40
NULL
58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-434
SELECT + COUNT( * ), + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
3
9

skipif mysql # not compatible
query II rowsort label-434
SELECT + COUNT ( * ), + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, - 92 col1 FROM tab1
----
-59
-92
-68
-92
-96
-92

query I rowsort
SELECT col0 * 48 * - col2 FROM tab0
----
-33840
-41760
-460944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 35 col0, - col1 AS col1 FROM tab1
----
35
-14
35
-47
35
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT - 71 < - col0
----
75
67
58

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-441
SELECT + 55 * - COUNT ( + col0 ) FROM tab2
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT ALL + 30 * 24 DIV - col1 FROM tab0
----
-34
-720
-8

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL + 30 * 24 / - col1 FROM tab0
----
-34
-720
-8

query I rowsort
SELECT DISTINCT + col1 * - - 70 FROM tab2
----
3570
4690
5390

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

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

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

query II rowsort
SELECT - - col2 AS col0, 18 FROM tab1 AS cor0
----
59
18
68
18
96
18

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT ALL col2 + + 47 DIV col0 AS col2 FROM tab2 cor0
----
24
40
58

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL col2 + + 47 / col0 AS col2 FROM tab2 cor0
----
24
40
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT MAX( ALL + - col2 ) + - ( + 91 ) FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-450
SELECT MAX ( ALL + - col2 ) + - ( + 91 ) FROM tab2 AS cor0
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT - 31 + - 62 * + + COUNT( * ) - + + CAST( NULL AS SIGNED ) * - ( + AVG ( + + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT - 31 + - 62 * + + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) * - ( + AVG ( + + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 6 AS col0 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + 27 * col1 FROM tab2
----
1377
1809
2079

query I rowsort
SELECT 8 * col1 AS col2 FROM tab1
----
112
376
40

query II rowsort
SELECT 71 AS col1, 31 FROM tab0
----
71
31
71
31
71
31

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-457
SELECT DISTINCT - COUNT( * ) DIV - - 27 * - ( - - MIN( col0 ) ) - - 14 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT - COUNT ( * ) / - - 27 * - ( - - MIN ( col0 ) ) - - 14 FROM tab0
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-458
SELECT ALL - - col2 DIV 15 - - ( col1 ) DIV - - col2, + col1 AS col1 FROM tab2 AS cor0
----
3
51
3
77
4
67

skipif mysql # not compatible
query II rowsort label-458
SELECT ALL - - col2 / 15 - - ( col1 ) / - - col2, + col1 AS col1 FROM tab2 AS cor0
----
3
51
3
77
4
67

query I rowsort
SELECT ALL - col0 - - 58 AS col1 FROM tab0 AS cor0
----
-29
-39
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-460
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * + 92 * + 10 * col2 * - - 99 * + col2 <= + + 18 / - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-460
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * + 92 * + 10 * col2 * - - 99 * + col2 <= + + 18 / - - CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT 38 * - MIN( 41 ) FROM tab1 AS cor0
----
-1558

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT 38 * - MIN ( 41 ) FROM tab1 AS cor0
----
-1558

query I rowsort
SELECT col0 * - 36 FROM tab1 cor0
----
-1836
-3060
-3276

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0 WHERE NOT - col2 = + 36 / + - col2 + 80
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 2 / - ( + col0 ) + - - col0 AND + col1
----

query II rowsort
SELECT DISTINCT 71 * col0 AS col1, - col1 AS col2 FROM tab2
----
3266
-51
4544
-77
5325
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - MIN( ALL col2 ) * - COUNT( - - 45 ) * - 53 FROM tab1
----
-9381

skipif mysql # not compatible
query I rowsort label-468
SELECT - MIN ( ALL col2 ) * - COUNT ( - - 45 ) * - 53 FROM tab1
----
-9381

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 87 < + col2
----

query I rowsort
SELECT col1 * - col2 * - col1 AS col2 FROM tab2
----
237160
260362
59823

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT + 6 DIV + col2 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-471
SELECT + 6 / + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + - 93 ) FROM tab2 AS cor0
----
93

query I rowsort
SELECT - 93 * 81 * + col2 * - ( - + col2 ) FROM tab2 AS cor0
----
-12052800
-25341012
-3984957

query I rowsort
SELECT DISTINCT - - ( 61 ) * - - col0 FROM tab2 AS cor0
----
2806
3904
4575

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

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL COUNT( - - col2 ) * - COUNT( DISTINCT - + ( 88 ) ) * 44 + - 77 FROM tab2
----
-209

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL COUNT ( - - col2 ) * - COUNT ( DISTINCT - + ( 88 ) ) * 44 + - 77 FROM tab2
----
-209

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT DISTINCT - 17 * col1 DIV + + 87 + + col0 FROM tab1
----
49
82
85

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - 17 * col1 / + + 87 + + col0 FROM tab1
----
49
82
85

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

skipif mysql # not compatible
query I rowsort label-478
SELECT COUNT ( * ) / 96 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 95 AS col0 FROM tab1 AS cor0
----
-95
-95
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT DISTINCT COUNT( ALL - - ( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 57 IN ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT COUNT ( ALL - - ( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 57 IN ( + col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL - + MIN( + col2 ) * - + 54 FROM tab0 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - + MIN ( + col2 ) * - + 54 FROM tab0 AS cor0
----
540

query I rowsort
SELECT - - col0 + + 98 FROM tab1 AS cor0
----
149
183
189

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 7 * - - col0 + - col1 FROM tab1
----
-371
-600
-684

query I rowsort
SELECT ALL col0 * + col0 + - - 56 FROM tab1
----
2657
7281
8337

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + - col2 * 7 BETWEEN - 94 * col2 - - ( + col2 ) / - ( + + 57 ) AND - - col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-491
SELECT DISTINCT - col0 * + + 81 col2, 74 - + 69 DIV + col2 AS col1 FROM tab0
----
-1215
73
-7047
68
-7857
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-491
SELECT DISTINCT - col0 * + + 81 col2, 74 - + 69 / + col2 AS col1 FROM tab0
----
-1215
73
-7047
68
-7857
74

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

skipif mysql # not compatible
query I rowsort label-492
SELECT - ( MIN ( col1 ) ) FROM tab2
----
-51

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

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

query I rowsort
SELECT - 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT - col0 * - 49 * col2 AS col2 FROM tab0
----
34545
42630
470547

query II rowsort
SELECT DISTINCT col1 AS col0, 50 FROM tab2 AS cor0
----
51
50
67
50
77
50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN ( + - col1 * + + 15 ) AND 25
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT - + col0 + + col0 DIV + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * - col2 BETWEEN + ( - col2 ) AND NULL
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-498
SELECT - + col0 + + col0 / + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * - col2 BETWEEN + ( - col2 ) AND NULL
----
-51
-84
-90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT IN ( + 26, 77 + - 82 * - + 76 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-500
SELECT ( + - ( + COUNT ( * ) ) ) AS col1, - 22 * + - 1 col1 FROM tab2 AS cor0
----
-3
22

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

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

query I rowsort
SELECT col1 * ( - 54 ) AS col0 FROM tab1
----
-2538
-270
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 29 AS col2, + col0 col0 FROM tab2
----
-29
46
-29
64
-29
75

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT DISTINCT 68 * - - COUNT( * ) AS col1 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT 68 * - - COUNT ( * ) AS col1 FROM tab1
----
204

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-506
SELECT + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab1
----
NULL
3
3

skipif mysql # not compatible
query III rowsort label-506
SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab1
----
NULL
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-507
SELECT col1 AS col1, 47 DIV 53 AS col1 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-507
SELECT col1 AS col1, 47 / 53 AS col1 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT DISTINCT + 35 + MIN( ALL + col0 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT + 35 + MIN ( ALL + col0 ) FROM tab2
----
81

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

query I rowsort
SELECT col2 * + col1 * - 14 AS col1 FROM tab0
----
-1386
-2940
-53298

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-511
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - 83 + col2 FROM tab0 AS cor0
----
NULL
-36
NULL
-73
NULL
16

skipif mysql # not compatible
query II rowsort label-511
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 83 + col2 FROM tab0 AS cor0
----
NULL
-36
NULL
-73
NULL
16

query II rowsort
SELECT DISTINCT - col1 + + + col2 + - 4 AS col1, col1 FROM tab1
----
17
47
50
5
78
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL + + SUM( DISTINCT - 18 ) * + COUNT( - col2 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL + + SUM ( DISTINCT - 18 ) * + COUNT ( - col2 ) FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-515
SELECT + CAST( NULL AS SIGNED ) * - col1 * + + 64 * + 65 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT + CAST ( NULL AS INTEGER ) * - col1 * + + 64 * + 65 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL - 58 + COUNT( * ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL - 58 + COUNT ( * ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT ALL + 96 + - 20 FROM tab2
----
76
76
76

query II rowsort
SELECT DISTINCT - col2 AS col1, - 51 AS col2 FROM tab2
----
-23
-51
-40
-51
-58
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL CAST( + col1 AS SIGNED ) + + - 13 AS col0 FROM tab1
----
-8
1
34

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL CAST ( + col1 AS INTEGER ) + + - 13 AS col0 FROM tab1
----
-8
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT COUNT( * ) - + SUM( - 24 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-521
SELECT COUNT ( * ) - + SUM ( - 24 ) FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 68 col2, col2 AS col2 FROM tab0 AS cor0
----
-68
10
-68
47
-68
99

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-526
SELECT DISTINCT + + 25 + MIN( - ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT + + 25 + MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-527
SELECT ALL COUNT( * ) DIV - + SUM( DISTINCT - + col2 ) + 45 AS col1 FROM tab2 AS cor0
----
45

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 47 IS NOT NULL )
----

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

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT - MIN ( - col0 ) FROM tab1 AS cor0
----
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + + + 19 AS col2, - 99 col2 FROM tab2 AS cor0
----
65
-99
83
-99
94
-99

query I rowsort
SELECT DISTINCT + 37 * + - col0 + + - 17 + - col2 FROM tab0 AS cor0 WHERE - 69 + - - col2 NOT IN ( - - col2 / + col2 + - 80 * col0 + - - col0 )
----
-3246
-3705
-619

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL MAX( - col2 ) + + + 88 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL MAX ( - col2 ) + + + 88 FROM tab1
----
29

query I rowsort
SELECT ALL - ( - 47 ) FROM tab2
----
47
47
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + 84 * 68 + col0 col2 FROM tab1
----
5841
5875
5881

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

query II rowsort
SELECT - 39 + col2 * - 88 AS col2, + col0 FROM tab2 AS cor0
----
-2063
46
-3559
64
-5143
75

query II rowsort
SELECT DISTINCT + col2 + col2 AS col0, 56 AS col1 FROM tab2
----
116
56
46
56
80
56

query I rowsort
SELECT ALL 11 - + col0 AS col1 FROM tab0
----
-4
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL MAX( - col2 ) + COUNT( * ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL MAX ( - col2 ) + COUNT ( * ) FROM tab1
----
-56

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

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

query III rowsort
SELECT * FROM tab1 WHERE + - 24 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * - 16 col0 FROM tab1 AS cor0
----
3136
35344
400

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

skipif mysql # not compatible
query II rowsort label-547
SELECT ALL - + 66 AS col2, COUNT ( + col2 ) AS col0 FROM tab2 AS cor0
----
-66
3

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

query I rowsort
SELECT col1 + 3 * + 3 AS col2 FROM tab2 AS cor0
----
60
76
86

query I rowsort
SELECT + 23 * + col1 + - col1 AS col2 FROM tab2
----
1122
1474
1694

query I rowsort
SELECT 43 * - col1 * + col1 FROM tab2
----
-111843
-193027
-254947

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL - MIN( DISTINCT + - 19 ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL - MIN ( DISTINCT + - 19 ) AS col0 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT COUNT( * ) * 14 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-553
SELECT COUNT ( * ) * 14 FROM tab2
----
42

query I rowsort
SELECT ALL col2 * - ( col2 ) AS col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-555
SELECT + 63 / CAST( NULL AS SIGNED ) * + MAX( ALL col1 ) * - MIN( col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT + 63 / CAST ( NULL AS INTEGER ) * + MAX ( ALL col1 ) * - MIN ( col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT 22 * - + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT 22 * - + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + 52 FROM tab1 AS cor0 WHERE col0 BETWEEN + 36 AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL + MIN( ALL 52 ) * + 97 - - COUNT( * ) FROM tab1
----
5047

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL + MIN ( ALL 52 ) * + 97 - - COUNT ( * ) FROM tab1
----
5047

query I rowsort
SELECT ALL 55 * + ( - col1 ) AS col2 FROM tab0
----
-1155
-4455
-55

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 95 * + col1 > NULL
----

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

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

query I rowsort
SELECT - ( + col1 ) + - + col0 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL 64 FROM tab2 WHERE - col0 IS NOT NULL
----
64
64
64

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col2 NOT IN ( - 31, - col0, col0 * col0 - - - col1 * - col1, + col0 + + col2 * - + 55 * + ( + - col2 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query II rowsort label-569
SELECT ALL + 57 DIV col0 col2, + 54 AS col2 FROM tab2
----
0
54
0
54
1
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-569
SELECT ALL + 57 / col0 col2, + 54 AS col2 FROM tab2
----
0
54
0
54
1
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-570
SELECT ALL + COUNT( * ) DIV - 19 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + COUNT ( * ) / - 19 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL = + 63
----

query II rowsort
SELECT + - col2 * - col1 * + 33 * 21 AS col2, col0 FROM tab2 cor0
----
2134440
64
2692998
75
812889
46

query I rowsort
SELECT ALL + 68 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - + 96 AS col0 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT - COUNT( * ) FROM tab2 WHERE + col2 = + col2
----
-3

skipif mysql # not compatible
query I rowsort label-575
SELECT - COUNT ( * ) FROM tab2 WHERE + col2 = + col2
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT DISTINCT + col0 DIV col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-577
SELECT DISTINCT + col0 / col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1

query I rowsort
SELECT ALL - - 77 AS col1 FROM tab2 AS cor0
----
77
77
77

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

skipif mysql # not compatible
query II rowsort label-579
SELECT ALL + COUNT ( * ), 51 AS col1 FROM tab1 AS cor0
----
3
51

query I rowsort
SELECT DISTINCT - - col2 * + - col2 - 32 FROM tab1 AS cor0
----
-3513
-4656
-9248

query I rowsort
SELECT 92 * 14 * - col0 FROM tab0 AS cor0
----
-112056
-124936
-19320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT DISTINCT + CAST( + 2 AS SIGNED ) * - col1 * + - 91 * - - col0 FROM tab0
----
17654
221130
332514

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + CAST ( + 2 AS INTEGER ) * - col1 * + - 91 * - - col0 FROM tab0
----
17654
221130
332514

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-584
SELECT DISTINCT - 12 AS col2, - CAST( NULL AS DECIMAL ) * col1 FROM tab0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-584
SELECT DISTINCT - 12 AS col2, - CAST ( NULL AS REAL ) * col1 FROM tab0
----
-12
NULL

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

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

query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0 WHERE + col0 < col2 * - col0
----

query II rowsort
SELECT - + 34, + col1 AS col2 FROM tab0 AS cor0
----
-34
1
-34
21
-34
81

query I rowsort
SELECT ALL 12 * - + col0 AS col2 FROM tab1
----
-1020
-1092
-612

query I rowsort
SELECT DISTINCT 90 FROM tab2 WHERE NOT - + col0 * - + col0 < ( + col1 * - + col1 )
----
90

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-592
SELECT ALL + col0 * + - 92 * - col1 * - - CAST( NULL AS SIGNED ) * + 69 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL + col0 * + - 92 * - col1 * - - CAST ( NULL AS INTEGER ) * + 69 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + - col2 + col2 + col2 * + col1 FROM tab0
----
196
297
3822

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE + 60 BETWEEN - col2 AND col2
----
-99

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

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

query I rowsort
SELECT ALL + col0 + + - 67 - + + ( + 78 ) AS col1 FROM tab2
----
-70
-81
-99

query I rowsort
SELECT + col1 + - col0 + - 46 AS col1 FROM tab0
----
-112
-142
20

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

query I rowsort
SELECT DISTINCT + col2 + - + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

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

query I rowsort
SELECT - ( + - 31 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 84 IS NOT NULL
----

query II rowsort
SELECT + - col2 * - + 48, - col2 AS col0 FROM tab1 cor0
----
2832
-59
3264
-68
4608
-96

query I rowsort
SELECT 35 * + col0 - + col2 FROM tab0 AS cor0
----
3035
3296
478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT 95 DIV + MIN( ALL - + col0 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-606
SELECT 95 / + MIN ( ALL - + col0 ) AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT MIN( DISTINCT col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT DISTINCT SUM( + - 52 ) FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT SUM ( + - 52 ) FROM tab1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ( COUNT( - 32 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-609
SELECT ( COUNT ( - 32 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT CAST( 63 AS SIGNED ) AS col1 FROM tab1
----
63
63
63

skipif mysql # not compatible
query I rowsort label-610
SELECT CAST ( 63 AS INTEGER ) AS col1 FROM tab1
----
63
63
63

query I rowsort
SELECT DISTINCT 43 * - + 49 * - col2 FROM tab0
----
208593
21070
99029

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-613
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col2 ) * col0 IN ( - - col1, col2 * + col0 + - + col0 / + col2 + + - CAST( - 10 AS SIGNED ) + - - col1 * + col0 / 23 )
----

skipif mysql # not compatible
query III rowsort label-613
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + col2 ) * col0 IN ( - - col1, col2 * + col0 + - + col0 / + col2 + + - CAST ( - 10 AS INTEGER ) + - - col1 * + col0 / 23 )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 <> ( 83 ) * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT + ( + 36 ) + - 43 + + + col2 + - - 84 * - ( + col1 ) AS col1, col2 * - 89 AS col0 FROM tab2 AS cor0
----
-4268
-2047
-5577
-5162
-6435
-3560

query I rowsort
SELECT DISTINCT col0 * - - col2 + - 38 * col2 AS col2 FROM tab2
----
1040
184
2146

query I rowsort
SELECT DISTINCT 82 * 21 * + - col2 FROM tab2
----
-39606
-68880
-99876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT ALL - COUNT( * ) DIV + 78 DIV - + COUNT( - col1 ) + + COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-620
SELECT ALL - COUNT ( * ) / + 78 / - + COUNT ( - col1 ) + + COUNT ( * ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL 64 * - col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-623
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 58 + + 61 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 58 + + 61 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col2 + + 32 + + col1 * col2 AS col0 FROM tab0
----
230
252
3886

query I rowsort
SELECT 32 - - col0 AS col0 FROM tab2 AS cor0
----
107
78
96

query I rowsort
SELECT + col0 - + - 3 + + col0 FROM tab1 AS cor0
----
105
173
185

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( - + ( + ( 83 ) ) ) <= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT DISTINCT SUM( 12 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT SUM ( 12 ) FROM tab0
----
36

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

onlyif mysql # aggregate syntax: 
query II rowsort label-632
SELECT + 43 AS col0, MIN( 76 ) + COUNT( * ) col1 FROM tab2 AS cor0
----
43
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-632
SELECT + 43 AS col0, MIN ( 76 ) + COUNT ( * ) col1 FROM tab2 AS cor0
----
43
79

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

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

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

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

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

query II rowsort
SELECT - col0 AS col1, + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

query II rowsort
SELECT DISTINCT + 84 AS col2, ( + col0 ) * - col0 AS col2 FROM tab2 cor0
----
84
-2116
84
-4096
84
-5625

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 6 * - - col0 col1, 45 AS col1 FROM tab0
----
522
45
582
45
90
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-641
SELECT ALL + CAST( - 52 AS SIGNED ), + col1 AS col0 FROM tab2
----
-52
51
-52
67
-52
77

skipif mysql # not compatible
query II rowsort label-641
SELECT ALL + CAST ( - 52 AS INTEGER ), + col1 AS col0 FROM tab2
----
-52
51
-52
67
-52
77

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 <> NULL
----

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

query I rowsort
SELECT + col1 * 90 - - + 30 AS col0 FROM tab1 AS cor0
----
1290
4260
480

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

query I rowsort
SELECT + col0 + 29 AS col0 FROM tab0 cor0
----
116
126
44

query I rowsort
SELECT col0 + + 14 + + + 73 AS col2 FROM tab1
----
138
172
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-652
SELECT - col2 * + col2 * + CAST( + - col0 AS SIGNED ) + - col2 AS col0 FROM tab1
----
295826
420716
469920

skipif mysql # not compatible
query I rowsort label-652
SELECT - col2 * + col2 * + CAST ( + - col0 AS INTEGER ) + - col2 AS col0 FROM tab1
----
295826
420716
469920

query I rowsort
SELECT ALL - col1 * col1 + 92 FROM tab2
----
-2509
-4397
-5837

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT ALL + col1 - - 80 + - - col0 DIV 10 + + col0 * + + 76 + + + col0 * + col2 AS col0 FROM tab1
----
11568
13240
8871

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + col1 - - 80 + - - col0 / 10 + + col0 * + + 76 + + + col0 * + col2 AS col0 FROM tab1
----
11568
13240
8871

query I rowsort
SELECT + col1 * - 8 * + col0 + 73 * col0 FROM tab1
----
-1989
-27573
2805

query I rowsort
SELECT DISTINCT col2 + - 94 AS col0 FROM tab1
----
-26
-35
2

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

query I rowsort
SELECT ALL col2 + 43 + 73 - + 29 * - col1 AS col0 FROM tab0
----
244
2512
735

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-661
SELECT ALL col1 * - - col1 * - + ( 61 ) * col0 - + - CAST( NULL AS DECIMAL ) AS col2, ( 60 ) FROM tab2
----
NULL
60
NULL
60
NULL
60

skipif mysql # not compatible
query II rowsort label-661
SELECT ALL col1 * - - col1 * - + ( 61 ) * col0 - + - CAST ( NULL AS REAL ) AS col2, ( 60 ) FROM tab2
----
NULL
60
NULL
60
NULL
60

query I rowsort
SELECT DISTINCT 44 - col1 FROM tab1 AS cor0
----
-3
30
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-663
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col2, - 50 * - MIN( + col2 ) FROM tab2
----
NULL
1150

skipif mysql # not compatible
query II rowsort label-663
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2, - 50 * - MIN ( + col2 ) FROM tab2
----
NULL
1150

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT + MAX( col1 ) * - ( + COUNT( * ) ) AS col2 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-666
SELECT + MAX ( col1 ) * - ( + COUNT ( * ) ) AS col2 FROM tab2
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-667
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) < + 87
----

skipif mysql # not compatible
query III rowsort label-667
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) < + 87
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT DISTINCT - ( ( + col2 ) ) DIV + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT - ( ( + col2 ) ) / + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT col2 * + - col1 BETWEEN + col0 AND col1
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL + MIN( ALL + - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + MIN ( ALL + - col0 ) FROM tab0 cor0
----
-97

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 51 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - 66 * - COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-675
SELECT - 66 * - COUNT ( * ) FROM tab1
----
198

query I rowsort
SELECT + 32 * - 36 AS col1 FROM tab1
----
-1152
-1152
-1152

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

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

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

query II rowsort
SELECT DISTINCT + col1 AS col2, - 60 * + + col0 AS col0 FROM tab2
----
51
-2760
67
-4500
77
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT ALL + 90 DIV + col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL + 90 / + col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-681
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - col0 * + ( col2 ) + col0 / + 65 IN ( 30 + - col0 + - + 53, - col2, + col2 + ( - + 82 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-687
SELECT ALL CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT DISTINCT 74 + - + col1 AS col2 FROM tab0 AS cor0
----
-7
53
73

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE NOT 37 * + 75 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ( + SUM( col2 ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT ( + SUM ( col2 ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 26
----
NULL

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

query I rowsort
SELECT + + 83 * col1 AS col2 FROM tab2 AS cor0
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT - MIN( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT - MIN ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT col1 DIV - - col1 + + + ( - col1 ) + + - 41 AS col0 FROM tab2 AS cor0
----
-107
-117
-91

skipif mysql # not compatible
query I rowsort label-696
SELECT col1 / - - col1 + + + ( - col1 ) + + - 41 AS col0 FROM tab2 AS cor0
----
-107
-117
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT DISTINCT - 29 DIV col1 + - col1 FROM tab0
----
-22
-30
-81

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT - 29 / col1 + - col1 FROM tab0
----
-22
-30
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL - 93 + - SUM( + col1 ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - 93 + - SUM ( + col1 ) FROM tab2
----
-288

query I rowsort
SELECT ALL ( - + col0 ) + + 53 AS col1 FROM tab2
----
-11
-22
7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT + 42 * + 68 * + COUNT( * ) * + 18 FROM tab0
----
154224

skipif mysql # not compatible
query I rowsort label-704
SELECT + 42 * + 68 * + COUNT ( * ) * + 18 FROM tab0
----
154224

query I rowsort
SELECT col1 * - col2 * - col1 AS col1 FROM tab2 AS cor0
----
237160
260362
59823

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

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

query I rowsort
SELECT 29 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
1428
1876
2156

query II rowsort
SELECT + + col2, 54 + - + col0 FROM tab0 AS cor0
----
10
-33
47
39
99
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-709
SELECT + + col0, + col1 * col0 DIV - - col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-709
SELECT + + col0, + col1 * col0 / - - col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

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

query II rowsort
SELECT DISTINCT 61 * - col0 AS col1, 71 FROM tab0
----
-5307
71
-5917
71
-915
71

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

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

query I rowsort
SELECT 12 + - 64 FROM tab1
----
-52
-52
-52

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

query I rowsort
SELECT DISTINCT + - 82 FROM tab0 cor0
----
-82

query I rowsort
SELECT - col2 - + + 63 + + + col1 - col1 + - 19 + + - col0 * - 84 + col0 AS col2 FROM tab1 cor0
----
4157
7084
7585

query I rowsort
SELECT ALL col1 + + col2 + ( 17 ) * - col1 AS col0 FROM tab1 AS cor0
----
-128
-21
-684

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

query I rowsort
SELECT - col1 * + col2 + - col0 + + col1 * + 3 AS col0 FROM tab0 AS cor0
----
-193
-234
-3579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
33
33
33

query I rowsort
SELECT ALL + - 11 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + 41 + 30 AS col2 FROM tab2 AS cor0
----
71

query I rowsort
SELECT col1 * - - col0 AS col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 45 ) <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 * 8 col1, - ( + - 17 ) FROM tab1 cor0
----
-408
17
-680
17
-728
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-726
SELECT ALL CAST( NULL AS DECIMAL ) / + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL CAST ( NULL AS REAL ) / + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT col0 * - - 37 * col0 * + 57 FROM tab1
----
15237525
17464629
5485509

query I rowsort
SELECT - + 77 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 92 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT - - col2 AS col1, - col1 - - - col0 + + 98 * + 43 AS col2 FROM tab2 cor0
----
23
4117
40
4073
58
4072

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT - + COUNT( * ) AS col1, + 85 * - 80 col2 FROM tab1 AS cor0
----
-3
-6800

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-736
SELECT - + COUNT ( * ) AS col1, + 85 * - 80 col2 FROM tab1 AS cor0
----
-3
-6800

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

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

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

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

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

query I rowsort
SELECT - + col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - 8 + col2 AS col1 FROM tab2 AS cor0
----
15
32
50

query I rowsort
SELECT ALL - 32 * - ( 44 ) FROM tab1
----
1408
1408
1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT DISTINCT COUNT( * ) DIV + MAX( col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT COUNT ( * ) / + MAX ( col1 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-744
SELECT ALL SUM( col2 ) DIV - MAX( ALL + col1 ) + - COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL SUM ( col2 ) / - MAX ( ALL + col1 ) + - COUNT ( * ) FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT DISTINCT + ( SUM( 96 ) ) FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT + ( SUM ( 96 ) ) FROM tab0 AS cor0
----
288

query I rowsort
SELECT ALL - col1 * - 62 FROM tab2 AS cor0
----
3162
4154
4774

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-747
SELECT + 73 DIV + COUNT( * ) AS col0, + 90 DIV + 42 AS col1 FROM tab1 AS cor0
----
24
2

skipif mysql # not compatible
query II rowsort label-747
SELECT + 73 / + COUNT ( * ) AS col0, + 90 / + 42 AS col1 FROM tab1 AS cor0
----
24
2

query I rowsort
SELECT 21 + col0 AS col1 FROM tab0 AS cor0
----
108
118
36

query I rowsort
SELECT - + col0 + - + ( 75 ) FROM tab2 AS cor0
----
-121
-139
-150

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-751
SELECT ALL - COUNT( ALL - - 65 ) col0, 90 AS col2 FROM tab0 AS cor0
----
-3
90

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

query I rowsort
SELECT DISTINCT - - col0 / 80 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 27 + + 25 FROM tab0
----
52

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

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

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

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

query I rowsort
SELECT DISTINCT + - col0 - - ( + 38 ) - - - 82 FROM tab1 AS cor0
----
-129
-135
-95

query II rowsort
SELECT DISTINCT + col0 * + 66, - 73 AS col2 FROM tab0 AS cor0
----
5742
-73
6402
-73
990
-73

query I rowsort
SELECT ALL 23 - + - 10 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + 63 - col1 AS col1 FROM tab0 AS cor0
----
-18
42
62

query II rowsort
SELECT ALL col2 - - - 53 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
-13
-77
-30
-51
5
-67

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

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

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND col0 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 + col1 col2 FROM tab0
----
101
209
52

query I rowsort
SELECT DISTINCT - + 70 AS col2 FROM tab2 WHERE NOT + col1 BETWEEN - 36 - - 3 AND - + col1
----
-70

query I rowsort
SELECT + col2 + - 54 AS col2 FROM tab1 WHERE NOT - col0 + + + ( + + col0 ) * - ( - + col0 ) * - 52 IS NULL
----
14
42
5

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, + col2 * - + 84 * + col1 + 44 FROM tab0 cor0
----
15
-319744
87
-17596
97
-8272

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-777
SELECT + col2 / - 32 AS col2 FROM tab0 WHERE NOT ( col1 * + CAST( + 11 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-777
SELECT + col2 / - 32 AS col2 FROM tab0 WHERE NOT ( col1 * + CAST ( + 11 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT DISTINCT 35 DIV + ( col2 ) - - 87 DIV col0 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT 35 / + ( col2 ) - - 87 / col0 AS col2 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE - col1 + col2 IN ( + 2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-780
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-780
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + 1 - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-781
SELECT + 1 - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> ( - 33 + + col0 )
----

query I rowsort
SELECT - 33 - - col1 AS col0 FROM tab0
----
-12
-32
48

query I rowsort
SELECT 46 - 25 FROM tab1
----
21
21
21

query I rowsort
SELECT + col0 + + 68 * col1 AS col2 FROM tab2
----
3514
4631
5300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT - CAST( ( - 15 ) AS SIGNED ) FROM tab0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-787
SELECT - CAST ( ( - 15 ) AS INTEGER ) FROM tab0
----
15
15
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( col1 - 35 ) col1 FROM tab2
----
22
30
43

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-792
SELECT ALL * FROM tab1 WHERE NOT ( CAST( + 5 AS SIGNED ) * ( 38 * + col0 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-792
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( + 5 AS INTEGER ) * ( 38 * + col0 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT ALL - MIN( DISTINCT CAST( - 40 AS SIGNED ) ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - MIN ( DISTINCT CAST ( - 40 AS INTEGER ) ) FROM tab1
----
40

query III rowsort
SELECT * FROM tab1 WHERE NOT - 85 * col2 + 72 * 7 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-795
SELECT ALL * FROM tab0 WHERE NOT ( 11 * - CAST( NULL AS SIGNED ) ) BETWEEN 37 * - col2 AND ( col2 )
----

skipif mysql # not compatible
query III rowsort label-795
SELECT ALL * FROM tab0 WHERE NOT ( 11 * - CAST ( NULL AS INTEGER ) ) BETWEEN 37 * - col2 AND ( col2 )
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT + 86 BETWEEN - 80 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT CAST( NULL AS SIGNED ) * - AVG ( - col2 ) AS col1 FROM tab1 WHERE NOT NULL = + CAST( 83 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT CAST ( NULL AS INTEGER ) * - AVG ( - col2 ) AS col1 FROM tab1 WHERE NOT NULL = + CAST ( 83 AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 71 * col0 + - col2 <> 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL - MAX( col0 ) * - COUNT( * ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL - MAX ( col0 ) * - COUNT ( * ) FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT - MAX( 60 ) AS col1 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-800
SELECT - MAX ( 60 ) AS col1 FROM tab1
----
-60

query I rowsort
SELECT 30 * + col0 FROM tab1
----
1530
2550
2730

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( - col0 )
----

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

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

query I rowsort
SELECT DISTINCT + 74 * col2 FROM tab0 WHERE NULL >= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-805
SELECT - MAX ( ALL - col2 ) * + COUNT ( * ) FROM tab2
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 0 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - ( - ( - col2 ) + - col2 * col0 ) FROM tab0
----
673
947
9601

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT + col1 DIV - 37 + - col0 AS col0 FROM tab0 AS cor0
----
-17
-87
-97

skipif mysql # not compatible
query I rowsort label-809
SELECT + col1 / - 37 + - col0 AS col0 FROM tab0 AS cor0
----
-17
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-810
SELECT DISTINCT + col1 / col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT + col1 / col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col2 * + col0 FROM tab1 AS cor0 WHERE + 89 * 65 IN ( - col1 * col0 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT 66 DIV + col0 - - col1 AS col2 FROM tab2
----
52
67
78

skipif mysql # not compatible
query I rowsort label-814
SELECT 66 / + col0 - - col1 AS col2 FROM tab2
----
52
67
78

query I rowsort
SELECT + col1 - + 34 AS col0 FROM tab2
----
17
33
43

query I rowsort
SELECT ALL col0 + + 35 FROM tab1
----
120
126
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT COUNT( * ) - + 1 * SUM( ALL + col0 ) AS col2 FROM tab2 cor0
----
-182

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT COUNT ( * ) - + 1 * SUM ( ALL + col0 ) AS col2 FROM tab2 cor0
----
-182

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - - 96 FROM tab2
----
4896
6432
7392

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + col2 / - col1 + col0
----

query I rowsort
SELECT col1 + - 45 * 19 FROM tab0 WHERE NOT + 69 IS NULL
----
-774
-834
-854

query I rowsort
SELECT + col1 * - 52 AS col2 FROM tab1
----
-2444
-260
-728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-827
SELECT + COUNT( * ) DIV - 71 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT + COUNT ( * ) / - 71 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 30 IS NOT NULL
----

query I rowsort
SELECT 26 * + col1 FROM tab0
----
2106
26
546

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

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

query I rowsort
SELECT - 5 * ( + col2 ) AS col2 FROM tab2
----
-115
-200
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT DISTINCT - COUNT( * ) * - 63 - ( + 61 ) * + 53 FROM tab1 WHERE ( + 69 ) IS NULL
----
-3233

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - COUNT ( * ) * - 63 - ( + 61 ) * + 53 FROM tab1 WHERE ( + 69 ) IS NULL
----
-3233

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 * + col2 - col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-836
SELECT ALL + CAST( NULL AS DECIMAL ), 91 AS col2 FROM tab1
----
NULL
91
NULL
91
NULL
91

skipif mysql # not compatible
query II rowsort label-836
SELECT ALL + CAST ( NULL AS REAL ), 91 AS col2 FROM tab1
----
NULL
91
NULL
91
NULL
91

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

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

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

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

query II rowsort
SELECT DISTINCT 21 AS col0, + col2 FROM tab1 AS cor0
----
21
59
21
68
21
96

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT + + MIN( ALL - 64 ) + - COUNT( * ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-840
SELECT + + MIN ( ALL - 64 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-67

query I rowsort
SELECT + 78 * col2 FROM tab2 AS cor0 WHERE NOT + col2 * + 56 = - 83 + + 8
----
1794
3120
4524

query I rowsort
SELECT - col1 + + col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= - col1 + + ( + col2 - - 46 * + 73 )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-844
SELECT + - CAST( + - 52 AS SIGNED ) + - col0 - col2 DIV + 33 AS col2 FROM tab2 AS cor0
----
-13
-24
6

skipif mysql # not compatible
query I rowsort label-844
SELECT + - CAST ( + - 52 AS INTEGER ) + - col0 - col2 / + 33 AS col2 FROM tab2 AS cor0
----
-13
-24
6

query I rowsort
SELECT - col2 + col0 + + col2 * + 95 FROM tab2 AS cor0
----
2208
3824
5527

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

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

query I rowsort
SELECT 14 * col0 AS col0 FROM tab1 AS cor0 WHERE ( 18 ) NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL - - 19 * MIN( col1 ) FROM tab2 AS cor0
----
969

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - - 19 * MIN ( col1 ) FROM tab2 AS cor0
----
969

query I rowsort
SELECT ALL - col2 * + col2 FROM tab2 cor0 WHERE NOT ( + col0 ) IS NULL
----
-1600
-3364
-529

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL COUNT( * ) + COUNT( * ) * - 84 FROM tab1 WHERE 86 * 12 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL COUNT ( * ) + COUNT ( * ) * - 84 FROM tab1 WHERE 86 * 12 >= NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-854
SELECT SUM ( ALL + - col1 ) FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT ALL + 68 DIV - - 97 * + + 13 * - 28 * col2 + 45 AS col1 FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL + 68 / - - 97 * + + 13 * - 28 * col2 + 45 AS col1 FROM tab0
----
45
45
45

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

query I rowsort
SELECT DISTINCT col1 * - + col0 + col1 FROM tab1
----
-420
-4230
-700

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * 55 * + col1 FROM tab0
----
-24255
-360855
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL - ( - COUNT( * ) ) col0 FROM tab0 WHERE NOT ( 1 * col1 * col2 - - 55 * + 28 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-861
SELECT ALL - ( - COUNT ( * ) ) col0 FROM tab0 WHERE NOT ( 1 * col1 * col2 - - 55 * + 28 ) IS NULL
----
3

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - 66 - col1 = - col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-864
SELECT 79 + + - ( 56 ) DIV + MAX( ALL 10 ) AS col1 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-864
SELECT 79 + + - ( 56 ) / + MAX ( ALL 10 ) AS col1 FROM tab2 cor0
----
74

query I rowsort
SELECT col1 + - 25 FROM tab1 AS cor0
----
-11
-20
22

query I rowsort
SELECT - 22 + - + col2 AS col1 FROM tab0 AS cor0
----
-121
-32
-69

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

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

query I rowsort
SELECT col0 + + 68 - + col0 + col2 * col2 * + 6 - col1 AS col2 FROM tab1
----
20949
27765
55350

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT SUM( ALL - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-869
SELECT SUM ( ALL - col2 ) FROM tab2
----
-121

query I rowsort
SELECT ALL - col2 * + 78 FROM tab1 AS cor0
----
-4602
-5304
-7488

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL - 9 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - 9 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT + - 33 * + col0 AS col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-878
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 13 IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-878
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 13 IN ( + col1 )
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT ( + 44 ) = - ( 44 )
----
3

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT ( + 44 ) = - ( 44 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT DISTINCT + MAX( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT + MAX ( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-885
SELECT - MIN( + col1 ) AS col2, + 91 AS col2 FROM tab1
----
-5
91

skipif mysql # not compatible
query II rowsort label-885
SELECT - MIN ( + col1 ) AS col2, + 91 AS col2 FROM tab1
----
-5
91

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

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT + 47 * + - COUNT( * ) AS col1 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + 47 * + - COUNT ( * ) AS col1 FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT + 57, - MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
57
-58

skipif mysql # not compatible
query II rowsort label-889
SELECT + 57, - MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
57
-58

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-891
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-891
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( col2 AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 + + col2 col0 FROM tab1
----
157
166
194

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

skipif mysql # not compatible
query III rowsort label-893
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + col0 - - ( col2 ) + 64 / col2 )
----

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

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

query I rowsort
SELECT ALL 7 + + col0 AS col2 FROM tab1
----
58
92
98

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT - 21 + - SUM( DISTINCT - 51 ) * + COUNT( * ) AS col2 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT - 21 + - SUM ( DISTINCT - 51 ) * + COUNT ( * ) AS col2 FROM tab1
----
132

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

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

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

query I rowsort
SELECT ALL 61 + + col2 * - col0 * - - col2 AS col1 FROM tab2
----
-102339
-24273
-252239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + 91 + + col2 col0, - col2 FROM tab1
----
209
-59
227
-68
283
-96

query I rowsort
SELECT ALL - col0 + - 7 FROM tab0
----
-104
-22
-94

query III rowsort
SELECT * FROM tab0 WHERE + + col0 = - + 55
----

query II rowsort
SELECT ALL col2, 70 * 44 FROM tab1
----
59
3080
68
3080
96
3080

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

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

query I rowsort
SELECT + col2 * - col1 * - col0 * - 4 + + + col0 FROM tab2
----
-1165725
-215786
-788416

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

query I rowsort
SELECT DISTINCT col0 - + - col1 FROM tab0 AS cor0
----
108
96
98

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

query II rowsort
SELECT DISTINCT - 24 AS col1, + 66 AS col2 FROM tab1 AS cor0
----
-24
66

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT 32 DIV col0 * + + col1 AS col2 FROM tab0
----
0
0
162

skipif mysql # not compatible
query I rowsort label-911
SELECT 32 / col0 * + + col1 AS col2 FROM tab0
----
0
0
162

query I rowsort
SELECT + ( - + 54 ) * - col0 AS col2 FROM tab1
----
2754
4590
4914

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 63 NOT BETWEEN - + col0 AND ( NULL )
----
15
81
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - 94 ) - + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + MIN( 6 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-918
SELECT + MIN ( 6 ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT SUM( + + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-919
SELECT SUM ( + + col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT ALL - col2 * + 80 FROM tab0
----
-3760
-7920
-800

query I rowsort
SELECT DISTINCT - 55 * 49 * 68 AS col1 FROM tab2
----
-183260

query III rowsort
SELECT * FROM tab2 WHERE NOT + 25 < ( ( - + col2 ) - + 13 - - - 46 + + col1 / + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT 16 * + - 17 AS col0 FROM tab1
----
-272
-272
-272

query I rowsort
SELECT ALL - 87 * + + col2 FROM tab1
----
-5133
-5916
-8352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-927
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * - + ( - + 77 ) FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - + ( - + 77 ) FROM tab1
----
-231

query I rowsort
SELECT DISTINCT col1 * - 46 FROM tab0
----
-3726
-46
-966

query I rowsort
SELECT ALL 99 * 63 FROM tab1
----
6237
6237
6237

onlyif mysql # aggregate syntax: 
query II rowsort label-930
SELECT - SUM( + col0 ) AS col2, COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-930
SELECT - SUM ( + col0 ) AS col2, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT DISTINCT - MAX( + 29 ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT - MAX ( + 29 ) FROM tab0 AS cor0
----
-29

query II rowsort
SELECT - 88, + 28 AS col1 FROM tab1 AS cor0
----
-88
28
-88
28
-88
28

query I rowsort
SELECT ALL col0 + + 57 FROM tab1
----
108
142
148

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE + col1 + + col1 NOT IN ( - 5 )
----
-51
-85
-91

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

query I rowsort
SELECT + - 43 + - + col2 FROM tab1 AS cor0
----
-102
-111
-139

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

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT - col0 DIV 73 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-940
SELECT - col0 / 73 FROM tab0 AS cor0
----
-1
-1
0

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

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

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

skipif mysql # not compatible
query II rowsort label-942
SELECT - 34, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-34
3

query I rowsort
SELECT + + 86 AS col0 FROM tab1 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT DISTINCT COUNT( * ) + + 2 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT COUNT ( * ) + + 2 FROM tab2
----
5

query I rowsort
SELECT - + col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT + ( - 32 ) + - col1 FROM tab2 AS cor0
----
-109
-83
-99

query I rowsort
SELECT + + 95 * col1 AS col1 FROM tab0 AS cor0
----
1995
7695
95

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT DISTINCT MIN( DISTINCT - + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT MIN ( DISTINCT - + col2 ) AS col0 FROM tab0
----
-99

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

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

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

query II rowsort
SELECT + + 13 AS col2, col1 * col0 * - col2 + + 55 + - 99 - col2 * - col2 * + ( 18 ) + col0 FROM tab1 AS cor0
----
13
-207557
13
37624
13
97351

query II rowsort
SELECT DISTINCT - 58, col0 - - col2 AS col1 FROM tab2 AS cor0
----
-58
104
-58
133
-58
69

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT ALL - COUNT( * ) AS col2, MIN( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-3
23

skipif mysql # not compatible
query II rowsort label-953
SELECT ALL - COUNT ( * ) AS col2, MIN ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-3
23

query II rowsort
SELECT DISTINCT - - col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT MAX( DISTINCT - col2 ) AS col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-955
SELECT MAX ( DISTINCT - col2 ) AS col2 FROM tab0 cor0
----
-10

query II rowsort
SELECT ALL col1, - 10 FROM tab0 AS cor0
----
1
-10
21
-10
81
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL COUNT( * ) * - + 25 AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL COUNT ( * ) * - + 25 AS col1 FROM tab2
----
-75

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

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

query I rowsort
SELECT ALL + 54 * - - col2 AS col0 FROM tab0
----
2538
5346
540

query I rowsort
SELECT DISTINCT - 26 + + col2 + - + col1 FROM tab0
----
-37
-60
72

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

query I rowsort
SELECT ALL col1 * + 18 * + - 91 AS col1 FROM tab0
----
-132678
-1638
-34398

query I rowsort
SELECT - 60 + - 39 FROM tab2 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + 61 + COUNT( * ) col2 FROM tab2 cor0
----
64

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

query I rowsort
SELECT - + 83 * - col2 + + - col0 FROM tab1 cor0
----
4812
5553
7917

query I rowsort
SELECT + 79 + - col1 * + + 51 FROM tab2 AS cor0
----
-2522
-3338
-3848

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT - col0 + - 43 * col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-107
-118
-89

skipif mysql # not compatible
query I rowsort label-967
SELECT - col0 + - 43 * col1 / + col1 AS col0 FROM tab2 AS cor0
----
-107
-118
-89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND + + ( - 47 ) * + col1 + - col2
----

query I rowsort
SELECT - 81 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT COUNT( * ) * + - 6 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-54

skipif mysql # not compatible
query I rowsort label-970
SELECT COUNT ( * ) * + - 6 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-54

query I rowsort
SELECT ALL 81 + + 18 AS col0 FROM tab1
----
99
99
99

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

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

query I rowsort
SELECT ALL - 87 + 72 FROM tab0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-974
SELECT DISTINCT + 54 + CAST( NULL AS SIGNED ) * col2 + + 18 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT + 54 + CAST ( NULL AS INTEGER ) * col2 + + 18 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT MIN( ALL + 76 ) * + + COUNT( * ) * - + 48 FROM tab1 AS cor0
----
-10944

skipif mysql # not compatible
query I rowsort label-976
SELECT MIN ( ALL + 76 ) * + + COUNT ( * ) * - + 48 FROM tab1 AS cor0
----
-10944

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + ( - 96 ) - + COUNT( ALL col0 ) - - - ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
-96

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

query I rowsort
SELECT ALL + - 21 AS col2 FROM tab1 AS cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 37 * - col0 col2 FROM tab0 AS cor0
----
-3219
-3589
-555

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT DISTINCT + - col1 * + - col0 + - 85 + - col2 FROM tab2 AS cor0 WHERE NOT col0 + 38 * - CAST( NULL AS SIGNED ) / + - 75 IS NOT NULL
----
2238
4803
4882

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT + - col1 * + - col0 + - 85 + - col2 FROM tab2 AS cor0 WHERE NOT col0 + 38 * - CAST ( NULL AS INTEGER ) / + - 75 IS NOT NULL
----
2238
4803
4882

query I rowsort
SELECT ALL col2 * + ( 95 ) FROM tab1
----
5605
6460
9120

query I rowsort
SELECT ALL col1 + - + col0 * + 15 FROM tab0
----
-1284
-144
-1454

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 * - col1 + - - col0 col0 FROM tab0
----
191
2061
7629

query I rowsort
SELECT - ( + - ( - - 64 ) ) + - col2 * - - col1 AS col1 FROM tab1
----
-1280
-231
-3132

query I rowsort
SELECT - col2 + - col2 - + + col2 FROM tab2
----
-120
-174
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 64, col0 * - col2 + + + 3 col2 FROM tab1 WHERE - ( ( + col2 ) ) * + - 63 + - + col1 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-989
SELECT DISTINCT + 36 DIV - - CAST( - - 67 AS SIGNED ) + + + col1 + col0 + + 36 + + col2 AS col0 FROM tab1
----
185
197
242

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT + 36 / - - CAST ( - - 67 AS INTEGER ) + + + col1 + col0 + + 36 + + col2 AS col0 FROM tab1
----
185
197
242

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT + COUNT( * ) / 44 + - MIN( ALL + - col0 ) + + COUNT( * ) * 61 * COUNT( * ) + 95 AS col0 FROM tab1 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT + COUNT ( * ) / 44 + - MIN ( ALL + - col0 ) + + COUNT ( * ) * 61 * COUNT ( * ) + 95 AS col0 FROM tab1 WHERE NULL <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL - 99 + COUNT( * ) * + - 12 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - 99 + COUNT ( * ) * + - 12 FROM tab1
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT DISTINCT + col2 DIV 98 FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT + col2 / 98 FROM tab1 WHERE NULL IS NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-993
SELECT - col1 col1 FROM tab2 AS cor0 WHERE NOT 55 <> + + CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT ( - - 16 ) FROM tab1
----
16

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

query I rowsort
SELECT DISTINCT - + ( 15 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-15

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

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

query I rowsort
SELECT + 49 * - col0 * - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
114954
241472
246225

query I rowsort
SELECT - - 80 FROM tab2 AS cor0 WHERE NOT col2 >= + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT + 98 DIV + 27 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1000
SELECT + 98 / + 27 FROM tab0 AS cor0
----
3
3
3

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1002
SELECT ALL col0 AS col2, col2 DIV - col1 + col2 AS col0 FROM tab0
----
15
47
87
10
97
0

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL col0 AS col2, col2 / - col1 + col2 AS col0 FROM tab0
----
15
47
87
10
97
0

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 56 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3304
3808
5376

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL + SUM( + + col0 ) FROM tab1 AS cor0 WHERE - 10 + + col1 > - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL + SUM ( + + col0 ) FROM tab1 AS cor0 WHERE - 10 + + col1 > - - col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 81 + + 11 FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL + 87 - - SUM( col2 ) FROM tab1
----
310

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + 87 - - SUM ( col2 ) FROM tab1
----
310

query I rowsort
SELECT DISTINCT 46 - - col0 * - col0 * + col0 * + 54 AS col2 FROM tab0
----
-182204
-35559116
-49284296

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT DISTINCT + CAST( + 84 AS SIGNED ) - - ( - - 19 ) * + + COUNT( * ) * + + COUNT( * ) col2 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT DISTINCT + CAST ( + 84 AS INTEGER ) - - ( - - 19 ) * + + COUNT ( * ) * + + COUNT ( * ) col2 FROM tab0 AS cor0
----
255

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

query I rowsort
SELECT + col1 * - 50 AS col0 FROM tab2 AS cor0
----
-2550
-3350
-3850

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT col0 DIV - 83 + + 15 AS col1 FROM tab0 cor0
----
14
14
15

skipif mysql # not compatible
query I rowsort label-1019
SELECT col0 / - 83 + + 15 AS col1 FROM tab0 cor0
----
14
14
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT col2 DIV - 21 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-441
-5
-6563

skipif mysql # not compatible
query I rowsort label-1020
SELECT col2 / - 21 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-441
-5
-6563

query II rowsort
SELECT - col2 * - col0 AS col1, + 86 AS col1 FROM tab2 AS cor0
----
1058
86
2560
86
4350
86

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

skipif mysql # not compatible
query I rowsort label-1022
SELECT + COUNT ( * ) - + + 76 FROM tab0
----
-73

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL COUNT ( * ) / COUNT ( - ( ( - 20 ) ) ) FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - 29 BETWEEN ( - col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT + MAX( + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT + MAX ( + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1026
SELECT DISTINCT ( + 44 ) + 99 + CAST( NULL AS SIGNED ) * AVG ( + + 95 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT ( + 44 ) + 99 + CAST ( NULL AS INTEGER ) * AVG ( + + 95 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1027
SELECT * FROM tab2 WHERE NOT + CAST( + col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-1027
SELECT * FROM tab2 WHERE NOT + CAST ( + col0 AS INTEGER ) = NULL
----

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

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - + ( + + COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT ALL - 75 DIV - 38 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - 75 / - 38 FROM tab2 AS cor0
----
1
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 14 col2 FROM tab1
----
1344
826
952

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT DISTINCT - - COUNT( * ) - - 66 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
75

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT - - COUNT ( * ) - - 66 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT SUM( + 68 ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-1033
SELECT SUM ( + 68 ) FROM tab2 AS cor0
----
204

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT 61 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT 61 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT DISTINCT 64 + + SUM( ALL - - 84 ) AS col0 FROM tab2 AS cor0
----
316

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT 64 + + SUM ( ALL - - 84 ) AS col0 FROM tab2 AS cor0
----
316

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

query I rowsort
SELECT DISTINCT col2 + - 75 FROM tab1
----
-16
-7
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT SUM( DISTINCT - - col0 ) + - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
196

skipif mysql # not compatible
query I rowsort label-1040
SELECT SUM ( DISTINCT - - col0 ) + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT + MAX( DISTINCT - - col0 ) + - 34 + - - 58 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT + MAX ( DISTINCT - - col0 ) + - 34 + - - 58 FROM tab2
----
99

query I rowsort
SELECT DISTINCT + ( + 1 ) FROM tab1
----
1

query I rowsort
SELECT col2 + 72 FROM tab0
----
119
171
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT + COUNT( col0 ) AS col1 FROM tab1 AS cor0 WHERE + 62 - - 95 NOT BETWEEN col0 + + col1 / - 92 - + col0 + + col0 * - ( + col1 ) * col1 AND + 91 + + + col1
----
3

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + COUNT ( col0 ) AS col1 FROM tab1 AS cor0 WHERE + 62 - - 95 NOT BETWEEN col0 + + col1 / - 92 - + col0 + + col0 * - ( + col1 ) * col1 AND + 91 + + + col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT 93 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT 93 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
90

query I rowsort
SELECT + 75 - + 76 FROM tab0 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT col1 - 99 * 5 + - 91 + + - col0 FROM tab0 AS cor0
----
-520
-652
-682

query I rowsort
SELECT ALL - col2 - 32 FROM tab2 cor0
----
-55
-72
-90

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

query I rowsort
SELECT + 9 * col2 AS col1 FROM tab0
----
423
891
90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1052
SELECT + ( + ( + - ( - ( 56 ) ) ) ) AS col2, - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT 44 * col1 + + + col2 IS NULL
----
56
NULL
56
NULL
56
NULL

skipif mysql # not compatible
query II rowsort label-1052
SELECT + ( + ( + - ( - ( 56 ) ) ) ) AS col2, - CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT 44 * col1 + + + col2 IS NULL
----
56
NULL
56
NULL
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT DISTINCT + MIN( - 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT + MIN ( - 23 ) FROM tab2
----
-23

query II rowsort
SELECT - col1 * - col2 AS col2, - 84 AS col2 FROM tab1
----
1344
-84
295
-84
3196
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 75 col1 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT DISTINCT - + 31 * + + col1 FROM tab0 AS cor0
----
-2511
-31
-651

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1058
SELECT - MIN ( + + col1 ) col1 FROM tab1 AS cor0
----
-5

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1062
SELECT + - col2 * - CAST( col2 AS SIGNED ) * 19 + - col1 DIV 1 col0 FROM tab0 cor0
----
186218
1879
41890

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1062
SELECT + - col2 * - CAST ( col2 AS INTEGER ) * 19 + - col1 / 1 col0 FROM tab0 cor0
----
186218
1879
41890

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL + SUM( 17 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL + SUM ( 17 ) FROM tab0 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT DISTINCT - + col1 * 87 DIV col2 + - - 41 * col0 FROM tab2 AS cor0
----
1694
2457
2975

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT - + col1 * 87 / col2 + - - 41 * col0 FROM tab2 AS cor0
----
1694
2457
2975

query I rowsort
SELECT ALL - col0 + - col1 + - col0 AS col2 FROM tab2
----
-143
-205
-217

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT DISTINCT ( - 88 ) + col1 DIV 55 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT ( - 88 ) + col1 / 55 FROM tab1
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 88 - - 71 + 75 * + 25 * - col2 IN ( - col2, col0, col0 + 77, - 78 * - 42 )
----

query I rowsort
SELECT - 12 AS col0 FROM tab2 WHERE ( - col1 ) NOT BETWEEN + 66 + - col1 AND + col0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - col0 + - col2 + + col2 + 10 * + col1 FROM tab2
----
464
595
706

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT - - COUNT( 0 ) - + - 57 AS col1 FROM tab2 AS cor0 WHERE 46 IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-1071
SELECT - - COUNT ( 0 ) - + - 57 AS col1 FROM tab2 AS cor0 WHERE 46 IS NULL
----
57

query I rowsort
SELECT + 55 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT ALL + 38 DIV - col1 - - 81 + - - col2 + + - col1 * + col1 AS col0 FROM tab0
----
-351
-6433
141

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL + 38 / - col1 - - 81 + - - col2 + + - col1 * + col1 AS col0 FROM tab0
----
-351
-6433
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN 92 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL BETWEEN 92 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT SUM( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT SUM ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT - col2 * - 8 FROM tab1
----
472
544
768

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT DISTINCT + ( + COUNT( * ) ) col1 FROM tab2 WHERE NOT ( + - 29 ) BETWEEN NULL AND - 19
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1079
SELECT DISTINCT + ( + COUNT ( * ) ) col1 FROM tab2 WHERE NOT ( + - 29 ) BETWEEN NULL AND - 19
----
0

query I rowsort
SELECT DISTINCT col2 * + 48 FROM tab1
----
2832
3264
4608

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

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

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

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

query I rowsort
SELECT - col2 * - 70 FROM tab0
----
3290
6930
700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1084
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL <> ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1084
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL <> ( + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 26 < - ( col1 ) + + + col1
----

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

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

skipif mysql # not compatible
query I rowsort label-1087
SELECT - col0 + col1 + 79 - + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NULL = col1 * - - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT COUNT( * ) + ( - 41 ) FROM tab2 WHERE NOT NULL IS NULL
----
-41

skipif mysql # not compatible
query I rowsort label-1090
SELECT COUNT ( * ) + ( - 41 ) FROM tab2 WHERE NOT NULL IS NULL
----
-41

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

query I rowsort
SELECT + + 30 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT - col1 * - 49 BETWEEN - CAST( NULL AS SIGNED ) * + - col0 / + col0 AND - + col0 * + col1 + + - 62 * + col2 * + col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT - col1 * - 49 BETWEEN - CAST ( NULL AS INTEGER ) * + - col0 / + col0 AND - + col0 * + col1 + + - 62 * + col2 * + col2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 29 + + + 31 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL MAX( col0 ) + ( 87 ) + + - 49 AS col0 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL MAX ( col0 ) + ( 87 ) + + - 49 AS col0 FROM tab0
----
135

query I rowsort
SELECT DISTINCT ( + + 31 ) + - col2 FROM tab2
----
-27
-9
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT DISTINCT - 49 DIV - - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT - 49 / - - col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1101
SELECT - - COUNT( * ) - + - COUNT( * ) col0 FROM tab1 WHERE - + col0 + 19 NOT IN ( - col2, CAST( - 73 AS SIGNED ) )
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1101
SELECT - - COUNT ( * ) - + - COUNT ( * ) col0 FROM tab1 WHERE - + col0 + 19 NOT IN ( - col2, CAST ( - 73 AS INTEGER ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT COUNT( * ) + + + 64 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-1102
SELECT COUNT ( * ) + + + 64 FROM tab1
----
67

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

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

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

query I rowsort
SELECT DISTINCT + col2 + + 12 AS col1 FROM tab1
----
108
71
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT - - 53 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1106
SELECT - - 53 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 15 - + - 93 * - col2 FROM tab2
----
-2124
-3705
-5379

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1109
SELECT ALL - col2 col0, col0 + - col1 * + ( + col2 ) + col1 * - + col1 * - CAST ( NULL AS REAL ) * col0 AS col0 FROM tab2 cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT - col1 * + + 60 FROM tab0 AS cor0
----
-1260
-4860
-60

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

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 73 - - col2 + - col1 * - + col1 AND + col0 - + - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT + SUM( DISTINCT - col2 ) FROM tab0 cor0 WHERE NOT col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT + SUM ( DISTINCT - col2 ) FROM tab0 cor0 WHERE NOT col2 > NULL
----
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1114
SELECT ALL COUNT ( ( - + 8 ) ) * + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT - col0 DIV + col1 + - col2 FROM tab0 cor0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-1116
SELECT - col0 / + col1 + - col2 FROM tab0 cor0
----
-14
-196
-47

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

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

query I rowsort
SELECT - - 67 AS col1 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT - + col1 * 72 FROM tab2 AS cor0
----
-3672
-4824
-5544

query I rowsort
SELECT - 5 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 90 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col1 * + + col0 * + col2 + + 52 + col2 - 80 - - ( + col0 ) + + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - + 85 + + 73 + - - col0 + - ( col1 ) + + 61 AS col0 FROM tab2
----
-1826
-3279
-4788

query I rowsort
SELECT + 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + + col0 + col2 + + + 55 * + + col1 + - 33 * + col2 AS col1 FROM tab0 WHERE NOT - - col2 + - - col2 > - + col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL + - ( + + 42 ) * - + 96 + - - ( - 60 ) * - - col1 * - ( - col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + - ( + + 42 ) * - + 96 + - - ( - 60 ) * - - col1 * - ( - col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT SUM( ALL - + col2 ) * + ( - 33 ) AS col0 FROM tab0 cor0
----
5148

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT SUM ( ALL - + col2 ) * + ( - 33 ) AS col0 FROM tab0 cor0
----
5148

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

skipif mysql # not compatible
query I rowsort label-1131
SELECT col0 / + col2 FROM tab1 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT + COUNT( * ) * - 92 AS col0 FROM tab1 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-1132
SELECT + COUNT ( * ) * - 92 AS col0 FROM tab1 AS cor0
----
-276

query I rowsort
SELECT - col1 * - - col2 * 99 + - ( col1 ) FROM tab2 AS cor0
----
-116178
-304997
-384781

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT DISTINCT 11 DIV + col2 + col1 + + + 5 + + - col0 FROM tab1 AS cor0
----
-32
-39
-75

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT 11 / + col2 + col1 + + + 5 + + - col0 FROM tab1 AS cor0
----
-32
-39
-75

query II rowsort
SELECT DISTINCT + - 46 AS col1, - 53 * + 59 FROM tab2 WHERE NOT - col1 >= NULL
----

query I rowsort
SELECT ALL + col1 + - 86 AS col2 FROM tab2
----
-19
-35
-9

query I rowsort
SELECT col0 * - col1 * 84 FROM tab2
----
-197064
-413952
-422100

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + 68 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT COUNT( ALL - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1139
SELECT COUNT ( ALL - col2 ) FROM tab0
----
3

query I rowsort
SELECT ALL - 78 + + col0 FROM tab2
----
-14
-3
-32

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

query I rowsort
SELECT - col0 * col1 - + col2 AS col1 FROM tab0
----
-1262
-1837
-196

query I rowsort
SELECT DISTINCT + col1 + + ( - 71 ) FROM tab1 cor0
----
-24
-57
-66

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

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

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

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

query I rowsort
SELECT ALL - 75 * - col1 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

query I rowsort
SELECT - 69 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT - 86 + col2 - - col1 + - + col1 + + + col2 * 63 AS col2 FROM tab1
----
3690
4266
6058

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1149
SELECT + 12 / CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT col2 DIV - - col1 FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT col2 / - - col1 FROM tab0
----
0
99

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT 74 AS col1, 6 * COUNT( * ) FROM tab2 AS cor0
----
74
18

skipif mysql # not compatible
query II rowsort label-1154
SELECT 74 AS col1, 6 * COUNT ( * ) FROM tab2 AS cor0
----
74
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1155
SELECT ALL col0 * col2 * - col0 FROM tab1 AS cor0 WHERE NOT + col2 * + col1 * + - col0 IN ( + + ( + CAST( - col2 AS DECIMAL ) ) )
----
-249696
-426275
-563108

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL col0 * col2 * - col0 FROM tab1 AS cor0 WHERE NOT + col2 * + col1 * + - col0 IN ( + + ( + CAST ( - col2 AS REAL ) ) )
----
-249696
-426275
-563108

query I rowsort
SELECT ALL 71 * + - 72 AS col2 FROM tab2 AS cor0
----
-5112
-5112
-5112

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

query II rowsort
SELECT DISTINCT + col2, col2 * - ( + 14 ) AS col0 FROM tab1
----
59
-826
68
-952
96
-1344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab2, tab0 AS cor0
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-1160
SELECT + 71 AS col2, 41 DIV + col0 + - + 85 + - 83 AS col2 FROM tab2
----
71
-168
71
-168
71
-168

skipif mysql # not compatible
query II rowsort label-1160
SELECT + 71 AS col2, 41 / + col0 + - + 85 + - 83 AS col2 FROM tab2
----
71
-168
71
-168
71
-168

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

query I rowsort
SELECT ALL + 86 AS col2 FROM tab0
----
86
86
86

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - - 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 * col0 col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col2 col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL - - ( - 64 ) FROM tab1 WHERE NULL IS NULL
----
-64
-64
-64

query I rowsort
SELECT - col0 * col2 + 45 AS col2 FROM tab2 AS cor0
----
-1013
-2515
-4305

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT COUNT( * ) * - COUNT( * ) + 38 + + 33 FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-1169
SELECT COUNT ( * ) * - COUNT ( * ) + 38 + + 33 FROM tab0 cor0
----
62

query I rowsort
SELECT ALL - col0 * col0 FROM tab0 AS cor0 WHERE NOT 80 IS NULL
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1171
SELECT col2 - + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-1171
SELECT col2 - + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + 90 FROM tab2 AS cor0 WHERE + 73 > + - col0
----
90
90
90

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 88
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT ALL - COUNT( * ) * 23 DIV - - 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - COUNT ( * ) * 23 / - - 99 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT ALL - 85 * ( - 27 ) + + + COUNT( * ) + - + COUNT( * ) FROM tab2
----
2295

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - 85 * ( - 27 ) + + + COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
2295

query I rowsort
SELECT 79 + + col2 AS col1 FROM tab2
----
102
119
137

query I rowsort
SELECT + 97 * - col0 * - - col0 * - - 18 + - col1 FROM tab2
----
-3694587
-7151693
-9821317

query I rowsort
SELECT 20 + - col2 FROM tab2
----
-20
-3
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1180
SELECT 51 + + 95 + - col0 DIV + 2 FROM tab0
----
103
139
98

skipif mysql # not compatible
query I rowsort label-1180
SELECT 51 + + 95 + - col0 / + 2 FROM tab0
----
103
139
98

query I rowsort
SELECT + ( - col2 ) * + - 66 FROM tab2
----
1518
2640
3828

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

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

query I rowsort
SELECT + 47 * + 3 - + - 53 - - - 60 + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL <> - col0
----

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

query I rowsort
SELECT DISTINCT + col0 * col2 + - + col0 + - 74 AS col1 FROM tab0 AS cor0
----
616
709
9432

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + col0 NOT IN ( - col0, col0 * - col1 * - - 17 + - + col1, - + 24 * - - col1 + 1 + - - col2, col1, + col0 - + 64, + 49, + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT MIN( - col2 ) + - ( + + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT 96 / 76 NOT BETWEEN 30 AND + col0 * - - col2 + 62 + - col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT MIN ( - col2 ) + - ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT 96 / 76 NOT BETWEEN 30 AND + col0 * - - col2 + 62 + - col0 * col2
----
NULL

query I rowsort
SELECT ALL - 3 * - col1 * - + ( - col1 ) AS col1 FROM tab1 AS cor0
----
588
6627
75

query I rowsort
SELECT DISTINCT + 18 / + 58 * + - col1 * + col1 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1190
SELECT CAST( + 11 AS SIGNED ) * + - col0 FROM tab2 AS cor0
----
-506
-704
-825

skipif mysql # not compatible
query I rowsort label-1190
SELECT CAST ( + 11 AS INTEGER ) * + - col0 FROM tab2 AS cor0
----
-506
-704
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT + ( SUM( DISTINCT col0 ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1191
SELECT + ( SUM ( DISTINCT col0 ) ) AS col1 FROM tab1
----
227

query I rowsort
SELECT + 55 * + + 69 AS col2 FROM tab1
----
3795
3795
3795

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

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

skipif mysql # not compatible
query I rowsort label-1194
SELECT + MIN ( DISTINCT col0 ) FROM tab2
----
46

query I rowsort
SELECT 1 AS col0 FROM tab2 WHERE NOT + col2 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
51

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

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

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

query I rowsort
SELECT + col2 * + 24 AS col2 FROM tab1 WHERE + col1 + col0 <= NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - 65
----

query I rowsort
SELECT ALL 49 * + + col0 AS col1 FROM tab1 AS cor0
----
2499
4165
4459

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

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

query II rowsort
SELECT DISTINCT col2, 15 * - 66 FROM tab0 cor0
----
10
-990
47
-990
99
-990

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT + 34 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT + 34 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-6
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT + - 26 DIV ( 75 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1208
SELECT + - 26 / ( 75 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 22 * - 14 + + + col2 FROM tab1
----
-212
-240
-249

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

query I rowsort
SELECT - col0 - 45 FROM tab2
----
-109
-120
-91

query II rowsort
SELECT + 90, - 66 AS col2 FROM tab1 WHERE + ( 37 ) >= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1214
SELECT col2 + + col0 + + - col0 DIV - col2 AS col0 FROM tab0
----
105
196
62

skipif mysql # not compatible
query I rowsort label-1214
SELECT col2 + + col0 + + - col0 / - col2 AS col0 FROM tab0
----
105
196
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1215
SELECT ALL CAST( NULL AS SIGNED ) - + col2, CAST( - + 12 AS SIGNED ) + + 87 AS col2 FROM tab0 AS cor0
----
NULL
75
NULL
75
NULL
75

skipif mysql # not compatible
query II rowsort label-1215
SELECT ALL CAST ( NULL AS INTEGER ) - + col2, CAST ( - + 12 AS INTEGER ) + + 87 AS col2 FROM tab0 AS cor0
----
NULL
75
NULL
75
NULL
75

query I rowsort
SELECT ALL + + col1 * + col2 - - + col1 AS col0 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT DISTINCT + MIN( - + 65 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT + MIN ( - + 65 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT - ( - + COUNT( * ) ) * - - 50 AS col0 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - ( - + COUNT ( * ) ) * - - 50 AS col0 FROM tab2
----
150

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

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

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

query I rowsort
SELECT + col2 * + 79 AS col2 FROM tab0 AS cor0
----
3713
7821
790

query I rowsort
SELECT DISTINCT 51 * - col2 FROM tab0 cor0
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT + - COUNT( * ) * 84 AS col0 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + - COUNT ( * ) * 84 AS col0 FROM tab0 AS cor0
----
-252

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT + COUNT( * ) * - ( - 73 ) AS col0 FROM tab1 cor0
----
219

skipif mysql # not compatible
query I rowsort label-1226
SELECT + COUNT ( * ) * - ( - 73 ) AS col0 FROM tab1 cor0
----
219

query I rowsort
SELECT DISTINCT - col1 + - - 93 FROM tab2
----
16
26
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 91 <> NULL
----

query I rowsort
SELECT ALL col0 + + col0 - 31 FROM tab1
----
139
151
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1230
SELECT * FROM tab0 WHERE NOT ( - 85 ) >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1230
SELECT * FROM tab0 WHERE NOT ( - 85 ) >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT SUM( + col0 ) + 54 FROM tab1
----
281

skipif mysql # not compatible
query I rowsort label-1231
SELECT SUM ( + col0 ) + 54 FROM tab1
----
281

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT 54 + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-1234
SELECT 54 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 66 AS col0, + 37 + + 30 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
66
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT - 18 - - col0 DIV 92 AS col2 FROM tab1
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-1236
SELECT - 18 - - col0 / 92 AS col2 FROM tab1
----
-18
-18
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1237
SELECT ALL - CAST( - SUM( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL - CAST ( - SUM ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + - 17 - col1 FROM tab0 AS cor0
----
-18
-38
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT - SUM( + - 84 ) + + CAST( 30 AS SIGNED ) + - MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-1239
SELECT - SUM ( + - 84 ) + + CAST ( 30 AS INTEGER ) + - MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
186

query I rowsort
SELECT + col2 * + - 18 + col0 FROM tab2 cor0
----
-368
-656
-969

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT DISTINCT + ( + ( MIN( DISTINCT - CAST( - 20 AS SIGNED ) ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT + ( + ( MIN ( DISTINCT - CAST ( - 20 AS INTEGER ) ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
20

query I rowsort
SELECT - col2 + + - 85 + + - col2 - - 64 * + - 24 AS col2 FROM tab1
----
-1739
-1757
-1813

query I rowsort
SELECT col1 * + 45 * + 96 * 8 FROM tab0
----
2799360
34560
725760

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 19 ) = 58
----

query I rowsort
SELECT 43 * - - 47 AS col0 FROM tab0
----
2021
2021
2021

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT SUM( ALL - 52 ) FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-1248
SELECT SUM ( ALL - 52 ) FROM tab2
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT - col2 DIV - 57 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1249
SELECT - col2 / - 57 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1250
SELECT DISTINCT col2 / + col1 - 88 + ( - col0 ) * col0 * - + 35 + - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT col2 / + col1 - 88 + ( - col0 ) * col0 * - + 35 + - CAST ( NULL AS REAL ) FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT - SUM( ALL col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1251
SELECT - SUM ( ALL col2 ) AS col1 FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT ALL - 23 * CAST( - - COUNT( * ) AS SIGNED ) * - COUNT( * ) + ( MIN( DISTINCT 47 ) ) AS col0 FROM tab2
----
254

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - 23 * CAST ( - - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + ( MIN ( DISTINCT 47 ) ) AS col0 FROM tab2
----
254

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

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

query I rowsort
SELECT + col2 * - col1 * 71 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14910
-270297
-7029

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT - SUM( - 57 ) AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-1255
SELECT - SUM ( - 57 ) AS col2 FROM tab2 AS cor0
----
171

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

query I rowsort
SELECT - - 85 + 23 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6d22d46245dff8bdc639b4b61304fdd9

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL 61 + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL 61 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
58

query I rowsort
SELECT DISTINCT + col1 * 29 + - col1 FROM tab2 AS cor0
----
1428
1876
2156

query I rowsort
SELECT ALL - 60 * - col2 FROM tab2 AS cor0
----
1380
2400
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT - MAX( - - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1261
SELECT - MAX ( - - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL MAX( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL MAX ( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
-51

query II rowsort
SELECT col0 AS col1, col0 * 47 FROM tab0
----
15
705
87
4089
97
4559

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1266
SELECT DISTINCT * FROM tab2 cor0 WHERE 37 * + col1 >= + col0 * - - col1 * + - CAST( - 42 AS SIGNED ) * - col2 + col2 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1266
SELECT DISTINCT * FROM tab2 cor0 WHERE 37 * + col1 >= + col0 * - - col1 * + - CAST ( - 42 AS INTEGER ) * - col2 + col2 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT SUM( col1 ) * - COUNT( * ) AS col1 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-1267
SELECT SUM ( col1 ) * - COUNT ( * ) AS col1 FROM tab0
----
-309

query I rowsort
SELECT + col0 * col0 - + col1 FROM tab1
----
2587
7220
8234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT ALL - 36 + 9 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL - 36 + 9 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 11 NOT IN ( ( col1 ) + - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) IS NULL
----

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

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE col1 <> - 93
----
23
40
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1276
SELECT DISTINCT + 52 DIV COUNT( * ) col0 FROM tab2
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1276
SELECT DISTINCT + 52 / COUNT ( * ) col0 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - 20 * COUNT( * ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-1277
SELECT - 20 * COUNT ( * ) FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL 81 * COUNT( * ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL 81 * COUNT ( * ) FROM tab2
----
243

query I rowsort
SELECT ALL 55 * col1 FROM tab1
----
2585
275
770

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 14 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT + SUM( DISTINCT - col0 ) - AVG ( ALL 72 ) FROM tab0 WHERE NOT ( - col1 / col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT + SUM ( DISTINCT - col0 ) - AVG ( ALL 72 ) FROM tab0 WHERE NOT ( - col1 / col0 ) IS NOT NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1283
SELECT DISTINCT - 74 DIV + col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT - 74 / + col0 FROM tab2
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1284
SELECT ALL * FROM tab1 WHERE ( col0 ) BETWEEN CAST( - 64 AS SIGNED ) - ( col2 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1284
SELECT ALL * FROM tab1 WHERE ( col0 ) BETWEEN CAST ( - 64 AS INTEGER ) - ( col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT + SUM( col1 ) DIV - 95 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1285
SELECT + SUM ( col1 ) / - 95 FROM tab1
----
0

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

query I rowsort
SELECT col0 + 60 * - col2 FROM tab0 WHERE NULL IS NULL
----
-2805
-513
-5843

query I rowsort
SELECT col1 * - col0 - col1 FROM tab0
----
-1296
-1848
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT 82 * COUNT( * ) - 61 FROM tab0
----
185

skipif mysql # not compatible
query I rowsort label-1290
SELECT 82 * COUNT ( * ) - 61 FROM tab0
----
185

query I rowsort
SELECT ALL 37 + + col2 * ( + 26 ) FROM tab1
----
1571
1805
2533

query I rowsort
SELECT ALL - 84 AS col0 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL - 30 + COUNT( * ) AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - 30 + COUNT ( * ) AS col1 FROM tab0
----
-27

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT - 52 * COUNT( ALL 48 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT - 52 * COUNT ( ALL 48 ) FROM tab0
----
-156

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

query I rowsort
SELECT ALL - 90 * 81 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 65cadfebee313742c841fd8fda2fcfc4

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

query I rowsort
SELECT ( + 16 ) * ( 22 + - col0 ) AS col1 FROM tab2 AS cor0
----
-384
-672
-848

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

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

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

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

query I rowsort
SELECT - col0 * 67 AS col2 FROM tab2 AS cor0
----
-3082
-4288
-5025

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1307
SELECT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN - col1 * 19 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1307
SELECT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN - col1 * 19 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + + 42 AS col1 FROM tab2
----
-25
-35
-9

query I rowsort
SELECT + 95 * col2 FROM tab2 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col0 + - col0 * + 18 AS col2 FROM tab1
----
-1445
-1547
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - 92 + + - COUNT( * ) AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-1311
SELECT - 92 + + - COUNT ( * ) AS col2 FROM tab0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-1312
SELECT ALL - 80 * - col2 + + col2 DIV ( + col0 + 29 ) AS col2 FROM tab0
----
3761
7920
800

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - 80 * - col2 + + col2 / ( + col0 + 29 ) AS col2 FROM tab0
----
3761
7920
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT col2 * ( - col1 ) + + CAST( - col2 - - 66 AS SIGNED ) FROM tab2
----
-1130
-3054
-3878

skipif mysql # not compatible
query I rowsort label-1313
SELECT col2 * ( - col1 ) + + CAST ( - col2 - - 66 AS INTEGER ) FROM tab2
----
-1130
-3054
-3878

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT DISTINCT MIN( DISTINCT - 24 ) + ( COUNT( * ) ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT MIN ( DISTINCT - 24 ) + ( COUNT ( * ) ) AS col0 FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1315
SELECT 1 * col1 + CAST( col0 AS SIGNED ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-1315
SELECT 1 * col1 + CAST ( col0 AS INTEGER ) FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT 80 * 79 + 20 * + col0 FROM tab2
----
7240
7600
7820

query I rowsort
SELECT DISTINCT - 68 * - col2 FROM tab2 AS cor0
----
1564
2720
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT COUNT( - + 10 ) * - COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT COUNT ( - + 10 ) * - COUNT ( * ) FROM tab2 cor0
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT MAX( - ( 14 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE + 65 + - 75 IS NOT NULL
----
-14

skipif mysql # not compatible
query I rowsort label-1320
SELECT MAX ( - ( 14 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE + 65 + - 75 IS NOT NULL
----
-14

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

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

query I rowsort
SELECT + col2 + - - 89 AS col0 FROM tab2 AS cor0
----
112
129
147

query I rowsort
SELECT ALL col0 - - - 68 + + ( col0 ) FROM tab1 AS cor0
----
102
114
34

query I rowsort
SELECT DISTINCT - col1 - - - ( + 54 ) AS col1 FROM tab2 cor0
----
-105
-121
-131

query I rowsort
SELECT ALL + col0 / + col2 / - col1 AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT + MIN( 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT + MIN ( 8 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + col0 ) AND NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT 33 DIV + col0 * - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1331
SELECT 33 / + col0 * - - col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - 22 / - - col0 < col2 + 23 * + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1335
SELECT MIN( ALL + col0 ) FROM tab1 WHERE - 11 IS NULL OR NOT ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN col1 AND ( col2 / - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT MIN ( ALL + col0 ) FROM tab1 WHERE - 11 IS NULL OR NOT ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN col1 AND ( col2 / - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + COUNT( * ) + + 26 AS col2 FROM tab0 WHERE NOT ( col0 + - col0 + + - 24 / + 11 ) IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-1336
SELECT + COUNT ( * ) + + 26 AS col2 FROM tab0 WHERE NOT ( col0 + - col0 + + - 24 / + 11 ) IS NULL
----
29

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + + col2 IS NOT NULL AND NULL IN ( 77 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT + 40 DIV + + col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1341
SELECT + 40 / + + col2 FROM tab0 AS cor0
----
0
0
4

onlyif mysql # DIV for integer division: 
query II rowsort label-1342
SELECT - col2 AS col1, col0 DIV + col1 FROM tab2
----
-23
0
-40
0
-58
1

skipif mysql # not compatible
query II rowsort label-1342
SELECT - col2 AS col1, col0 / + col1 FROM tab2
----
-23
0
-40
0
-58
1

query III rowsort
SELECT 67 AS col0, + 68, - 83 AS col2 FROM tab0
----
9 values hashing to f9e2c5583558a02ad1b404e981847ce6

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

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

query I rowsort
SELECT - col0 * - + 81 + - col1 AS col2 FROM tab0 WHERE col2 / - col2 IS NOT NULL
----
1134
7026
7856

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

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

query I rowsort
SELECT + - col2 * + col0 + 4 FROM tab0 WHERE NULL >= + - col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT ALL SUM( - 47 ) - + + MIN( DISTINCT 72 ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-1348
SELECT ALL SUM ( - 47 ) - + + MIN ( DISTINCT 72 ) FROM tab0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT + ( + 62 ) - + - 93 + + MAX( 84 ) FROM tab2 cor0
----
239

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + ( + 62 ) - + - 93 + + MAX ( 84 ) FROM tab2 cor0
----
239

onlyif mysql # aggregate syntax: 
query II rowsort label-1350
SELECT DISTINCT + 16 * - 67 AS col2, COUNT( * ) AS col1 FROM tab1
----
-1072
3

skipif mysql # not compatible
query II rowsort label-1350
SELECT DISTINCT + 16 * - 67 AS col2, COUNT ( * ) AS col1 FROM tab1
----
-1072
3

query I rowsort
SELECT 58 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT 87 + + 78 AS col0 FROM tab2
----
165

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

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

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

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

query I rowsort
SELECT ALL - col2 * col2 AS col1 FROM tab2 WHERE NULL <> NULL
----

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

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

query I rowsort
SELECT 67 FROM tab1 WHERE NOT ( + 6 ) IS NULL
----
67
67
67

query II rowsort
SELECT DISTINCT - col2, col1 * + col1 * - 34 AS col0 FROM tab1
----
-59
-850
-68
-75106
-96
-6664

query I rowsort
SELECT ALL - 4 * + 51 FROM tab0 WHERE NOT 82 <= + ( col2 ) + + col1 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( 4 * col0 * + col2, 61 )
----

query I rowsort
SELECT 20 * ( - col1 ) FROM tab1
----
-100
-280
-940

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + 88 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 87 + 93 col2 FROM tab0 AS cor0
----
6
6
6

query II rowsort
SELECT DISTINCT - col0, - col0 + + + col1 + - + col1 + - col2 * - + 17 + + col1 * + col2 * - col0 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-51
-66963
-85
-24157
-91
-289771

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

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

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

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

query I rowsort
SELECT DISTINCT + 97 * - - 21 * - - col2 FROM tab2 AS cor0
----
118146
46851
81480

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT col0 DIV col1 DIV + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1370
SELECT col0 / col1 / + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * 36 FROM tab2 AS cor0
----
-1836
-2412
-2772

query I rowsort
SELECT - 17 * - col0 AS col2 FROM tab2 AS cor0
----
1088
1275
782

query I rowsort
SELECT 59 * col2 AS col2 FROM tab2 cor0
----
1357
2360
3422

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

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

query I rowsort
SELECT + col1 + + ( - col0 ) FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 69 ) IS NULL
----

query I rowsort
SELECT ALL 26 + 54 * - col0 FROM tab0 WHERE - col1 NOT IN ( - - col0, col0 )
----
-4672
-5212
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT - col2 + CAST( 80 AS SIGNED ) FROM tab1
----
-16
12
21

skipif mysql # not compatible
query I rowsort label-1378
SELECT - col2 + CAST ( 80 AS INTEGER ) FROM tab1
----
-16
12
21

query I rowsort
SELECT ALL 83 * - + col1 + col2 + + 75 AS col1 FROM tab1
----
-281
-3758
-991

query II rowsort
SELECT col2 AS col2, + col2 FROM tab1
----
59
59
68
68
96
96

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

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

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

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - - col1 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT DISTINCT - COUNT( * ) * + 17 * + SUM( DISTINCT col0 ) AS col1 FROM tab2
----
-9435

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT - COUNT ( * ) * + 17 * + SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
-9435

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

query II rowsort
SELECT DISTINCT col0 AS col0, 73 * + 75 * + col0 FROM tab2 AS cor0
----
46
251850
64
350400
75
410625

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT - COUNT ( * ) / 26 + - COUNT ( * ) FROM tab0 AS cor0
----
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + + col0 ) col0 FROM tab2 cor0
----
-46
-64
-75

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

skipif mysql # not compatible
query I rowsort label-1391
SELECT + MAX ( + 67 ) FROM tab0 AS cor0
----
67

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

query II rowsort
SELECT - col0 AS col2, - 19 + col1 FROM tab0 cor0
----
-15
62
-87
2
-97
-18

query II rowsort
SELECT + + 4 AS col2, col0 * - + col1 AS col2 FROM tab1 AS cor0
----
4
-425
4
-4277
4
-714

query I rowsort
SELECT - col0 * - 61 FROM tab2
----
2806
3904
4575

query I rowsort
SELECT - 28 AS col2 FROM tab2
----
-28
-28
-28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 78 * - col0 ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT - 45 * + CAST ( NULL AS INTEGER ) / + 16 * col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 * 55 * - 49 AS col2 FROM tab1
----
-126665
-13475
-37730

query I rowsort
SELECT + 18 FROM tab1 WHERE NOT NULL <= + 70
----

query I rowsort
SELECT DISTINCT 91 * - 83 FROM tab1
----
-7553

query I rowsort
SELECT ALL - 26 AS col1 FROM tab1 WHERE NOT NULL = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT ALL + 62 DIV col2 * + + col1 AS col2 FROM tab0
----
0
126
81

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + 62 / col2 * + + col1 AS col2 FROM tab0
----
0
126
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT - col2 AS col0 FROM tab2 WHERE NOT 80 + - + CAST( NULL AS SIGNED ) >= - col2
----

skipif mysql # not compatible
query I rowsort label-1404
SELECT - col2 AS col0 FROM tab2 WHERE NOT 80 + - + CAST ( NULL AS INTEGER ) >= - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1405
SELECT ALL + 18 DIV 3, + col2 - - - col2 AS col1 FROM tab0
----
6
0
6
0
6
0

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL + 18 / 3, + col2 - - - col2 AS col1 FROM tab0
----
6
0
6
0
6
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1408
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + + + MAX( ALL - 92 ) * ( + + COUNT( * ) ) - - + 42 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + + + MAX ( ALL - 92 ) * ( + + COUNT ( * ) ) - - + 42 FROM tab2
----
-237

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1410
SELECT DISTINCT col1 + + 73 DIV - - col1, + col1 FROM tab0 cor0
----
24
21
74
1
81
81

skipif mysql # not compatible
query II rowsort label-1410
SELECT DISTINCT col1 + + 73 / - - col1, + col1 FROM tab0 cor0
----
24
21
74
1
81
81

query I rowsort
SELECT DISTINCT ( + - 1 ) FROM tab0 AS cor0
----
-1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT - 97 + + MAX( - + col2 ) AS col2 FROM tab0 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT - 97 + + MAX ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT + - MIN( + - col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-1417
SELECT + - MIN ( + - col0 ) FROM tab2 cor0
----
75

query II rowsort
SELECT ALL - col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

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

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

query I rowsort
SELECT DISTINCT col1 + - + col1 FROM tab2
----
0

query I rowsort
SELECT ALL 63 * - - col0 AS col2 FROM tab1 WHERE 78 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1422
SELECT DISTINCT - COUNT( * ) + + - 82 DIV - - 9 AS col0 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT - COUNT ( * ) + + - 82 / - - 9 AS col0 FROM tab1
----
-12

query II rowsort
SELECT ALL + 17 + col2 * - - 95 - + + col1, + col0 AS col0 FROM tab2
----
2151
46
3740
64
5460
75

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

query I rowsort
SELECT DISTINCT col1 + + 38 + - col2 FROM tab1
----
-16
-44
17

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NULL < NULL
----

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

query I rowsort
SELECT ALL - - 96 * + + col0 - ( + - 71 ) + + + col1 * 85 FROM tab1 AS cor0
----
12802
6157
8656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1429
SELECT SUM( 8 ) + MIN( - col1 ) DIV + ( + 59 ) AS col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1429
SELECT SUM ( 8 ) + MIN ( - col1 ) / + ( + 59 ) AS col2 FROM tab1 AS cor0
----
24

query I rowsort
SELECT - col2 * + col1 + col0 * - col1 * 69 FROM tab0 AS cor0
----
-126273
-6792
-87642

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

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

query I rowsort
SELECT - + 92 AS col2 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT - + MIN( DISTINCT + col0 ) AS col2 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1434
SELECT - + MIN ( DISTINCT + col0 ) AS col2 FROM tab2 cor0
----
-46

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 62 col1 FROM tab1 AS cor0 WHERE NOT ( ( 50 * - 83 IS NULL ) ) OR NOT ( col2 * + - col2 * col1 + + col0 * + col2 IS NULL )
----
62

query I rowsort
SELECT DISTINCT + + 48 * col1 FROM tab0 AS cor0
----
1008
3888
48

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT + 4 DIV 76 * - COUNT( * ) * + 65 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT + 4 / 76 * - COUNT ( * ) * + 65 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL + 84 + COUNT( * ) AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL + 84 + COUNT ( * ) AS col0 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT 55 * - MAX( - ( + 2 ) ) FROM tab0
----
110

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT 55 * - MAX ( - ( + 2 ) ) FROM tab0
----
110

query I rowsort
SELECT col1 * - 8 AS col0 FROM tab1
----
-112
-376
-40

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT - col2 DIV + + col0 + - 41 col0 FROM tab0
----
-41
-42
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1448
SELECT - col2 / + + col0 + - 41 col0 FROM tab0
----
-41
-42
-44

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

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

query I rowsort
SELECT ALL - col1 + + col1 * - - col0 * + ( col2 ) * 99 AS col2 FROM tab1 AS cor0
----
2482420
28792717
6785842

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

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

query I rowsort
SELECT ALL ( - col1 ) - col1 + + col2 FROM tab1 cor0
----
-26
49
68

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

query I rowsort
SELECT DISTINCT - col1 * + 87 AS col0 FROM tab1 AS cor0
----
-1218
-4089
-435

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * + + 60 FROM tab1 AS cor0
----
2820
300
840

query I rowsort
SELECT ALL - col2 * 21 * + 64 AS col2 FROM tab0
----
-133056
-13440
-63168

query I rowsort
SELECT + + col1 AS col1 FROM tab2 WHERE ( - - 80 ) NOT IN ( + + 7, + 34 )
----
51
67
77

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

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

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

query I rowsort
SELECT DISTINCT 73 - + - col2 FROM tab1
----
132
141
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1463
SELECT CAST( + MAX( + col2 ) AS SIGNED ), + COUNT( * ) + - 83 AS col0 FROM tab0
----
99
-80

skipif mysql # not compatible
query II rowsort label-1463
SELECT CAST ( + MAX ( + col2 ) AS INTEGER ), + COUNT ( * ) + - 83 AS col0 FROM tab0
----
99
-80

query I rowsort
SELECT 42 * 36 AS col2 FROM tab0
----
1512
1512
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT COUNT( ALL - 94 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1465
SELECT COUNT ( ALL - 94 ) FROM tab1
----
3

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

skipif mysql # not compatible
query II rowsort label-1466
SELECT DISTINCT - + 61 AS col2, - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-61
-3

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

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

query I rowsort
SELECT - 77 * - col2 FROM tab2
----
1771
3080
4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, - col2 col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 32 + col1 * col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4309
457
746

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 50 * 10 <= + - col0
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - ( + 49 ) + - + col1 = + + col0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT + MIN( - - 28 ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-1475
SELECT + MIN ( - - 28 ) FROM tab2
----
28

query I rowsort
SELECT ALL col2 * - + ( + + col0 ) * - 92 * col1 FROM tab2
----
18135040
26813400
4964136

query I rowsort
SELECT ALL + 48 AS col2 FROM tab0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT ALL CAST( - col1 AS SIGNED ) col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1478
SELECT ALL CAST ( - col1 AS INTEGER ) col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col1 + + - col1 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT ALL - col0 * + - col0 * + ( - + 47 ) FROM tab1 AS cor0 WHERE NOT - 16 + - + 20 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ( + COUNT( * ) ) * + 41 + - - 2 col0 FROM tab0 cor0
----
125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1482
SELECT ( + COUNT ( * ) ) * + 41 + - - 2 col0 FROM tab0 cor0
----
125

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

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

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

query I rowsort
SELECT - 80 * 14 FROM tab2 AS cor0
----
-1120
-1120
-1120

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

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

query II rowsort
SELECT ALL - + col0 * + 99 AS col0, col0 + + col2 * - col1 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - 36 * + SUM( - col1 ) FROM tab0 AS cor0
----
3708

skipif mysql # not compatible
query I rowsort label-1488
SELECT - 36 * + SUM ( - col1 ) FROM tab0 AS cor0
----
3708

query I rowsort
SELECT - 74 - - 60 AS col1 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT - col2 - - - CAST( NULL AS SIGNED ) + + 65 - CAST( NULL AS SIGNED ) * - + 76 + - col1 * + 3 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1490
SELECT - col2 - - - CAST ( NULL AS INTEGER ) + + 65 - CAST ( NULL AS INTEGER ) * - + 76 + - col1 * + 3 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 43 * - col0 - + col1 FROM tab1 AS cor0
----
-2207
-3660
-3960

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 76 + col1 + + 30 > - - 69 + - - 44
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + ( + - 19 ) - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1494
SELECT + ( + - 19 ) - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT + - COUNT( * ) + + - 12 FROM tab2 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-1495
SELECT + - COUNT ( * ) + + - 12 FROM tab2 WHERE NULL IS NULL
----
-15

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

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

query I rowsort
SELECT + 93 * col1 AS col0 FROM tab0
----
1953
7533
93

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

query I rowsort
SELECT - 60 * + ( - col0 ) * + col0 AS col1 FROM tab1
----
156060
433500
496860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1500
SELECT col2 FROM tab0 cor0 WHERE NOT + CAST( col0 AS DECIMAL ) = ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-1500
SELECT col2 FROM tab0 cor0 WHERE NOT + CAST ( col0 AS REAL ) = ( + col0 )
----

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

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

skipif mysql # not compatible
query I rowsort label-1502
SELECT COUNT ( * ) / 6 * + 80 AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col2 AS col2, 20 FROM tab1 AS cor0
----
59
20
68
20
96
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT + col2 * + - col1 + - col1 * - - CAST( NULL AS SIGNED ) - - - 5 / 18 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT + col2 * + - col1 + - col1 * - - CAST ( NULL AS INTEGER ) - - - 5 / 18 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - 49 AS col1, col1 col1 FROM tab1
----
2
14
36
5
42
47

query I rowsort
SELECT 45 + - + col1 FROM tab2
----
-22
-32
-6

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

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

query I rowsort
SELECT ALL col2 + + - 36 AS col0 FROM tab1
----
23
32
60

query I rowsort
SELECT 53 + + 71 FROM tab0
----
124
124
124

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT ALL - 47 DIV col0 + + col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL - 47 / col0 + + col1 AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL + + COUNT( * ) * MAX( 29 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + + COUNT ( * ) * MAX ( 29 ) FROM tab1 AS cor0
----
87

query I rowsort
SELECT DISTINCT - col0 + - - 60 AS col0 FROM tab0 AS cor0
----
-27
-37
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * 1 * - col0 BETWEEN - - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1513
SELECT col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * 1 * - col0 BETWEEN - - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT ALL + - 44 DIV col1 - + col2 FROM tab0 AS cor0
----
-12
-143
-47

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + - 44 / col1 - + col2 FROM tab0 AS cor0
----
-12
-143
-47

query I rowsort
SELECT ALL + 79 - - 94 + 5 + - col2 FROM tab0 AS cor0
----
131
168
79

query I rowsort
SELECT DISTINCT + col2 - + 8 AS col0 FROM tab0 AS cor0
----
2
39
91

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

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

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

query I rowsort
SELECT + 5 + - col2 FROM tab1 AS cor0
----
-54
-63
-91

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

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT ALL 80 DIV - 85 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL 80 / - 85 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT col0, col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT col2 * - col1 * 73 FROM tab2
----
-224840
-283678
-85629

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 56 <= NULL
----

query I rowsort
SELECT col2 * - + 31 * + 49 * - 64 AS col2 FROM tab1
----
5735744
6610688
9332736

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1528
SELECT + SUM ( col1 ) col0 FROM tab1
----
66

query III rowsort
SELECT * FROM tab1 WHERE NOT 87 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT - - SUM( + ( 59 ) ) FROM tab1 AS cor0 WHERE NOT col1 + - 4 - + + col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT - - SUM ( + ( 59 ) ) FROM tab1 AS cor0 WHERE NOT col1 + - 4 - + + col1 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL + 69 * - ( + + col2 ) * col0 + col2 + ( + col0 ) FROM tab2 AS cor0
----
-176536
-300017
-72933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1532
SELECT + MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT DISTINCT - SUM( 82 ) * - CAST( 81 AS SIGNED ) FROM tab0
----
19926

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT - SUM ( 82 ) * - CAST ( 81 AS INTEGER ) FROM tab0
----
19926

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-1534
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT - + 47 * + CAST( - - 13 AS DECIMAL ) + 47 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-1534
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT - + 47 * + CAST ( - - 13 AS REAL ) + 47 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL - - COUNT( * ) FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1537
SELECT ALL - + 61 * + ( CAST( NULL AS DECIMAL ) ) / col2 + - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL - + 61 * + ( CAST ( NULL AS REAL ) ) / col2 + - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT 4 + - + CAST( + col0 AS SIGNED ) - 48 AS col1 FROM tab1 AS cor0
----
-129
-135
-95

skipif mysql # not compatible
query I rowsort label-1538
SELECT 4 + - + CAST ( + col0 AS INTEGER ) - 48 AS col1 FROM tab1 AS cor0
----
-129
-135
-95

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

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT COUNT ( * ) * - - COUNT ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 + 95 + + col1 * + 33 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1540
SELECT DISTINCT - 56 DIV + col0 + + col0 - + 15 col0 FROM tab2 AS cor0
----
30
49
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1540
SELECT DISTINCT - 56 / + col0 + + col0 - + 15 col0 FROM tab2 AS cor0
----
30
49
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - - 1 + COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-1541
SELECT - - 1 + COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL 82 * - COUNT( ALL col2 ) + - 83 col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1542
SELECT ALL 82 * - COUNT ( ALL col2 ) + - 83 col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - SUM( + - 54 ) AS col1 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-1543
SELECT - SUM ( + - 54 ) AS col1 FROM tab1
----
162

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

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) - - - col1 * + 9 * - 78 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT + COUNT( DISTINCT - 16 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1545
SELECT + COUNT ( DISTINCT - 16 ) AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1546
SELECT - 18 col0, - CAST( - col0 AS SIGNED ) DIV + + 29 col1 FROM tab1
----
-18
1
-18
2
-18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1546
SELECT - 18 col0, - CAST ( - col0 AS INTEGER ) / + + 29 col1 FROM tab1
----
-18
1
-18
2
-18
3

query I rowsort
SELECT DISTINCT col2 + - col2 * - 85 FROM tab1
----
5074
5848
8256

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + col0 + + 92
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT - COUNT( * ) + - 75 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1550
SELECT - COUNT ( * ) + - 75 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT - 98 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL NOT BETWEEN NULL AND - col0 ) )
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE 2 + + col1 IS NULL
----

query I rowsort
SELECT ALL - + col1 * - 55 + 1 FROM tab2 AS cor0
----
2806
3686
4236

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT 22 DIV + col2 + + 67 - col2 + + - 39 + - col1 AS col0 FROM tab2 cor0
----
-46
-89
-97

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT 22 / + col2 + + 67 - col2 + + - 39 + - col1 AS col0 FROM tab2 cor0
----
-46
-89
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT DISTINCT ( + col1 ) FROM tab1 AS cor0 WHERE NULL <> + CAST( col2 AS SIGNED ) * + - col0
----

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT ( + col1 ) FROM tab1 AS cor0 WHERE NULL <> + CAST ( col2 AS INTEGER ) * + - col0
----

query II rowsort
SELECT + + col1 + col0 AS col2, col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 * + + col2 col0, - 92 FROM tab1 AS cor0
----
1534
-92
1768
-92
2496
-92

query I rowsort
SELECT - + 1 AS col0 FROM tab1 cor0
----
-1
-1
-1

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

query I rowsort
SELECT col1 * + ( 82 ) FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - COUNT ( DISTINCT col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL - SUM( ( + - 36 ) ) AS col1 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - SUM ( ( + - 36 ) ) AS col1 FROM tab0
----
108

query III rowsort
SELECT * FROM tab1 WHERE NOT 28 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1564
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col1 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 WHERE NOT - 11 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT MAX( - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1566
SELECT MAX ( - col0 ) AS col2 FROM tab2
----
-46

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

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

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT - - COUNT ( * ) / 88 AS col2 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1570
SELECT DISTINCT - - 27 col2, + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
27
10
27
47
27
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1570
SELECT DISTINCT - - 27 col2, + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
27
10
27
47
27
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1571
SELECT - MAX ( - - col0 ) col2 FROM tab2
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < ( - 9 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT DISTINCT - 88 DIV + - 33 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - 88 / + - 33 FROM tab1 AS cor0
----
2

query I rowsort
SELECT + 13 * col2 * col2 * + col1 AS col0 FROM tab1 AS cor0
----
1677312
226265
2825264

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1575
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - ( - - 24 ) + - - 64 - - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1575
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - ( - - 24 ) + - - 64 - - + CAST ( NULL AS INTEGER )
----

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

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

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

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

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NULL > col1 * 60 * - 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1579
SELECT ALL col2 + - - col1 + - + 70 + - col2 * + + col0 + - col0 * col2 DIV - ( col0 ) + col0 AS col1 FROM tab2
----
-2409
-4162
-985

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL col2 + - - col1 + - + 70 + - col2 * + + col0 + - col0 * col2 / - ( col0 ) + col0 AS col1 FROM tab2
----
-2409
-4162
-985

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab2 WHERE - - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1581
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 86 + + 61 + + col0 * CAST( NULL AS SIGNED ) col0, col1 * + - 74 FROM tab1
----
NULL
-1036
NULL
-3478
NULL
-370

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1581
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 86 + + 61 + + col0 * CAST ( NULL AS INTEGER ) col0, col1 * + - 74 FROM tab1
----
NULL
-1036
NULL
-3478
NULL
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT 68 + + SUM( ( - - col1 ) ) FROM tab1
----
134

skipif mysql # not compatible
query I rowsort label-1582
SELECT 68 + + SUM ( ( - - col1 ) ) FROM tab1
----
134

query I rowsort
SELECT ALL col0 - + 55 - + + col2 * - 81 FROM tab0
----
3767
8061
842

query I rowsort
SELECT ALL 81 + - + 45 FROM tab0
----
36
36
36

query I rowsort
SELECT DISTINCT 99 - + 42 AS col2 FROM tab2
----
57

query II rowsort
SELECT - ( - col1 ), 39 * col1 AS col0 FROM tab0 AS cor0
----
1
39
21
819
81
3159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) - - 7 col0 FROM tab2 AS cor0
----
53
71
82

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

query I rowsort
SELECT 65 - + col0 * col1 AS col0 FROM tab2
----
-2281
-4863
-4960

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT + + COUNT( * ) * - 58 * - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4698

skipif mysql # not compatible
query I rowsort label-1590
SELECT + + COUNT ( * ) * - 58 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT - 94 * + 76 + COUNT( * ) - - 78 * - + ( + 87 ) + - 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-13953

skipif mysql # not compatible
query I rowsort label-1591
SELECT - 94 * + 76 + COUNT ( * ) - - 78 * - + ( + 87 ) + - 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-13953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1592
SELECT 14 + - 45 * CAST( + - col1 AS SIGNED ) AS col2 FROM tab0
----
3659
59
959

skipif mysql # not compatible
query I rowsort label-1592
SELECT 14 + - 45 * CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0
----
3659
59
959

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

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

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL NOT IN ( + - 67, 18 )
----

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

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

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

query II rowsort
SELECT DISTINCT + col0 - + col1 - 1 AS col0, - col1 FROM tab1 AS cor0 WHERE - col0 * + col1 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + 36 > + - 98
----

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

query I rowsort
SELECT + 25 * + - col2 AS col0 FROM tab1
----
-1475
-1700
-2400

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

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

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

skipif mysql # not compatible
query I rowsort label-1604
SELECT + COUNT ( * ) * 82 AS col0 FROM tab0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL - - COUNT( * ) + + 22 AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL - - COUNT ( * ) + + 22 AS col0 FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT col1 + - - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 73 * - 99 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT - 8 + - COUNT( * ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT - 8 + - COUNT ( * ) FROM tab0
----
-11

query II rowsort
SELECT ( + ( + 62 ) ) AS col1, + 97 AS col0 FROM tab0
----
62
97
62
97
62
97

query I rowsort
SELECT 72 * + 3 AS col2 FROM tab1
----
216
216
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1611
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 38 - MAX( + + col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 38 - MAX ( + + col0 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - - 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # DIV for integer division: 
query II rowsort label-1613
SELECT 20 + col0 DIV 29 AS col2, 0 AS col1 FROM tab0
----
20
0
23
0
23
0

skipif mysql # not compatible
query II rowsort label-1613
SELECT 20 + col0 / 29 AS col2, 0 AS col1 FROM tab0
----
20
0
23
0
23
0

query III rowsort
SELECT * FROM tab0 WHERE + 59 * + - ( - ( + 1 ) ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT DISTINCT - 82 * 33 FROM tab0 AS cor0
----
-2706

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

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

query I rowsort
SELECT DISTINCT - + 71 + + 11 FROM tab2 AS cor0
----
-60

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT DISTINCT - COUNT( - col0 ) + - COUNT( * ), + 18 AS col2 FROM tab1 AS cor0
----
-6
18

skipif mysql # not compatible
query II rowsort label-1621
SELECT DISTINCT - COUNT ( - col0 ) + - COUNT ( * ), + 18 AS col2 FROM tab1 AS cor0
----
-6
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT MIN( ALL + col1 ) * 97 * - + 28 FROM tab2
----
-138516

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT MIN ( ALL + col1 ) * 97 * - + 28 FROM tab2
----
-138516

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT ALL - 59 DIV + + col2 + - col0 AS col2 FROM tab1
----
-51
-86
-91

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - 59 / + + col2 + - col0 AS col2 FROM tab1
----
-51
-86
-91

query I rowsort
SELECT col1 + 1 AS col2 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT + col2 + ( ( col0 ) ) - col1 AS col0 FROM tab2 AS cor0
----
18
27
66

query I rowsort
SELECT DISTINCT - + col2 - + - 45 - - col0 FROM tab0 AS cor0
----
122
13
43

query I rowsort
SELECT - 18 / + col0 + 98 FROM tab1 WHERE NOT 50 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1631
SELECT + MAX ( - col0 ) FROM tab2 cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT DISTINCT + col0 DIV col0 - + col2 * + col1 * - col0 + + col0 + col0 FROM tab2 AS cor0
----
197249
291601
54051

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT + col0 / col0 - + col2 * + col1 * - col0 + + col0 + col0 FROM tab2 AS cor0
----
197249
291601
54051

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

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

query I rowsort
SELECT ALL - 42 AS col0 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + 83 ) <= - col0
----
87
21
10
97
1
99

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

query II rowsort
SELECT - col2 AS col0, col1 * col0 FROM tab2
----
-23
2346
-40
4928
-58
5025

query I rowsort
SELECT - col2 + - - col2 + - - 96 FROM tab1
----
96
96
96

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1641
SELECT DISTINCT AVG ( 71 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST( col2 AS DECIMAL ) + + col0 * col2 - - + col0 / CAST( - 64 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT AVG ( 71 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST ( col2 AS REAL ) + + col0 * col2 - - + col0 / CAST ( - 64 AS INTEGER )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + + col0 = - ( - col0 ) + - + col0
----

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

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

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

query I rowsort
SELECT + + 42 * + ( + 9 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7581a2ef7efd668e72a74432a2e2e3a1

query I rowsort
SELECT ALL - col2 + - 37 FROM tab2
----
-60
-77
-95

query I rowsort
SELECT + col0 * - 45 FROM tab0 cor0
----
-3915
-4365
-675

query I rowsort
SELECT ALL - 94 AS col1 FROM tab0 cor0 WHERE + 30 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 89 > + col1
----

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

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

query I rowsort
SELECT ALL + col0 * - 50 * - 53 FROM tab1 AS cor0
----
135150
225250
241150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 34 col1 FROM tab1 cor0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab1 cor0 WHERE 99 NOT BETWEEN NULL AND NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1656
SELECT ALL + 75 / col0 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col2 + 74 + - col0 FROM tab1
----
119
48
51

query III rowsort
SELECT * FROM tab0 WHERE - - 45 IS NULL
----

query I rowsort
SELECT ALL + col2 / - 13 AS col0 FROM tab1 WHERE - col1 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 17 + col0 < - 89
----

query II rowsort
SELECT ALL - + col1 * ( col1 ) + + - col1 + col0 AS col2, col2 FROM tab1 AS cor0
----
-159
96
-2165
68
55
59

query I rowsort
SELECT ALL 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + + col2 * - col2 * - + 8 FROM tab0 AS cor0
----
17672
78408
800

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT COUNT( * ) col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT DISTINCT - COUNT( * ), - 17 AS col2 FROM tab2 AS cor0
----
-3
-17

skipif mysql # not compatible
query II rowsort label-1666
SELECT DISTINCT - COUNT ( * ), - 17 AS col2 FROM tab2 AS cor0
----
-3
-17

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1669
SELECT DISTINCT AVG ( + CAST( NULL AS DECIMAL ) ), + MIN( + 33 ) AS col2 FROM tab2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-1669
SELECT DISTINCT AVG ( + CAST ( NULL AS REAL ) ), + MIN ( + 33 ) AS col2 FROM tab2
----
NULL
33

onlyif mysql # DIV for integer division: 
query III rowsort label-1670
SELECT ALL * FROM tab1 WHERE - - 29 DIV col1 IN ( + col1, 68, - 25 )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-1670
SELECT ALL * FROM tab1 WHERE - - 29 / col1 IN ( + col1, 68, - 25 )
----
85
5
59

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

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

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

query II rowsort
SELECT ALL 80 * col1, col0 FROM tab2
----
4080
46
5360
75
6160
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 26 * + col2 + + + 36 col2 FROM tab1 AS cor0
----
-1498
-1732
-2460

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

query II rowsort
SELECT ALL 6 * ( 41 ) + col0 AS col2, col2 FROM tab2 AS cor0
----
292
23
310
40
321
58

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

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

query II rowsort
SELECT DISTINCT col1, - 64 - - 28 AS col0 FROM tab2 AS cor0
----
51
-36
67
-36
77
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * 85 - - col1 col0, 16 FROM tab2 AS cor0
----
-3859
16
-5363
16
-6308
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT DISTINCT col0 * - + CAST( + 10 AS SIGNED ) FROM tab1 AS cor0
----
-510
-850
-910

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT col0 * - + CAST ( + 10 AS INTEGER ) FROM tab1 AS cor0
----
-510
-850
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL MAX( 0 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1682
SELECT ALL MAX ( 0 ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT - MAX( + + 28 ) - - COUNT( * ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-1683
SELECT - MAX ( + + 28 ) - - COUNT ( * ) FROM tab1
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 * col0 - - 72 * col0, - col1 - - col2 col2 FROM tab2
----
4002
-28
5568
-37
6525
-9

query I rowsort
SELECT DISTINCT - col0 * - ( - - col1 ) + - + 91 AS col0 FROM tab0
----
1124
1736
6

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

query II rowsort
SELECT ( - - 13 ) - 13 + + - col2, - col0 AS col0 FROM tab1
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT ALL + col1 + - col2 - col1 * + 65 AS col1, + col1 * - + 54 * + col0 FROM tab2
----
-3287
-126684
-4346
-271350
-4968
-266112

query I rowsort
SELECT ALL col2 - + 88 FROM tab1
----
-20
-29
8

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

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

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

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

query I rowsort
SELECT ALL + + 93 - col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
35
53
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT col2 DIV + col1 + + - 99 + + col0 FROM tab0 cor0 WHERE NOT 20 IS NULL
----
-12
-84
97

skipif mysql # not compatible
query I rowsort label-1694
SELECT col2 / + col1 + + - 99 + + col0 FROM tab0 cor0 WHERE NOT 20 IS NULL
----
-12
-84
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1696
SELECT DISTINCT - 47 AS col1, + 21 * + + 2 AS col1 FROM tab2 AS cor0 WHERE + CAST( - + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-1696
SELECT DISTINCT - 47 AS col1, + 21 * + + 2 AS col1 FROM tab2 AS cor0 WHERE + CAST ( - + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + + 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL IN ( + col0, + 51, col1, - col0, - 12 + 0 + - + 39 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1699
SELECT ALL - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1699
SELECT ALL - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL > col1
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL > col1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT DISTINCT 22 DIV col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT 22 / col2 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 41 - 8 + - col2 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT + + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + + col2 - + col1 > col0 + + 30
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 26 col2 FROM tab2
----
49
66
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1708
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT + - col2 < col1 * - col0 * CAST( NULL AS DECIMAL ) / - + 30
----
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + - col2 < col1 * - col0 * CAST ( NULL AS REAL ) / - + 30
----
0

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

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

query II rowsort
SELECT ALL + col0 + - col0 + col1 * + - col2 AS col1, col1 FROM tab1
----
-1344
14
-295
5
-3196
47

query I rowsort
SELECT ALL + col0 * + col0 + - col1 + - ( + col1 ) AS col1 FROM tab1
----
2573
7215
8187

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT DISTINCT 95 + - - MAX( DISTINCT + - 69 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT 95 + - - MAX ( DISTINCT + - 69 ) FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT + 43 + + - SUM( col2 ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-1713
SELECT + 43 + + - SUM ( col2 ) AS col0 FROM tab2
----
-78

query I rowsort
SELECT col0 + + 85 FROM tab1 cor0
----
136
170
176

query I rowsort
SELECT - 66 + - col0 + + 36 FROM tab1 AS cor0
----
-115
-121
-81

query I rowsort
SELECT col0 * - col1 + - - col1 AS col1 FROM tab0 cor0
----
-1134
-1806
-96

query I rowsort
SELECT ALL - 97 + - col1 + col2 + col1 AS col0 FROM tab2
----
-39
-57
-74

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

query II rowsort
SELECT + col0 - - 44, - 32 AS col2 FROM tab2
----
108
-32
119
-32
90
-32

query I rowsort
SELECT - + col0 + - 66 + + 41 FROM tab0 AS cor0
----
-112
-122
-40

query I rowsort
SELECT ( + 53 ) FROM tab2
----
53
53
53

query I rowsort
SELECT - 80 * + ( 53 ) * + col2 FROM tab0
----
-199280
-419760
-42400

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1724
SELECT ALL + 92 * - + CAST( + + col0 AS SIGNED ) col0, - col2 * + col1 * + col1 * + col0 * col1 FROM tab1
----
-4692
-13434624
-7820
-626875
-8372
-642456724

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1724
SELECT ALL + 92 * - + CAST ( + + col0 AS INTEGER ) col0, - col2 * + col1 * + col1 * + col0 * col1 FROM tab1
----
-4692
-13434624
-7820
-626875
-8372
-642456724

query I rowsort
SELECT DISTINCT 13 * 37 AS col0 FROM tab1
----
481

query I rowsort
SELECT 76 * - - col0 FROM tab2
----
3496
4864
5700

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= col2
----

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

query I rowsort
SELECT ALL + - 54 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT col2 * col1 + 62 AS col1 FROM tab0
----
161
272
3869

query I rowsort
SELECT col2 * + col1 + 71 AS col1 FROM tab0
----
170
281
3878

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1732
SELECT COUNT( ALL CAST( + col2 AS DECIMAL ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1732
SELECT COUNT ( ALL CAST ( + col2 AS REAL ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - col1 + - 45 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + COUNT( - 55 ) + - 29 AS col0 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-1734
SELECT + COUNT ( - 55 ) + - 29 AS col0 FROM tab0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 95 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT 62 + - COUNT( * ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-1736
SELECT 62 + - COUNT ( * ) FROM tab2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT DISTINCT - 25 * + 41 - CAST( col0 AS SIGNED ) * - col1 AS col2 FROM tab2
----
1321
3903
4000

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT - 25 * + 41 - CAST ( col0 AS INTEGER ) * - col1 AS col2 FROM tab2
----
1321
3903
4000

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT 67 * - COUNT( * ) AS col1 FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-1739
SELECT 67 * - COUNT ( * ) AS col1 FROM tab0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL ( 6 ) AS col1 FROM tab1 WHERE ( + col1 ) NOT BETWEEN - col2 AND + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL ( 6 ) AS col1 FROM tab1 WHERE ( + col1 ) NOT BETWEEN - col2 AND + ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ( ( - 8 ) ) FROM tab1
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT CAST( - 68 AS SIGNED ) AS col0 FROM tab0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-1742
SELECT CAST ( - 68 AS INTEGER ) AS col0 FROM tab0
----
-68
-68
-68

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

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 AS col1 FROM tab1
----
-3481
-4624
-9216

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

query I rowsort
SELECT ALL 10 * + 29 FROM tab1
----
290
290
290

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT - 22 + COUNT( * ) AS col0 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-1747
SELECT - 22 + COUNT ( * ) AS col0 FROM tab0
----
-19

query I rowsort
SELECT + 11 + - col0 AS col0 FROM tab0
----
-4
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ALL + 61 + COUNT( * ) FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND - 83 * + col2
----
61

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL + 61 + COUNT ( * ) FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND - 83 * + col2
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT 72 + COUNT( + 3 ) AS col2 FROM tab0 WHERE col0 NOT BETWEEN NULL AND ( + col0 )
----
72

skipif mysql # not compatible
query I rowsort label-1751
SELECT 72 + COUNT ( + 3 ) AS col2 FROM tab0 WHERE col0 NOT BETWEEN NULL AND ( + col0 )
----
72

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

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

query I rowsort
SELECT ALL + 23 * + col2 FROM tab1
----
1357
1564
2208

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

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT col2 - - 78 < col1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT DISTINCT - 94 / + col0 FROM tab2 WHERE NOT ( ( + 39 ) ) * col0 > + 86 + - col0 * CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT - 94 / + col0 FROM tab2 WHERE NOT ( ( + 39 ) ) * col0 > + 86 + - col0 * CAST ( + col1 AS INTEGER )
----

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

query I rowsort
SELECT DISTINCT col2 * + 60 FROM tab0 AS cor0
----
2820
5940
600

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( - 42 )
----

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

query I rowsort
SELECT DISTINCT - 63 * - 48 AS col0 FROM tab0 AS cor0
----
3024

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT - 92 + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-24
-33
4

skipif mysql # not compatible
query I rowsort label-1765
SELECT - 92 + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-24
-33
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = 29
----

query I rowsort
SELECT DISTINCT - col2 * + 67 AS col1 FROM tab1 WHERE - col0 * col0 IS NOT NULL
----
-3953
-4556
-6432

query I rowsort
SELECT DISTINCT col0 * + col1 + col1 * - 54 AS col1 FROM tab1
----
-42
155
1739

query I rowsort
SELECT DISTINCT - 29 * - col0 + col0 FROM tab1 WHERE col1 NOT IN ( col1 * col2 )
----
1530
2550
2730

query I rowsort
SELECT ALL - col2 - 46 FROM tab1 AS cor0
----
-105
-114
-142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT DISTINCT - - COUNT( DISTINCT col2 ) - 67 * 60 AS col1 FROM tab0 AS cor0
----
-4017

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT - - COUNT ( DISTINCT col2 ) - 67 * 60 AS col1 FROM tab0 AS cor0
----
-4017

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL - - ( 34 ) * + COUNT( * ) + - SUM( col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - - ( 34 ) * + COUNT ( * ) + - SUM ( col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT DISTINCT 91 - - CAST( 66 AS SIGNED ) * 88 FROM tab0 AS cor0
----
5899

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT 91 - - CAST ( 66 AS INTEGER ) * 88 FROM tab0 AS cor0
----
5899

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - - COUNT( DISTINCT + col2 ) * COUNT( * ) - + ( + MIN( 26 ) ) AS col2 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1775
SELECT - - COUNT ( DISTINCT + col2 ) * COUNT ( * ) - + ( + MIN ( 26 ) ) AS col2 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - ( col1 ) - 7 AS col2 FROM tab2 AS cor0
----
-58
-74
-84

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

query I rowsort
SELECT + + 34 - 99 AS col2 FROM tab2 AS cor0
----
-65
-65
-65

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

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

query I rowsort
SELECT + 67 - + col2 AS col2 FROM tab2 AS cor0
----
27
44
9

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

skipif mysql # not compatible
query I rowsort label-1781
SELECT + ( MAX ( + CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) - 0 AS col2 FROM tab0 AS cor0
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL ( + MAX ( - col0 ) ) FROM tab2
----
-46

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col2 ) / - 34 + ( col0 + + col0 ) IN ( 95 + 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 17 AS col2 FROM tab1 WHERE - col2 >= ( NULL ) OR NOT NULL > 44
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 93 + + 73 * + col0 ) IS NOT NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1791
SELECT ALL ( + MAX ( 76 ) ) col1 FROM tab2 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT - - MIN( DISTINCT ( col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1792
SELECT - - MIN ( DISTINCT ( col0 ) ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT DISTINCT col2 - + CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0 WHERE - 91 > ( - 84 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1793
SELECT DISTINCT col2 - + CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0 WHERE - 91 > ( - 84 )
----

query I rowsort
SELECT DISTINCT 98 * - - 66 FROM tab0 AS cor0
----
6468

query I rowsort
SELECT DISTINCT 79 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 0 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT - - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1799
SELECT - - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT + MAX( + 39 ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 24 IS NULL
----
42

skipif mysql # not compatible
query I rowsort label-1800
SELECT + MAX ( + 39 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 24 IS NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT COUNT( * ) * COUNT( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1801
SELECT COUNT ( * ) * COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT - 24 FROM tab1 cor0 WHERE ( CAST( NULL AS SIGNED ) ) < 27
----

skipif mysql # not compatible
query I rowsort label-1802
SELECT - 24 FROM tab1 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) < 27
----

query I rowsort
SELECT + + col1 * - 95 AS col2 FROM tab2 cor0
----
-4845
-6365
-7315

onlyif mysql # aggregate syntax: 
query II rowsort label-1804
SELECT ALL + COUNT( * ) AS col1, 59 AS col0 FROM tab0 AS cor0
----
3
59

skipif mysql # not compatible
query II rowsort label-1804
SELECT ALL + COUNT ( * ) AS col1, 59 AS col0 FROM tab0 AS cor0
----
3
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) + 8 = ( - 89 + col1 )
----

query I rowsort
SELECT - col1 + - 83 FROM tab2
----
-134
-150
-160

query I rowsort
SELECT + 2 + + - 91 - - + 61 AS col1 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE 11 IS NULL
----

query I rowsort
SELECT DISTINCT - 98 + + col2 AS col2 FROM tab0
----
-51
-88
1

query I rowsort
SELECT 93 * col2 + + col2 FROM tab2
----
2162
3760
5452

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( - col0 - + 47 * - col2 )
----

query I rowsort
SELECT ALL ( + + col0 ) + + col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + 35 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
35
35
35

query I rowsort
SELECT 30 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + + - col1 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 13 * + + 25 + - 48 )
----

query I rowsort
SELECT DISTINCT - 63 + + - col2 + 1 * + col2 FROM tab2
----
-63

query I rowsort
SELECT - 70 + + + 29 AS col1 FROM tab0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab1 WHERE ( + - 31 ) IS NULL
----

query I rowsort
SELECT 10 + - + col1 * + + col1 FROM tab2
----
-2591
-4479
-5919

query III rowsort
SELECT * FROM tab2 WHERE ( + 44 * + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 59 = ( - 74 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 76 - + - col2 col0 FROM tab0 AS cor0
----
-29
-66
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT - 8 * - ( COUNT( * ) ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT - 8 * - ( COUNT ( * ) ) AS col0 FROM tab0
----
24

query III rowsort
SELECT * FROM tab0 WHERE ( + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT MAX( ALL col0 ) + 24 AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1826
SELECT MAX ( ALL col0 ) + 24 AS col1 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT + - COUNT( * ) + COUNT( * ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1827
SELECT + - COUNT ( * ) + COUNT ( * ) col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1828
SELECT ALL + 66 * + CAST( NULL AS DECIMAL ) 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-1828
SELECT ALL + 66 * + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 52 FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT ALL col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 <= ( - - col2 * + col0 / - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 <= ( - - col2 * + col0 / - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT COUNT( ALL + + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1831
SELECT COUNT ( ALL + + col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT DISTINCT - CAST( AVG ( DISTINCT 46 ) AS SIGNED ) AS col0 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - CAST ( AVG ( DISTINCT 46 ) AS INTEGER ) AS col0 FROM tab1
----
-46

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1834
SELECT + COUNT( * ) DIV - 65 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1834
SELECT + COUNT ( * ) / - 65 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT - col2 DIV 92 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT - col2 / 92 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT ALL 61 DIV col0 * - col1 FROM tab2
----
-51
0
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL 61 / col0 * - col1 FROM tab2
----
-51
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT DISTINCT + 14 AS col2, - COUNT( * ) col1 FROM tab0
----
14
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1837
SELECT DISTINCT + 14 AS col2, - COUNT ( * ) col1 FROM tab0
----
14
-3

query II rowsort
SELECT DISTINCT col0, col0 * - col1 * 28 AS col1 FROM tab0 AS cor0
----
15
-34020
87
-51156
97
-2716

query II rowsort
SELECT ALL + 12 AS col0, col1 FROM tab0 AS cor0
----
12
1
12
21
12
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - col2
----

query I rowsort
SELECT - col2 * ( + - ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( + 81 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col0 * + 46, ( + col0 ) * col1 )
----

query I rowsort
SELECT + + col2 * col2 + 24 FROM tab0 AS cor0
----
124
2233
9825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN ( col0 * + col2 + 60 + - col0 ) AND NULL
----
19
19
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - 91 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + COUNT( * ) * - + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1847
SELECT + COUNT ( * ) * - + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT + + COUNT( * ) * + + 56 AS col1 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + + COUNT ( * ) * + + 56 AS col1 FROM tab0 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL + ( - + COUNT( * ) ) * + 43 + COUNT( * ) FROM tab0 WHERE NOT + col0 > + col0
----
-126

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL + ( - + COUNT ( * ) ) * + 43 + COUNT ( * ) FROM tab0 WHERE NOT + col0 > + col0
----
-126

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1850
SELECT * FROM tab0 WHERE ( - col2 / + CAST( + ( - 8 ) AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1850
SELECT * FROM tab0 WHERE ( - col2 / + CAST ( + ( - 8 ) AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + MAX( ALL col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1851
SELECT + MAX ( ALL col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT SUM( + - 97 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT SUM ( + - 97 ) FROM tab0
----
-291

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 = NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * - - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - - col0 * - - 66 + + col0 * - col1 FROM tab0 AS cor0
----
-225
3915
6305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1856
SELECT DISTINCT + + COUNT( * ) * + 71 DIV - 62 - - + 26 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + + COUNT ( * ) * + 71 / - 62 - - + 26 FROM tab0 AS cor0
----
23

query I rowsort
SELECT - 40 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT 52 + + col0 AS col0 FROM tab0
----
139
149
67

query I rowsort
SELECT 94 * + col2 * - + col1 * - col0 * ( + col2 ) AS col1 FROM tab0
----
17173800
252289890
89365518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT NULL >= + 82
----
0

skipif mysql # not compatible
query I rowsort label-1860
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT NULL >= + 82
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT - COUNT( * ) + + ( - COUNT( * ) ) + + 12 FROM tab1 AS cor0 WHERE NOT col1 <= ( NULL )
----
12

skipif mysql # not compatible
query I rowsort label-1862
SELECT - COUNT ( * ) + + ( - COUNT ( * ) ) + + 12 FROM tab1 AS cor0 WHERE NOT col1 <= ( NULL )
----
12

query II rowsort
SELECT DISTINCT - - col1 * - col2, + 76 - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1173
25
-3080
-1
-3886
9

query I rowsort
SELECT ALL + + ( + + 12 ) * + + 63 FROM tab2 AS cor0
----
756
756
756

query I rowsort
SELECT - - ( - - col2 ) FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 * + col2 col2 FROM tab1 AS cor0
----
-531
-612
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT DISTINCT + 79 * - COUNT( * ) * COUNT( * ) - + COUNT( ALL col2 ) FROM tab1 AS cor0
----
-714

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT + 79 * - COUNT ( * ) * COUNT ( * ) - + COUNT ( ALL col2 ) FROM tab1 AS cor0
----
-714

query I rowsort
SELECT ALL + col1 * - - ( col0 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT col1 * - + 50 * + col0 * - col1 AS col0, col2 AS col1 FROM tab2 cor0
----
16833750
58
18972800
40
5982300
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT ALL COUNT( ALL + 37 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL COUNT ( ALL + 37 ) FROM tab1
----
3

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT ( 26 ) <= col2
----
51

query I rowsort
SELECT ALL 70 * - 48 AS col0 FROM tab2
----
-3360
-3360
-3360

query I rowsort
SELECT + 93 * 13 FROM tab2 AS cor0
----
1209
1209
1209

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 94 ) IN ( 84 )
----

query I rowsort
SELECT DISTINCT 35 * col2 + col1 + - 38 FROM tab0 AS cor0
----
1688
333
3428

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN - + 3 + - col1 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT - MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1878
SELECT - MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT MAX( col1 ) AS col1, + 30 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
47
-90

skipif mysql # not compatible
query II rowsort label-1879
SELECT MAX ( col1 ) AS col1, + 30 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
47
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT COUNT( * ) AS col1, - 37 * COUNT( * ) FROM tab2 AS cor0
----
3
-111

skipif mysql # not compatible
query II rowsort label-1880
SELECT COUNT ( * ) AS col1, - 37 * COUNT ( * ) FROM tab2 AS cor0
----
3
-111

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) > col0
----

query II rowsort
SELECT DISTINCT + col2 AS col0, 52 * - - col1 FROM tab1 AS cor0
----
59
260
68
2444
96
728

query I rowsort
SELECT 10 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - 71 col1, + col0 FROM tab2 AS cor0
----
-25
46
-7
64
4
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 / - 96 + - - col1 IS NULL
----

query I rowsort
SELECT + col0 * - - col0 + - col2 AS col1 FROM tab2
----
2093
4056
5567

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - COUNT( ALL - 95 ) * + - 34 AS col0 FROM tab1, tab0 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-1887
SELECT - COUNT ( ALL - 95 ) * + - 34 AS col0 FROM tab1, tab0 AS cor0
----
306

query I rowsort
SELECT DISTINCT col1 - - col2 * + - 5 * col1 AS col1 FROM tab1
----
-1470
-15933
-6706

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT ALL + col1 DIV + - 33 - - col1 FROM tab1
----
14
46
5

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL + col1 / + - 33 - - col1 FROM tab1
----
14
46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL - COUNT( * ) * + 95 - COUNT( DISTINCT - col1 ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL - COUNT ( * ) * + 95 - COUNT ( DISTINCT - col1 ) FROM tab0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT - + MAX( - + 86 ) + - + 55 FROM tab2 cor0
----
31

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT - + MAX ( - + 86 ) + - + 55 FROM tab2 cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col1 FROM tab2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT - COUNT( ALL + col0 ) * + 98 AS col0 FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-1893
SELECT - COUNT ( ALL + col0 ) * + 98 AS col0 FROM tab2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT + COUNT( DISTINCT - 9 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1894
SELECT + COUNT ( DISTINCT - 9 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL + - MAX( DISTINCT + 15 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + - MAX ( DISTINCT + 15 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL - - COUNT( ALL col0 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1896
SELECT ALL - - COUNT ( ALL col0 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1897
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - + col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1897
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - + col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT - col2 * + - col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT ALL - 70 * - COUNT( * ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL - 70 * - COUNT ( * ) FROM tab1
----
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 27 col1 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT DISTINCT - col2 * + + col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN - 53 / + - 63 + + - 10 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT + COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN - 53 / + - 63 + + - 10 AND ( NULL )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( 58, col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT + COUNT( * ) DIV CAST( + AVG ( ALL - - 47 ) AS SIGNED ) * SUM( ALL + - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT + COUNT ( * ) / CAST ( + AVG ( ALL - - 47 ) AS INTEGER ) * SUM ( ALL + - col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT 4 * - col1 + + col2 FROM tab2 AS cor0
----
-181
-210
-268

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 = - + 82 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT - - MAX( - 3 ) * 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT - - MAX ( - 3 ) * 1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-3

query I rowsort
SELECT - 81 + + + col1 AS col2 FROM tab0
----
-60
-80
0

query I rowsort
SELECT - col1 * 32 + + + col2 * col0 FROM tab1 AS cor0
----
4448
4684
4855

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + col2 + - - col0 * - + col0 IN ( + + 8, - col2 - - col0, + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * - + 16 + + col2 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1373
-1425
-1462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT + 96 * - MIN( CAST( - - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-4896

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 96 * - MIN ( CAST ( - - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT DISTINCT - + MIN( ALL col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - + MIN ( ALL col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT 81 * 89 - 57 FROM tab1
----
7152
7152
7152

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT - MAX( ALL - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT - MAX ( ALL - col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT ALL 85 + + + col0 * - col1 FROM tab2
----
-2261
-4843
-4940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 54 + - + col2 col1 FROM tab1 AS cor0
----
-14
-42
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT - SUM( ALL - col0 ) DIV + - 81 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1921
SELECT - SUM ( ALL - col0 ) / + - 81 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - col0 > + ( + 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col0 IN ( - col1, col2 + + ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT DISTINCT + MAX( + 80 ) AS col2 FROM tab2 AS cor0 WHERE - col1 <> col0
----
80

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT + MAX ( + 80 ) AS col2 FROM tab2 AS cor0 WHERE - col1 <> col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT - CAST( - ( - COUNT( DISTINCT + - col2 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1926
SELECT - CAST ( - ( - COUNT ( DISTINCT + - col2 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 35 AS col2 FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - SUM( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT - SUM ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - + 87 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 9 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1931
SELECT DISTINCT - - col2 AS col1, - col0 / - 56 col1 FROM tab1 WHERE - col2 / + col1 * - CAST( NULL AS SIGNED ) * col1 + - CAST( NULL AS SIGNED ) NOT BETWEEN ( NULL ) AND - 70
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1931
SELECT DISTINCT - - col2 AS col1, - col0 / - 56 col1 FROM tab1 WHERE - col2 / + col1 * - CAST ( NULL AS INTEGER ) * col1 + - CAST ( NULL AS INTEGER ) NOT BETWEEN ( NULL ) AND - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 61 OR NOT + 24 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 61 OR NOT + 24 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT + MAX( ALL + col1 ) * + COUNT( * ) * 27 AS col1 FROM tab0
----
6561

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + MAX ( ALL + col1 ) * + COUNT ( * ) * 27 AS col1 FROM tab0
----
6561

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( 71 / 9 / + - 74 + - + col1 ) < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT DISTINCT - col2 + + - 82 + - - 46 DIV - col1 FROM tab2
----
-105
-122
-140

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT - col2 + + - 82 + - - 46 / - col1 FROM tab2
----
-105
-122
-140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1936
SELECT + 6 AS col1, col1 * - col2 col2 FROM tab1 WHERE NOT + - col0 * + 99 <= - + 52 * + CAST( NULL AS SIGNED ) - + 9
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1936
SELECT + 6 AS col1, col1 * - col2 col2 FROM tab1 WHERE NOT + - col0 * + 99 <= - + 52 * + CAST ( NULL AS INTEGER ) - + 9
----

query I rowsort
SELECT ALL + + ( 46 ) AS col2 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - + SUM( - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1938
SELECT - + SUM ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - COUNT( + col0 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1939
SELECT - COUNT ( + col0 ) col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 37 * - 85 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col1 FROM tab2
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1942
SELECT col0 - - + col2, + ( CAST( - col2 AS SIGNED ) ) AS col1 FROM tab1
----
144
-59
147
-96
159
-68

skipif mysql # not compatible
query II rowsort label-1942
SELECT col0 - - + col2, + ( CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1
----
144
-59
147
-96
159
-68

query I rowsort
SELECT ( - col0 ) + - col0 FROM tab0 cor0
----
-174
-194
-30

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE + + col0 + 46 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL + 58 - - + MAX( + - 75 ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + 58 - - + MAX ( + - 75 ) FROM tab0
----
-17

query II rowsort
SELECT 75 AS col1, + 93 FROM tab0
----
75
93
75
93
75
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT - COUNT( ALL - col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1947
SELECT - COUNT ( ALL - col2 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT + - ( + + SUM( DISTINCT - col0 ) ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1948
SELECT + - ( + + SUM ( DISTINCT - col0 ) ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT + - SUM( - - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT + - SUM ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + + 23 * - col0 FROM tab2 AS cor0
----
-1058
-1472
-1725

query II rowsort
SELECT ALL col2, 76 AS col1 FROM tab0
----
10
76
47
76
99
76

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT ( ( ( NOT 21 IS NULL ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 22 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT - MIN( ALL - - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - MIN ( ALL - - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1956
SELECT DISTINCT + col1 AS col0, CAST( NULL AS SIGNED ) / + col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1956
SELECT DISTINCT + col1 AS col0, CAST ( NULL AS INTEGER ) / + col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT + + ( + 82 ) FROM tab0 AS cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 25 col1, 64 * + col0 * - col2 + + + col1 FROM tab1 AS cor0
----
25
-313330
25
-320955
25
-395985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 41 AS col2, + col1 + + col0 + + col2, + col1 col2 FROM tab2 AS cor0
----
9 values hashing to a9b0dc3bf17bde7a32306ad6d6751014

query II rowsort
SELECT col2 AS col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT MIN( + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT MIN ( + col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col0 * + 67 FROM tab1
----
-3417
-5695
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL MIN( ALL + 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL MIN ( ALL + 14 ) FROM tab2
----
14

query I rowsort
SELECT + col1 * 24 * col1 FROM tab1
----
4704
53016
600

query II rowsort
SELECT ALL + 69 AS col2, - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - + 66 col1 FROM tab2 AS cor0
----
-117
-133
-143

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1967
SELECT * FROM tab0 cor0 WHERE + col2 NOT BETWEEN CAST( NULL AS SIGNED ) + + col1 + + + 96 AND - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1967
SELECT * FROM tab0 cor0 WHERE + col2 NOT BETWEEN CAST ( NULL AS INTEGER ) + + col1 + + + 96 AND - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + + 7 AS col1 FROM tab0
----
106
17
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT + 99 + + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + 99 + + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL ( COUNT( * ) ) - + 0 + - + 10 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL ( COUNT ( * ) ) - + 0 + - + 10 FROM tab0
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1971
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE CAST( + - 77 AS DECIMAL ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE CAST ( + - 77 AS REAL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT 47 + + - col0 FROM tab2 AS cor0
----
-17
-28
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1973
SELECT ALL + 16 * col2 + + 89 + - - 64 + - - col2 DIV - col1 - - col1 * 18 * + col1 AS col1 FROM tab2 AS cor0
----
107515
47339
81883

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL + 16 * col2 + + 89 + - - 64 + - - col2 / - col1 - - col1 * 18 * + col1 AS col1 FROM tab2 AS cor0
----
107515
47339
81883

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + - MAX( DISTINCT ( + - 47 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1974
SELECT + - MAX ( DISTINCT ( + - 47 ) ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + 47 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1975
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + 47 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 - + - col0 col1 FROM tab1 AS cor0
----
122
128
88

query I rowsort
SELECT DISTINCT - col1 * - 71 AS col2 FROM tab0 AS cor0
----
1491
5751
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT DISTINCT + ( - - MIN( ( col2 ) ) ) + + 39 AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT + ( - - MIN ( ( col2 ) ) ) + + 39 AS col2 FROM tab2 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + 42 - MAX( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-1979
SELECT + 42 - MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT - col1 - - + col2 AS col1 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT + ( - - 48 ) - 56 + 55 FROM tab0
----
47
47
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 / + + col1 - - col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT CAST( 52 AS SIGNED ) AS col0 FROM tab1
----
52
52
52

skipif mysql # not compatible
query I rowsort label-1983
SELECT CAST ( 52 AS INTEGER ) AS col0 FROM tab1
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1984
SELECT - CAST( - + col0 AS SIGNED ) DIV 47 col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1984
SELECT - CAST ( - + col0 AS INTEGER ) / 47 col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL - MAX( - 59 ) FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - MAX ( - 59 ) FROM tab0 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT ALL - COUNT( ALL col1 ) * - COUNT( DISTINCT - + 71 ) * + 68 + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - COUNT ( ALL col1 ) * - COUNT ( DISTINCT - + 71 ) * + 68 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + - ( + + 61 ) * 4 FROM tab2 cor0
----
-244
-244
-244

query I rowsort
SELECT - 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query II rowsort
SELECT DISTINCT col0 AS col1, 16 AS col1 FROM tab1
----
51
16
85
16
91
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0 - - col1
----

query II rowsort
SELECT DISTINCT 52, + col2 FROM tab2 AS cor0
----
52
23
52
40
52
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1993
SELECT - + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT - + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( 76 + - col0 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT - + COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - + COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab1 WHERE - 23 / + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1997
SELECT DISTINCT col2 * - + ( + col1 ) + col1 + - CAST( NULL AS SIGNED ) * 5 * - col0 * col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT col2 * - + ( + col1 ) + col1 + - CAST ( NULL AS INTEGER ) * 5 * - col0 * col0 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col2 + + ( col2 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT - col1 + CAST( - - 39 AS SIGNED ) AS col2 FROM tab1
----
-8
25
34

skipif mysql # not compatible
query I rowsort label-1999
SELECT - col1 + CAST ( - - 39 AS INTEGER ) AS col2 FROM tab1
----
-8
25
34

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT 93 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col2 ) col1 FROM tab0
----
10
47
99

query I rowsort
SELECT 1 + - - 50 * - col1 AS col0 FROM tab1
----
-2349
-249
-699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 * + col1 ) IN ( 27, 84, - 74 * 28, + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, ( - col0 ) AS col2 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL + MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL + MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2008
SELECT + 71 DIV + - MIN( ALL 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2008
SELECT + 71 / + - MIN ( ALL 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT COUNT( * ) - 20 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-2009
SELECT COUNT ( * ) - 20 FROM tab2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT col2 - 12 + 32 DIV + 62 * - 48 AS col1 FROM tab2
----
11
28
46

skipif mysql # not compatible
query I rowsort label-2010
SELECT col2 - 12 + 32 / + 62 * - 48 AS col1 FROM tab2
----
11
28
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT DISTINCT col0 + - CAST( - + 40 AS SIGNED ) AS col2 FROM tab0
----
127
137
55

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT col0 + - CAST ( - + 40 AS INTEGER ) AS col2 FROM tab0
----
127
137
55

query I rowsort
SELECT + col1 * + 51 + + col1 FROM tab1 AS cor0
----
2444
260
728

query II rowsort
SELECT ALL + - 73 * + col2 AS col1, - col2 + + 96 AS col1 FROM tab1 AS cor0
----
-4307
37
-4964
28
-7008
0

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2015
SELECT DISTINCT + 33 DIV - - SUM( DISTINCT + - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT + 33 / - - SUM ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + col1 col1 FROM tab2 AS cor0
----
306
402
462

query I rowsort
SELECT + - col1 + + 49 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
-32
28
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL MAX( + 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL MAX ( + 90 ) FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT - MAX( DISTINCT + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT - MAX ( DISTINCT + col2 ) FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 95 col2 FROM tab0
----
1425
8265
9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 * 52 * col1 col2 FROM tab1
----
26208
87984
9360

query I rowsort
SELECT DISTINCT 75 * + - col0 FROM tab0
----
-1125
-6525
-7275

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT 92 DIV + + col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-2023
SELECT 92 / + + col1 FROM tab1
----
1
18
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2024
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) / + col1 + - col0 + - 58 * - - col2 FROM tab0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT - - CAST ( NULL AS REAL ) / + col1 + - col0 + - 58 * - - col2 FROM tab0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT 42, - col1 * + col0 AS col2 FROM tab0
----
42
-1215
42
-1827
42
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT 33 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT 33 / col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col0 * - col0
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query I rowsort
SELECT ALL + 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT 31 FROM tab2 WHERE NOT + 82 + + 6 IS NULL
----
31
31
31

query I rowsort
SELECT - 74 + + ( col2 ) FROM tab2
----
-16
-34
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2032
SELECT - COUNT( DISTINCT + col2 ) AS col1, COUNT( * ) col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2032
SELECT - COUNT ( DISTINCT + col2 ) AS col1, COUNT ( * ) col0 FROM tab2 AS cor0
----
-3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT DISTINCT - col2 + - + col0 + + col2 DIV + col1 FROM tab0 AS cor0
----
-62
-97

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - col2 + - + col0 + + col2 / + col1 FROM tab0 AS cor0
----
-62
-97

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT - + SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2035
SELECT - + SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2036
SELECT * FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2036
SELECT * FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT DISTINCT + 5 + - + ( + col2 ) + + - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT + 5 + - + ( + col2 ) + + - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
5

query II rowsort
SELECT - col0 AS col0, + col2 FROM tab0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - 52 col2 FROM tab2
----
51
-52
67
-52
77
-52

query II rowsort
SELECT DISTINCT ( col1 ) + col2, 83 AS col2 FROM tab0
----
100
83
128
83
31
83

query I rowsort
SELECT DISTINCT + + col1 + - col0 / - 59 FROM tab1 WHERE NOT - 37 IS NOT NULL
----

query I rowsort
SELECT + 48 * + 40 FROM tab1, tab2 AS cor0
----
9 values hashing to ae238516e1b5d49657112c7f27bba6ea

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col2 ) - - 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 + col0 * - col1 + + 61 FROM tab1 AS cor0
----
-369
-4263
-667

onlyif mysql # aggregate syntax: 
query II rowsort label-2045
SELECT COUNT( * ) AS col2, 22 col2 FROM tab2
----
3
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2045
SELECT COUNT ( * ) AS col2, 22 col2 FROM tab2
----
3
22

query I rowsort
SELECT DISTINCT + 24 * - - col0 AS col1 FROM tab1 cor0
----
1224
2040
2184

query I rowsort
SELECT ALL 38 + - col0 * - col1 FROM tab1 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + 55 * - - 28 - - MIN( - col2 ) + + MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
1439

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + 55 * - - 28 - - MIN ( - col2 ) + + MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
1439

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT MAX( ALL - 71 ) * - - COUNT( * ) + + - 28 FROM tab2 AS cor0
----
-241

skipif mysql # not compatible
query I rowsort label-2049
SELECT MAX ( ALL - 71 ) * - - COUNT ( * ) + + - 28 FROM tab2 AS cor0
----
-241

query I rowsort
SELECT - col1 * - + 66 + + 71 AS col0 FROM tab1 AS cor0
----
3173
401
995

onlyif mysql # DIV for integer division: 
query II rowsort label-2051
SELECT - - col1, 13 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
-13
21
0
81
0

skipif mysql # not compatible
query II rowsort label-2051
SELECT - - col1, 13 / - col1 AS col0 FROM tab0 AS cor0
----
1
-13
21
0
81
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 6 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT + SUM( + 90 ) FROM tab0 cor0
----
270

skipif mysql # not compatible
query I rowsort label-2053
SELECT + SUM ( + 90 ) FROM tab0 cor0
----
270

query I rowsort
SELECT DISTINCT + - 78 FROM tab2 WHERE NOT col1 * - - col0 >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2055
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab2 WHERE NOT - + 51 BETWEEN - 8 + 22 / + col1 AND NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab2 WHERE NOT - + 51 BETWEEN - 8 + 22 / + col1 AND NULL
----
-23
-40
-58

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - 87 BETWEEN + + col1 AND NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - col0 * - 56 FROM tab2
----
2576
3584
4200

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * + col1 col1 FROM tab1
----
1008
3384
360

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - - 46 + - col0
----

query I rowsort
SELECT - - col2 FROM tab0 WHERE NOT ( - - 68 / col1 + col2 - + + col0 + + col2 ) = + col1
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2062
SELECT DISTINCT COUNT( * ) DIV - - 10 AS col0, - COUNT( - ( - - col1 ) ) AS col2 FROM tab0
----
0
-3

skipif mysql # not compatible
query II rowsort label-2062
SELECT DISTINCT COUNT ( * ) / - - 10 AS col0, - COUNT ( - ( - - col1 ) ) AS col2 FROM tab0
----
0
-3

query I rowsort
SELECT ALL 30 * - + 34 * col2 FROM tab2 AS cor0
----
-23460
-40800
-59160

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2064
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL - - MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - - MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL 72 + SUM( + + 91 ) AS col1 FROM tab1
----
345

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL 72 + SUM ( + + 91 ) AS col1 FROM tab1
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - COUNT( * ) FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2067
SELECT - COUNT ( * ) FROM tab2, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT + 91 * COUNT( * ) AS col2 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-2068
SELECT + 91 * COUNT ( * ) AS col2 FROM tab2
----
273

query II rowsort
SELECT col1 AS col2, - col2 + - col2 * 37 AS col2 FROM tab1
----
14
-3648
47
-2584
5
-2242

query I rowsort
SELECT + 84 * - 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT - - col0 * + CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT - - col0 * + CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 37 ) AS col2 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT - + ( - 90 ) AS col2 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2074
SELECT - 13 DIV col1 DIV + CAST( + - 4 AS SIGNED ) + - col2 + col1, + col0 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
28
-53958
37
-197120
9
-291450

skipif mysql # not compatible
query II rowsort label-2074
SELECT - 13 / col1 / + CAST ( + - 4 AS INTEGER ) + - col2 + col1, + col0 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
28
-53958
37
-197120
9
-291450

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + ( 21 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 69 + - 9 FROM tab1 cor0
----
60

query I rowsort
SELECT ALL - + col0 + - 31 FROM tab0 cor0
----
-118
-128
-46

query I rowsort
SELECT DISTINCT col1 + + - 7 FROM tab2
----
44
60
70

query I rowsort
SELECT DISTINCT - 27 + + - 83 AS col0 FROM tab1
----
-110

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col2 col1 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 96 - + col1 FROM tab2 AS cor0
----
-147
-163
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT - col1 - - + col0 DIV + col2 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-2083
SELECT - col1 - - + col0 / + col2 FROM tab1 AS cor0
----
-14
-4
-46

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT + SUM( ALL - col0 ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2085
SELECT DISTINCT + SUM ( ALL - col0 ) col0 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL + COUNT( * ), + COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT 64 * - col2 AS col0 FROM tab0
----
-3008
-6336
-640

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT + + col1 AS col2, + col2 * - 41 * - 45 AS col1 FROM tab0 AS cor0
----
1
182655
21
18450
81
86715

query I rowsort
SELECT ALL + + 60 AS col0 FROM tab2 AS cor0
----
60
60
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 11
----

query I rowsort
SELECT 44 * - + col0 FROM tab1 AS cor0 WHERE NOT ( + 93 + + col0 + + 39 + + col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT 4 FROM tab2 AS cor0 WHERE NULL IS NULL
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * + 0 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - 91 col0 FROM tab2
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT MIN( - ( - ( - ( - col0 ) ) ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2096
SELECT MIN ( - ( - ( - ( - col0 ) ) ) ) AS col1 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT ALL + 27 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + 27 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 66 * - + col0 AS col0 FROM tab0
----
-5742
-6402
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2099
SELECT - SUM( + - 44 ) DIV + COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-2099
SELECT - SUM ( + - 44 ) / + COUNT ( * ) FROM tab1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2100
SELECT + col2 AS col2, 80 + + col2 * + col1, + CAST( NULL AS SIGNED ) col1 FROM tab1
----
9 values hashing to 5bccad3234be45235aee45b2878dcef2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2100
SELECT + col2 AS col2, 80 + + col2 * + col1, + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
9 values hashing to 5bccad3234be45235aee45b2878dcef2

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT DISTINCT COUNT( DISTINCT col2 ), 62 * + - 9 - 15 AS col2 FROM tab2 WHERE NOT ( NOT col0 = ( NULL ) )
----
0
-573

skipif mysql # not compatible
query II rowsort label-2101
SELECT DISTINCT COUNT ( DISTINCT col2 ), 62 * + - 9 - 15 AS col2 FROM tab2 WHERE NOT ( NOT col0 = ( NULL ) )
----
0
-573

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2102
SELECT ALL * FROM tab2 WHERE NOT ( + ( + CAST( NULL AS SIGNED ) ) * - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2102
SELECT ALL * FROM tab2 WHERE NOT ( + ( + CAST ( NULL AS INTEGER ) ) * - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 7, + col1 AS col0 FROM tab1
----
7
14
7
47
7
5

query II rowsort
SELECT col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT - COUNT( ALL - col0 ) * - + 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT - COUNT ( ALL - col0 ) * - + 63 FROM tab1
----
189

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 56 * - 99 + + 33 * + col0 IN ( col0 + col1 * - col2, - col0 / + col0 * - col1, - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2, 25 FROM tab2 AS cor0
----
23
25
40
25
58
25

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT col2 AS col2, + ( - col2 ) AS col1 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 88, col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 25 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + col2 * + 82 * - col1 FROM tab2 AS cor0
----
-252600
-318710
-96209

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL >= NULL )
----

query I rowsort
SELECT - + col0 * 77 + + + col0 AS col1 FROM tab2 AS cor0
----
-3496
-4864
-5700

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2116
SELECT ALL + 51 + + 30 + - 71, COUNT( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
10
0

skipif mysql # not compatible
query II rowsort label-2116
SELECT ALL + 51 + + 30 + - 71, COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
10
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT + COUNT( * ) DIV - + 88 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2117
SELECT + COUNT ( * ) / - + 88 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 11 * + 1 AS col0 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL ( - col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT DISTINCT + 28 * + - col0 * + col1 * col2 + - - 56 + + col1 DIV col0 FROM tab0 AS cor0
----
-1598879
-268828
-511504

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + 28 * + - col0 * + col1 * col2 + - - 56 + + col1 / col0 FROM tab0 AS cor0
----
-1598879
-268828
-511504

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2121
SELECT * FROM tab2 WHERE ( + - CAST( NULL AS SIGNED ) ) * - 8 = NULL
----

skipif mysql # not compatible
query III rowsort label-2121
SELECT * FROM tab2 WHERE ( + - CAST ( NULL AS INTEGER ) ) * - 8 = NULL
----

query II rowsort
SELECT 51 AS col1, - ( - 5 ) AS col1 FROM tab1
----
51
5
51
5
51
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL - 61 + + - 12 AS col2 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT + 33 - + 3 FROM tab0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2126
SELECT DISTINCT col0 DIV - col0 + - + col2 AS col0 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT col0 / - col0 + - + col2 AS col0 FROM tab2
----
-24
-41
-59

query III rowsort
SELECT * FROM tab0 WHERE - col1 / + col1 - - + 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 92 + + col0 FROM tab1
----
143
177
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL 97 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL 97 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
100

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 + + ( - col1 ) + - col0 < 0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2131
SELECT - 88 + 97 DIV + + 76 AS col0, COUNT( * ) + + 56 FROM tab1 AS cor0
----
-87
59

skipif mysql # not compatible
query II rowsort label-2131
SELECT - 88 + 97 / + + 76 AS col0, COUNT ( * ) + + 56 FROM tab1 AS cor0
----
-87
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + + col2
----
0

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT + ( + - COUNT( * ) ) AS col0 FROM tab1 WHERE NOT - 76 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT - 76 < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT COUNT( ALL - 11 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT COUNT ( ALL - 11 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2136
SELECT SUM( + CAST( NULL AS SIGNED ) ) FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2137
SELECT + col1 * + col0 AS col1, ( + col1 ) DIV col1 FROM tab0 AS cor0
----
1215
1
1827
1
97
1

skipif mysql # not compatible
query II rowsort label-2137
SELECT + col1 * + col0 AS col1, ( + col1 ) / col1 FROM tab0 AS cor0
----
1215
1
1827
1
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL + COUNT( DISTINCT - 40 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + COUNT ( DISTINCT - 40 ) AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT DISTINCT + COUNT( DISTINCT 53 ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2139
SELECT DISTINCT + COUNT ( DISTINCT 53 ) col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT COUNT( DISTINCT + + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2140
SELECT COUNT ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 cor0 WHERE col0 <= + col2
----
1

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 cor0 WHERE col0 <= + col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL COUNT( ALL - 53 ) * + + ( - 81 ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL COUNT ( ALL - 53 ) * + + ( - 81 ) FROM tab0
----
-243

query II rowsort
SELECT ALL - col2, col2 AS col1 FROM tab1 WHERE NOT col1 < - 71
----
-59
59
-68
68
-96
96

query II rowsort
SELECT 18, col2 + 41 * + col0 AS col0 FROM tab2
----
18
1909
18
2664
18
3133

query II rowsort
SELECT - 9 AS col2, 70 AS col2 FROM tab2
----
-9
70
-9
70
-9
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 88 col1, col1 - - + 93 FROM tab2
----
88
144
88
160
88
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 20 col2 FROM tab0 cor0
----
-1620
-20
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT + COUNT( * ) + + + 52 AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + COUNT ( * ) + + + 52 AS col2 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT 46 + + ( + 34 ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2149
SELECT 46 + + ( + 34 ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
77

query II rowsort
SELECT DISTINCT col1, ( - col0 ) FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT col2 * + - 91 + - - 39 AS col0 FROM tab1 AS cor0
----
-5330
-6149
-8697

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT + 56 DIV ( + col2 ) + 54 FROM tab0 AS cor0
----
54
55
59

skipif mysql # not compatible
query I rowsort label-2152
SELECT + 56 / ( + col2 ) + 54 FROM tab0 AS cor0
----
54
55
59

query I rowsort
SELECT DISTINCT - col0 - 90 * - - col0 AS col0 FROM tab2 AS cor0
----
-4186
-5824
-6825

query I rowsort
SELECT DISTINCT col0 * + col2 + + col2 + + col0 AS col1 FROM tab2
----
1127
2664
4483

query I rowsort
SELECT + col0 + - + 30 FROM tab2
----
16
34
45

query II rowsort
SELECT - 50 * + ( + 18 ) AS col0, col1 FROM tab0
----
-900
1
-900
21
-900
81

query I rowsort
SELECT DISTINCT - col0 + - + col1 AS col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - ( + MIN( - - 26 ) ) AS col2 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-2158
SELECT - ( + MIN ( - - 26 ) ) AS col2 FROM tab2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT ALL - + col1 - col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - + col1 - col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2160
SELECT 80 DIV + - COUNT( * ) col0 FROM tab2
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2160
SELECT 80 / + - COUNT ( * ) col0 FROM tab2
----
-26

query I rowsort
SELECT - 14 FROM tab2 WHERE NOT - col2 >= - col1 + 87
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL + MIN( ALL + + 87 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + MIN ( ALL + + 87 ) FROM tab2 AS cor0
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 36 < + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2164
SELECT + 92 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) NOT BETWEEN + 38 * + col2 * - ( - + col0 ) AND ( + 63 )
----

skipif mysql # not compatible
query I rowsort label-2164
SELECT + 92 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) NOT BETWEEN + 38 * + col2 * - ( - + col0 ) AND ( + 63 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - + col0 + ( + 88 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT + 38 + - - 53 + col1 - - col1 * - col1 * + col1 FROM tab0 AS cor0 WHERE NOT col0 < - col1 + - + CAST( NULL AS SIGNED ) * col0 * - col1 * + col1
----

skipif mysql # not compatible
query I rowsort label-2166
SELECT + 38 + - - 53 + col1 - - col1 * - col1 * + col1 FROM tab0 AS cor0 WHERE NOT col0 < - col1 + - + CAST ( NULL AS INTEGER ) * col0 * - col1 * + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT MIN( col2 ) FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - + col1 AND NULL
----
10

skipif mysql # not compatible
query I rowsort label-2168
SELECT MIN ( col2 ) FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - + col1 AND NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT MAX( + 7 ) AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2169
SELECT MAX ( + 7 ) AS col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( NOT + + 91 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT CAST( 95 AS SIGNED ) FROM tab0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-2171
SELECT CAST ( 95 AS INTEGER ) FROM tab0
----
95
95
95

query I rowsort
SELECT DISTINCT - col2 + - - col0 + - 99 + col2 FROM tab0
----
-12
-2
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT - + col0 + + - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2173
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + col0 + + - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT - MAX( - - 45 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT - MAX ( - - 45 ) FROM tab0 AS cor0
----
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - + col1
----

query I rowsort
SELECT col0 + ( + - col2 ) AS col1 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT col2 + - - col0 AS col2 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2178
SELECT CAST( NULL AS SIGNED ), - col2 AS col1 FROM tab1 cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-2178
SELECT CAST ( NULL AS INTEGER ), - col2 AS col1 FROM tab1 cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT DISTINCT 21 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT 21 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL + + 84 - - ( col1 ) AS col0 FROM tab0 AS cor0
----
105
165
85

query I rowsort
SELECT ALL + 65 * + 50 FROM tab2 AS cor0
----
3250
3250
3250

query I rowsort
SELECT DISTINCT - 15 * + + col1 AS col0 FROM tab2 AS cor0
----
-1005
-1155
-765

query I rowsort
SELECT ALL - 26 + col1 AS col1 FROM tab1 AS cor0
----
-12
-21
21

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + 81 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2185
SELECT DISTINCT 74 / + - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT 74 / + - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - - 40 col2 FROM tab0 cor0
----
-47
-57
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT DISTINCT 75 * - + COUNT( - + 30 ) AS col2 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT 75 * - + COUNT ( - + 30 ) AS col2 FROM tab0
----
-225

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2188
SELECT col2 - + col0, + col0 * ( + CAST( NULL AS DECIMAL ) ) / - + 70 + + + col2 + col2 AS col1 FROM tab0
----
-77
NULL
2
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-2188
SELECT col2 - + col0, + col0 * ( + CAST ( NULL AS REAL ) ) / - + 70 + + + col2 + col2 AS col1 FROM tab0
----
-77
NULL
2
NULL
32
NULL

query I rowsort
SELECT - col1 * + - 41 - + - col2 AS col2 FROM tab2
----
2114
2805
3197

query I rowsort
SELECT - 8 + - col2 AS col1 FROM tab0
----
-107
-18
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL 47 + MAX( ALL - 36 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL 47 + MAX ( ALL - 36 ) FROM tab1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT COUNT( DISTINCT + 72 ) - - MIN( ALL - col0 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT COUNT ( DISTINCT + 72 ) - - MIN ( ALL - col0 ) FROM tab0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2193
SELECT DISTINCT 19 AS col1, CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) / + ( - MAX( - col1 ) ) - 9 AS col1 FROM tab0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-2193
SELECT DISTINCT 19 AS col1, CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) / + ( - MAX ( - col1 ) ) - 9 AS col1 FROM tab0
----
19
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT + 94 <= NULL
----

query I rowsort
SELECT + + 35 * + col2 FROM tab2 AS cor0
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT MIN( ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT MIN ( ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 * + - col0 col0 FROM tab1
----
-4743
-7905
-8463

query I rowsort
SELECT ALL + 60 * col0 * + 92 * + + 71 AS col2 FROM tab0
----
34097040
38016240
5878800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2199
SELECT + COUNT( * ) DIV - 32, + 7 AS col1 FROM tab1
----
0
7

skipif mysql # not compatible
query II rowsort label-2199
SELECT + COUNT ( * ) / - 32, + 7 AS col1 FROM tab1
----
0
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2200
SELECT DISTINCT - 61 DIV ( + - COUNT( * ) ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT - 61 / ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2201
SELECT DISTINCT - col2 - + 94 / - CAST( NULL AS SIGNED ) AS col2, + 78 col2 FROM tab0 AS cor0 WHERE NOT NULL = - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2201
SELECT DISTINCT - col2 - + 94 / - CAST ( NULL AS INTEGER ) AS col2, + 78 col2 FROM tab0 AS cor0 WHERE NOT NULL = - CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + col1 + - ( col0 ) * 2 / ( - 48 ) / + - col1 AND + col0
----

query I rowsort
SELECT ALL col0 * 30 AS col0 FROM tab0 AS cor0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT + + SUM( ( col0 ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2204
SELECT + + SUM ( ( col0 ) ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + ( + - col0 ) + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + ( + - col0 ) + + col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2206
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT + MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2207
SELECT + MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT - COUNT( * ) + + + COUNT( * ) FROM tab0, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2209
SELECT - COUNT ( * ) + + + COUNT ( * ) FROM tab0, tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 + 46 AS col1 FROM tab0 WHERE NOT + + col2 + - col2 * col1 >= - - 49 * - 57
----
93

query I rowsort
SELECT DISTINCT 87 + 53 AS col0 FROM tab0
----
140

query I rowsort
SELECT ALL - col1 + + 55 AS col2 FROM tab0
----
-26
34
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + ( col0 ) * - 6 FROM tab0
----
-522
-582
-90

query I rowsort
SELECT 75 + 86 FROM tab1
----
161
161
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT COUNT( * ) * + 29 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT COUNT ( * ) * + 29 FROM tab2
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * col2 col2 FROM tab0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL COUNT( - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL COUNT ( - col1 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + 10 * - col0 + col0 FROM tab1 WHERE NULL IS NULL
----
-459
-765
-819

query I rowsort
SELECT + col1 + 90 * col0 FROM tab2
----
4191
5837
6817

query I rowsort
SELECT ALL + 35 AS col0 FROM tab2 WHERE col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT 87 DIV col1 FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-2223
SELECT 87 / col1 FROM tab1
----
1
17
6

query I rowsort
SELECT ALL 21 - col0 FROM tab2
----
-25
-43
-54

query I rowsort
SELECT 39 AS col2 FROM tab1 WHERE col1 IN ( - col0 * col1 + col0 * - col2 )
----

query I rowsort
SELECT ALL 94 * col0 AS col2 FROM tab1 WHERE ( ( - col1 ) * + 26 ) NOT BETWEEN 17 AND NULL
----
4794
7990
8554

query I rowsort
SELECT - col1 - 63 FROM tab1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col1 / col0 AND 26
----

query I rowsort
SELECT ALL + 4 * - col0 AS col2 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( - col0 * - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * col1 - 70 AS col2 FROM tab2 WHERE col0 * - ( - 78 ) + col1 * + col2 IS NOT NULL
----
1103
3010
3816

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 80 * 59 - 32 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL COUNT( * ) + + 98 AS col2 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL COUNT ( * ) + + 98 AS col2 FROM tab0
----
101

query I rowsort
SELECT ALL 97 * - col1 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
-2037
-7857
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 82 - col2 * col1
----

query I rowsort
SELECT - col0 * + 90 FROM tab0
----
-1350
-7830
-8730

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + - col1 NOT BETWEEN + ( - col0 ) AND col0 / - col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - MAX( ALL col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2240
SELECT - MAX ( ALL col1 ) AS col0 FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 / ( 59 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 - col1 * col0 FROM tab1
----
-330
-4182
-619

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE 32 BETWEEN - col1 + - col0 * + col2 AND - ( + col2 ) * 88 + 19
----

query I rowsort
SELECT ALL - col1 * - col0 + - 13 FROM tab1
----
412
4264
701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE + col1 + col2 * CAST( NULL AS SIGNED ) BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 + col2 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2246
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL 5 * - COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL 5 * - COUNT ( * ) FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL = 12
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL = 12
----
0

query I rowsort
SELECT DISTINCT + 33 * ( + col0 ) FROM tab0
----
2871
3201
495

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT - MAX( ALL col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - MAX ( ALL col2 ) FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2251
SELECT ALL * FROM tab1 WHERE NOT - 29 + col1 <> ( CAST( col1 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-2251
SELECT ALL * FROM tab1 WHERE NOT - 29 + col1 <> ( CAST ( col1 AS INTEGER ) * col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 31 * col2 NOT BETWEEN ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2253
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) / col2 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2253
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) / col2 col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 NOT IN ( col2 )
----

query I rowsort
SELECT ( 68 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 19 * + 28 ) IS NOT NULL
----

query I rowsort
SELECT - + 30 * 35 AS col1 FROM tab1 AS cor0
----
-1050
-1050
-1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT DISTINCT + ( CAST( col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 95 + + 41 AND - col2 * - col1
----

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT + ( CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN 95 + + 41 AND - col2 * - col1
----

query I rowsort
SELECT + ( - 36 ) AS col1 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2259
SELECT ALL * FROM tab1 cor0 WHERE - col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2259
SELECT ALL * FROM tab1 cor0 WHERE - col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col1 FROM tab1 cor0
----
-2
-2
-2

query I rowsort
SELECT ALL - col0 + col2 AS col2 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL - 59 * col2 + col2 AS col1 FROM tab0
----
-2726
-5742
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT - MIN( DISTINCT - - col1 ) * COUNT( * ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-2263
SELECT - MIN ( DISTINCT - - col1 ) * COUNT ( * ) FROM tab2
----
-153

query I rowsort
SELECT DISTINCT - 22 + - 34 FROM tab2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2265
SELECT ALL col2 + 76 + col0 DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
136
145
172

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL col2 + 76 + col0 / CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
136
145
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NULL BETWEEN NULL AND - col1 + col0
----

query I rowsort
SELECT ALL col1 + + col1 * - col2 FROM tab1
----
-1330
-290
-3149

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2268
SELECT ALL * FROM tab0 WHERE NOT CAST( ( 29 ) AS SIGNED ) * col0 > + 82
----

skipif mysql # not compatible
query III rowsort label-2268
SELECT ALL * FROM tab0 WHERE NOT CAST ( ( 29 ) AS INTEGER ) * col0 > + 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + col0 * - ( + col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + col0 * - ( + col0 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 80 AS col0 FROM tab0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT ALL COUNT( + col1 ) DIV - 52 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL COUNT ( + col1 ) / - 52 AS col2 FROM tab2
----
0

query I rowsort
SELECT + 8 + 3 - col0 AS col2 FROM tab2 AS cor0
----
-35
-53
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2273
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND ( NULL ) AND NOT NULL NOT BETWEEN NULL AND col0 * + col0
----

skipif mysql # not compatible
query III rowsort label-2273
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND ( NULL ) AND NOT NULL NOT BETWEEN NULL AND col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT - + CAST( NULL AS SIGNED ) * col0 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT - + CAST ( NULL AS INTEGER ) * col0 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT CAST( + col2 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-2275
SELECT CAST ( + col2 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT + MIN( DISTINCT - 16 ) + COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2276
SELECT + MIN ( DISTINCT - 16 ) + COUNT ( * ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - col2 * - 34 AS col2 FROM tab1 AS cor0
----
2006
2312
3264

query II rowsort
SELECT ALL 34, - ( + col2 ) AS col1 FROM tab1
----
34
-59
34
-68
34
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT + COUNT( * ) - - MAX( ALL + + col0 ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT + COUNT ( * ) - - MAX ( ALL + + col0 ) FROM tab0
----
100

query I rowsort
SELECT DISTINCT - col1 * col0 - + 81 FROM tab0 AS cor0
----
-1296
-178
-1908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT DISTINCT + 25 * + - SUM( - 0 ) DIV MIN( + col2 DIV col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + 25 * + - SUM ( - 0 ) / MIN ( + col2 / col2 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 58 - + 44 + col2 * 90 AS col2 FROM tab2 AS cor0
----
2084
3614
5234

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT ( + col2 ) > col2 + col1
----
-3

skipif mysql # not compatible
query I rowsort label-2283
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( + col2 ) > col2 + col1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0, col0 col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + MIN( - 54 ) AS col2 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2285
SELECT + MIN ( - 54 ) AS col2 FROM tab0 AS cor0
----
-54

query II rowsort
SELECT DISTINCT + col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2287
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) = col1
----

skipif mysql # not compatible
query III rowsort label-2287
SELECT ALL * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) = col1
----

query II rowsort
SELECT ALL - 79, - 18 * col2 AS col1 FROM tab0 AS cor0
----
-79
-1782
-79
-180
-79
-846

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 / col2 * 53 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 81 + + - 68 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2291
SELECT col0 DIV - + col0 + - + col0 AS col1 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-2291
SELECT col0 / - + col0 + - + col0 AS col1 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NOT - col1 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2293
SELECT col0 * + - CAST( - col2 AS SIGNED ) * - + ( - col2 ) FROM tab2
----
102400
24334
252300

skipif mysql # not compatible
query I rowsort label-2293
SELECT col0 * + - CAST ( - col2 AS INTEGER ) * - + ( - col2 ) FROM tab2
----
102400
24334
252300

query I rowsort
SELECT ALL col2 + col1 FROM tab2 WHERE NOT - 83 * 64 + 39 IS NULL
----
117
125
74

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col1 * + col1 AND + 46
----

query I rowsort
SELECT ALL - col0 * - + col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + - col0
----

query I rowsort
SELECT - - ( + 59 ) FROM tab2 cor0
----
59
59
59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2299
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT IN ( + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2299
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT - - CAST( - 78 AS SIGNED ) col0 FROM tab1 cor0
----
-78
-78
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2300
SELECT - - CAST ( - 78 AS INTEGER ) col0 FROM tab1 cor0
----
-78
-78
-78

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN + - 29 AND - + col2 / - col2
----
91
47
68

query I rowsort
SELECT DISTINCT 42 * 68 * + + col2 FROM tab1
----
168504
194208
274176

onlyif mysql # DIV for integer division: 
query I rowsort label-2303
SELECT ALL - 40 DIV + col1 FROM tab0
----
-1
-40
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL - 40 / + col1 FROM tab0
----
-1
-40
0

query I rowsort
SELECT ALL + 84 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL ( 47 ) + - 29 AS col0 FROM tab1 cor0 WHERE NOT ( col1 * 42 * - 70 * + + 56 * - 95 ) IS NULL
----
18
18
18

query I rowsort
SELECT col1 * - 69 * + + 74 + col2 + - - 4 * col0 AS col2 FROM tab2 cor0
----
-260199
-341744
-392866

query I rowsort
SELECT col2 + - 17 FROM tab1 AS cor0
----
42
51
79

query I rowsort
SELECT DISTINCT ( - + col0 ) * + ( - 4 ) AS col1 FROM tab2 AS cor0
----
184
256
300

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - - col1 AND - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - 47 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2310
SELECT - 47 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-50

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * + col1 + col1 * - col2 / + 59 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + 69 AS col2 FROM tab2
----
115
133
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT ALL 50 FROM tab2 WHERE col2 * CAST( 20 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL 50 FROM tab2 WHERE col2 * CAST ( 20 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 94 FROM tab0 WHERE - - 85 IS NULL
----

query II rowsort
SELECT DISTINCT + 84 AS col0, + col0 AS col1 FROM tab0
----
84
15
84
87
84
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT COUNT( * ) * 72 AS col2 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-2318
SELECT COUNT ( * ) * 72 AS col2 FROM tab1
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT DISTINCT MAX( ALL + CAST( col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT MAX ( ALL + CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 WHERE NULL < col0 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ( + 65 ) - + COUNT( col0 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2321
SELECT ( + 65 ) - + COUNT ( col0 ) FROM tab1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2322
SELECT - 80 - + - MAX( DISTINCT + 12 ) DIV + + MIN( DISTINCT + - col2 ) AS col1 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-2322
SELECT - 80 - + - MAX ( DISTINCT + 12 ) / + + MIN ( DISTINCT + - col2 ) AS col1 FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT 24 + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT 24 + COUNT ( * ) FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT DISTINCT + 79 * + ( + - 3 ) + - + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2324
SELECT DISTINCT + 79 * + ( + - 3 ) + - + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT MIN( + ( col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT MIN ( + ( col2 ) ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2326
SELECT ALL * FROM tab1 cor0 WHERE 99 NOT BETWEEN 34 * col1 * + CAST( NULL AS SIGNED ) AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2326
SELECT ALL * FROM tab1 cor0 WHERE 99 NOT BETWEEN 34 * col1 * + CAST ( NULL AS INTEGER ) AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - - col1 col0, - ( - col2 ) * - ( + col1 ) - + + col1 + - col1 AS col1 FROM tab0 AS cor0
----
210
-252
3807
-3969
99
-101

query I rowsort
SELECT DISTINCT - ( + - 23 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT - col0 + + 74 - + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 >= col1
----
74
74
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + col2 * + 36 BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) IN ( col0 ) ) )
----

query I rowsort
SELECT - 98 * - - col1 FROM tab2
----
-4998
-6566
-7546

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2333
SELECT * FROM tab2 WHERE NOT + col1 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2333
SELECT * FROM tab2 WHERE NOT + col1 > CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT SUM( + col0 ) FROM tab1 WHERE NOT ( 96 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT SUM ( + col0 ) FROM tab1 WHERE NOT ( 96 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT - MIN( ALL col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT - MIN ( ALL col1 ) AS col1 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - col0 ) col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2337
SELECT + ( - col1 ) * - - col1 * - CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
-308367
-4410
-99

skipif mysql # not compatible
query I rowsort label-2337
SELECT + ( - col1 ) * - - col1 * - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - COUNT( ALL - 10 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2338
SELECT - COUNT ( ALL - 10 ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL - COUNT( * ) + + 77 * + 25 - - 89 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
2011

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - COUNT ( * ) + + 77 * + 25 - - 89 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
2011

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL MAX( + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL MAX ( + col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 * 15 / - col0 + + col2 < NULL
----

query I rowsort
SELECT ALL + col0 + - 24 + - col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 > ( col1 - - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 + - col2 * + 18 ) BETWEEN col0 - - col2 AND + 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT - COUNT( * ) - - - 40 FROM tab0 AS cor0 WHERE NOT NULL = 27 - + col0
----
-40

skipif mysql # not compatible
query I rowsort label-2346
SELECT - COUNT ( * ) - - - 40 FROM tab0 AS cor0 WHERE NOT NULL = 27 - + col0
----
-40

query II rowsort
SELECT ALL + + 67 AS col0, + col2 FROM tab2 AS cor0
----
67
23
67
40
67
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 NOT IN ( + 42, - 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT + ( SUM( + - 29 ) ) AS col1 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-2349
SELECT + ( SUM ( + - 29 ) ) AS col1 FROM tab0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2350
SELECT * FROM tab0 AS cor0 WHERE - col0 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2350
SELECT * FROM tab0 AS cor0 WHERE - col0 >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 11 AND - 50
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE + ( - 98 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > + col0
----

query I rowsort
SELECT ALL 3 + + col2 FROM tab0 AS cor0
----
102
13
50

query I rowsort
SELECT DISTINCT - col2 * - + col1 * + - col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + col0 + + + ( 97 ) AS col0 FROM tab0 AS cor0
----
112
184
194

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT + col1 DIV + - 54 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2357
SELECT + col1 / + - 54 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT COUNT( DISTINCT col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2358
SELECT COUNT ( DISTINCT col2 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2360
SELECT - 68 * CAST( NULL AS DECIMAL ) - + - ( - COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT - 68 * CAST ( NULL AS REAL ) - + - ( - COUNT ( * ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 45 - + 16 <= NULL AND NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT COUNT( * ) FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2362
SELECT COUNT ( * ) FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col1 col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT ALL + 95 * - col0 * col0 FROM tab1
----
-247095
-686375
-786695

onlyif mysql # DIV for integer division: 
query II rowsort label-2365
SELECT - - col0 + - 92 DIV - - 94 AS col1, 96 AS col1 FROM tab2 AS cor0
----
46
96
64
96
75
96

skipif mysql # not compatible
query II rowsort label-2365
SELECT - - col0 + - 92 / - - 94 AS col1, 96 AS col1 FROM tab2 AS cor0
----
46
96
64
96
75
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT DISTINCT + 34 DIV col0 - + col2 + - + col2 FROM tab0 AS cor0
----
-198
-20
-92

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + 34 / col0 - + col2 + - + col2 FROM tab0 AS cor0
----
-198
-20
-92

query I rowsort
SELECT DISTINCT col0 * + - col0 * + 97 FROM tab0
----
-21825
-734193
-912673

query II rowsort
SELECT 79 AS col0, + 91 AS col0 FROM tab0
----
79
91
79
91
79
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT ALL - 21 DIV 92 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - 21 / 92 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2371
SELECT DISTINCT + - SUM( - 34 ) AS col2, ( 26 ) FROM tab1 AS cor0
----
102
26

skipif mysql # not compatible
query II rowsort label-2371
SELECT DISTINCT + - SUM ( - 34 ) AS col2, ( 26 ) FROM tab1 AS cor0
----
102
26

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( + col2 + + 91 ) AND ( 52 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2373
SELECT ALL COUNT( * ) DIV + 64, - 74 col0 FROM tab1
----
0
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2373
SELECT ALL COUNT ( * ) / + 64, - 74 col0 FROM tab1
----
0
-74

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 84 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL - SUM( ( 83 ) ) AS col1 FROM tab2, tab0 AS cor0
----
-747

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL - SUM ( ( 83 ) ) AS col1 FROM tab2, tab0 AS cor0
----
-747

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( + col2 ) ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL - + COUNT( DISTINCT col2 ) * - - ( + + 83 ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL - + COUNT ( DISTINCT col2 ) * - - ( + + 83 ) FROM tab0 AS cor0
----
-249

query I rowsort
SELECT ALL + 15 * + - col1 AS col2 FROM tab0
----
-1215
-15
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT ALL col0 + + CAST( NULL AS SIGNED ) - - CAST( - - col2 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) - - CAST ( - - col2 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query II rowsort
SELECT ALL - col0, col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 87 NOT BETWEEN col0 AND - 45 / - + 46 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT - 81 * + col0 NOT BETWEEN + - 61 AND NULL
----

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL - - MAX( DISTINCT + 8 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - - MAX ( DISTINCT + 8 ) FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT - 8 * - - col2 + + col2 FROM tab0 AS cor0
----
-329
-693
-70

query I rowsort
SELECT ALL - + ( + col2 ) * - - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2388
SELECT DISTINCT + - col0 * ( - + col2 ) * - col0 + ( 6 ) + - CAST( + col2 AS SIGNED ) * col2 DIV - col2 AS col2 FROM tab2 AS cor0
----
-163794
-326186
-48639

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT + - col0 * ( - + col2 ) * - col0 + ( 6 ) + - CAST ( + col2 AS INTEGER ) * col2 / - col2 AS col2 FROM tab2 AS cor0
----
-163794
-326186
-48639

query I rowsort
SELECT ALL + 6 * col0 AS col1 FROM tab2 WHERE NOT - col1 + - 76 NOT BETWEEN - col2 AND + + 15 + - col2 OR - col2 < col1
----
276
384
450

query I rowsort
SELECT ALL ( + - col0 ) + - col2 AS col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - col2 * + 54 + - col0 + - 30 FROM tab2
----
-1318
-2254
-3237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT CAST( + + ( + col0 ) AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2392
SELECT CAST ( + + ( + col0 ) AS INTEGER ) FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 / + + col2 * + ( + col1 ) + col0 NOT IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT DISTINCT col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) < - CAST( + 63 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2394
SELECT DISTINCT col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) < - CAST ( + 63 AS INTEGER )
----

query I rowsort
SELECT ALL + - 1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL - col1 * - - 69 FROM tab0
----
-1449
-5589
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - + col0 + col2 - 59 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-82
-85

query II rowsort
SELECT + 32 AS col2, - col2 + + col0 AS col2 FROM tab1
----
32
-45
32
23
32
26

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 0 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT - COUNT( * ) * 53 col0 FROM tab2
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2403
SELECT - COUNT ( * ) * 53 col0 FROM tab2
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + SUM( + col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2404
SELECT + SUM ( + col0 ) AS col2 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col2 * + + col2 col1 FROM tab0
----
1000
103823
970299

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT ALL - ( + col2 ) * col1 DIV - col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - ( + col2 ) * col1 / - col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT COUNT( ALL - + 97 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2407
SELECT COUNT ( ALL - + 97 ) col1 FROM tab1
----
3

query I rowsort
SELECT 49 * 98 FROM tab1
----
4802
4802
4802

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 * 43 > - col0
----
0

skipif mysql # not compatible
query I rowsort label-2409
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 * 43 > - col0
----
0

query I rowsort
SELECT - 31 - - AVG ( ALL - - col2 ) * - 50 AS col2 FROM tab1 WHERE NOT NULL BETWEEN + - ( - - 29 ) AND + - 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2411
SELECT DISTINCT - 77 DIV + MAX( + + col1 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT - 77 / + MAX ( + + col1 ) AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2412
SELECT - CAST( 16 AS SIGNED ) * - SUM( DISTINCT + + 43 ) AS col0 FROM tab1
----
688

skipif mysql # not compatible
query I rowsort label-2412
SELECT - CAST ( 16 AS INTEGER ) * - SUM ( DISTINCT + + 43 ) AS col0 FROM tab1
----
688

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 38 AND col1 * + - ( - - 43 ) + - col1
----

query I rowsort
SELECT ALL - + 2 AS col2 FROM tab1 AS cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * - - col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT + + col1 FROM tab1 cor0 WHERE 18 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - 20 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 68 * 67 * + col0 FROM tab0 AS cor0
----
-396372
-441932
-68340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - - 30 AS col1, 25 col0 FROM tab1 AS cor0
----
1530
25
2550
25
2730
25

query II rowsort
SELECT - + col0 * col2 * - col1, 17 AS col2 FROM tab0 AS cor0
----
18270
17
57105
17
9603
17

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL + MAX( DISTINCT col2 ) + - 31 AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL + MAX ( DISTINCT col2 ) + - 31 AS col2 FROM tab1
----
65

query II rowsort
SELECT + col1 - col0 + + col1, + col0 * - 58 AS col2 FROM tab2
----
56
-2668
59
-4350
90
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT - MAX( - col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2425
SELECT DISTINCT - MAX ( - col1 ) col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT + COUNT( ALL + col2 ) + + MAX( ALL - ( + col2 ) ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + COUNT ( ALL + col2 ) + + MAX ( ALL - ( + col2 ) ) FROM tab0
----
-7

query I rowsort
SELECT DISTINCT + col1 - - + col2 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL - COUNT( * ) - - MIN( - 16 ) + 41 * - 71 FROM tab1
----
-2930

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - COUNT ( * ) - - MIN ( - 16 ) + 41 * - 71 FROM tab1
----
-2930

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col1 * + col0 + col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT col2 * - col2 / + col0 / + + CAST( NULL AS SIGNED ) * + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT col2 * - col2 / + col0 / + + CAST ( NULL AS INTEGER ) * + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 + col0 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

query II rowsort
SELECT DISTINCT - col1 * - col0 AS col1, col1 FROM tab0
----
1215
81
1827
21
97
1

query I rowsort
SELECT ALL 62 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= col1 * + 13
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 75 * - - col0 < + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT ALL - ( col0 ) DIV + col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - ( col0 ) / + col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2436
SELECT - + 67 DIV + CAST( + 26 AS SIGNED ) FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2436
SELECT - + 67 / + CAST ( + 26 AS INTEGER ) FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT - COUNT( * ) * + 25 AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2437
SELECT - COUNT ( * ) * + 25 AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 + - ( col0 ) + + col2 IS NULL
----

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL MAX( - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL MAX ( - col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT DISTINCT 87 DIV col2 * + col1 * col0 + + 45 AS col1 FROM tab0
----
1260
14661
45

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT 87 / col2 * + col1 * col0 + + 45 AS col1 FROM tab0
----
1260
14661
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT + 83 + + col0 FROM tab0 WHERE NOT + + ( - CAST( - col0 AS SIGNED ) ) * 55 * col1 * col1 + + col0 - col0 NOT BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 83 + + col0 FROM tab0 WHERE NOT + + ( - CAST ( - col0 AS INTEGER ) ) * 55 * col1 * col1 + + col0 - col0 NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2443
SELECT * FROM tab1 WHERE NOT NULL = CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-2443
SELECT * FROM tab1 WHERE NOT NULL = CAST ( NULL AS INTEGER ) * col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * - col1 NOT BETWEEN - 98 AND - - 71
----
51
14
96
91
47
68

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - 79 * col0 NOT IN ( - + col1 )
----

query I rowsort
SELECT ALL 54 * - 66 AS col0 FROM tab2
----
-3564
-3564
-3564

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 69 FROM tab1
----
4071
4692
6624

query I rowsort
SELECT col2 + + col2 * + - col0 + - col1 AS col1 FROM tab1
----
-4814
-4961
-6167

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - - MAX( - 89 ) AS col0 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-2450
SELECT - - MAX ( - 89 ) AS col0 FROM tab0 AS cor0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT DISTINCT + - 17 DIV - - COUNT( * ) + 48 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + - 17 / - - COUNT ( * ) + 48 FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT col2 > - col2 / 93 + ( - col0 ) * 24 * col2
----

query I rowsort
SELECT DISTINCT - + 0 + - - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT col1 * - + 18 + - 8 + - + col0 * - + col0 AS col1 FROM tab1
----
2341
7127
7427

query I rowsort
SELECT ALL + col1 + - + ( col1 ) AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT - COUNT( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2456
SELECT - COUNT ( * ) FROM tab1 WHERE + col1 IS NOT NULL
----
-3

query I rowsort
SELECT - col2 + 55 + - col2 - col0 * col0 FROM tab0
----
-264
-7534
-9552

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 63 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 56 col2 FROM tab2 AS cor0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL MAX( DISTINCT - 81 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL MAX ( DISTINCT - 81 ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT ( 67 ) + - ( + col2 ) AS col2 FROM tab2
----
27
44
9

query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab2 WHERE NOT NULL <> col2 * - 97 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT + COUNT( * ) * + SUM( DISTINCT - col2 ) FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-2464
SELECT + COUNT ( * ) * + SUM ( DISTINCT - col2 ) FROM tab2
----
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT 9 DIV 58 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT 9 / 58 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 42 FROM tab0 WHERE col1 / - col0 NOT IN ( + - 86 )
----
42
42
42

query I rowsort
SELECT - col0 * - col2 * 71 * + col0 FROM tab1
----
17728416
30265525
39980668

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2468
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( - CAST( + 87 AS DECIMAL ), col2, - 3 )
----

skipif mysql # not compatible
query III rowsort label-2468
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( - CAST ( + 87 AS REAL ), col2, - 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT SUM( ALL ( col0 ) ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2469
SELECT SUM ( ALL ( col0 ) ) AS col1 FROM tab0
----
199

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT 99 FROM tab2 AS cor0 WHERE col1 * - col1 NOT BETWEEN col0 + + 64 AND col1 - + col1
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( ( 70 ), + 3 * + col2, 20, + 77, ( - 79 ) )
----

query I rowsort
SELECT DISTINCT - col2 * - + col0 + + 14 + + + col2 FROM tab2 AS cor0 WHERE + 25 IS NOT NULL
----
1095
2614
4422

query II rowsort
SELECT ALL + - col0 AS col2, 94 FROM tab0 AS cor0
----
-15
94
-87
94
-97
94

query II rowsort
SELECT ( + col0 ), - col2 + col2 FROM tab0
----
15
0
87
0
97
0

query I rowsort
SELECT ALL 78 + - - col1 FROM tab2
----
129
145
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT col1 * - col1 * - - ( - + 39 ) * ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT col1 * - col1 * - - ( - + 39 ) * ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - 53 AS col2 FROM tab1
----
15
43
6

query I rowsort
SELECT ALL + ( col0 ) FROM tab0 WHERE NOT NULL <= - ( - + 39 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2480
SELECT ALL 98 * + ( - CAST( NULL AS DECIMAL ) ) * col2 * - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL 98 * + ( - CAST ( NULL AS REAL ) ) * col2 * - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL COUNT( * ) * COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL + + 86 AS col2 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2483
SELECT - - ( + COUNT( * ) ) + + MIN( DISTINCT col1 ) AS col2, + 58 FROM tab2 cor0
----
54
58

skipif mysql # not compatible
query II rowsort label-2483
SELECT - - ( + COUNT ( * ) ) + + MIN ( DISTINCT col1 ) AS col2, + 58 FROM tab2 cor0
----
54
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2484
SELECT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query II rowsort
SELECT 47 AS col2, + col2 AS col1 FROM tab2
----
47
23
47
40
47
58

query II rowsort
SELECT DISTINCT + col1, col0 AS col2 FROM tab0 WHERE 33 / - + 93 IS NOT NULL
----
1
97
21
87
81
15

query I rowsort
SELECT ALL - 21 * + 95 * col1 FROM tab0 cor0
----
-161595
-1995
-41895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT DISTINCT + 82 - + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
129
87
96

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT + 82 - + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT DISTINCT + col0 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL - + 30 * + - col0 - + - col0 FROM tab0 AS cor0
----
2697
3007
465

onlyif mysql # DIV for integer division: 
query I rowsort label-2491
SELECT ALL 32 DIV - 2 AS col2 FROM tab2 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL 32 / - 2 AS col2 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - 0 - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 41 <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT CAST( + col1 AS SIGNED ) - ( - 47 ) AS col2 FROM tab2 AS cor0
----
114
124
98

skipif mysql # not compatible
query I rowsort label-2494
SELECT CAST ( + col1 AS INTEGER ) - ( - 47 ) AS col2 FROM tab2 AS cor0
----
114
124
98

query I rowsort
SELECT 64 - + col1 AS col1 FROM tab0 AS cor0
----
-17
43
63

query I rowsort
SELECT col1 - - + 12 AS col2 FROM tab1 AS cor0
----
17
26
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT - COUNT( + col1 ) * + - SUM( ALL col2 ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT - COUNT ( + col1 ) * + - SUM ( ALL col2 ) FROM tab0
----
468

query I rowsort
SELECT DISTINCT + 49 + - col2 AS col0 FROM tab1 WHERE - 46 IS NOT NULL
----
-10
-19
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT ALL MIN( ALL + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL MIN ( ALL + col2 ) AS col0 FROM tab1
----
59

query II rowsort
SELECT + col0, + 93 * col1 FROM tab1 AS cor0
----
51
1302
85
465
91
4371

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL MAX( ALL - - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL MAX ( ALL - - col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + 99
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2503
SELECT + - SUM( DISTINCT + 12 ) * 69 * 91 DIV - 72 AS col1 FROM tab0 AS cor0
----
1046

skipif mysql # not compatible
query I rowsort label-2503
SELECT + - SUM ( DISTINCT + 12 ) * 69 * 91 / - 72 AS col1 FROM tab0 AS cor0
----
1046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, 64 AS col0 FROM tab0 AS cor0
----
15
64
87
64
97
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col0 AND col1 / - 62
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT ALL - + COUNT( ALL + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL - + COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2508
SELECT 39 DIV - + col0, + 33 * - + col2 * col1 * + - col0 AS col1 FROM tab1 AS cor0
----
0
2261952
0
827475
0
9597588

skipif mysql # not compatible
query II rowsort label-2508
SELECT 39 / - + col0, + 33 * - + col2 * col1 * + - col0 AS col1 FROM tab1 AS cor0
----
0
2261952
0
827475
0
9597588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT CAST( NULL AS SIGNED ) / - col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT CAST ( NULL AS INTEGER ) / - col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2510
SELECT DISTINCT 89 * col0 - col2 + - CAST( NULL AS SIGNED ) + 15 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT 89 * col0 - col2 + - CAST ( NULL AS INTEGER ) + 15 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL - ( + COUNT( * ) ) * + 6 * - - 41 col1 FROM tab1 AS cor0
----
-738

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2511
SELECT ALL - ( + COUNT ( * ) ) * + 6 * - - 41 col1 FROM tab1 AS cor0
----
-738

query I rowsort
SELECT - 13 + + col1 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1186
-3093
-3899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT ALL ( + - col1 ) DIV - col2 - - + col0 + - 92 FROM tab1
----
-1
-41
-7

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL ( + - col1 ) / - col2 - - + col0 + - 92 FROM tab1
----
-1
-41
-7

query I rowsort
SELECT 69 + 45 + 17 * + + col0 AS col2 FROM tab2
----
1202
1389
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT ALL 72 FROM tab2 WHERE + + 24 + + - col2 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL 72 FROM tab2 WHERE + + 24 + + - col2 >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + COUNT( * ) * + 22 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2517
SELECT + COUNT ( * ) * + 22 FROM tab1
----
66

query I rowsort
SELECT ALL col0 * 42 * col1 AS col0 FROM tab2
----
206976
211050
98532

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - 75 * COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-2519
SELECT - 75 * COUNT ( * ) FROM tab2
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * 33 + + 77 col0 FROM tab2
----
135245
185702
69905

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT DISTINCT ( MIN( + - col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT ( MIN ( + - col2 ) ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + 5 * + col2 AS col1 FROM tab0 AS cor0
----
235
495
50

query I rowsort
SELECT DISTINCT 8 * - - col1 + col0 FROM tab0
----
105
255
663

query I rowsort
SELECT ALL + col0 * - col2 + + col0 * - - 28 FROM tab0
----
-285
-6887
1566

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < + col1 * - 25
----

query I rowsort
SELECT col1 + - 34 AS col1 FROM tab0
----
-13
-33
47

query I rowsort
SELECT DISTINCT col2 - + 97 AS col0 FROM tab0
----
-50
-87
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 90 = - col2 * - 6
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + 77 * COUNT( * ) FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2530
SELECT + 77 * COUNT ( * ) FROM tab1 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT 7 * + ( + COUNT( * ) ) AS col0, + AVG ( ALL + + 76 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2531
SELECT 7 * + ( + COUNT ( * ) ) AS col0, + AVG ( ALL + + 76 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT + MIN( DISTINCT - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT + MIN ( DISTINCT - - col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2533
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 <> + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2533
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 <> + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT - SUM( + 70 ) AS col1 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-2534
SELECT - SUM ( + 70 ) AS col1 FROM tab0
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT + col1 DIV 86 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2535
SELECT + col1 / 86 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 76 * - col1 FROM tab0 WHERE NOT ( + 20 IS NULL )
----
1596
6156
76

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 / - 8 + - + 74 <= - 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL + COUNT( DISTINCT + - 79 ) * 52 * COUNT( + col1 ) AS col2 FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + COUNT ( DISTINCT + - 79 ) * 52 * COUNT ( + col1 ) AS col2 FROM tab1 AS cor0
----
156

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 0 + 0 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2542
SELECT ALL + 92 AS col1, - COUNT( + 61 ) * + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1 cor0
----
92
-3

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL + 92 AS col1, - COUNT ( + 61 ) * + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 cor0
----
92
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9

query II rowsort
SELECT DISTINCT + - 92 AS col2, col1 * + col1 FROM tab1 cor0
----
-92
196
-92
2209
-92
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2545
SELECT ALL + col2 AS col0, + CAST( NULL AS SIGNED ) AS col0, + 81 * 5 + - + 58 AS col0 FROM tab0 AS cor0
----
9 values hashing to d0f158eccf29918b16a2cd2ad94f83be

skipif mysql # not compatible
query III rowsort label-2545
SELECT ALL + col2 AS col0, + CAST ( NULL AS INTEGER ) AS col0, + 81 * 5 + - + 58 AS col0 FROM tab0 AS cor0
----
9 values hashing to d0f158eccf29918b16a2cd2ad94f83be

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 95 + col1 >= + 42 * 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT ALL - ( col0 ) * + col2 * - + col0 + + 53 DIV col1 + + 56 AS col0 FROM tab2 AS cor0
----
163896
326306
48725

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL - ( col0 ) * + col2 * - + col0 + + 53 / col1 + + 56 AS col0 FROM tab2 AS cor0
----
163896
326306
48725

query II rowsort
SELECT col1 AS col0, 75 AS col0 FROM tab1 AS cor0
----
14
75
47
75
5
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT 50 * + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
150

skipif mysql # not compatible
query I rowsort label-2549
SELECT 50 * + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - MAX( DISTINCT 49 ) AS col0 FROM tab2 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2550
SELECT - MAX ( DISTINCT 49 ) AS col0 FROM tab2 cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT ALL - col2 + + - col0 - + 7 DIV + col1 AS col1 FROM tab0
----
-203
-62
-97

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - col2 + + - col0 - + 7 / + col1 AS col1 FROM tab0
----
-203
-62
-97

query I rowsort
SELECT ALL 73 + + col2 AS col1 FROM tab0
----
120
172
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT MAX( ALL - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT MAX ( ALL - - col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT - MIN( ALL - 89 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - MIN ( ALL - 89 ) FROM tab0
----
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 87 * 20 / col1 IS NOT NULL AND NULL IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2557
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) / + col0 + + 33 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2557
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) / + col0 + + 33 IS NULL
----

query I rowsort
SELECT ALL - - 48 * + 76 + - col1 AS col2 FROM tab2 AS cor0
----
3571
3581
3597

query I rowsort
SELECT ALL 4 + + col2 AS col1 FROM tab1
----
100
63
72

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + 99 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT + 88 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-2563
SELECT + 88 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
264

query I rowsort
SELECT DISTINCT + + 65 * col0 * - col0 * 34 FROM tab0 AS cor0
----
-16727490
-20793890
-497250

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN + col2 AND NULL OR + 35 <> - - col2 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + - 27 FROM tab2 AS cor0
----
-1242
-1728
-2025

query II rowsort
SELECT DISTINCT col0 * - col2 * + 96 AS col1, + 28 FROM tab2 AS cor0
----
-101568
28
-245760
28
-417600
28

query II rowsort
SELECT DISTINCT - 22 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + ( + col2 ) ) col0, + col0 * col1 FROM tab1 AS cor0 WHERE NOT + col0 * - - col2 IS NULL
----
59
425
68
4277
96
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL - + col0 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - + col0 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 74 AS col1 FROM tab1 AS cor0
----
-74
-74
-74

query II rowsort
SELECT DISTINCT col2 AS col0, + col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT - COUNT( * ) AS col0, - COUNT( ALL + + 91 ) + - 24 AS col2 FROM tab2 AS cor0
----
-3
-27

skipif mysql # not compatible
query II rowsort label-2573
SELECT - COUNT ( * ) AS col0, - COUNT ( ALL + + 91 ) + - 24 AS col2 FROM tab2 AS cor0
----
-3
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT - + 54 * - COUNT( * ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2574
SELECT - + 54 * - COUNT ( * ) FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT + ( + MAX( col1 ) ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2575
SELECT + ( + MAX ( col1 ) ) AS col0 FROM tab2
----
77

query II rowsort
SELECT ALL - 13 * 63 AS col1, - col0 + col1 FROM tab1
----
-819
-37
-819
-44
-819
-80

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT - col2 * col1 NOT BETWEEN + - 14 AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2578
SELECT + 30 DIV COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2578
SELECT + 30 / COUNT ( * ) FROM tab2
----
10

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 + - 12 < - ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * col0 col0 FROM tab2 AS cor0
----
1472
2048
2400

query I rowsort
SELECT 30 * + col0 AS col1 FROM tab1 AS cor0
----
1530
2550
2730

query I rowsort
SELECT ALL + 80 AS col2 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT 77 + + col2 AS col1 FROM tab1
----
136
145
173

query I rowsort
SELECT - - ( + - 2 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT - MIN( - col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2585
SELECT - MIN ( - col1 ) col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + col2 * 70 - + col1 * 19 AS col1 FROM tab1 AS cor0
----
3867
4035
6454

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * 74 col1 FROM tab1 AS cor0
----
3870
6349
6802

onlyif mysql # DIV for integer division: 
query I rowsort label-2588
SELECT - col2 * + - col2 DIV + col2 + + 13 AS col1 FROM tab1 AS cor0
----
109
72
81

skipif mysql # not compatible
query I rowsort label-2588
SELECT - col2 * + - col2 / + col2 + + 13 AS col1 FROM tab1 AS cor0
----
109
72
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col0 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + - 72 IS NULL AND 25 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + - 72 IS NULL AND 25 <> NULL
----
0

query I rowsort
SELECT DISTINCT 95 * - - 22 + + col1 + - col2 FROM tab2 AS cor0
----
2099
2118
2127

query I rowsort
SELECT DISTINCT + ( 86 ) AS col1 FROM tab2
----
86

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= 48
----

query I rowsort
SELECT - - ( 36 ) FROM tab2 WHERE col2 IN ( - - col2 / + 16 - + - col2, + 56, col1, + col1 * - col2 + - 5, - col0 - - - ( + ( - col2 ) ) )
----

query I rowsort
SELECT DISTINCT + col1 + + + 3 FROM tab0
----
24
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT COUNT( * ) - + MAX( - col1 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT COUNT ( * ) - + MAX ( - col1 ) FROM tab2
----
54

query I rowsort
SELECT ( + 97 ) AS col1 FROM tab0
----
97
97
97

query I rowsort
SELECT + + 88 FROM tab0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 63 col1 FROM tab2
----
2898
4032
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT - MIN( + + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2600
SELECT - MIN ( + + col2 ) FROM tab2
----
-23

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE col1 = - - col1 * col1
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col2, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT + - col1 * - - col1 + col1 - col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT + 57 * + MAX( DISTINCT - + col1 ) * 62 FROM tab1
----
-17670

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + 57 * + MAX ( DISTINCT - + col1 ) * 62 FROM tab1
----
-17670

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 39 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2606
SELECT SUM( DISTINCT + ( - - col2 ) ) AS col2, COUNT( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
223
3

skipif mysql # not compatible
query II rowsort label-2606
SELECT SUM ( DISTINCT + ( - - col2 ) ) AS col2, COUNT ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
223
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2607
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2607
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT col1, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2609
SELECT DISTINCT + 52 * 59 DIV + COUNT( * ) FROM tab0
----
1022

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT + 52 * 59 / + COUNT ( * ) FROM tab0
----
1022

query I rowsort
SELECT + col0 * 25 AS col2 FROM tab2
----
1150
1600
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT + COUNT( * ) * COUNT( * ) * - + 57 FROM tab1
----
-513

skipif mysql # not compatible
query I rowsort label-2611
SELECT + COUNT ( * ) * COUNT ( * ) * - + 57 FROM tab1
----
-513

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + - - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT 22 DIV - + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2613
SELECT 22 / - + col1 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT + + col0, col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT DISTINCT + + 9 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + + 9 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + - ( - col2 ) col1, - 17 AS col2 FROM tab0 AS cor0
----
-77
-17
2
-17
32
-17

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = + 42
----

query II rowsort
SELECT 37 + + col1 AS col2, col1 AS col1 FROM tab1
----
42
5
51
14
84
47

query I rowsort
SELECT DISTINCT + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL - SUM( ALL + 0 ) FROM tab0 AS cor0 WHERE NOT col1 * - col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL - SUM ( ALL + 0 ) FROM tab0 AS cor0 WHERE NOT col1 * - col1 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 76 * col2 * - 31 NOT BETWEEN + col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col0 ) * - 85 AS col2 FROM tab1 AS cor0
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT - SUM( ALL - 96 ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2624
SELECT - SUM ( ALL - 96 ) FROM tab2 AS cor0
----
288

query I rowsort
SELECT DISTINCT - col1 + + 82 * 47 AS col0 FROM tab2
----
3777
3787
3803

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL - COUNT( * ) - 66 * 35 FROM tab1
----
-2313

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - COUNT ( * ) - 66 * 35 FROM tab1
----
-2313

query I rowsort
SELECT col2 + - 1 AS col1 FROM tab2
----
22
39
57

query I rowsort
SELECT DISTINCT col0 + + - 7 * - + 37 AS col1 FROM tab0
----
274
346
356

query I rowsort
SELECT ALL + 24 - + 67 FROM tab0
----
-43
-43
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2630
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 - - 99 FROM tab2 AS cor0
----
150
166
176

onlyif mysql # aggregate syntax: 
query II rowsort label-2632
SELECT - 19 AS col0, + SUM( ( col2 ) ) col2 FROM tab2 AS cor0
----
-19
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2632
SELECT - 19 AS col0, + SUM ( ( col2 ) ) col2 FROM tab2 AS cor0
----
-19
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT 93 * - 39 * COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-32643

skipif mysql # not compatible
query I rowsort label-2633
SELECT 93 * - 39 * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-32643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 95 ) col2 FROM tab0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT - + SUM( 36 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-324

skipif mysql # not compatible
query I rowsort label-2635
SELECT - + SUM ( 36 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-324

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - col2, + ( col0 ) FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - ( + 82 ) AS col0 FROM tab1 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL + + COUNT( ALL - col2 ) * COUNT( * ) col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2640
SELECT ALL + + COUNT ( ALL - col2 ) * COUNT ( * ) col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + ( + COUNT( * ) ) col2 FROM tab2 WHERE NOT + + 83 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2642
SELECT ALL + ( + COUNT ( * ) ) col2 FROM tab2 WHERE NOT + + 83 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col2 FROM tab2 WHERE NOT - col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2645
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 + - CAST( NULL AS SIGNED ) * col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2645
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 + - CAST ( NULL AS INTEGER ) * col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 56 + - + 63 AS col2 FROM tab1
----
-119
-119
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL - MAX( + 20 ) AS col0 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - MAX ( + 20 ) AS col0 FROM tab2
----
-20

query I rowsort
SELECT ALL col1 + - - 6 AS col0 FROM tab0 AS cor0
----
27
7
87

query I rowsort
SELECT 42 + + 34 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT ALL + col2 * - 47 FROM tab0 AS cor0
----
-2209
-4653
-470

query I rowsort
SELECT ALL - 6 + col1 + + col2 + - + col0 * col1 * + 41 AS col1 FROM tab2 AS cor0
----
-201937
-205906
-96118

query I rowsort
SELECT DISTINCT + - 10 AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL 72 * + - col0 + + col2 AS col2 FROM tab0
----
-1033
-6254
-6885

query II rowsort
SELECT DISTINCT - col2 + 11, col2 + + - col1 AS col1 FROM tab2
----
-12
-28
-29
-37
-47
-9

query I rowsort
SELECT ALL + col1 + col0 * 7 AS col1 FROM tab0
----
186
630
680

query I rowsort
SELECT ALL + 51 - - col2 FROM tab2
----
109
74
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT - col1 DIV - col0 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2657
SELECT - col1 / - col0 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ( - col1 ) * + col2 - - ( - - col2 ) FROM tab1
----
-1248
-236
-3128

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 61 + - col1 + - 22 IS NULL
----

query I rowsort
SELECT + - 27 * - col1 * - - col0 + + - 85 * + 25 AS col2 FROM tab2 WHERE NOT ( ( ( NOT NULL >= + col0 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col0 FROM tab0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT ( NULL ) <> + 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2664
SELECT ALL * FROM tab0 AS cor0 WHERE - + 33 * - + 69 - - col1 NOT BETWEEN NULL AND + - CAST( + 87 AS SIGNED ) * - col2 OR NOT - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2664
SELECT ALL * FROM tab0 AS cor0 WHERE - + 33 * - + 69 - - col1 NOT BETWEEN NULL AND + - CAST ( + 87 AS INTEGER ) * - col2 OR NOT - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 41 FROM tab2 AS cor0 WHERE NULL IS NULL
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2666
SELECT + 10 / - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT + col2 + - 29 / col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2666
SELECT + 10 / - - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT + col2 + - 29 / col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT DISTINCT - ( col1 ) DIV - col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - ( col1 ) / - col1 FROM tab1 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2668
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 37 ) NOT IN ( - col0 * - col1 * + - col0, col1, + CAST( NULL AS SIGNED ) * - - ( - + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-2668
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 37 ) NOT IN ( - col0 * - col1 * + - col0, col1, + CAST ( NULL AS INTEGER ) * - - ( - + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT SUM( + 97 ) col0 FROM tab0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT SUM ( + 97 ) col0 FROM tab0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT DISTINCT + 57 + col1 FROM tab0
----
138
58
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT - ( + CAST( 35 AS SIGNED ) ) FROM tab1
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-2672
SELECT - ( + CAST ( 35 AS INTEGER ) ) FROM tab1
----
-35
-35
-35

query I rowsort
SELECT 14 * 66 AS col0 FROM tab2
----
924
924
924

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 78 * + - col2 IS NOT NULL
----

query I rowsort
SELECT - - 33 + - 32 + col1 AS col0 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2676
SELECT - - 18 + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT - - 18 + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 32 + - col1 FROM tab2 AS cor0
----
-109
-83
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2678
SELECT + - 79 + + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2678
SELECT + - 79 + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-76

query II rowsort
SELECT ALL col2, col2 FROM tab2 AS cor0 WHERE NOT + ( col0 ) * - 88 + col2 NOT IN ( 76, + col1 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 78 + - 20 FROM tab0
----
58
58
58

query I rowsort
SELECT ALL + 84 + col1 + - col1 FROM tab2
----
84
84
84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col1 ) + - col2 NOT BETWEEN + ( - 52 ) AND 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2684
SELECT DISTINCT + 88 DIV - MIN( ALL + col2 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + 88 / - MIN ( ALL + col2 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 73 * - col0 - - col2 AS col2 FROM tab1 AS cor0
----
-3627
-6146
-6575

onlyif mysql # aggregate syntax: 
query II rowsort label-2686
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
9
-3

skipif mysql # not compatible
query II rowsort label-2686
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
9
-3

query I rowsort
SELECT + col1 - 34 FROM tab0
----
-13
-33
47

query I rowsort
SELECT - 55 * + + col0 + + - 52 FROM tab0
----
-4837
-5387
-877

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT ALL - col0 DIV - 84 + - col0 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL - col0 / - 84 + - col0 AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col0 + + - 93 AS col0 FROM tab0
----
-6
-78
4

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT + - 52 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT + ( - 52 ) FROM tab1
----
-52

query I rowsort
SELECT ALL 84 * - col2 FROM tab2
----
-1932
-3360
-4872

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT DISTINCT COUNT( DISTINCT + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT COUNT ( DISTINCT + col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2697
SELECT * FROM tab2 cor0 WHERE NOT CAST( - 31 AS SIGNED ) BETWEEN + + ( - col0 ) + - col2 AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2697
SELECT * FROM tab2 cor0 WHERE NOT CAST ( - 31 AS INTEGER ) BETWEEN + + ( - col0 ) + - col2 AND ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 50 ) AS col1 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - - col2 * - col1 * - + 89 AS col2 FROM tab2 AS cor0
----
104397
274120
345854

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0 AS col0, + 81 + + + col1 * + - col2 FROM tab0 AS cor0
----
15
-3726
87
-129
97
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2702
SELECT * FROM tab2 WHERE - 75 + - 14 * - CAST( NULL AS SIGNED ) IN ( 9 * 24 + 77 )
----

skipif mysql # not compatible
query III rowsort label-2702
SELECT * FROM tab2 WHERE - 75 + - 14 * - CAST ( NULL AS INTEGER ) IN ( 9 * 24 + 77 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 25 <> - col1 * 33 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col2 ) FROM tab0 WHERE NOT - col1 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + 70 AS col1 FROM tab2
----
121
137
147

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT - col0 + 14 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT col1 * 71 + ( 44 + col1 ) DIV + 55 FROM tab2
----
3622
4759
5469

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT col1 * 71 + ( 44 + col1 ) / + 55 FROM tab2
----
3622
4759
5469

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) IN ( - 42 * + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT col2 + - 51 DIV - ( col1 * + col0 + 64 ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT col2 + - 51 / - ( col1 * + col0 + 64 ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - col1 / 10 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - col1 / 10 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL COUNT( - col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2712
SELECT ALL COUNT ( - col1 ) col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE col0 * 49 NOT BETWEEN + col2 * 66 AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT ALL + 63 FROM tab1 WHERE NOT + col0 BETWEEN 42 + - CAST( NULL AS SIGNED ) * - col2 AND - 54
----
63
63
63

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + 63 FROM tab1 WHERE NOT + col0 BETWEEN 42 + - CAST ( NULL AS INTEGER ) * - col2 AND - 54
----
63
63
63

query I rowsort
SELECT ( + col2 ) FROM tab2 WHERE NOT ( + 1 * + col1 + col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 50 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( 45 )
----

query I rowsort
SELECT 70 * 35 FROM tab1
----
2450
2450
2450

query I rowsort
SELECT - col1 * + 29 FROM tab2
----
-1479
-1943
-2233

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL MIN( ALL - 19 ) + COUNT( * ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL MIN ( ALL - 19 ) + COUNT ( * ) FROM tab1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ALL col0 - + col1 DIV + col0 AS col0 FROM tab0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL col0 - + col1 / + col0 AS col0 FROM tab0
----
10
87
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2723
SELECT ALL - ( - col2 ) * - CAST( - col2 + + 37 DIV col2 AS SIGNED ) FROM tab0
----
2209
70
9801

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - ( - col2 ) * - CAST ( - col2 + + 37 / col2 AS INTEGER ) FROM tab0
----
2209
70
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT MIN( + col1 ) * 10 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-2724
SELECT MIN ( + col1 ) * 10 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2725
SELECT MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - 67 < col2 / - col2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT SUM( ALL + 22 ) AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2727
SELECT SUM ( ALL + 22 ) AS col0 FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT ALL - 79 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 * col2 + - col0 * CAST( NULL AS SIGNED ) AND ( + CAST( NULL AS SIGNED ) * 12 )
----

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL - 79 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 * col2 + - col0 * CAST ( NULL AS INTEGER ) AND ( + CAST ( NULL AS INTEGER ) * 12 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 / + 43 + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT ALL + CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT 9 <= ( col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2731
SELECT ALL + CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT 9 <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT - COUNT( * ) * - 50 AS col0 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - COUNT ( * ) * - 50 AS col0 FROM tab1 AS cor0
----
150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 + 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2734
SELECT DISTINCT CAST( 54 AS SIGNED ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT CAST ( 54 AS INTEGER ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL <= col1 * col2
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL <= col1 * col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + ( ( - col0 ) ) col0 FROM tab0
----
0

query I rowsort
SELECT ALL - 85 - + 42 AS col1 FROM tab0
----
-127
-127
-127

query I rowsort
SELECT - 81 + - 5 AS col1 FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE - col2 * + col1 BETWEEN + 50 AND col0 - - col2
----

skipif mysql # not compatible
query I rowsort label-2739
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE - col2 * + col1 BETWEEN + 50 AND col0 - - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 / - 99 + - col0 ) IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + col0 ) - - 51 * col2 AS col2 FROM tab1 AS cor0
----
2924
3377
4845

query I rowsort
SELECT col0 * col1 + ( col0 ) FROM tab0 cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL + + COUNT( * ) - ( 84 ) * COUNT( * ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + + COUNT ( * ) - ( 84 ) * COUNT ( * ) FROM tab0 AS cor0
----
-249

query I rowsort
SELECT DISTINCT - 3 FROM tab1 cor0
----
-3

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT + - COUNT( 75 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2747
SELECT + - COUNT ( 75 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 82 * - ( + 31 ) AS col2 FROM tab1
----
2542
2542
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + COUNT( * ) * - - MAX( col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2749
SELECT + COUNT ( * ) * - - MAX ( col0 ) FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT SUM( - 66 ) AS col1 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-2750
SELECT SUM ( - 66 ) AS col1 FROM tab0
----
-198

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) < - col0 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - + 27 ) AS col1 FROM tab0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - + col1 < col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col0 * 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL + MAX( + col0 ) AS col2 FROM tab1 WHERE NOT col2 BETWEEN NULL AND + 89
----
51

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + MAX ( + col0 ) AS col2 FROM tab1 WHERE NOT col2 BETWEEN NULL AND + 89
----
51

query I rowsort
SELECT ALL + col0 * col0 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
1016
1739
943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT DISTINCT + + 35 DIV COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + + 35 / COUNT ( * ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT ALL 2 AS col1 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT - - ( - - col2 ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN ( - 4 * + col0 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT DISTINCT 75 * - COUNT( * ) FROM tab2 WHERE 6 * + 81 IS NOT NULL
----
-225

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT 75 * - COUNT ( * ) FROM tab2 WHERE 6 * + 81 IS NOT NULL
----
-225

query II rowsort
SELECT DISTINCT col0 AS col1, col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT COUNT( ALL + col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT COUNT ( ALL + col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col2 + 22 FROM tab2
----
45
62
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT 20 + - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-2765
SELECT 20 + - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2766
SELECT ALL COUNT( * ) * + - MIN( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL COUNT ( * ) * + - MIN ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT - COUNT( * ) * AVG ( DISTINCT col1 / + 18 ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT CAST( - 68 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT - COUNT ( * ) * AVG ( DISTINCT col1 / + 18 ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT CAST ( - 68 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT 12 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 + - - col1 + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 27 IN ( + ( col0 ) )
----

query II rowsort
SELECT - col1 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT ALL 69 AS col0, 16 * - 96 AS col2 FROM tab1 AS cor0
----
69
-1536
69
-1536
69
-1536

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND + ( - 41 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2773
SELECT - - 23 DIV MIN( - + 79 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT - - 23 / MIN ( - + 79 ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT + MIN( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - 66 ) col0 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE + - col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT DISTINCT col0 DIV + 82 + - col2 AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT col0 / + 82 + - col2 AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 1 * ( - + col0 ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT DISTINCT - 39 * + col2 + + 93 FROM tab0 WHERE NOT - col2 * + 66 / CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT - 39 * + col2 + + 93 FROM tab0 WHERE NOT - col2 * + 66 / CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT + col1 + 77 AS col0 FROM tab1
----
124
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + - COUNT( ALL - 46 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2781
SELECT + - COUNT ( ALL - 46 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT ALL + 35 + - + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + 35 + - + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 73 ) IN ( + 6 + - 15 )
----

query I rowsort
SELECT - col2 * col0 + ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

query I rowsort
SELECT DISTINCT + - 54 + 27 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( 45 * - ( col1 ) NOT BETWEEN col2 AND col2 * col1 + - 74 )
----
51
67
77

query I rowsort
SELECT - + 43 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 * - col1 AS col2 FROM tab0 AS cor0 WHERE col2 + ( + ( + col0 ) ) * + 51 >= col1 * 26
----
-210
-99

query I rowsort
SELECT ALL - col1 + - - col2 AS col2 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 83 ) BETWEEN ( col0 ) AND 63
----

query I rowsort
SELECT ALL col1 - + - col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT - 88 - - + ( + + col1 ) * col2 * + col2 AS col0 FROM tab2 AS cor0
----
123112
225300
26891

query I rowsort
SELECT - 48 * - ( + col1 ) - - + col2 AS col2 FROM tab1 AS cor0
----
2324
299
768

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 90 / - - 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2795
SELECT DISTINCT - - col1 AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2795
SELECT DISTINCT - - col1 AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT DISTINCT col2 * - col0 / col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2797
SELECT + ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - - MAX( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2798
SELECT - - MAX ( DISTINCT + - col1 ) AS col0 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT + - col0 DIV + col2 + - - 10 + + col0 AS col2 FROM tab2 AS cor0
----
54
73
84

skipif mysql # not compatible
query I rowsort label-2800
SELECT + - col0 / + col2 + - - 10 + + col0 AS col2 FROM tab2 AS cor0
----
54
73
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <> 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * - 98 + - - col2 col2 FROM tab0 cor0
----
4616
4653
4705

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT MAX( ALL - 36 ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-2803
SELECT MAX ( ALL - 36 ) FROM tab2
----
-36

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col0 * - 82 = NULL ) )
----

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN + col0 AND + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 75 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL + COUNT( col1 ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + COUNT ( col1 ) * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ( + - 53 ) * ( - COUNT( * ) ) AS col0 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-2811
SELECT ( + - 53 ) * ( - COUNT ( * ) ) AS col0 FROM tab1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL - MIN( ALL + 99 ) col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2812
SELECT ALL - MIN ( ALL + 99 ) col1 FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + - COUNT( * ) * - + 97 AS col0 FROM tab2 cor0
----
291

skipif mysql # not compatible
query I rowsort label-2813
SELECT + - COUNT ( * ) * - + 97 AS col0 FROM tab2 cor0
----
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 AS cor0 WHERE - col1 NOT IN ( + col0 )
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2815
SELECT - col2 + - - CAST( NULL AS DECIMAL ) - - + 72 AS col0 FROM tab2 WHERE NOT - col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2815
SELECT - col2 + - - CAST ( NULL AS REAL ) - - + 72 AS col0 FROM tab2 WHERE NOT - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT - COUNT( * ) * 86 * 77 * - - COUNT( * ) FROM tab2
----
-59598

skipif mysql # not compatible
query I rowsort label-2816
SELECT - COUNT ( * ) * 86 * 77 * - - COUNT ( * ) FROM tab2
----
-59598

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 BETWEEN + - 62 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2818
SELECT - - 10 + + 46, + CAST( NULL AS SIGNED ) * + + 79 * - col2 AS col0, + 53 AS col1 FROM tab2 cor0
----
9 values hashing to 78f42f65212c661f5a1eec769a7c6654

skipif mysql # not compatible
query III rowsort label-2818
SELECT - - 10 + + 46, + CAST ( NULL AS INTEGER ) * + + 79 * - col2 AS col0, + 53 AS col1 FROM tab2 cor0
----
9 values hashing to 78f42f65212c661f5a1eec769a7c6654

query I rowsort
SELECT + 16 FROM tab2 AS cor0 WHERE + col0 >= ( + col1 + + col1 * - col0 * + 29 )
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col0 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT ALL col1 + + ( col1 ) FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT DISTINCT - SUM( + + 95 ) + - AVG ( col1 ) FROM tab1 AS cor0 WHERE ( NULL IN ( - + 69 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT - SUM ( + + 95 ) + - AVG ( col1 ) FROM tab1 AS cor0 WHERE ( NULL IN ( - + 69 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL MAX( + ( + 72 ) ) * - - 28 col2 FROM tab2 AS cor0
----
2016

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2824
SELECT ALL MAX ( + ( + 72 ) ) * - - 28 col2 FROM tab2 AS cor0
----
2016

query I rowsort
SELECT + 76 + - + col2 FROM tab2 cor0 WHERE NULL < + 26
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 27 + - 80 IN ( - col0 / - col2 )
----

query I rowsort
SELECT - col1 + + ( + 93 ) FROM tab2
----
16
26
42

query I rowsort
SELECT col0 + - 23 AS col0 FROM tab0
----
-8
64
74

query I rowsort
SELECT ALL col2 + + 16 FROM tab0
----
115
26
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT ALL + 13 - - ( ( + col2 ) ) + - col0 DIV + 82 FROM tab1
----
109
71
80

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL + 13 - - ( ( + col2 ) ) + - col0 / + 82 FROM tab1
----
109
71
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT ALL + col1 + - col2 * 77 * + - ( + 95 ) * - CAST( + - col2 AS SIGNED ) + - 64 * - col0 FROM tab1
----
25468960
33830431
67418318

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + col1 + - col2 * 77 * + - ( + 95 ) * - CAST ( + - col2 AS INTEGER ) + - 64 * - col0 FROM tab1
----
25468960
33830431
67418318

query I rowsort
SELECT 42 * - col1 AS col2 FROM tab0
----
-3402
-42
-882

query II rowsort
SELECT col2 AS col0, col0 * - col1 AS col0 FROM tab0
----
10
-1827
47
-1215
99
-97

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab1 WHERE + - col2 IS NOT NULL
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 <> + col1
----

query I rowsort
SELECT ALL + - 80 + + col2 FROM tab2 AS cor0
----
-22
-40
-57

query I rowsort
SELECT DISTINCT + + 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
91

query I rowsort
SELECT DISTINCT - - 50 FROM tab0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT - 70 + + col2 DIV - 27 col0 FROM tab0
----
-70
-71
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2839
SELECT - 70 + + col2 / - 27 col0 FROM tab0
----
-70
-71
-73

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT - col2 + + - col2 - + - 16 + + 66 AS col0 FROM tab1
----
-110
-36
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT SUM( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT SUM ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - SUM( ALL - col0 ) col0 FROM tab2 AS cor0 WHERE NOT 74 < ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2844
SELECT - SUM ( ALL - col0 ) col0 FROM tab2 AS cor0 WHERE NOT 74 < ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2845
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) > + col0 + + CAST( + 52 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2845
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) > + col0 + + CAST ( + 52 AS INTEGER )
----

query I rowsort
SELECT + 6 FROM tab0 AS cor0 WHERE NOT + 17 BETWEEN - 52 AND - 86
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, + col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT COUNT( * ), 58 AS col1 FROM tab0
----
3
58

skipif mysql # not compatible
query II rowsort label-2848
SELECT COUNT ( * ), 58 AS col1 FROM tab0
----
3
58

query I rowsort
SELECT 25 * + - 40 AS col0 FROM tab2
----
-1000
-1000
-1000

query II rowsort
SELECT ALL col1, 75 * col1 AS col2 FROM tab2
----
51
3825
67
5025
77
5775

query I rowsort
SELECT 66 * + - col1 AS col2 FROM tab1
----
-3102
-330
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT ALL - 81 AS col0 FROM tab1 WHERE NOT ( col1 * + col0 * + col0 + - col2 + + col1 * - col2 * - col0 ) NOT IN ( 39 / + CAST( NULL AS SIGNED ) + 25 * + 1 )
----

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - 81 AS col0 FROM tab1 WHERE NOT ( col1 * + col0 * + col0 + - col2 + + col1 * - col2 * - col0 ) NOT IN ( 39 / + CAST ( NULL AS INTEGER ) + 25 * + 1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - col0 * - col0 * + + 51 FROM tab0 WHERE NOT + col1 + col0 IS NOT NULL
----

query II rowsort
SELECT - + col0, - col2 AS col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT + col0 * - 1 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT SUM( ALL - - ( + + 46 ) ) AS col2 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2858
SELECT SUM ( ALL - - ( + + 46 ) ) AS col2 FROM tab1 AS cor0
----
138

query II rowsort
SELECT ALL col0 * + col2 * + ( - + 57 ) * + col0, + 46 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT 71 * + - COUNT( * ) + - COUNT( * ) + + - COUNT( * ) FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT 71 * + - COUNT ( * ) + - COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * col1 + - ( - col2 ) col0 FROM tab2
----
3287
4346
4968

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT ALL - col0 DIV 78 + - + col1 AS col2 FROM tab0
----
-2
-22
-81

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL - col0 / 78 + - + col1 AS col2 FROM tab0
----
-2
-22
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT + + COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2863
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - - 74 * + COUNT( * ) FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2864
SELECT - - 74 * + COUNT ( * ) FROM tab0 AS cor0
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT DISTINCT - + 5 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - + 5 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NOT - + 74 * + 90 + + col0 - + - col1 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + ( - SUM( + col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2868
SELECT + ( - SUM ( + col0 ) ) FROM tab1 AS cor0
----
-227

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT DISTINCT + col1 col2, col1 DIV 80 - - col1 AS col1 FROM tab2 cor0
----
51
51
67
67
77
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2869
SELECT DISTINCT + col1 col2, col1 / 80 - - col1 AS col1 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2870
SELECT SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - col2 * - + ( + col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT COUNT( * ) * - 98 AS col2 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-2872
SELECT COUNT ( * ) * - 98 AS col2 FROM tab0 AS cor0
----
-294

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT DISTINCT - + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - + col2 / + col2 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2874
SELECT ALL COUNT( * ) AS col2, 13 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0
13

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL COUNT ( * ) AS col2, 13 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0
13

query II rowsort
SELECT ALL ( col2 ), col2 * + 27 * + - col2 FROM tab1
----
59
-93987
68
-124848
96
-248832

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT + MAX( DISTINCT + col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2876
SELECT DISTINCT + MAX ( DISTINCT + col0 ) col0 FROM tab1
----
91

query I rowsort
SELECT DISTINCT + col1 * - ( + col2 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT DISTINCT COUNT( * ) DIV - 28 + - - 6 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT COUNT ( * ) / - 28 + - - 6 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - 14 * + 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-210

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 87 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT MIN( + col0 ) + MIN( col0 ) FROM tab1 cor0
----
102

skipif mysql # not compatible
query I rowsort label-2881
SELECT MIN ( + col0 ) + MIN ( col0 ) FROM tab1 cor0
----
102

query I rowsort
SELECT + 89 + + 10 - + - 28 * + + 97 AS col2 FROM tab1 AS cor0
----
2815
2815
2815

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT + 58 > - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT ALL 76 * - ( + MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL 76 * - ( + MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 46 + + 27 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT ALL - ( - + col0 ) + + col2 * - col0 FROM tab0 AS cor0
----
-690
-783
-9506

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + 62 * - + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2888
SELECT - COUNT( CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT ALL + col0 + - 14 - - col2 DIV - col0 + - ( - + col2 ) * - col2 AS col1 FROM tab2
----
-1550
-3303
-497

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + col0 + - 14 - - col2 / - col0 + - ( - + col2 ) * - col2 AS col1 FROM tab2
----
-1550
-3303
-497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL col1 - CAST( NULL AS SIGNED ) / + 55 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL col1 - CAST ( NULL AS INTEGER ) / + 55 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + col1 + col2 AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab0 WHERE ( + 25 ) > + 82
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT - COUNT( * ) AS col0, 69 FROM tab0
----
-3
69

skipif mysql # not compatible
query II rowsort label-2893
SELECT - COUNT ( * ) AS col0, 69 FROM tab0
----
-3
69

query I rowsort
SELECT DISTINCT + + 11 - - col1 + 5 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT + ( col2 ) - - + 65 FROM tab2 AS cor0
----
105
123
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 16 - + 54 col2 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT DISTINCT - 7 - - - ( + 4 ) AS col2 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT - + ( + col2 ) * - + ( - + col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2899
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2899
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT - 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT ( + + ( 38 ) ) AS col1 FROM tab2
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 84 IS NULL
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT col2 DIV col1 * - col0 FROM tab1
----
-306
-91
-935

skipif mysql # not compatible
query I rowsort label-2903
SELECT col2 / col1 * - col0 FROM tab1
----
-306
-91
-935

query I rowsort
SELECT DISTINCT col0 * + 75 AS col0 FROM tab0 AS cor0
----
1125
6525
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + SUM( DISTINCT ( + 90 ) ) col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2905
SELECT + SUM ( DISTINCT ( + 90 ) ) col2 FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT - + 78 * - col2 AS col1 FROM tab1 AS cor0
----
4602
5304
7488

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - + col2 ) - + 28 + col1 * + ( 18 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 64 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + - SUM( + 1 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 - 1 * 47 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT + - SUM ( + 1 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 - 1 * 47 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - + ( 75 ) AS col0 FROM tab2 AS cor0
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-2911
SELECT + col2, 65 + + col2 DIV ( col1 ) FROM tab2
----
23
65
40
65
58
65

skipif mysql # not compatible
query II rowsort label-2911
SELECT + col2, 65 + + col2 / ( col1 ) FROM tab2
----
23
65
40
65
58
65

query I rowsort
SELECT - col0 * - + col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - col0 * - - 20 AS col2 FROM tab0
----
-1740
-1940
-300

query I rowsort
SELECT - col2 * 14 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT DISTINCT - col2 * - - ( col2 ) * + 18 AS col0 FROM tab2
----
-28800
-60552
-9522

query I rowsort
SELECT - col0 * + 99 AS col2 FROM tab0
----
-1485
-8613
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - + 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT - ( + 79 ) FROM tab0
----
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT col2 * col0 - - 82 * - - 29 FROM tab2 AS cor0
----
3436
4938
6728

query I rowsort
SELECT + col0 - - 38 FROM tab2 AS cor0
----
102
113
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * + + col2 / + + col1 < NULL
----

query I rowsort
SELECT 78 - - col0 * col0 + + - ( 62 ) * - - col2 FROM tab2
----
1694
2107
768

query I rowsort
SELECT - 67 + col2 FROM tab1
----
-8
1
29

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 53 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 55 + col0 * + 47 * col1 FROM tab0
----
4614
57160
85924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2928
SELECT col1 * ( col2 ) + + 41 - col2 * - CAST( NULL AS SIGNED ) AS col1, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2928
SELECT col1 * ( col2 ) + + 41 - col2 * - CAST ( NULL AS INTEGER ) AS col1, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + col1 * - col1 * + ( col2 ) col1 FROM tab0
----
14493249
44100
9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( 83 ) + - col2 * + col1, col0, 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT ALL MIN( ALL + - col2 ) col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2932
SELECT ALL MIN ( ALL + - col2 ) col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT NULL BETWEEN + + col2 AND + + col2
----

query I rowsort
SELECT DISTINCT 60 * - 74 FROM tab2
----
-4440

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2935
SELECT + ( 97 ) AS col2, + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
97
NULL
97
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2935
SELECT + ( 97 ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
97
NULL
97
NULL
97
NULL

query II rowsort
SELECT DISTINCT - - 50, + col2 AS col0 FROM tab0 AS cor0
----
50
10
50
47
50
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col0, - col0 )
----

query I rowsort
SELECT ALL - 75 * + col0 * - + col0 FROM tab1 AS cor0
----
195075
541875
621075

query II rowsort
SELECT ALL - + col1, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT - 45 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 / col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2942
SELECT DISTINCT - COUNT( * ) AS col2, + 8 AS col2 FROM tab2 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-2942
SELECT DISTINCT - COUNT ( * ) AS col2, + 8 AS col2 FROM tab2 AS cor0
----
-3
8

onlyif mysql # DIV for integer division: 
query II rowsort label-2943
SELECT + ( + col1 ), col1 DIV 59 FROM tab0 AS cor0
----
1
0
21
0
81
1

skipif mysql # not compatible
query II rowsort label-2943
SELECT + ( + col1 ), col1 / 59 FROM tab0 AS cor0
----
1
0
21
0
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2944
SELECT + COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2945
SELECT + ( - SUM( col2 ) ) DIV - MIN( col1 ) + - + MIN( DISTINCT + col1 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-2945
SELECT + ( - SUM ( col2 ) ) / - MIN ( col1 ) + - + MIN ( DISTINCT + col1 ) FROM tab2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2946
SELECT ALL ( ( - MIN( - col0 ) ) ), COUNT( * ) DIV - MAX( - 13 ) AS col2 FROM tab0 WHERE - col1 * + - col2 - 64 * + ( + col2 ) - - col0 IS NOT NULL
----
97
0

skipif mysql # not compatible
query II rowsort label-2946
SELECT ALL ( ( - MIN ( - col0 ) ) ), COUNT ( * ) / - MAX ( - 13 ) AS col2 FROM tab0 WHERE - col1 * + - col2 - 64 * + ( + col2 ) - - col0 IS NOT NULL
----
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + COUNT( * ) * + - SUM( 68 ) * + 23 FROM tab2
----
-14076

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + COUNT ( * ) * + - SUM ( 68 ) * + 23 FROM tab2
----
-14076

query I rowsort
SELECT ALL + col1 + - 96 FROM tab2
----
-19
-29
-45

query I rowsort
SELECT - col2 + + - ( - - col2 ) FROM tab2
----
-116
-46
-80

query I rowsort
SELECT col0 / - 1 AS col0 FROM tab0 WHERE + - 85 IS NULL
----

query I rowsort
SELECT - 45 * col2 * + col0 AS col1 FROM tab2
----
-115200
-195750
-47610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 * col2 col1 FROM tab0 AS cor0
----
-235
-495
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2953
SELECT DISTINCT - - MIN( ALL col1 ) + + COUNT( * ) col2, 91 AS col0 FROM tab1 AS cor0
----
8
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2953
SELECT DISTINCT - - MIN ( ALL col1 ) + + COUNT ( * ) col2, 91 AS col0 FROM tab1 AS cor0
----
8
91

query I rowsort
SELECT ALL - col1 + + - 0 - - - 18 * + col0 * - - 61 AS col1 FROM tab1
----
-56012
-93335
-99965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT DISTINCT ( - 6 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT ( - 6 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2956
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 54 + + 64 col2 FROM tab1 AS cor0
----
118

query II rowsort
SELECT ALL - 31 - - col1 * + col2 AS col2, col2 * + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
179
-8700
3776
-33135
68
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT + 21 + + MAX( + col2 ) col2 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2959
SELECT + 21 + + MAX ( + col2 ) col2 FROM tab0 AS cor0
----
120

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( 26 * 68 + - col2, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2961
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( + + col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2961
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( + + col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < + 62
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + + 38 + col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT COUNT( - 28 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2964
SELECT COUNT ( - 28 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL COUNT( + 8 ) AS col2 FROM tab1 WHERE 57 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL COUNT ( + 8 ) AS col2 FROM tab1 WHERE 57 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL 64 + + MAX( ALL - col0 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL 64 + + MAX ( ALL - col0 ) FROM tab0
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2967
SELECT MIN( - - col2 ) AS col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-2967
SELECT MIN ( - - col2 ) AS col0, CAST ( NULL AS REAL ) AS col1 FROM tab2
----
23
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 72 col2 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT ALL - + ( 57 ) AS col0 FROM tab1 AS cor0
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 / + + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 58 * - 55 + - col1 + - ( - 68 ) <> NULL
----

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col0, 52 AS col1 FROM tab1
----
27
52
27
52
27
52

query I rowsort
SELECT DISTINCT + + 17 AS col2 FROM tab2 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2975
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT - SUM( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - SUM ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT DISTINCT 7 * col2 + - col1 + + 28 + - - col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 87 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT 7 * col2 + - col1 + + 28 + - - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 87 * col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2978
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2978
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT DISTINCT - - ( + MAX( DISTINCT + col0 ) ) + 0 AS col2 FROM tab2 WHERE NOT + 95 * + 53 IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - - ( + MAX ( DISTINCT + col0 ) ) + 0 AS col2 FROM tab2 WHERE NOT + 95 * + 53 IS NULL
----
75

query I rowsort
SELECT DISTINCT 88 + - 14 * + 93 AS col0 FROM tab2
----
-1214

query II rowsort
SELECT DISTINCT col0 AS col0, + 58 FROM tab1
----
51
58
85
58
91
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 39 BETWEEN + col2 AND - - 56 + + 22
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 37
----

query I rowsort
SELECT col1 + - - 96 + + - ( + 8 ) AS col2 FROM tab2
----
139
155
165

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2986
SELECT DISTINCT - COUNT( * ), - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2986
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL - COUNT( - 26 ) * + + MIN( DISTINCT - 57 ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - COUNT ( - 26 ) * + + MIN ( DISTINCT - 57 ) FROM tab1 AS cor0
----
171

query I rowsort
SELECT DISTINCT + ( + col0 ) + 27 + + col1 * 58 FROM tab2 AS cor0
----
3031
3988
4557

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2990
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) * - COUNT( + CAST( NULL AS SIGNED ) ) DIV - 32 AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2990
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) * - COUNT ( + CAST ( NULL AS INTEGER ) ) / - 32 AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT MAX( - 96 ) AS col0 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2991
SELECT MAX ( - 96 ) AS col0 FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2992
SELECT DISTINCT col0 - - col2 DIV ( - col1 ) AS col2 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT col0 - - col2 / ( - col1 ) AS col2 FROM tab1 AS cor0
----
45
74
90

query I rowsort
SELECT - col2 - + + col0 * 72 AS col0 FROM tab1 AS cor0
----
-3768
-6179
-6620

query I rowsort
SELECT DISTINCT col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT ALL + 71 DIV - + col0 AS col2 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL + 71 / - + col0 AS col2 FROM tab0 AS cor0
----
-4
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 >= - + col0 + + 7 * + - 77
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2997
SELECT 29 DIV - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2997
SELECT 29 / - + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT + 42 * col0 FROM tab0
----
3654
4074
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT ALL + CAST( 48 AS SIGNED ) FROM tab0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + CAST ( 48 AS INTEGER ) FROM tab0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3001
SELECT ALL - 19, COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab1
----
-19
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3001
SELECT ALL - 19, COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
-19
NULL

query I rowsort
SELECT DISTINCT + col0 * - + col2 AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT + CAST( - - col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3003
SELECT + CAST ( - - col2 AS INTEGER ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL + MAX( ALL - ( - col1 ) ) FROM tab2 cor0 WHERE - 50 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL + MAX ( ALL - ( - col1 ) ) FROM tab2 cor0 WHERE - 50 IS NULL
----
NULL

query II rowsort
SELECT ALL + - col2 AS col2, 47 FROM tab0 AS cor0
----
-10
47
-47
47
-99
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - col0
----

query II rowsort
SELECT ALL + col2 AS col2, col1 + + col2 FROM tab1 AS cor0
----
59
64
68
115
96
110

query II rowsort
SELECT + col2 * + col2 AS col1, + 40 * - - 58 FROM tab0
----
100
2320
2209
2320
9801
2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3009
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT 17 * + col1 FROM tab0 AS cor0
----
1377
17
357

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3011
SELECT * FROM tab2 AS cor0 WHERE NOT - 95 * 35 * - CAST( + + 6 AS SIGNED ) / col1 NOT BETWEEN + col2 + 19 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3011
SELECT * FROM tab2 AS cor0 WHERE NOT - 95 * 35 * - CAST ( + + 6 AS INTEGER ) / col1 NOT BETWEEN + col2 + 19 AND NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col1 * + col1
----

query I rowsort
SELECT + 8 + col0 AS col1 FROM tab1 AS cor0
----
59
93
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * + - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( + col1 ) + 8 FROM tab0 cor0
----
-13
-73
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - 85 + MIN( DISTINCT + + 4 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3016
SELECT - 85 + MIN ( DISTINCT + + 4 ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab2, tab0 cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT ALL - col1 * col1 + + col0 DIV + col1 AS col0 FROM tab2
----
-2601
-4488
-5929

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - col1 * col1 + + col0 / + col1 AS col0 FROM tab2
----
-2601
-4488
-5929

query I rowsort
SELECT DISTINCT col2 + - + 51 FROM tab1
----
17
45
8

query I rowsort
SELECT DISTINCT + col2 + - + 44 AS col1 FROM tab1
----
15
24
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT DISTINCT 52 + + SUM( ALL 29 ) FROM tab1
----
139

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT 52 + + SUM ( ALL 29 ) FROM tab1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL - COUNT( * ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL - COUNT ( * ) FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT + SUM( ALL - col2 ) + + COUNT( * ) + COUNT( * ) - + 82 FROM tab2
----
-197

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT + SUM ( ALL - col2 ) + + COUNT ( * ) + COUNT ( * ) - + 82 FROM tab2
----
-197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - 23 AS col1 FROM tab1
----
51
-23
85
-23
91
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, 34 col0 FROM tab2 AS cor0
----
51
34
67
34
77
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT - - CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT - - CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3028
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 + - col1 col1, col1 FROM tab0
----
-152
81
-72
1
-92
21

query I rowsort
SELECT ALL - col0 + 91 FROM tab2
----
16
27
45

query I rowsort
SELECT col2 * + col1 + + col2 AS col2 FROM tab0
----
198
220
3854

onlyif mysql # DIV for integer division: 
query II rowsort label-3032
SELECT - ( + + col1 ) + col0 DIV col1, 43 * - col2 AS col0 FROM tab1
----
-11
-4128
-46
-2924
12
-2537

skipif mysql # not compatible
query II rowsort label-3032
SELECT - ( + + col1 ) + col0 / col1, 43 * - col2 AS col0 FROM tab1
----
-11
-4128
-46
-2924
12
-2537

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + + COUNT( * ) + - - 17 AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3033
SELECT + + COUNT ( * ) + - - 17 AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT + ( + + CAST( - - col1 AS SIGNED ) ) + 56 + + col0 AS col1 FROM tab0 AS cor0
----
152
154
164

skipif mysql # not compatible
query I rowsort label-3035
SELECT + ( + + CAST ( - - col1 AS INTEGER ) ) + 56 + + col0 AS col1 FROM tab0 AS cor0
----
152
154
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT + ( - + MAX( ALL - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + ( - + MAX ( ALL - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 53 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col1 AS col0 FROM tab0 cor0
----
158949
18225
9409

query I rowsort
SELECT ALL - col2 * + - col1 AS col2 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + - col1 * col0 - - - col1, col1 + + col2, col1, - 56, - + col1 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 97, col1 FROM tab1 AS cor0
----
97
14
97
47
97
5

query II rowsort
SELECT ALL ( 36 ) AS col2, col0 AS col2 FROM tab1
----
36
51
36
85
36
91

query I rowsort
SELECT DISTINCT - 71 FROM tab0 WHERE NOT - 58 IS NULL
----
-71

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT + 80 IS NOT NULL
----

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT 28 * - col2 * col1 + ( - + col0 ) + 38 * - col2 + + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + ( - + col2 ), + col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + 62 + col2 IS NULL OR + col1 * + 99 + - col2 + - 54 * + 12 < NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + + col2 / col2 + + 12 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * 40 col1, col1 + - col0 FROM tab0 AS cor0
----
1880
66
3960
-96
400
-66

query I rowsort
SELECT + 38 * 66 + col0 * 64 FROM tab1
----
5772
7948
8332

query I rowsort
SELECT col0 + - + col1 + + + 40 * - col2 AS col1 FROM tab0
----
-1946
-334
-3864

query I rowsort
SELECT 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 77 * col2 >= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3058
SELECT - CAST( - COUNT( DISTINCT 43 ) AS SIGNED ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3058
SELECT - CAST ( - COUNT ( DISTINCT 43 ) AS INTEGER ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + 30 AS col1 FROM tab2 cor0
----
30
30
30

query I rowsort
SELECT ALL col2 * 56 * 63 + - 51 - - 35 + + - 88 AS col2 FROM tab0
----
165712
349168
35176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 36 col1 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT ALL 2 AS col2 FROM tab0 WHERE ( + 73 ) <= + 65
----

query I rowsort
SELECT ALL - 71 + - 40 FROM tab2
----
-111
-111
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT DISTINCT col1 DIV - - col0 + + + 4 + col0 col2 FROM tab1
----
55
89
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3064
SELECT DISTINCT col1 / - - col0 + + + 4 + col0 col2 FROM tab1
----
55
89
95

query I rowsort
SELECT col0 + 22 AS col0 FROM tab1
----
107
113
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 + + col1 * col2 * - col0 + + + col0 col2 FROM tab1
----
-24910
-290701
-68456

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL - MIN( ALL - col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL - MIN ( ALL - col0 ) AS col2 FROM tab0
----
97

query I rowsort
SELECT ALL - + col0 * 4 + - + 25 FROM tab1 cor0
----
-229
-365
-389

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT + 10 + - - 97 + - COUNT( * ) * + 95 AS col1 FROM tab2 AS cor0
----
-178

skipif mysql # not compatible
query I rowsort label-3069
SELECT + 10 + - - 97 + - COUNT ( * ) * + 95 AS col1 FROM tab2 AS cor0
----
-178

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 23 + - col2 + - + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3071
SELECT DISTINCT 85 AS col2, COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
85
9

skipif mysql # not compatible
query II rowsort label-3071
SELECT DISTINCT 85 AS col2, COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
85
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 60 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + 43 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT + MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT ALL + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT ALL - col0, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + MAX( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + MAX ( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
-5

query II rowsort
SELECT + ( - ( - - col1 ) ), + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - MAX( + 10 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3079
SELECT - MAX ( + 10 ) AS col0 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col2 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT 28, col0 FROM tab0
----
28
15
28
87
28
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 1 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 90, 93 * - col2 AS col1 FROM tab1
----
-90
-5487
-90
-6324
-90
-8928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT ALL col0 * + col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL col0 * + col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3085
SELECT + COUNT( * ) DIV MIN( DISTINCT - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3085
SELECT + COUNT ( * ) / MIN ( DISTINCT - col1 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT DISTINCT + 75 DIV + col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + 75 / + col1 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 AS cor0 WHERE - 99 * col0 * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT COUNT( DISTINCT 64 ) + + SUM( DISTINCT + ( col0 ) ) FROM tab0
----
200

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT COUNT ( DISTINCT 64 ) + + SUM ( DISTINCT + ( col0 ) ) FROM tab0
----
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 + + + col2 + col0 col1 FROM tab2
----
124
153
89

query I rowsort
SELECT ( 65 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - col2 + - - col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 33 col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT ALL + + 35 AS col1 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL - MAX( + ( - ( 3 ) ) ) col1 FROM tab1 AS cor0 WHERE col2 BETWEEN + - 91 + - col1 AND - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3094
SELECT ALL - MAX ( + ( - ( 3 ) ) ) col1 FROM tab1 AS cor0 WHERE col2 BETWEEN + - 91 + - col1 AND - col2
----
NULL

query I rowsort
SELECT ALL 60 + + - col0 FROM tab1
----
-25
-31
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT col0 DIV - col2 - 78 * + col0 AS col1 FROM tab2
----
-3590
-4993
-5851

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT col0 / - col2 - 78 * + col0 AS col1 FROM tab2
----
-3590
-4993
-5851

query I rowsort
SELECT - ( - - 7 ) FROM tab2
----
-7
-7
-7

query I rowsort
SELECT DISTINCT + col2 * - col2 + + col0 AS col2 FROM tab2
----
-1536
-3289
-483

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL + - ( - + COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL + - ( - + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2 AS col0, + 38 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2
38
2
38
2
38

query I rowsort
SELECT col1 * - 26 * - 97 AS col2 FROM tab2 AS cor0
----
128622
168974
194194

query I rowsort
SELECT DISTINCT col0 * - - 90 FROM tab1 cor0
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - COUNT( col0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - COUNT ( col0 ) AS col0 FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) >= NULL
----

query I rowsort
SELECT - - ( - 0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - col0 AS col0, + col1 + + 25 * + 96 AS col2 FROM tab1
----
-51
2414
-85
2405
-91
2447

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT + 91 = - - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3110
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT + 91 = - - col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT 98 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT 98 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - + col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - col2 * + + col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT 63 * - - col0 FROM tab1
----
3213
5355
5733

query I rowsort
SELECT ALL col0 * 62 AS col0 FROM tab2
----
2852
3968
4650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * + - col1 col2 FROM tab1
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT DISTINCT - MAX( - 21 ) FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT - MAX ( - 21 ) FROM tab0 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT + - MAX( ALL + - 76 ) + + ( + 41 ) AS col0 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-3118
SELECT + - MAX ( ALL + - 76 ) + + ( + 41 ) AS col0 FROM tab1 AS cor0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT + col0 + + col1 DIV - + ( - 54 ) AS col1 FROM tab0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-3119
SELECT + col0 + + col1 / - + ( - 54 ) AS col1 FROM tab0
----
16
87
97

query III rowsort
SELECT * FROM tab1 WHERE 54 * - col2 * + + 92 + - - 47 IS NULL
----

query I rowsort
SELECT 63 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL - COUNT( + col2 ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3122
SELECT ALL - COUNT ( + col2 ) col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT - + SUM( ALL - col2 ) * + SUM( col2 ) + - - 3 FROM tab2 AS cor0
----
14644

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - + SUM ( ALL - col2 ) * + SUM ( col2 ) + - - 3 FROM tab2 AS cor0
----
14644

query II rowsort
SELECT + - 80 AS col1, - 31 FROM tab2 AS cor0
----
-80
-31
-80
-31
-80
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT + col2 - + 16 + - 2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT + col2 - + 16 + - 2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 - - col2 AS col0, 86 * + col2 FROM tab2
----
117
3440
125
4988
74
1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT MAX( ALL + - col2 ) - + + CAST( NULL AS SIGNED ) * - - 57 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT MAX ( ALL + - col2 ) - + + CAST ( NULL AS INTEGER ) * - - 57 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + + 14 * - + col1 IS NULL )
----

query I rowsort
SELECT + 35 - - 78 * col0 AS col0 FROM tab2
----
3623
5027
5885

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - COUNT( * ) + ( 55 ) AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-3130
SELECT - COUNT ( * ) + ( 55 ) AS col0 FROM tab2
----
52

query I rowsort
SELECT ALL col2 + - + 27 AS col2 FROM tab1
----
32
41
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col0 col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT - ( + col2 ) + 64 AS col2 FROM tab1
----
-32
-4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - MAX( + - 92 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3134
SELECT - MAX ( + - 92 ) FROM tab1 AS cor0
----
92

query II rowsort
SELECT DISTINCT - col1 AS col0, + col0 AS col0 FROM tab0 AS cor0 WHERE col1 NOT IN ( + 37, 52 - col2, + 37 + col2, - col1, - col1 )
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT col1 DIV + - 13 FROM tab2
----
-3
-5
-5

skipif mysql # not compatible
query I rowsort label-3137
SELECT col1 / + - 13 FROM tab2
----
-3
-5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT - + 44 AS col0, COUNT( * ) + + 11 FROM tab2 AS cor0
----
-44
14

skipif mysql # not compatible
query II rowsort label-3138
SELECT - + 44 AS col0, COUNT ( * ) + + 11 FROM tab2 AS cor0
----
-44
14

query I rowsort
SELECT + ( - 59 ) FROM tab0 AS cor0
----
-59
-59
-59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > + col0
----

query II rowsort
SELECT - + 26, col0 FROM tab0 cor0
----
-26
15
-26
87
-26
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 95 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3143
SELECT CAST( NULL AS DECIMAL ), - col0 * col2 AS col2 FROM tab0 AS cor0
----
NULL
-705
NULL
-870
NULL
-9603

skipif mysql # not compatible
query II rowsort label-3143
SELECT CAST ( NULL AS REAL ), - col0 * col2 AS col2 FROM tab0 AS cor0
----
NULL
-705
NULL
-870
NULL
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL + ( + - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + ( + - COUNT ( * ) ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT DISTINCT + CAST( col2 AS SIGNED ) FROM tab0 WHERE NOT 64 + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT + CAST ( col2 AS INTEGER ) FROM tab0 WHERE NOT 64 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3146
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - - col2 * - CAST( col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3146
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - - col2 * - CAST ( col0 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT + + col0 DIV - 32 AS col0 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3147
SELECT + + col0 / - 32 AS col0 FROM tab2 AS cor0
----
-1
-2
-2

query I rowsort
SELECT ALL col2 * - - 27 FROM tab1 cor0
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 + - + ( 8 ) > ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 86 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL col2 FROM tab0 WHERE - col0 * 81 - + col0 + - + col0 * 50 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT + + COUNT( * ) + - SUM( DISTINCT ( - 93 ) ) col1 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3153
SELECT + + COUNT ( * ) + - SUM ( DISTINCT ( - 93 ) ) col1 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT - + COUNT( * ) DIV - - 30 + - 42 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3154
SELECT - + COUNT ( * ) / - - 30 + - 42 FROM tab1 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > col1
----
0

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL > col1
----
0

query I rowsort
SELECT DISTINCT 89 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col2 + - 31 FROM tab2 AS cor0
----
-8
27
9

query I rowsort
SELECT DISTINCT - col0 + + - col0 AS col2 FROM tab1 cor0
----
-102
-170
-182

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 65 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 2 * + + 0 + col1 + - - col2 col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL - 15 + SUM( - ( col2 ) ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL - 15 + SUM ( - ( col2 ) ) FROM tab0
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3163
SELECT * FROM tab2 WHERE + col0 * 16 - CAST( NULL AS SIGNED ) / + 52 + - 67 + + - col0 * - ( CAST( + - ( col1 ) AS SIGNED ) ) - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3163
SELECT * FROM tab2 WHERE + col0 * 16 - CAST ( NULL AS INTEGER ) / + 52 + - 67 + + - col0 * - ( CAST ( + - ( col1 ) AS INTEGER ) ) - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NULL NOT BETWEEN ( + + 21 * + col2 * - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NULL NOT BETWEEN ( + + 21 * + col2 * - col2 ) AND NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 - + 15 AS col1 FROM tab0
----
-16
-36
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT MAX( DISTINCT - 15 ) * + 86 - 32 FROM tab0
----
-1322

skipif mysql # not compatible
query I rowsort label-3167
SELECT MAX ( DISTINCT - 15 ) * + 86 - 32 FROM tab0
----
-1322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * + + col2 + 65 col2 FROM tab2 AS cor0
----
1054
1785
2559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT ALL - + CAST( - + 92 AS SIGNED ) FROM tab0 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - + CAST ( - + 92 AS INTEGER ) FROM tab0 AS cor0
----
92
92
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT col1 DIV + - col0 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT col1 / + - col0 AS col2 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT + 66 * col2 DIV + col1 AS col2 FROM tab1
----
452
778
95

skipif mysql # not compatible
query I rowsort label-3172
SELECT + 66 * col2 / + col1 AS col2 FROM tab1
----
452
778
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - COUNT( * ) * + + 64 FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3173
SELECT - COUNT ( * ) * + + 64 FROM tab2 cor0
----
-192

query I rowsort
SELECT DISTINCT col0 * + 56 AS col0 FROM tab0 AS cor0 WHERE - col2 - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab2 AS cor0
----
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col0 * 63
----

query I rowsort
SELECT + - col2 * col1 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + 77 FROM tab1 cor0
----
-77

query I rowsort
SELECT - 69 FROM tab0 AS cor0 WHERE NOT 28 < NULL
----

query I rowsort
SELECT DISTINCT - - 17 * - col2 + 53 + - col2 AS col0 FROM tab0 AS cor0
----
-127
-1729
-793

query II rowsort
SELECT - col2 AS col2, col2 * + 30 FROM tab1
----
-59
1770
-68
2040
-96
2880

query I rowsort
SELECT ALL col1 * - 94 + + 45 + + - 66 * + - col0 * - - col2 AS col0 FROM tab2
----
161767
280847
65079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + 22 + - col0 FROM tab2
----
46
-24
64
-42
75
-53

query II rowsort
SELECT ALL + 95 AS col0, - col1 * + col0 * - 37 FROM tab0
----
95
3589
95
44955
95
67599

query I rowsort
SELECT ALL - ( + - col2 ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT ALL COUNT( * ) col0, 23 * 10 AS col1 FROM tab1 AS cor0
----
3
230

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3186
SELECT ALL COUNT ( * ) col0, 23 * 10 AS col1 FROM tab1 AS cor0
----
3
230

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT + COUNT( * ) + 67 * - - 11 FROM tab2 AS cor0
----
740

skipif mysql # not compatible
query I rowsort label-3187
SELECT + COUNT ( * ) + 67 * - - 11 FROM tab2 AS cor0
----
740

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL - + ( 41 ) + 12 + COUNT( * ) - 10 AS col1 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - + ( 41 ) + 12 + COUNT ( * ) - 10 AS col1 FROM tab1 AS cor0
----
-36

query II rowsort
SELECT + - 28 * + 93 + + 32 + - + col1 AS col2, + 71 * - 29 + - col1 FROM tab1 AS cor0
----
-2577
-2064
-2586
-2073
-2619
-2106

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) BETWEEN - 44 * + 60 + + 1 AND ( + 54 )
----
64
77
40
75
67
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + ( + col2 ) * col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( col1 ) ) >= ( + 64 )
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT ALL col2 DIV - 13 + + col0 AS col1 FROM tab1
----
44
81
86

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL col2 / - 13 + + col0 AS col1 FROM tab1
----
44
81
86

query I rowsort
SELECT - 33 + col0 * 4 FROM tab0
----
27
315
355

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT COUNT( - 98 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3195
SELECT COUNT ( - 98 ) FROM tab1
----
3

query I rowsort
SELECT - col2 - + 93 AS col2 FROM tab1
----
-152
-161
-189

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( - 60 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3198
SELECT ALL + COUNT( * ) DIV - 4 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + COUNT ( * ) / - 4 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 9 ) * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col0 NOT BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT ALL col2 * - 27 AS col1 FROM tab1
----
-1593
-1836
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT DISTINCT CAST( - 19 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT CAST ( - 19 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT ALL + 81 DIV 13 AS col1 FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL + 81 / 13 AS col1 FROM tab0
----
6
6
6

query I rowsort
SELECT 89 - + col0 FROM tab1
----
-2
38
4

query III rowsort
SELECT * FROM tab1 WHERE ( 68 + col0 * 24 ) IN ( 94 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT ( col1 ) DIV 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT ( col1 ) / 81 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * 26 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + col1 <> ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3210
SELECT DISTINCT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3210
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + COUNT( * ) - ( - COUNT( * ) ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3211
SELECT + COUNT ( * ) - ( - COUNT ( * ) ) AS col0 FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT + ( - 93 ) * - CAST( - 16 + COUNT( * ) AS SIGNED ) FROM tab0
----
-1209

skipif mysql # not compatible
query I rowsort label-3212
SELECT + ( - 93 ) * - CAST ( - 16 + COUNT ( * ) AS INTEGER ) FROM tab0
----
-1209

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 39 * col1 NOT IN ( 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT ( CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3215
SELECT ( CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT COUNT( * ) * COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3216
SELECT COUNT ( * ) * COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT 57 * - COUNT( * ) FROM tab2 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3217
SELECT 57 * - COUNT ( * ) FROM tab2 cor0
----
-171

query I rowsort
SELECT 98 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT - MIN( 25 ) * - 63 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
1575

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - MIN ( 25 ) * - 63 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT + COUNT( * ) * 37 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-3220
SELECT + COUNT ( * ) * 37 FROM tab2 AS cor0
----
111

query I rowsort
SELECT 93 AS col1 FROM tab0 AS cor0 WHERE NOT col0 <= + 5
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT COUNT( ALL - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3222
SELECT COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3223
SELECT - + 91 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3223
SELECT - + 91 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 32 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT DISTINCT 57 DIV 6 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT 57 / 6 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT CAST( - MAX( DISTINCT + ( col1 ) ) AS SIGNED ) col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3226
SELECT CAST ( - MAX ( DISTINCT + ( col1 ) ) AS INTEGER ) col1 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3227
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( - 16 AS SIGNED ) * col2 NOT BETWEEN 44 + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3227
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( - 16 AS INTEGER ) * col2 NOT BETWEEN 44 + - col2 AND NULL
----

query I rowsort
SELECT + + col2 * + 28 FROM tab0 cor0
----
1316
2772
280

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 28 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3230
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT + CAST( - 30 AS DECIMAL ) BETWEEN - CAST( NULL AS SIGNED ) * 40 AND ( 43 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3230
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT + CAST ( - 30 AS REAL ) BETWEEN - CAST ( NULL AS INTEGER ) * 40 AND ( 43 )
----
0

query I rowsort
SELECT - col2 + 83 AS col1 FROM tab1 AS cor0
----
-13
15
24

query I rowsort
SELECT DISTINCT - 3 + - col1 FROM tab1 AS cor0
----
-17
-50
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT + ( COUNT( * ) ) + - 95 AS col2 FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3233
SELECT + ( COUNT ( * ) ) + - 95 AS col2 FROM tab2 cor0
----
-92

query III rowsort
SELECT * FROM tab0 WHERE ( - 11 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT 68 + COUNT( * ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT 68 + COUNT ( * ) FROM tab0
----
71

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NULL BETWEEN ( col2 * 37 ) AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 14 ) col1 FROM tab0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL MAX( ALL 33 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - 97 + col2 ) >= 39 * + col0 - - col1
----
33

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL MAX ( ALL 33 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - 97 + col2 ) >= 39 * + col0 - - col1
----
33

query I rowsort
SELECT + + col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL - MIN( + 96 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - MIN ( + 96 ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 25 * + ( 91 ) + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + + COUNT( * ) * + + COUNT( * ) col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3243
SELECT + + COUNT ( * ) * + + COUNT ( * ) col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT col1 * + col1 FROM tab0 AS cor0 WHERE col1 - col2 * + col2 IS NOT NULL
----
1
441
6561

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL IN ( 38 / - col1 )
----

query I rowsort
SELECT ALL col2 + - col2 * + 27 * + col1 FROM tab2
----
-104864
-31648
-83120

query I rowsort
SELECT - ( + col1 ) + - - 24 AS col1 FROM tab0
----
-57
23
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT ALL 47 - - - 25 DIV - + col2 + 15 * - col0 FROM tab1 AS cor0
----
-1228
-1318
-718

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 47 - - - 25 / - + col2 + 15 * - col0 FROM tab1 AS cor0
----
-1228
-1318
-718

query I rowsort
SELECT + ( + - col0 ) + - - 57 AS col1 FROM tab1 AS cor0
----
-28
-34
6

query I rowsort
SELECT ( col0 ) / col0 AS col0 FROM tab2 AS cor0 WHERE ( - - col2 ) / + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 28 * - - 30 AS col1 FROM tab2 AS cor0
----
840

query I rowsort
SELECT 74 AS col2 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab0 cor0
----
6

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
23
40
58

query I rowsort
SELECT ALL ( - col1 ) + + 48 FROM tab1 AS cor0
----
1
34
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3256
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT COUNT( * ) * - 75 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-3257
SELECT COUNT ( * ) * - 75 FROM tab2
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col1 col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT 91 * + + ( + col2 ) FROM tab0
----
4277
9009
910

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT DISTINCT - + col0 DIV + col0 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT - + col0 / + col0 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
58
67
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 87 * + col2 AS col2 FROM tab0 AS cor0
----
4089
8613
870

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + ( - ( - COUNT( * ) ) ) * - 13 AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3265
SELECT + ( - ( - COUNT ( * ) ) ) * - 13 AS col2 FROM tab1 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL - + col1 DIV + + col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - + col1 / + + col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT - SUM( - - 16 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3268
SELECT - SUM ( - - 16 ) FROM tab2 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3270
SELECT + col1 AS col0, col0 DIV - col1 - ( + col2 ) * 75 - + col1 * col0 FROM tab2
----
51
-4071
67
-9376
77
-7928

skipif mysql # not compatible
query II rowsort label-3270
SELECT + col1 AS col0, col0 / - col1 - ( + col2 ) * 75 - + col1 * col0 FROM tab2
----
51
-4071
67
-9376
77
-7928

query III rowsort
SELECT * FROM tab0 WHERE ( col1 / - col2 + + col1 + - + ( col2 ) * - col2 / 83 ) >= col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT + MAX( - + col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3272
SELECT + MAX ( - + col2 ) AS col2 FROM tab1
----
-59

query III rowsort
SELECT * FROM tab2 WHERE - - 91 < + + 60
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 = col2 + col0
----

query I rowsort
SELECT + col0 * + col2 FROM tab0 WHERE - - col1 + + - col0 NOT IN ( col2 )
----
705
870
9603

query I rowsort
SELECT - 27 * - 66 * col1 * + col1 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-3277
SELECT ALL - 3 AS col2, + COUNT( * ), COUNT( * ) FROM tab1
----
-3
3
3

skipif mysql # not compatible
query III rowsort label-3277
SELECT ALL - 3 AS col2, + COUNT ( * ), COUNT ( * ) FROM tab1
----
-3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL - + col0 DIV + - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - + col0 / + - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3279
SELECT + 75 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT + 75 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 18 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 87 - - 25 IN ( ( + ( ( col1 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT DISTINCT + col0 * + + 3 + - col0 DIV + - 58 FROM tab0 AS cor0
----
262
292
45

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT + col0 * + + 3 + - col0 / + - 58 FROM tab0 AS cor0
----
262
292
45

query I rowsort
SELECT ALL col2 + - - 22 FROM tab0 AS cor0
----
121
32
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT DISTINCT + + col0 * - - col0 * - - col0 - + - 30 * - 82 * - col0 - + - ( ( col0 ) ) DIV + 91 - - col0 AS col0 FROM tab2 AS cor0
----
210542
419648
606450

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT + + col0 * - - col0 * - - col0 - + - 30 * - 82 * - col0 - + - ( ( col0 ) ) / + 91 - - col0 AS col0 FROM tab2 AS cor0
----
210542
419648
606450

onlyif mysql # aggregate syntax: 
query II rowsort label-3287
SELECT ALL + MAX( - col2 ) AS col2, + 0 AS col2 FROM tab2 AS cor0
----
-23
0

skipif mysql # not compatible
query II rowsort label-3287
SELECT ALL + MAX ( - col2 ) AS col2, + 0 AS col2 FROM tab2 AS cor0
----
-23
0

query II rowsort
SELECT - 46, col1 - + 2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT - MAX( col2 ) * 70 FROM tab0 cor0 WHERE NOT ( + ( + - 81 ) / + col1 + - + col1 + + ( + + col0 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT - MAX ( col2 ) * 70 FROM tab0 cor0 WHERE NOT ( + ( + - 81 ) / + col1 + - + col1 + + ( + + col0 ) ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT + SUM( ALL + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT - MIN( + - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - MIN ( + - col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT DISTINCT + COUNT( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT + COUNT ( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 cor0 WHERE NOT + 88 IS NULL
----
-59
-68
-96

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 >= col2
----

query II rowsort
SELECT col2 * col1 * - 53 AS col1, + col1 * + col2 AS col0 FROM tab1
----
-15635
295
-169388
3196
-71232
1344

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * 41 + col0 - + col2 <> 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT col2 DIV - 33 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3297
SELECT col2 / - 33 AS col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3298
SELECT ALL + COUNT( * ) DIV + + 53 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3298
SELECT ALL + COUNT ( * ) / + + 53 col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3299
SELECT DISTINCT - COUNT( * ) * - 57 + - 66 / + CAST( NULL AS SIGNED ) * + - COUNT( * ) * - 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - COUNT ( * ) * - 57 + - 66 / + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * - 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * + 75 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT DISTINCT - COUNT( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3301
SELECT DISTINCT - COUNT ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + col0 + + + ( 91 ) FROM tab0 cor0
----
106
178
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL - - MAX( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL - - MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( ( + - 22 ) ) <> col2 * col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 < - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + col1 * col0 * - ( + ( - - 35 ) ) + 69 - + + 79 * + 88 * + 92 - + col1 FROM tab1 cor0
----
-14261807
-1903895
-1914019

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 > - col2 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 * - 6 col2 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - + col0 + + col0 * + + col2 * + col2 AND NULL
----
-492
-492
-492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT DISTINCT - ( CAST( 73 AS SIGNED ) ) * col0 + - 25 * 87 + + + col0 FROM tab2
----
-5487
-6783
-7575

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - ( CAST ( 73 AS INTEGER ) ) * col0 + - 25 * 87 + + + col0 FROM tab2
----
-5487
-6783
-7575

query I rowsort
SELECT DISTINCT col2 * - - 56 + 63 FROM tab2
----
1351
2303
3311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7 col0, 13 AS col0 FROM tab1
----
7
13
7
13
7
13

query I rowsort
SELECT DISTINCT 74 + + col2 AS col1 FROM tab1
----
133
142
170

query III rowsort
SELECT * FROM tab0 WHERE + + ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * col2 * - 88 - + - 49 FROM tab0
----
-61991
-76511
-845015

query I rowsort
SELECT col0 * 85 AS col2 FROM tab0 AS cor0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT DISTINCT MIN( 70 ) FROM tab0 cor0
----
70

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT MIN ( 70 ) FROM tab0 cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col0 FROM tab2 WHERE NOT NULL > col0 * col1 / - - col2 * - 5 - + col0
----

query I rowsort
SELECT + ( col0 ) * - col2 FROM tab2 WHERE - col0 IN ( - col2 + + ( col2 ) / col2 + - - col1 - 25 * + col1 * - col0 - col2 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col2 + + col0 + + 12 FROM tab0
----
10
89
47
-20
99
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ALL SUM( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL SUM ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 7, 70, - + 67 - + + 96 + + ( + + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 1 col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 79 - - + col2 + + - 84 * - 91 * - - col1 * - + 70 * + 50 / - col0 )
----

query I rowsort
SELECT DISTINCT + AVG ( + col2 ) + 18 FROM tab2 WHERE NOT + + col1 IN ( col1, - col2 * - col0 + 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + - MAX( col1 ) FROM tab0 WHERE NOT - + col0 <> - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT + - MAX ( col1 ) FROM tab0 WHERE NOT - + col0 <> - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - MAX( ALL + col1 ) * - + COUNT( * ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-3325
SELECT - MAX ( ALL + col1 ) * - + COUNT ( * ) FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT + 14 * + 0 AS col2, - COUNT( * ) AS col0 FROM tab0
----
0
-3

skipif mysql # not compatible
query II rowsort label-3326
SELECT + 14 * + 0 AS col2, - COUNT ( * ) AS col0 FROM tab0
----
0
-3

query I rowsort
SELECT DISTINCT col2 * + 18 AS col2 FROM tab0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + ( + - 44 ) * - + ( + COUNT( * ) ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-3328
SELECT + ( + - 44 ) * - + ( + COUNT ( * ) ) FROM tab1
----
132

query I rowsort
SELECT DISTINCT + ( - - ( - col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT - CAST( NULL AS SIGNED ) + + MAX( ALL - 73 ) - + COUNT( * ) * ( - + 17 ) + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT - CAST ( NULL AS INTEGER ) + + MAX ( ALL - 73 ) - + COUNT ( * ) * ( - + 17 ) + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT CAST( + 54 AS SIGNED ) + + 43 FROM tab2
----
97
97
97

skipif mysql # not compatible
query I rowsort label-3331
SELECT CAST ( + 54 AS INTEGER ) + + 43 FROM tab2
----
97
97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NULL ) BETWEEN col0 AND + 20 )
----

query I rowsort
SELECT DISTINCT + - 48 AS col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN col2 / - col0 AND NULL
----

query I rowsort
SELECT + col0 * 41 FROM tab0 AS cor0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT MIN( - - 62 ) FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-3335
SELECT MIN ( - - 62 ) FROM tab0 cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3336
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND + col1 + col1
----

skipif mysql # not compatible
query I rowsort label-3336
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND + col1 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT 20 * col0 * - - ( 58 ) + - CAST( - col2 AS SIGNED ) + + - col1 FROM tab1 AS cor0
----
105581
59242
98654

skipif mysql # not compatible
query I rowsort label-3338
SELECT 20 * col0 * - - ( 58 ) + - CAST ( - col2 AS INTEGER ) + + - col1 FROM tab1 AS cor0
----
105581
59242
98654

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3340
SELECT - COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col1 col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - col2 * col2 + - col1 + + col0 FROM tab1 AS cor0
----
-3401
-4580
-9179

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT SUM( DISTINCT + - 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3343
SELECT SUM ( DISTINCT + - 97 ) FROM tab1 AS cor0
----
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 6 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT - 55 - + + CAST( NULL AS SIGNED ) + - + 37 - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT - 55 - + + CAST ( NULL AS INTEGER ) + - + 37 - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3346
SELECT COUNT( * ) - - - CAST( NULL AS DECIMAL ) + + 23 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT COUNT ( * ) - - - CAST ( NULL AS REAL ) + + 23 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT DISTINCT col2 + + col1 * + 65 + col2 DIV 27 AS col1 FROM tab0
----
1375
167
5313

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT col2 + + col1 * + 65 + col2 / 27 AS col1 FROM tab0
----
1375
167
5313

query I rowsort
SELECT ALL - ( + - col1 ) + - 32 AS col0 FROM tab0
----
-11
-31
49

query I rowsort
SELECT DISTINCT col2 - + 22 FROM tab2
----
1
18
36

query I rowsort
SELECT + col2 + - + col1 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL + col2 * - 49 AS col0 FROM tab0
----
-2303
-4851
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT + COUNT( * ) * + 36 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-3352
SELECT + COUNT ( * ) * + 36 FROM tab0 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 23 col1 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT ALL - col0 DIV col0 * - + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - col0 / col0 * - + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 91 * + col1 FROM tab0
----
1911
7371
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3356
SELECT * FROM tab1 WHERE NOT + - CAST( + 66 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3356
SELECT * FROM tab1 WHERE NOT + - CAST ( + 66 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 77 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col2 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT DISTINCT + - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT + - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
9

query I rowsort
SELECT ALL + col0 * + 7 FROM tab0 AS cor0
----
105
609
679

query II rowsort
SELECT + - 46, + col2 AS col0 FROM tab0 AS cor0
----
-46
10
-46
47
-46
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT MIN( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3362
SELECT MIN ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - - ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3364
SELECT ALL COUNT( * ) AS col1, 83 + + COUNT( * ) FROM tab2
----
3
86

skipif mysql # not compatible
query II rowsort label-3364
SELECT ALL COUNT ( * ) AS col1, 83 + + COUNT ( * ) FROM tab2
----
3
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - col2 ) col0 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL ( + col2 ) * + - 53 AS col0 FROM tab1
----
-3127
-3604
-5088

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 5 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 17 AS col1, 25 FROM tab0
----
17
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col1 * col2 AND - 84
----

query I rowsort
SELECT DISTINCT - col2 + - col1 + 12 AS col0 FROM tab0 AS cor0
----
-116
-19
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3371
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 * - + col0 NOT IN ( - 29 * 5 - col0, col0 / - CAST( NULL AS SIGNED ) * + + col1 * - col2 / + 63 + + ( + + 9 ) + + col0 * - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3371
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 * - + col0 NOT IN ( - 29 * 5 - col0, col0 / - CAST ( NULL AS INTEGER ) * + + col1 * - col2 / + 63 + + ( + + 9 ) + + col0 * - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col1 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL - + col1 + + 75 + - 87 AS col0 FROM tab2 AS cor0
----
-63
-79
-89

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 + - 13 FROM tab0
----
-12
68
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT - col2 + col1 * col1 DIV 14 FROM tab1
----
-58
-82
89

skipif mysql # not compatible
query I rowsort label-3376
SELECT - col2 + col1 * col1 / 14 FROM tab1
----
-58
-82
89

query I rowsort
SELECT col1 * 81 + - 44 AS col0 FROM tab2 cor0
----
4087
5383
6193

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT COUNT( * ) + - + MAX( DISTINCT 10 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3378
SELECT COUNT ( * ) + - + MAX ( DISTINCT 10 ) FROM tab1 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT - 61 + 96 DIV 87 AS col1 FROM tab0 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-3379
SELECT - 61 + 96 / 87 AS col1 FROM tab0 AS cor0
----
-60
-60
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( 83 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3381
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 * - + CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 * - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 60 + ( 96 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3383
SELECT DISTINCT col2 * - ( - ( - + col0 ) ) * - + 37 / - + col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT col2 * - ( - ( - + col0 ) ) * - + 37 / - + col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - MAX( + 93 ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3384
SELECT - MAX ( + 93 ) AS col2 FROM tab1 AS cor0
----
-93

query III rowsort
SELECT * FROM tab1 WHERE + col2 - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + ( + 40 ) AS col0 FROM tab1
----
108
136
99

query I rowsort
SELECT DISTINCT 48 * + col0 * + col1 - + 18 FROM tab0
----
4638
58302
87678

query I rowsort
SELECT DISTINCT - - col0 + col0 AS col0 FROM tab1 WHERE NULL IN ( + col1, - ( + - 89 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + - + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < - col0 * - + col2 - + col0
----

query I rowsort
SELECT - col2 - col0 AS col2 FROM tab2 WHERE NOT NULL >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + + MIN( DISTINCT + ( + - col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3394
SELECT + + MIN ( DISTINCT + ( + - col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT SUM( ALL 20 ) AS col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3395
SELECT SUM ( ALL 20 ) AS col0 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + COUNT( * ) * MAX( ALL 25 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + COUNT ( * ) * MAX ( ALL 25 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT DISTINCT - 65 DIV COUNT( * ) col1 FROM tab1 cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3397
SELECT DISTINCT - 65 / COUNT ( * ) col1 FROM tab1 cor0
----
-21

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col0 - + 74 + + - col0 AS col0 FROM tab0 WHERE NOT NULL <> - + col0
----

query I rowsort
SELECT DISTINCT + col0 * + + col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT + ( + ( - CAST( - + COUNT( * ) AS SIGNED ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3401
SELECT + ( + ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT col1 * ( + 99 ) FROM tab1
----
1386
4653
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT MAX( + col0 ) + - - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT MAX ( + col0 ) + - - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3404
SELECT ALL ( - CAST( col0 AS SIGNED ) ) AS col2, + 95 * + - col0 FROM tab0 cor0
----
-15
-1425
-87
-8265
-97
-9215

skipif mysql # not compatible
query II rowsort label-3404
SELECT ALL ( - CAST ( col0 AS INTEGER ) ) AS col2, + 95 * + - col0 FROM tab0 cor0
----
-15
-1425
-87
-8265
-97
-9215

query I rowsort
SELECT col2 + col0 + + 13 * + col1 FROM tab2 AS cor0
----
1004
1105
732

query I rowsort
SELECT ALL + + col0 + + 28 FROM tab1 AS cor0
----
113
119
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * 43 + - col1 col1 FROM tab0
----
779
839
859

query I rowsort
SELECT DISTINCT col2 + 39 + + 81 AS col1 FROM tab1
----
179
188
216

query I rowsort
SELECT ALL col1 + + - col0 AS col0 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3410
SELECT * FROM tab0 WHERE col1 BETWEEN + ( - 79 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3410
SELECT * FROM tab0 WHERE col1 BETWEEN + ( - 79 ) AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 15 AS col2 FROM tab1 cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT ALL + MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL + MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT - col1 - - CAST( - 24 AS SIGNED ) FROM tab0 cor0
----
-105
-25
-45

skipif mysql # not compatible
query I rowsort label-3413
SELECT - col1 - - CAST ( - 24 AS INTEGER ) FROM tab0 cor0
----
-105
-25
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - - 2 - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3414
SELECT - - 2 - COUNT ( * ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col2 - + - col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IS NULL OR NULL = - - 81
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3417
SELECT ALL + 29 AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-3417
SELECT ALL + 29 AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
29
3

query I rowsort
SELECT col0 * - 80 + - - col1 + - + col2 FROM tab0
----
-1166
-6949
-7858

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT col0 DIV col1 DIV col2 + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3419
SELECT col0 / col1 / col2 + - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 + + 22 AS col0 FROM tab0
----
103
23
43

query I rowsort
SELECT 95 + - + col2 + 32 * + - col2 FROM tab1
----
-1852
-2149
-3073

query I rowsort
SELECT DISTINCT - 72 + - 65 AS col2 FROM tab2 WHERE NOT NULL IN ( - + col0, ( + - col0 ), - 2 * - col2, + col2 / 31 + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 BETWEEN - 23 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + + 85 FROM tab0 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 col1 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, 11 + + + col2 AS col0 FROM tab2
----
-23
34
-40
51
-58
69

query II rowsort
SELECT ALL - 30 AS col2, 68 FROM tab2
----
-30
68
-30
68
-30
68

query I rowsort
SELECT DISTINCT 83 * - - col0 FROM tab1
----
4233
7055
7553

query I rowsort
SELECT ALL - col1 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > + col1 * + col2
----

query I rowsort
SELECT ALL + col2 * - - 11 AS col2 FROM tab1 AS cor0
----
1056
649
748

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT 67 NOT BETWEEN + col2 AND - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / + ( + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, + 27 AS col0 FROM tab2 AS cor0
----
-51
27
-67
27
-77
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3435
SELECT CAST( NULL AS SIGNED ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3435
SELECT CAST ( NULL AS INTEGER ), + col0 AS col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3436
SELECT - COUNT( * ) AS col2, - 37 col1 FROM tab0 AS cor0
----
-3
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3436
SELECT - COUNT ( * ) AS col2, - 37 col1 FROM tab0 AS cor0
----
-3
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3437
SELECT DISTINCT - COUNT( * ), CAST( NULL AS SIGNED ) * - 63 * - 2 AS col0 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT - COUNT ( * ), CAST ( NULL AS INTEGER ) * - 63 * - 2 AS col0 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT DISTINCT ( - col2 ) * + col0 + - col1 DIV - col1 + + + col0 FROM tab1 AS cor0
----
-4844
-4929
-6096

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT ( - col2 ) * + col0 + - col1 / - col1 + + + col0 FROM tab1 AS cor0
----
-4844
-4929
-6096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49, - col0 col1 FROM tab2 AS cor0
----
-49
-46
-49
-64
-49
-75

query I rowsort
SELECT ( - + col2 ) + + + col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + col2 + 60 AS col2 FROM tab0 AS cor0
----
107
159
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 10 IS NULL
----

query I rowsort
SELECT - col1 * - col1 + - ( 98 ) FROM tab1
----
-73
2111
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT + 91 * - COUNT( * ) FROM tab0, tab1 AS cor0
----
-819

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + 91 * - COUNT ( * ) FROM tab0, tab1 AS cor0
----
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - ( - + COUNT( * ) ) AS col2 FROM tab0 WHERE NOT NULL < - + col0
----
0

skipif mysql # not compatible
query I rowsort label-3445
SELECT - ( - + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT NULL < - + col0
----
0

query I rowsort
SELECT col0 + 1 * - col1 AS col2 FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - col1 + 11 col0 FROM tab0
----
-87
22
45

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( - - col0 ) IS NULL
----

query I rowsort
SELECT 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - 55 + + + col0 AS col1 FROM tab2
----
-9
20
9

query I rowsort
SELECT 75 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + COUNT( * ) + - + 27 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-3452
SELECT + COUNT ( * ) + - + 27 FROM tab0
----
-24

query II rowsort
SELECT ALL - 36 AS col2, - col2 * - col2 AS col1 FROM tab0
----
-36
100
-36
2209
-36
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT DISTINCT + col2 * + CAST( - - col1 AS SIGNED ) * + - 62 FROM tab0 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + col2 * + CAST ( - - col1 AS INTEGER ) * + - 62 FROM tab0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT 78 * - + 11 + 79 AS col0 FROM tab2 AS cor0
----
-779
-779
-779

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT - + 24 + - col1 AS col2 FROM tab0 AS cor0
----
-105
-25
-45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 85 + - col1 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 17 * + + 57 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT ALL COUNT( * ) AS col2, SUM( - col2 ) FROM tab0
----
3
-156

skipif mysql # not compatible
query II rowsort label-3460
SELECT ALL COUNT ( * ) AS col2, SUM ( - col2 ) FROM tab0
----
3
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT 56 * col1 DIV + 87 AS col1 FROM tab0
----
0
13
52

skipif mysql # not compatible
query I rowsort label-3461
SELECT 56 * col1 / + 87 AS col1 FROM tab0
----
0
13
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * col2 * - - col0 FROM tab2
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 55 col1, 7 FROM tab2
----
55
7
55
7
55
7

query II rowsort
SELECT ALL + + col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 * - col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL + CAST( + + 62 AS SIGNED ) FROM tab2 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL + CAST ( + + 62 AS INTEGER ) FROM tab2 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, 33 + - col0 - + 61 AS col1 FROM tab1 AS cor0
----
59
-113
68
-119
96
-79

query I rowsort
SELECT DISTINCT col1 * - - 22 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( + - col1 ) + col0 * col1 + + - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT MAX( - + 63 ) * + 91 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT MAX ( - + 63 ) * + 91 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT ALL - CAST( NULL AS SIGNED ) * + - ( 99 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - CAST ( NULL AS INTEGER ) * + - ( 99 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT + 0 / + + CAST( NULL AS SIGNED ) + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT + 0 / + + CAST ( NULL AS INTEGER ) + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 50 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3475
SELECT DISTINCT CAST( 82 AS SIGNED ) + 95, ( col2 ) + col2 * col2 col1 FROM tab0
----
177
110
177
2256
177
9900

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3475
SELECT DISTINCT CAST ( 82 AS INTEGER ) + 95, ( col2 ) + col2 * col2 col1 FROM tab0
----
177
110
177
2256
177
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT DISTINCT - col2 DIV + col1 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3476
SELECT DISTINCT - col2 / + col1 col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3477
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

query I rowsort
SELECT col1 * + ( - col2 ) AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - - col0 AS col0 FROM tab0 WHERE + - 97 IS NULL
----

query I rowsort
SELECT col1 + - 82 * + + col1 AS col0 FROM tab0
----
-1701
-6561
-81

query I rowsort
SELECT DISTINCT col2 + - col2 + + + ( - col0 ) * + col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - MAX( col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3482
SELECT - MAX ( col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT 32 * col1 AS col1 FROM tab2 AS cor0
----
1632
2144
2464

query I rowsort
SELECT ALL - 91 * 91 + + 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9 values hashing to 1e74c89e57efbf6198256660383475b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT COUNT( * ) AS col0 FROM tab0 WHERE col0 >= + - col2
----
3

skipif mysql # not compatible
query I rowsort label-3485
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE col0 >= + - col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT ALL - CAST( NULL AS SIGNED ) * + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL - CAST ( NULL AS INTEGER ) * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT + MAX( - col0 ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT + MAX ( - col0 ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 - + - 85 + col2 AS col0 FROM tab2 AS cor0
----
159
202
210

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 18
----

query I rowsort
SELECT ALL + + col0 * - col2 + - 60 + - + ( - + col2 ) * + - ( - + 95 ) AS col0 FROM tab1 AS cor0
----
212
4164
530

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT MIN( - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3491
SELECT MIN ( - - col2 ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT ALL - 36, col2 FROM tab0
----
-36
10
-36
47
-36
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT MAX( ALL - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3493
SELECT MAX ( ALL - col0 ) AS col2 FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 50 * - col0 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT + SUM( DISTINCT + + 15 ) AS col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3495
SELECT + SUM ( DISTINCT + + 15 ) AS col1 FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT + 84 * - col2 AS col0 FROM tab1 AS cor0
----
-4956
-5712
-8064

query I rowsort
SELECT - ( - - col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col0, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL - - SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - - SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col1 + + col0 col1 FROM tab2 AS cor0
----
-2555
-4414
-5865

query I rowsort
SELECT DISTINCT + ( + + col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-3503
SELECT ( + + 62 ) DIV + col1 + + col2 AS col1, col2 DIV col2 * col2 * + col1 + + - col2 AS col0 FROM tab0 AS cor0
----
12
200
161
0
47
3760

skipif mysql # not compatible
query II rowsort label-3503
SELECT ( + + 62 ) / + col1 + + col2 AS col1, col2 / col2 * col2 * + col1 + + - col2 AS col0 FROM tab0 AS cor0
----
12
200
161
0
47
3760

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col2 * - ( + 99 )
----

query II rowsort
SELECT DISTINCT - + ( + col2 ) AS col2, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query II rowsort
SELECT ALL - 13 * col2 * + - col0 + - col0 + + + col0 * + col1 AS col2, 78 FROM tab1 cor0
----
64311
78
65535
78
84630
78

query I rowsort
SELECT - ( + col1 ) + + - col0 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL col1 + col0 + - + col2 AS col0 FROM tab1
----
-31
31
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3509
SELECT DISTINCT * FROM tab1 WHERE col2 * col2 * + col1 - + 72 > - col1 * - CAST( NULL AS SIGNED ) OR NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-3509
SELECT DISTINCT * FROM tab1 WHERE col2 * col2 * + col1 - + 72 > - col1 * - CAST ( NULL AS INTEGER ) OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT - - COUNT( * ) FROM tab0 WHERE + + col0 > - col2
----
3

skipif mysql # not compatible
query I rowsort label-3510
SELECT - - COUNT ( * ) FROM tab0 WHERE + + col0 > - col2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 >= - + col0
----

query I rowsort
SELECT DISTINCT col1 - 88 + - + col2 * + + 72 + + - 28 FROM tab1 AS cor0
----
-4359
-4965
-7014

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - SUM( + - col0 ) * 47 col0 FROM tab0 AS cor0
----
9353

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3513
SELECT ALL - SUM ( + - col0 ) * 47 col0 FROM tab0 AS cor0
----
9353

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT - - 29 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3514
SELECT - - 29 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT + 17 - + 43 AS col0 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT DISTINCT - 10 * - col1 DIV col1 col2 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3516
SELECT DISTINCT - 10 * - col1 / col1 col2 FROM tab2 AS cor0
----
10

query I rowsort
SELECT ALL col1 * ( - col2 ) * col0 * - - 9 + col0 FROM tab0
----
-164343
-513930
-86330

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT + - COUNT( DISTINCT 78 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3518
SELECT + - COUNT ( DISTINCT 78 ) FROM tab1 AS cor0
----
-1

query II rowsort
SELECT ALL - 87 AS col0, 13 - - 80 FROM tab2 AS cor0
----
-87
93
-87
93
-87
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 71 IS NULL
----

query I rowsort
SELECT DISTINCT 58 * - col0 * + 57 FROM tab1 AS cor0
----
-168606
-281010
-300846

query I rowsort
SELECT DISTINCT - - col1 * 62 * + + 58 FROM tab1 AS cor0
----
169012
17980
50344

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 - col0 <> + 65
----

query I rowsort
SELECT + 81 FROM tab1 WHERE NOT - col2 IS NULL
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT + 30 DIV - ( + 49 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3525
SELECT + 30 / - ( + 49 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT DISTINCT + COUNT( + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT + COUNT ( + col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL ( + - 75 ) * + + 59 AS col0 FROM tab0
----
-4425
-4425
-4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT ALL + col0 * + col1 * - - CAST( 88 AS SIGNED ) * + - col1 + + col0 FROM tab0 cor0
----
-3376209
-8439
-8660505

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + col0 * + col1 * - - CAST ( 88 AS INTEGER ) * + - col1 + + col0 FROM tab0 cor0
----
-3376209
-8439
-8660505

onlyif mysql # DIV for integer division: 
query II rowsort label-3529
SELECT DISTINCT 90 DIV + col1, + 57 + + + col2 col0 FROM tab1 AS cor0
----
1
125
18
116
6
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3529
SELECT DISTINCT 90 / + col1, + 57 + + + col2 col0 FROM tab1 AS cor0
----
1
125
18
116
6
153

query I rowsort
SELECT ( - + 94 ) * + - col2 * - col1 FROM tab1 AS cor0
----
-126336
-27730
-300424

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT ALL 98 DIV + 67 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL 98 / + 67 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 * 6 + col1 FROM tab2 cor0
----
-255
-335
-385

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3534
SELECT ALL * FROM tab2 WHERE - + col2 + + col2 * + - CAST( + + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3534
SELECT ALL * FROM tab2 WHERE - + col2 + + col2 * + - CAST ( + + col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - + + col0 * 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col1, + ( col2 ) FROM tab0 AS cor0 WHERE NULL IN ( 97, + 37 + + col0, 42 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT + + 67 DIV - col2 - + col2 AS col0 FROM tab0 AS cor0
----
-16
-48
-99

skipif mysql # not compatible
query I rowsort label-3537
SELECT + + 67 / - col2 - + col2 AS col0 FROM tab0 AS cor0
----
-16
-48
-99

query I rowsort
SELECT DISTINCT - 83 + col2 FROM tab0 AS cor0
----
-36
-73
16

query I rowsort
SELECT + + ( ( + + col1 ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT + 34 + - COUNT( * ) AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + 34 + - COUNT ( * ) AS col0 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL - 29 + - + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - 29 + - + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2
----
-38

query I rowsort
SELECT ALL col2 + - + col0 AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT 78 + + MIN( + col0 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-3543
SELECT 78 + + MIN ( + col0 ) FROM tab2
----
124

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3544
SELECT ALL + 60 - - + CAST( NULL AS DECIMAL ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL + 60 - - + CAST ( NULL AS REAL ) + - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL ( - + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL ( - + COUNT ( * ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT DISTINCT ( - COUNT( * ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3547
SELECT DISTINCT ( - COUNT ( * ) ) col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND ( + + 31 )
----

query I rowsort
SELECT DISTINCT - col0 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - - 91 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col1 FROM tab2 AS cor0 WHERE + col2 * + col2 < NULL
----

query I rowsort
SELECT + 81 + - col2 AS col1 FROM tab1 AS cor0
----
-15
13
22

query I rowsort
SELECT ALL - col0 * + col1 - + - col0 AS col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT SUM( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3554
SELECT SUM ( ALL + + col2 ) AS col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT - + 99 * + CAST( NULL AS SIGNED ) * col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3556
SELECT - + 99 * + CAST ( NULL AS INTEGER ) * col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - - col0 col1, - col2 * - col0 * + col1 FROM tab1
----
-2601
68544
-7225
25075
-8281
290836

query I rowsort
SELECT ALL + 60 FROM tab0 cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 47 * - col0 col0, + col0 * - 49 + - + col0 FROM tab0 AS cor0
----
-4089
-4350
-4559
-4850
-705
-750

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( 2 ) * - 56 * + 87 + + col1 >= 42
----

query I rowsort
SELECT + + col0 * + + col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 12 * + col1 col1, - 41 AS col1 FROM tab0 cor0
----
-12
-41
-252
-41
-972
-41

query I rowsort
SELECT - 21 * - + ( - + 9 ) + col2 FROM tab1 AS cor0
----
-121
-130
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT + CAST( + 36 AS SIGNED ) col2 FROM tab2
----
36
36
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3564
SELECT + CAST ( + 36 AS INTEGER ) col2 FROM tab2
----
36
36
36

query I rowsort
SELECT + 58 * - col1 * + col2 * - col1 AS col0 FROM tab1
----
1091328
85550
8712296

query I rowsort
SELECT ALL ( - 74 ) AS col1 FROM tab0 WHERE NOT - + col2 - - 26 - - col1 + col1 + - col1 IN ( + + 20 )
----
-74
-74
-74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 3 = NULL
----

query I rowsort
SELECT ALL - - col2 FROM tab0 WHERE NOT col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 92 col0, - ( + 43 ) FROM tab2
----
92
-43
92
-43
92
-43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND - 3
----
97
1
99

query I rowsort
SELECT ALL - col0 * - col0 * + + col1 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL MAX( 88 ) * + 14 AS col2 FROM tab0 AS cor0
----
1232

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL MAX ( 88 ) * + 14 AS col2 FROM tab0 AS cor0
----
1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3574
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 72 * - col2 - + ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, + col1 col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT + 60 DIV - col2 FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3578
SELECT + 60 / - col2 FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
-1
-1
-2

query I rowsort
SELECT 93 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT ALL + 20 DIV + col1 + + 2 col0 FROM tab1 AS cor0
----
2
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3580
SELECT ALL + 20 / + col1 + + 2 col0 FROM tab1 AS cor0
----
2
3
6

query I rowsort
SELECT ALL + col2 + col1 * + - col2 AS col1 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT ALL - col0 * 64 + - 86 FROM tab2
----
-3030
-4182
-4886

query I rowsort
SELECT DISTINCT + 73 + + - col0 FROM tab1
----
-12
-18
22

query I rowsort
SELECT ALL + 67 * col2 FROM tab0
----
3149
6633
670

query I rowsort
SELECT DISTINCT + col0 - + 44 AS col1 FROM tab2 AS cor0
----
2
20
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col1, 25 col1 FROM tab1 AS cor0
----
14
25
47
25
5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL + MAX( + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL + MAX ( + col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - ( + AVG ( + + col2 ) ) AS col0 FROM tab1 WHERE NOT - col1 <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT + 36 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT + 36 / + col0 FROM tab2
----
0
0
0

query II rowsort
SELECT col0, col1 + col0 + col1 * + ( + + col2 ) AS col1 FROM tab0
----
15
3903
87
318
97
197

query I rowsort
SELECT + col0 * 73 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3723
6205
6643

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3592
SELECT AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT AVG ( ALL CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT ALL + - COUNT( * ) AS col1, 94 FROM tab2 AS cor0
----
-3
94

skipif mysql # not compatible
query II rowsort label-3593
SELECT ALL + - COUNT ( * ) AS col1, 94 FROM tab2 AS cor0
----
-3
94

query I rowsort
SELECT ALL 85 AS col1 FROM tab0 cor0
----
85
85
85

query I rowsort
SELECT col0 * + 20 AS col2 FROM tab2
----
1280
1500
920

query I rowsort
SELECT - ( + + col1 ) * - col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL 3 + - col1 AS col0 FROM tab2
----
-48
-64
-74

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT + col2 > - col0 ) )
----

query I rowsort
SELECT - col0 * ( - + 37 ) AS col2 FROM tab0
----
3219
3589
555

onlyif mysql # DIV for integer division: 
query II rowsort label-3600
SELECT DISTINCT col1 DIV + col2, + 67 AS col0 FROM tab0
----
0
67
1
67
2
67

skipif mysql # not compatible
query II rowsort label-3600
SELECT DISTINCT col1 / + col2, + 67 AS col0 FROM tab0
----
0
67
1
67
2
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3601
SELECT CAST( + - col1 AS SIGNED ) DIV 71 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT CAST ( + - col1 AS INTEGER ) / 71 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT ALL + + CAST( - + col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL + + CAST ( - + col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL + MAX( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL + MAX ( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - - ( + 33 ) * + col0 + ( + col1 ) - - col2 * col2 * + col2 + col2 - - 73 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + ( - ( + 61 ) ) * col2 FROM tab2 WHERE + col1 >= + 27 + + - 64
----
1403
2440
3538

query I rowsort
SELECT DISTINCT 62 * - col0 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ( SUM( ALL + 85 ) ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-3608
SELECT ( SUM ( ALL + 85 ) ) FROM tab0
----
255

query I rowsort
SELECT col0 - - + col2 AS col2 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT DISTINCT 46 + + - col0 AS col1, col0 AS col1 FROM tab1
----
-39
85
-45
91
-5
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT ALL 94 + + + col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL 94 + + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 85 + - col1 FROM tab2
----
18
34
8

query I rowsort
SELECT ALL 48 - - ( - + col2 ) FROM tab2
----
-10
25
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT DISTINCT CAST( + SUM( + - 81 ) AS SIGNED ) - - 60 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT CAST ( + SUM ( + - 81 ) AS INTEGER ) - - 60 FROM tab2
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT MIN( DISTINCT + col2 ) + MAX( + + ( - col0 ) ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-3615
SELECT MIN ( DISTINCT + col2 ) + MAX ( + + ( - col0 ) ) FROM tab0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 - + + col2 col1, + ( - + 47 ) * col1 AS col0 FROM tab1 cor0
----
-118
-235
-136
-2209
-192
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT MIN( ALL - 68 ) AS col0 FROM tab1, tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3617
SELECT MIN ( ALL - 68 ) AS col0 FROM tab1, tab0 AS cor0
----
-68

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3619
SELECT DISTINCT MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( - 37 ) AS col2 FROM tab1 AS cor0
----
37
37
37

query II rowsort
SELECT DISTINCT - + col0 AS col0, col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT + col0 AS col1, + 28 FROM tab2 AS cor0
----
46
28
64
28
75
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + 47 > + - 56 + + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT col1 + - col1 DIV - 80 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3624
SELECT col1 + - col1 / - 80 AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + COUNT( * ) col0 FROM tab1 WHERE NOT NULL < + + col0 - + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3625
SELECT + COUNT ( * ) col0 FROM tab1 WHERE NOT NULL < + + col0 - + col1
----
0

query I rowsort
SELECT DISTINCT 85 * ( + - col2 ) FROM tab0
----
-3995
-8415
-850

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3627
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND col1 * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3627
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND col1 * + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3629
SELECT DISTINCT + 33, 64 * + 0 + + ( + ( + COUNT( * ) ) ) AS col0 FROM tab1
----
33
3

skipif mysql # not compatible
query II rowsort label-3629
SELECT DISTINCT + 33, 64 * + 0 + + ( + ( + COUNT ( * ) ) ) AS col0 FROM tab1
----
33
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 <> col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT + - col2 DIV + - 42 AS col2 FROM tab2 WHERE - col2 + 86 + + col2 IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3631
SELECT + - col2 / + - 42 AS col2 FROM tab2 WHERE - col2 + 86 + + col2 IS NOT NULL
----
0
0
1

query I rowsort
SELECT - + col2 * - - col0 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT - 79 col0, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-79
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3633
SELECT - 79 col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-79
-3

query I rowsort
SELECT + - 75 * col2 FROM tab0 AS cor0
----
-3525
-7425
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT COUNT( - col1 ) + - - COUNT( - col1 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT COUNT ( - col1 ) + - - COUNT ( - col1 ) FROM tab1
----
6

query I rowsort
SELECT ALL - col0 + + + 48 FROM tab0
----
-39
-49
33

query I rowsort
SELECT DISTINCT col2 + - + col2 * + + 86 AS col2 FROM tab0
----
-3995
-8415
-850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT - col1 + - + ( ( - CAST( NULL AS SIGNED ) ) ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT - col1 + - + ( ( - CAST ( NULL AS INTEGER ) ) ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 <> + col1 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 96 + + col0 FROM tab1 AS cor0
----
147
181
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 62 col0 FROM tab0 AS cor0 WHERE + col2 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 65 + + - col0 * - + col2 AS col0 FROM tab1 AS cor0
----
5340
5806
9243

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 72 < - col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT 6 * - COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3646
SELECT 6 * - COUNT ( * ) FROM tab2
----
-18

query I rowsort
SELECT 67 * - col1 FROM tab1
----
-3149
-335
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT COUNT( * ) + 31 * + + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT COUNT ( * ) + 31 * + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3649
SELECT - col1 DIV + col0 - + 85 - + 2 AS col2 FROM tab1
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-3649
SELECT - col1 / + col0 - + 85 - + 2 AS col2 FROM tab1
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3650
SELECT ALL + 78 DIV - - 50 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + 78 / - - 50 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT col0 * - 5 AS col0 FROM tab2
----
-230
-320
-375

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * - col1 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3653
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3653
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= ( col1 ) / col2
----

query I rowsort
SELECT ALL - ( 86 ) FROM tab2
----
-86
-86
-86

query I rowsort
SELECT 25 FROM tab2 WHERE NOT - ( + 63 ) IS NULL
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL - COUNT( DISTINCT + col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + 95 col2 FROM tab1
----
154
163
191

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab0 WHERE NULL IS NULL
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3660
SELECT ALL col1 DIV + col0 + - 56 FROM tab0
----
-51
-56
-56

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL col1 / + col0 + - 56 FROM tab0
----
-51
-56
-56

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT MAX( col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3662
SELECT MAX ( col1 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 72 * col0 ) NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - MIN( 5 ) AS col0 FROM tab2 WHERE NULL <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT - MIN ( 5 ) AS col0 FROM tab2 WHERE NULL <> col2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) IN ( 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL + SUM( - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + SUM ( - col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT ALL 20 * CAST( - 9 AS SIGNED ) AS col2 FROM tab0
----
-180
-180
-180

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 20 * CAST ( - 9 AS INTEGER ) AS col2 FROM tab0
----
-180
-180
-180

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + + 89 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT DISTINCT + ( + col1 ) * - ( - ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT + ( + col1 ) * - ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3670
SELECT ALL * FROM tab1 WHERE NOT - 87 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3670
SELECT ALL * FROM tab1 WHERE NOT - 87 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT 7 FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 * col0 + + col2 / - 63 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( + col1 ) ) * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 23 + + 70 FROM tab2
----
1128
1542
1795

query I rowsort
SELECT + col2 * - 76 FROM tab0
----
-3572
-7524
-760

query I rowsort
SELECT col1 / ( col2 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= col2 * - 61
----

query I rowsort
SELECT DISTINCT ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3678
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT + COUNT( * ) + 68 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3679
SELECT + COUNT ( * ) + 68 FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 29 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT 69 AS col0 FROM tab2 WHERE + col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3683
SELECT 69 AS col0 FROM tab2 WHERE + col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL SUM( DISTINCT col2 ) + - 59 FROM tab1 AS cor0 WHERE NOT 61 * - col0 + CAST( col2 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL SUM ( DISTINCT col2 ) + - 59 FROM tab1 AS cor0 WHERE NOT 61 * - col0 + CAST ( col2 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT DISTINCT + - COUNT( * ) * ( COUNT( * ) ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT + - COUNT ( * ) * ( COUNT ( * ) ) FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 61 ) IN ( + CAST( col2 AS SIGNED ) )
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 61 ) IN ( + CAST ( col2 AS INTEGER ) )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - MIN( col2 ) * 25 AS col1 FROM tab0 AS cor0
----
-250

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - MIN ( col2 ) * 25 AS col1 FROM tab0 AS cor0
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - 77 + + COUNT( * ) FROM tab0 AS cor0 WHERE 44 BETWEEN NULL AND 61
----
-77

skipif mysql # not compatible
query I rowsort label-3688
SELECT - 77 + + COUNT ( * ) FROM tab0 AS cor0 WHERE 44 BETWEEN NULL AND 61
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) * 0 >= + 62 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + COUNT( * ) - COUNT( * ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3690
SELECT + COUNT ( * ) - COUNT ( * ) col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3691
SELECT + col2 - CAST( 65 - 82 DIV col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
36
4

skipif mysql # not compatible
query I rowsort label-3691
SELECT + col2 - CAST ( 65 - 82 / col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
36
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * 0 col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 59 col1 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - 76 - 62 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 89 * + col2 + 64 FROM tab2 AS cor0
----
-1983
-3496
-5098

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT DISTINCT - 0 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT - 0 / - col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3697
SELECT - MIN( ALL - col1 ) + MIN( CAST( NULL AS DECIMAL ) - + col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT - MIN ( ALL - col1 ) + MIN ( CAST ( NULL AS REAL ) - + col0 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 / + 10 AS col2 FROM tab1 WHERE - col1 NOT BETWEEN - 92 * col0 + + ( - col0 ) * - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - col2 ) col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NOT NULL = ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NOT NULL = ( - col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 + ( - col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL CAST( - MAX( + col0 ) AS SIGNED ) * + ( 2 ) FROM tab1
----
-182

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL CAST ( - MAX ( + col0 ) AS INTEGER ) * + ( 2 ) FROM tab1
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT ALL - 55 * 85 DIV MIN( ALL + 41 ) AS col2 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - 55 * 85 / MIN ( ALL + 41 ) AS col2 FROM tab2
----
-114

query I rowsort
SELECT ALL + 6 FROM tab2 WHERE 11 = col1
----

query I rowsort
SELECT + col2 * + - col0 * - col0 AS col1 FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL 68 * - COUNT( * ) AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL 68 * - COUNT ( * ) AS col0 FROM tab0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT CAST( 70 AS SIGNED ) FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-3707
SELECT CAST ( 70 AS INTEGER ) FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT - MIN( ALL - + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3708
SELECT - MIN ( ALL - + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL MAX( ALL - 33 ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL MAX ( ALL - 33 ) AS col2 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT MIN( - 1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3710
SELECT MIN ( - 1 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT - ( + - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab0 AS cor0 WHERE - col0 * col0 NOT BETWEEN ( - col1 ) AND ( col0 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT + 39 - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT + 39 - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
30

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL IN ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT - CAST( NULL AS SIGNED ) + + 35 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3715
SELECT - CAST ( NULL AS INTEGER ) + + 35 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) >= ( NULL )
----

query I rowsort
SELECT col2 * + 30 * - col2 + col1 FROM tab1 AS cor0
----
-104425
-138673
-276466

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * + col1 BETWEEN + 17 * + 34 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col2 + - 38 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3719
SELECT ( + 24 ) + col0 DIV 96 AS col1 FROM tab2 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-3719
SELECT ( + 24 ) + col0 / 96 AS col1 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT + + col1 + col0 * - - ( col0 ) FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT DISTINCT + + 12 AS col2 FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 84 * 38 + 16 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3722
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 84 * 38 + 16 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col1 ) >= col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 53 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - col2 * - - col1 FROM tab1 AS cor0
----
-1248
-236
-3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - + col0 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT col0 >= - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT DISTINCT 13 * - col1 DIV - col1 + 43 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT 13 * - col1 / - col1 + 43 FROM tab1
----
56

query II rowsort
SELECT - ( + col0 ), - col2 * - + col2 AS col1 FROM tab2
----
-46
529
-64
1600
-75
3364

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE ( col2 ) > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 47 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL MIN( DISTINCT - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL MIN ( DISTINCT - + col2 ) FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + 98 * - ( - ( col0 ) ) * col0 + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3734
SELECT + col1 DIV + col0 AS col2, + col1 FROM tab0
----
0
1
0
21
5
81

skipif mysql # not compatible
query II rowsort label-3734
SELECT + col1 / + col0 AS col2, + col1 FROM tab0
----
0
1
0
21
5
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL + - 4 * - - COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + - 4 * - - COUNT ( * ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT 43 AS col1 FROM tab2 AS cor0 WHERE ( 27 + 84 * - 3 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - ( - col2 ) ) <> NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT - MIN( + 96 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-96

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT - MIN ( + 96 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-96

query I rowsort
SELECT DISTINCT + - 15 FROM tab1 WHERE NOT - col1 IS NULL
----
-15

query I rowsort
SELECT - col1 * - col0 * 11 FROM tab1 AS cor0
----
4675
47047
7854

query I rowsort
SELECT ALL - 91 - - col1 + - 38 * + col1 FROM tab0 AS cor0
----
-128
-3088
-868

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 IN ( - + col0 / + - 56 + + + col2 - - col2 )
----

query II rowsort
SELECT col0, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT + col1 * col0 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL - COUNT( ALL - - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - COUNT ( ALL - - col1 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 80, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3748
SELECT - 84 DIV + col0 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3748
SELECT - 84 / + col0 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab2 WHERE NOT - col0 NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3750
SELECT 47 DIV - + col2 AS col0, col2 AS col1 FROM tab2
----
-1
40
-2
23
0
58

skipif mysql # not compatible
query II rowsort label-3750
SELECT 47 / - + col2 AS col0, col2 AS col1 FROM tab2
----
-1
40
-2
23
0
58

query II rowsort
SELECT + col1 AS col0, - col1 + - + col0 * + col1 FROM tab0 AS cor0
----
1
-98
21
-1848
81
-1296

query II rowsort
SELECT + 42, + ( + 57 ) AS col2 FROM tab2 AS cor0
----
42
57
42
57
42
57

query I rowsort
SELECT ALL - - col0 * - 26 * - col1 - + col1 + + - 26 FROM tab0 AS cor0
----
2495
31483
47455

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT 51 * - - 15 * - 22 FROM tab2
----
-16830

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3756
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL - 78 * - + COUNT( col2 ) AS col1 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - 78 * - + COUNT ( col2 ) AS col1 FROM tab1
----
234

query I rowsort
SELECT DISTINCT 16 * - - 86 FROM tab0 AS cor0
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL - MAX( + 62 ) AS col2 FROM tab2 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - MAX ( + 62 ) AS col2 FROM tab2 cor0
----
-62

query I rowsort
SELECT DISTINCT - 42 FROM tab2 AS cor0 WHERE NOT ( col0 + + col0 IS NOT NULL )
----

query I rowsort
SELECT ( - - col0 ) + - col2 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - 75 AND + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 28 col1, 53 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
28
53
28
53
28
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + - 19 * COUNT( DISTINCT col2 ) * COUNT( * ) * - - ( - - COUNT( * ) ) FROM tab0 AS cor0
----
-513

skipif mysql # not compatible
query I rowsort label-3764
SELECT + - 19 * COUNT ( DISTINCT col2 ) * COUNT ( * ) * - - ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
-513

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT ALL COUNT( * ) FROM tab2 WHERE ( - CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL COUNT ( * ) FROM tab2 WHERE ( - CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT DISTINCT SUM( - 34 ) DIV + COUNT( * ) + + 42 AS col2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT SUM ( - 34 ) / + COUNT ( * ) + + 42 AS col2 FROM tab0
----
8

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 WHERE NULL BETWEEN - 75 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + COUNT( * ) + + + 13 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-3769
SELECT + COUNT ( * ) + + + 13 FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT - 2 + + + col1 * 99 * - CAST( - + col1 AS SIGNED ) FROM tab0
----
43657
649537
97

skipif mysql # not compatible
query I rowsort label-3770
SELECT - 2 + + + col1 * 99 * - CAST ( - + col1 AS INTEGER ) FROM tab0
----
43657
649537
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT ( 20 ) + col1 + + col0 - + - col2 + + 67 DIV col1 AS col2 FROM tab1
----
182
185
227

skipif mysql # not compatible
query I rowsort label-3771
SELECT ( 20 ) + col1 + + col0 - + - col2 + + 67 / col1 AS col2 FROM tab1
----
182
185
227

onlyif mysql # DIV for integer division: 
query II rowsort label-3772
SELECT ALL - col2 AS col0, col0 DIV - col0 + col2 AS col1 FROM tab1
----
-59
58
-68
67
-96
95

skipif mysql # not compatible
query II rowsort label-3772
SELECT ALL - col2 AS col0, col0 / - col0 + col2 AS col1 FROM tab1
----
-59
58
-68
67
-96
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3773
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - 81 + COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3774
SELECT - 81 + COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3775
SELECT - 46 + col1 FROM tab1 WHERE ( CAST( - + col1 AS DECIMAL ) * + col1 * - + col0 + - 95 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-3775
SELECT - 46 + col1 FROM tab1 WHERE ( CAST ( - + col1 AS REAL ) * + col1 * - + col0 + - 95 IS NULL )
----

query I rowsort
SELECT ALL + col2 + + + 1 + col0 + col1 * col1 * col0 * - 99 FROM tab0
----
-3798235
-9406
-9743022

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( 15 * col1 + col2 )
----

query I rowsort
SELECT DISTINCT - ( 70 ) FROM tab2 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT ALL + MAX( ALL - ( - col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL + MAX ( ALL - ( - col2 ) ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT + MIN( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT + MIN ( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT + SUM( ALL - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3782
SELECT + SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT DISTINCT CAST( - AVG ( DISTINCT + ( + 51 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT CAST ( - AVG ( DISTINCT + ( + 51 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 74 + - col0 col1 FROM tab1 WHERE NOT + + 84 IS NOT NULL
----

query I rowsort
SELECT ALL 60 * + col1 AS col2 FROM tab2
----
3060
4020
4620

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - col0 / - + col1 AND + + col0 / + + 12
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3788
SELECT + ( CAST( NULL AS DECIMAL ) ) * col1, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-3788
SELECT + ( CAST ( NULL AS REAL ) ) * col1, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + col2 col1 FROM tab2
----
1600
3364
529

query I rowsort
SELECT col2 * - 61 FROM tab1
----
-3599
-4148
-5856

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT COUNT( * ) * COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3791
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
9

query I rowsort
SELECT - col1 + - col2 + - + col2 / col1 AS col0 FROM tab0 WHERE NOT NULL <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT ALL col1 DIV + col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3793
SELECT ALL col1 / + col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - ( - - 20 ) AS col2 FROM tab1
----
-1180
-1360
-1920

query III rowsort
SELECT * FROM tab2 WHERE NOT 11 IN ( + 93 / - ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT ALL - 52 * + col1 + + - col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * + + col2, 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 53 col1, col0 FROM tab1 cor0
----
-53
51
-53
85
-53
91

query II rowsort
SELECT + col1, 68 FROM tab0 AS cor0 WHERE NOT + col2 < - + col2 * + col2 * - col1
----

query II rowsort
SELECT - - 69 AS col0, + col1 * + 23 FROM tab0 AS cor0
----
69
1863
69
23
69
483

query I rowsort
SELECT DISTINCT + + ( 44 ) FROM tab2 AS cor0
----
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - - col1
----

query I rowsort
SELECT DISTINCT ( + col0 ) * col1 * - - col1 FROM tab2
----
119646
336675
379456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3804
SELECT + - col2 + - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT + - col2 + - - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT + - col1 + + col0 DIV + + col0 col2 FROM tab1 cor0
----
-13
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3805
SELECT + - col1 + + col0 / + + col0 col2 FROM tab1 cor0
----
-13
-4
-46

query I rowsort
SELECT + col0 * + 62 + + ( - col2 ) FROM tab0 AS cor0
----
5384
5915
883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3807
SELECT + - CAST( NULL AS SIGNED ) + + + ( col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT + - CAST ( NULL AS INTEGER ) + + + ( col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT COUNT( * ) + + 76 FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-3808
SELECT COUNT ( * ) + + 76 FROM tab1 cor0
----
79

query I rowsort
SELECT DISTINCT col1 + + - 11 FROM tab0 AS cor0
----
-10
10
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 91 <> + 78 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT ALL + COUNT( * ) + - MAX( ALL - col0 ) col2, + MIN( DISTINCT + + col2 ) col0 FROM tab2
----
49
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3811
SELECT ALL + COUNT ( * ) + - MAX ( ALL - col0 ) col2, + MIN ( DISTINCT + + col2 ) col0 FROM tab2
----
49
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT + COUNT( * ) FROM tab0 WHERE - 24 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT + COUNT ( * ) FROM tab0 WHERE - 24 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3813
SELECT DISTINCT 52 DIV + COUNT( * ) - - 72 FROM tab2, tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 52 / + COUNT ( * ) - - 72 FROM tab2, tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query II rowsort
SELECT + + col0 - + 31 AS col2, 45 + + col2 AS col0 FROM tab2 AS cor0
----
15
68
33
85
44
103

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 > 89 * - col2 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3817
SELECT ( + 71 ) FROM tab1 AS cor0 WHERE + ( + col0 ) * - CAST( - - col0 AS DECIMAL ) * - + ( + col1 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3817
SELECT ( + 71 ) FROM tab1 AS cor0 WHERE + ( + col0 ) * - CAST ( - - col0 AS REAL ) * - + ( + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - MAX( ALL ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3818
SELECT - MAX ( ALL ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, + col1 col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT - + 0, - 53 AS col2 FROM tab1 AS cor0
----
0
-53
0
-53
0
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT - MAX( ALL 36 ) AS col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3821
SELECT - MAX ( ALL 36 ) AS col0 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT col1 * + + col0 + - col1 - 82 + ( + + 6 ) FROM tab2 WHERE NOT + col2 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col2 AND + 41 * 37 + + col0 * + 36 * - + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL IN ( - - col0 * - + 5 * - col1 / - + col0 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( - - col0 * - + 5 * - col1 / - + col0 + - col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3825
SELECT col1 * + - 47, + CAST( NULL AS SIGNED ) + - - col1 + - col2 AS col0, 46 + + - ( - + col2 ) AS col0 FROM tab2
----
9 values hashing to 4ef6952a3d0d47dff3023af0d6829b81

skipif mysql # not compatible
query III rowsort label-3825
SELECT col1 * + - 47, + CAST ( NULL AS INTEGER ) + - - col1 + - col2 AS col0, 46 + + - ( - + col2 ) AS col0 FROM tab2
----
9 values hashing to 4ef6952a3d0d47dff3023af0d6829b81

query I rowsort
SELECT DISTINCT ( + + 5 ) AS col0 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3827
SELECT DISTINCT - - 67 DIV col0 * - ( + col0 ) AS col0 FROM tab1 WHERE - - 75 - - - col1 IS NOT NULL
----
-51
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - - 67 / col0 * - ( + col0 ) AS col0 FROM tab1 WHERE - - 75 - - - col1 IS NOT NULL
----
-51
0

query I rowsort
SELECT DISTINCT col2 * + - col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT ALL + CAST( + 58 AS SIGNED ) AS col1 FROM tab0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + CAST ( + 58 AS INTEGER ) AS col1 FROM tab0
----
58
58
58

query I rowsort
SELECT - col1 + col0 - ( col2 ) + + + col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 69 AS col2 FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL 7 FROM tab0 WHERE NOT NULL = - 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3834
SELECT DISTINCT 72, - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
72
-10
72
-47
72
-99

skipif mysql # not compatible
query II rowsort label-3834
SELECT DISTINCT 72, - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
72
-10
72
-47
72
-99

query I rowsort
SELECT + col2 * 74 + - col0 FROM tab2 AS cor0
----
1656
2896
4217

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3836
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - col2 AS col0, ( - col2 ) AS col0 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-3836
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - col2 AS col0, ( - col2 ) AS col0 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( 66 ) IN ( 83, - col0 + 17, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT COUNT( * ) * + ( 12 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT COUNT ( * ) * + ( 12 ) FROM tab2 AS cor0
----
36

query II rowsort
SELECT - 56 + + 88 * + col0 AS col0, col2 * - col2 AS col1 FROM tab2 AS cor0
----
3992
-529
5576
-1600
6544
-3364

query II rowsort
SELECT DISTINCT + col2 + - col2 AS col1, 65 AS col1 FROM tab1
----
0
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 51 / + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 51 / + col0 FROM tab0
----
NULL

query I rowsort
SELECT col0 / - + 70 * col0 * + + col0 AS col2 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 25 IS NOT NULL )
----

query I rowsort
SELECT ALL + + 96 * + - col1 * + col1 * + col0 FROM tab0 AS cor0
----
-3683232
-9312
-9447840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - 75 col1 FROM tab2 AS cor0
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 71 col1 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT MIN( ALL + 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3848
SELECT MIN ( ALL + 62 ) FROM tab2 AS cor0
----
62

query I rowsort
SELECT 85 AS col0 FROM tab1 cor0
----
85
85
85

query III rowsort
SELECT * FROM tab0 WHERE NOT - 66 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * col2 col1 FROM tab2
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT - SUM( DISTINCT + - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3853
SELECT DISTINCT + CAST( - + ( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT + CAST ( - + ( - CAST ( NULL AS INTEGER ) ) AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - - 2 AS col2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT col1 * + - col2 * col0 + col2 - 53 * 71 AS col0 FROM tab2 AS cor0
----
-200843
-295155
-57698

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT 85 + + COUNT( - col2 ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT 85 + + COUNT ( - col2 ) FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT + COUNT( * ) + - MAX( - col2 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3857
SELECT + COUNT ( * ) + - MAX ( - col2 ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT 79 + + 13 AS col1 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL ( col2 ) * 25 FROM tab2 AS cor0
----
1000
1450
575

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + 62 + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3860
SELECT + 62 + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT ( - ( 98 ) ) AS col2 FROM tab2 AS cor0
----
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 27 * col0 + + + 95 * - col0 / - col0 <= NULL
----

query I rowsort
SELECT DISTINCT 47 + + + ( - - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( - - col2 ) * col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL + - 57 * + - MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
4275

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + - 57 * + - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT col2 + - - 60 FROM tab2
----
100
118
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3868
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col0 / - 47 + + - col1 AND - CAST( NULL AS SIGNED ) + + 71
----

skipif mysql # not compatible
query III rowsort label-3868
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col0 / - 47 + + - col1 AND - CAST ( NULL AS INTEGER ) + + 71
----

query I rowsort
SELECT ALL - col2 - - col1 AS col0 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3870
SELECT + col0 - col0 - - CAST( ( - - col0 ) AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3870
SELECT + col0 - col0 - - CAST ( ( - - col0 ) AS INTEGER ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT - col2 DIV - 12 - + col2 FROM tab1
----
-55
-63
-88

skipif mysql # not compatible
query I rowsort label-3871
SELECT - col2 / - 12 - + col2 FROM tab1
----
-55
-63
-88

query I rowsort
SELECT DISTINCT 73 - col0 FROM tab1
----
-12
-18
22

query I rowsort
SELECT 81 - + col0 * - col2 FROM tab1
----
4977
5096
6269

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT - COUNT( + 42 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3874
SELECT - COUNT ( + 42 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT DISTINCT + 77 * + COUNT( * ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + 77 * + COUNT ( * ) FROM tab2 AS cor0
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT DISTINCT 58 DIV - 66 * - - 94 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT 58 / - 66 * - - 94 FROM tab0
----
0

query I rowsort
SELECT ALL + - 97 + - - 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 74 col0 FROM tab0
----
1554
5994
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT - - col0 DIV - - col2 + - col0 * col0 FROM tab1 WHERE 94 * + 13 IS NOT NULL
----
-2601
-7224
-8280

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - - col0 / - - col2 + - col0 * col0 FROM tab1 WHERE 94 * + 13 IS NOT NULL
----
-2601
-7224
-8280

query I rowsort
SELECT ALL - 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT - 70 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN + 51 * col0 AND ( 48 )
----
-70
-70
-70

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 19 = + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT DISTINCT - + col2 * - - 79 * - CAST( + + col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
202304
343725
83628

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT - + col2 * - - 79 * - CAST ( + + col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
202304
343725
83628

query II rowsort
SELECT DISTINCT - col2, + col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT ALL - col2 DIV - - col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - col2 / - - col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT + col0 * col1 DIV + + col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3887
SELECT + col0 * col1 / + + col0 FROM tab0
----
1
21
81

query II rowsort
SELECT - 12 * - - col1 AS col1, col0 AS col2 FROM tab2
----
-612
46
-804
75
-924
64

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + col1 + + 62 AND + col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - COUNT( DISTINCT - col0 ) * - 1 col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3891
SELECT - COUNT ( DISTINCT - col0 ) * - 1 col2 FROM tab2
----
3

query I rowsort
SELECT + col0 * + - ( col2 ) AS col0 FROM tab2 WHERE NULL <= - col2
----

query I rowsort
SELECT + col2 + - - col2 + col2 FROM tab0 AS cor0
----
141
297
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 12 col2 FROM tab0
----
13
33
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL + - MAX( 52 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-52

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + - MAX ( 52 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-52

query I rowsort
SELECT DISTINCT + + 60 AS col2 FROM tab1 AS cor0 WHERE NOT - 82 / col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 98 - - - col2 - 53 col1, col0 FROM tab0 AS cor0
----
-2
15
-54
97
35
87

query II rowsort
SELECT ALL + col0 - - + col1 + col1, col0 FROM tab0 cor0
----
129
87
177
15
99
97

query I rowsort
SELECT DISTINCT 5 * + + col2 AS col0 FROM tab2 AS cor0
----
115
200
290

query I rowsort
SELECT DISTINCT col2 + + - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1299
-321
-3219

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( 13 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 56 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 56 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT + COUNT( * ) + - COUNT( ALL + 28 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT + COUNT ( * ) + - COUNT ( ALL + 28 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - ( - ( - col2 ) ) + - col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT + 57 FROM tab2, tab2 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL COUNT( + + 29 ) + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL COUNT ( + + 29 ) + - COUNT ( * ) AS col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 92 > - - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - MIN( + col1 ) * 95 col1 FROM tab2 WHERE ( col2 BETWEEN + col0 * - - col0 AND col1 + 66 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3908
SELECT ALL - MIN ( + col1 ) * 95 col1 FROM tab2 WHERE ( col2 BETWEEN + col0 * - - col0 AND col1 + 66 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 77 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT + 33 * - - CAST( NULL AS SIGNED ) - - col0 * + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT + 33 * - - CAST ( NULL AS INTEGER ) - - col0 * + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL COUNT( + - 41 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL COUNT ( + - 41 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 41 * - - col2 AS col1 FROM tab0 AS cor0
----
1927
4059
410

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT - - col1 DIV 74 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3914
SELECT - - col1 / 74 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT DISTINCT CAST( + + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + + COUNT( ALL col2 ) * + + 60 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-3916
SELECT + + COUNT ( ALL col2 ) * + + 60 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - SUM( + 22 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - SUM ( + 22 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IN ( 16 * + 81, - col0 / - + col2 + + col1 + + ( 68 ) + col2 + 53 + + 56 * - + col1 * + - col0 * 15 )
----

skipif mysql # not compatible
query I rowsort label-3918
SELECT + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IN ( 16 * + 81, - col0 / - + col2 + + col1 + + ( 68 ) + col2 + 53 + + 56 * - + col1 * + - col0 * 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT ALL 75 * + ( CAST( col1 AS SIGNED ) ) * - col2 + - col1 - col1 AS col2 FROM tab1
----
-100828
-22135
-239794

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL 75 * + ( CAST ( col1 AS INTEGER ) ) * - col2 + - col1 - col1 AS col2 FROM tab1
----
-100828
-22135
-239794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col2 * - col1 + + 30 col2 FROM tab2
----
-1166
-3090
-3914

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3921
SELECT * FROM tab0 WHERE NOT - + ( col2 ) * - - col2 + + col1 - - 26 / - + col2 <= - col1 - + 91 + + - CAST( - col2 AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-3921
SELECT * FROM tab0 WHERE NOT - + ( col2 ) * - - col2 + + col1 - - 26 / - + col2 <= - col1 - + 91 + + - CAST ( - col2 AS INTEGER )
----
87
21
10

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 * - col1 AS col1 FROM tab0
----
1
1
21
441
81
6561

query I rowsort
SELECT ALL col0 + - + col1 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT + 3 + + + col0 AS col0 FROM tab0
----
100
18
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT DISTINCT CAST( + 63 AS SIGNED ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT CAST ( + 63 AS INTEGER ) AS col1 FROM tab2
----
63

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL + COUNT( ALL - + 98 ) * - + COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + COUNT ( ALL - + 98 ) * - + COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ( + ( - 49 ) ) * col1 FROM tab0
----
-1029
-3969
-49

query I rowsort
SELECT ALL - ( - 57 ) FROM tab1 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3930
SELECT - - COUNT( * ) * + + COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3930
SELECT - - COUNT ( * ) * + + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
9
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 + + col0 col1 FROM tab1 AS cor0
----
112
146
152

query I rowsort
SELECT ALL + 25 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL col1 + + - 49 FROM tab2
----
18
2
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT + 69 + COUNT( * ) * 47 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3876

skipif mysql # not compatible
query I rowsort label-3934
SELECT + 69 + COUNT ( * ) * 47 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3876

query I rowsort
SELECT ALL - - 90 AS col1 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT - col1 * - col0 * - 99 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-120285
-180873
-9603

query II rowsort
SELECT ALL 63 AS col2, 35 FROM tab1
----
63
35
63
35
63
35

query I rowsort
SELECT DISTINCT - col1 + + 79 AS col1 FROM tab0 WHERE col1 NOT BETWEEN + col1 / - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT COUNT( * ) AS col0, - 37 AS col1 FROM tab2
----
3
-37

skipif mysql # not compatible
query II rowsort label-3939
SELECT COUNT ( * ) AS col0, - 37 AS col1 FROM tab2
----
3
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, + col0 - + col0 + col1 + + col1 * col1 col2 FROM tab0
----
10
462
47
6642
99
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3941
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( - - CAST( NULL AS SIGNED ), + 42, + 29 )
----

skipif mysql # not compatible
query III rowsort label-3941
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( - - CAST ( NULL AS INTEGER ), + 42, + 29 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT ALL - 66 AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col1 <> NULL
----
-66
0

skipif mysql # not compatible
query II rowsort label-3942
SELECT ALL - 66 AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col1 <> NULL
----
-66
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3943
SELECT - CAST( NULL AS SIGNED ) * col0, col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-3943
SELECT - CAST ( NULL AS INTEGER ) * col0, col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT + ( + COUNT( DISTINCT col2 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + ( + COUNT ( DISTINCT col2 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3945
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL ( - 51 ) FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT + 89 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT - 72 ) DIV - + SUM( ALL + col2 ) - + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT - 72 ) / - + SUM ( ALL + col2 ) - + COUNT ( * ) AS col1 FROM tab1
----
0

query I rowsort
SELECT + col0 + + col0 * col0 * - - col1 * + - col0 * + - col0 * - + col1 FROM tab0 WHERE + + col2 + + - 12 + - col1 IS NULL
----

query II rowsort
SELECT - 14 * + 60 + - 72 AS col1, col1 AS col0 FROM tab2
----
-912
51
-912
67
-912
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 4 BETWEEN - col1 AND + ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3953
SELECT DISTINCT - - 20 AS col2, CAST( 96 AS SIGNED ), ( + col1 ) AS col1 FROM tab0 AS cor0
----
9 values hashing to daa0bdbb35e2c878df2a44c27f559f83

skipif mysql # not compatible
query III rowsort label-3953
SELECT DISTINCT - - 20 AS col2, CAST ( 96 AS INTEGER ), ( + col1 ) AS col1 FROM tab0 AS cor0
----
9 values hashing to daa0bdbb35e2c878df2a44c27f559f83

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT SUM( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3954
SELECT SUM ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL + + COUNT( ALL + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + + COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT MIN( ALL - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3957
SELECT MIN ( ALL - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3958
SELECT ALL - CAST( NULL AS DECIMAL ) * + col2 + col2 + + - col2 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - CAST ( NULL AS REAL ) * + col2 + col2 + + - col2 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + ( - 57 ) * - + 51 * col0 AS col1, col2 FROM tab1
----
148257
96
247095
59
264537
68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3960
SELECT ALL * FROM tab0 AS cor0 WHERE - 96 * 7 = - 7 / - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3960
SELECT ALL * FROM tab0 AS cor0 WHERE - 96 * 7 = - 7 / - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT - + CAST( NULL AS SIGNED ) * - 11 * + col1 - + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT - + CAST ( NULL AS INTEGER ) * - 11 * + col1 - + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - + 33 FROM tab2 cor0
----
1683
2211
2541

query I rowsort
SELECT DISTINCT ( - + ( + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, + col1 * + col2 + col0 col2 FROM tab0 AS cor0
----
15
3822
87
297
97
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 col0, col0 AS col0 FROM tab1 AS cor0
----
52
51
52
85
52
91

query I rowsort
SELECT DISTINCT + col1 * 60 * + col0 FROM tab1
----
25500
256620
42840

query I rowsort
SELECT DISTINCT - col2 * - 17 FROM tab2
----
391
680
986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 93 ) col2 FROM tab1
----
93
93
93

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - 78 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT + MIN( - 78 ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3970
SELECT + MIN ( - 78 ) FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT SUM( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT ALL - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3973
SELECT + CAST( NULL AS SIGNED ) * COUNT( ALL + 66 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( ALL + 66 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT - col2 DIV col2 + + - ( + + ( + - 37 ) ) FROM tab2 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3974
SELECT - col2 / col2 + + - ( + + ( + - 37 ) ) FROM tab2 AS cor0
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3975
SELECT + col2 + - col2 DIV + col1 AS col1 FROM tab1 cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-3975
SELECT + col2 + - col2 / + col1 AS col1 FROM tab1 cor0
----
48
67
90

query I rowsort
SELECT + 38 + + 22 AS col0 FROM tab1 AS cor0
----
60
60
60

query II rowsort
SELECT ALL + + col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - + col1 * - 7 AS col1 FROM tab0 AS cor0
----
147
567
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL SUM( + 5 ) + + COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL SUM ( + 5 ) + + COUNT ( * ) FROM tab0
----
18

query I rowsort
SELECT DISTINCT col2 - 89 AS col0 FROM tab2
----
-31
-49
-66

query I rowsort
SELECT ALL + col0 + - - col2 AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT 47 + - COUNT( * ) FROM tab1 WHERE NULL < - col2 * + + 22
----
47

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT 47 + - COUNT ( * ) FROM tab1 WHERE NULL < - col2 * + + 22
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT DISTINCT + 52 * col0 / + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT + 52 * col0 / + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL 5 * + 52 - - 27 + + - col2 FROM tab1
----
191
219
228

onlyif mysql # DIV for integer division: 
query I rowsort label-3986
SELECT col0 DIV - col2 - col1 FROM tab1 AS cor0
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-3986
SELECT col0 / - col2 - col1 FROM tab1 AS cor0
----
-14
-48
-6

query II rowsort
SELECT DISTINCT - + col0 * + col2, col1 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3988
SELECT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT col1 + - - ( + + col1 ) FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
58

query I rowsort
SELECT DISTINCT + 97 * + + col2 FROM tab1 AS cor0
----
5723
6596
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - + COUNT( - + col0 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3992
SELECT - + COUNT ( - + col0 ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + - COUNT( DISTINCT col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3993
SELECT + - COUNT ( DISTINCT col2 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE - 41 + - 18 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3995
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 10 + - - 75 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col0 ) col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 25 * + col2 + + col1 = + 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT ALL - col0 DIV - 17 FROM tab0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - col0 / - 17 FROM tab0
----
0
5
5

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + ( + 67 ) IS NOT NULL
----

query II rowsort
SELECT - 65, + 99 AS col0 FROM tab0
----
-65
99
-65
99
-65
99

query II rowsort
SELECT + 82, + col2 FROM tab1
----
82
59
82
68
82
96

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT - - 49 >= ( NULL )
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND 10 * - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ( COUNT( * ) ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4005
SELECT ( COUNT ( * ) ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + COUNT( * ) * + SUM( ALL - 68 ) FROM tab0
----
-612

skipif mysql # not compatible
query I rowsort label-4006
SELECT + COUNT ( * ) * + SUM ( ALL - 68 ) FROM tab0
----
-612

onlyif mysql # aggregate syntax: 
query II rowsort label-4007
SELECT - MIN( - 88 ) AS col1, COUNT( * ) FROM tab1
----
88
3

skipif mysql # not compatible
query II rowsort label-4007
SELECT - MIN ( - 88 ) AS col1, COUNT ( * ) FROM tab1
----
88
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < 71 * - col0 + + - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( - col1 ) + 45 + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col2 * 57 - col2 AS col0 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT ALL - - ( 13 ) FROM tab2 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4013
SELECT * FROM tab2 AS cor0 WHERE - CAST( col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4013
SELECT * FROM tab2 AS cor0 WHERE - CAST ( col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + col0 + + - col1 + col2 + col0 * - + ( - - ( - 14 ) ) + 31 + 97 FROM tab1
----
1026
1542
1605

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4015
SELECT + CAST( NULL AS SIGNED ) * - - 33 + + + col0 * + col2 AS col0, 54 AS col0 FROM tab1
----
NULL
54
NULL
54
NULL
54

skipif mysql # not compatible
query II rowsort label-4015
SELECT + CAST ( NULL AS INTEGER ) * - - 33 + + + col0 * + col2 AS col0, 54 AS col0 FROM tab1
----
NULL
54
NULL
54
NULL
54

query I rowsort
SELECT - col2 + + 54 + col1 + - col2 AS col1 FROM tab2
----
5
51
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 - - col1 col2 FROM tab0
----
106
166
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL - MIN( - - col1 ) col2 FROM tab0 WHERE NOT - 32 + - + col2 NOT BETWEEN col0 AND 92 / + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4018
SELECT ALL - MIN ( - - col1 ) col2 FROM tab0 WHERE NOT - 32 + - + col2 NOT BETWEEN col0 AND 92 / + col0
----
NULL

query I rowsort
SELECT 3 + + - 23 AS col2 FROM tab0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT - 58 * - col2 AS col2 FROM tab2
----
1334
2320
3364

query I rowsort
SELECT ALL col1 * + 78 * + col2 * + col2 FROM tab1
----
10063872
1357590
16951584

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT DISTINCT 67 DIV + col1 FROM tab1 AS cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT 67 / + col1 FROM tab1 AS cor0
----
1
13
4

query I rowsort
SELECT col0 * - 20 AS col0 FROM tab2 AS cor0
----
-1280
-1500
-920

query I rowsort
SELECT ALL 80 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 + + col1 / - ( ( - col2 ) ) + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - COUNT( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4027
SELECT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT MAX( + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4028
SELECT MAX ( + - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT ALL - 16 * + 46, MAX( - + col0 ) * + + COUNT( * ) + MAX( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-736
52

skipif mysql # not compatible
query II rowsort label-4029
SELECT ALL - 16 * + 46, MAX ( - + col0 ) * + + COUNT ( * ) + MAX ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-736
52

query I rowsort
SELECT - 84 * 84 + col2 FROM tab1 AS cor0
----
-6960
-6988
-6997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4031
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 12 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 12 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL + + SUM( DISTINCT - ( col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + + SUM ( DISTINCT - ( col1 ) ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 - 81 col0 FROM tab2 AS cor0
----
-1254
-3161
-3967

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT 95 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 85 * + col2 FROM tab0
----
-3995
-8415
-850

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 + - col0 * 84 AND - 48 - 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT 82 * - COUNT( * ) AS col1 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 82 * - COUNT ( * ) AS col1 FROM tab0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT DISTINCT - MIN( DISTINCT - - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT - MIN ( DISTINCT - - col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT - MIN( DISTINCT - 86 ) AS col1 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-4039
SELECT - MIN ( DISTINCT - 86 ) AS col1 FROM tab1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT DISTINCT + col1 DIV + 97 * - 68 AS col0 FROM tab1 WHERE 6 * + col2 + + col2 * - col1 <= + + col0 * + col2 + col0
----
0

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT + col1 / + 97 * - 68 AS col0 FROM tab1 WHERE 6 * + col2 + + col2 * - col1 <= + + col0 * + col2 + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col1 FROM tab1
----
76

query I rowsort
SELECT DISTINCT col2 * + col2 * - + col0 AS col0 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4043
SELECT - col1 DIV CAST( col0 AS SIGNED ), + col0 FROM tab2 AS cor0
----
-1
46
-1
64
0
75

skipif mysql # not compatible
query II rowsort label-4043
SELECT - col1 / CAST ( col0 AS INTEGER ), + col0 FROM tab2 AS cor0
----
-1
46
-1
64
0
75

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT 2 + + 24 > 80
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL SUM( + 14 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL SUM ( + 14 ) FROM tab2 AS cor0
----
42

query II rowsort
SELECT col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT col0 AS col2, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL + 38 + - - col2 + + col1 AS col2 FROM tab2 AS cor0
----
112
155
163

query II rowsort
SELECT - - col0, + col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT + 18 + + col2 FROM tab1 AS cor0
----
114
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT + COUNT( + col0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4051
SELECT DISTINCT + COUNT ( + col0 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - - 1 + + MAX( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-4052
SELECT - - 1 + + MAX ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT col2 + + + col0 + - col0 + col0 * + CAST( CAST( + 8 AS SIGNED ) AS SIGNED ) - - 71 * 29 * - col1 FROM tab1 cor0
----
-28322
-9556
-95977

skipif mysql # not compatible
query I rowsort label-4053
SELECT col2 + + + col0 + - col0 + col0 * + CAST ( CAST ( + 8 AS INTEGER ) AS INTEGER ) - - 71 * 29 * - col1 FROM tab1 cor0
----
-28322
-9556
-95977

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT + COUNT( - 57 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT + COUNT ( - 57 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT + 47 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + 47 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT 34 + COUNT( * ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-4057
SELECT 34 + COUNT ( * ) FROM tab2 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + col1, col1 col1, + 20 AS col2 FROM tab2 cor0
----
9 values hashing to b5ffe65dbea6cb75a4a2ce9d6d395570

query I rowsort
SELECT DISTINCT - - col1 + - ( - 21 ) FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT - - col2 * + - 43 FROM tab1 AS cor0
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4061
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4062
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 85 * 27 * + - 73 + col0 * - 80 NOT BETWEEN NULL AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4062
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 85 * 27 * + - 73 + col0 * - 80 NOT BETWEEN NULL AND - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - 60 AS col0, - ( - ( - 97 ) ) FROM tab1 AS cor0
----
-60
-97
-60
-97
-60
-97

query I rowsort
SELECT DISTINCT 80 FROM tab0 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT col2 * - - CAST( NULL AS SIGNED ) - - 61 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT col2 * - - CAST ( NULL AS INTEGER ) - - 61 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ( 52 ) - - col2 + - col0 AS col2 FROM tab1
----
26
29
97

query I rowsort
SELECT ALL + 62 + col1 * + col2 FROM tab0
----
161
272
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL COUNT( * ) + - 19 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL COUNT ( * ) + - 19 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
-19

query I rowsort
SELECT + col1 + + - col2 FROM tab0 AS cor0 WHERE - 20 IS NOT NULL
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT 33 * CAST( NULL AS SIGNED ) + + col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT 33 * CAST ( NULL AS INTEGER ) + + col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 51 - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = - col1 + + 36 / 1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT DISTINCT 58 AS col1, - COUNT( * ) AS col0 FROM tab1
----
58
-3

skipif mysql # not compatible
query II rowsort label-4072
SELECT DISTINCT 58 AS col1, - COUNT ( * ) AS col0 FROM tab1
----
58
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN - 40 AND - + ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN - 40 AND - + ( + - col2 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col0, - col2 * + 97 / - 43 + - - col1 )
----

query I rowsort
SELECT ALL + 93 * - col1 + 29 AS col1 FROM tab1 AS cor0
----
-1273
-4342
-436

query II rowsort
SELECT 29 AS col0, + 14 + + - col1 FROM tab0 cor0
----
29
-67
29
-7
29
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT MIN( ALL + + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT MIN ( ALL + + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
51

query II rowsort
SELECT ALL + col2 * col1 * - col0 AS col0, col0 * - + col2 AS col0 FROM tab2 AS cor0
----
-197120
-2560
-291450
-4350
-53958
-1058

query I rowsort
SELECT 46 * + - col2 * - 25 - - 89 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
110489
67939
78289

query II rowsort
SELECT DISTINCT col1 + + col0, col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - - 60 * + + col0 + col2 + - col2 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col2 FROM tab0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + MIN( DISTINCT - + col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4083
SELECT + MIN ( DISTINCT - + col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT col1 * - col2 * - 8 FROM tab0
----
1680
30456
792

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT + col1 DIV - ( + col2 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4085
SELECT + col1 / - ( + col2 ) FROM tab0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT ALL 93 + - col0 DIV - col2 FROM tab1
----
93
94
94

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL 93 + - col0 / - col2 FROM tab1
----
93
94
94

query I rowsort
SELECT ALL ( + + col2 ) * col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT col0 * - + 16 FROM tab0
----
-1392
-1552
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT MAX( + - col1 ) * - COUNT( * ) AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-4089
SELECT MAX ( + - col1 ) * - COUNT ( * ) AS col2 FROM tab1
----
15

query I rowsort
SELECT DISTINCT 13 + col2 AS col0 FROM tab1
----
109
72
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > + 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4092
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL OR - 23 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4092
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL OR - 23 > - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + col1, col2 FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT ALL col2 + + 85 AS col0 FROM tab1
----
144
153
181

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT COUNT( * ) + - - 81 + - 39 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4095
SELECT COUNT ( * ) + - - 81 + - 39 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL - 65 + - 73 + + MAX( col2 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - 65 + - 73 + + MAX ( col2 ) FROM tab0
----
-39

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - 21 * col1
----

query I rowsort
SELECT + col0 + - + 16 FROM tab1
----
35
69
75

query II rowsort
SELECT - - col0 + + col2 AS col2, + ( + col2 ) AS col0 FROM tab1 WHERE - col0 <> - - col0
----
144
59
147
96
159
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT - - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + 63 - - col1 FROM tab1
----
110
68
77

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0 WHERE NOT col2 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - - COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4103
SELECT - - COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( - col2 ) * - - col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + col0 + + 70 + - col2 + + - 3 * + col1 * col2 FROM tab0 AS cor0
----
-11383
-229
-483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4106
SELECT + COUNT( * ) DIV + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4106
SELECT + COUNT ( * ) / + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - COUNT( * ) col0 FROM tab2, tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT - COUNT ( * ) col0 FROM tab2, tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT + SUM( - 67 ) * SUM( DISTINCT 63 ) FROM tab0
----
-12663

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + SUM ( - 67 ) * SUM ( DISTINCT 63 ) FROM tab0
----
-12663

query I rowsort
SELECT ALL + col1 + - + col2 AS col0 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT + col0 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT MAX( DISTINCT + 0 ) * - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT MAX ( DISTINCT + 0 ) * - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 * - col2 * - col2 AS col2 FROM tab1
----
205379
314432
884736

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT - - MIN( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4113
SELECT - - MIN ( ALL + - col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + 88 AS col2 FROM tab0 cor0
----
88
88
88

query II rowsort
SELECT ALL - col1 + + 65 - col2, + col2 FROM tab1 AS cor0
----
-45
96
-50
68
1
59

query I rowsort
SELECT col0 + 8 FROM tab0
----
105
23
95

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN ( - col2 ) AND - 23
----

query I rowsort
SELECT 63 + - col1 * + col1 AS col1 FROM tab2
----
-2538
-4426
-5866

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT COUNT( * ) FROM tab2 WHERE NOT col1 + - col2 NOT IN ( + ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4119
SELECT COUNT ( * ) FROM tab2 WHERE NOT col1 + - col2 NOT IN ( + ( col1 ) )
----
0

query I rowsort
SELECT ALL ( - col1 ) - - 3 AS col2 FROM tab1
----
-11
-2
-44

query I rowsort
SELECT ( 89 ) * - col0 AS col2 FROM tab0
----
-1335
-7743
-8633

query I rowsort
SELECT + ( col2 ) - 9 FROM tab0
----
1
38
90

query I rowsort
SELECT - col0 * 57 AS col2 FROM tab2
----
-2622
-3648
-4275

query I rowsort
SELECT ALL - 52 * 28 AS col0 FROM tab0
----
-1456
-1456
-1456

query I rowsort
SELECT 25 + + col0 * - col2 FROM tab0
----
-680
-845
-9578

query I rowsort
SELECT ALL 8 * - col0 AS col2 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT ALL 49 FROM tab1 WHERE + 23 <> col2
----
49
49
49

query I rowsort
SELECT + 97 * col2 AS col2 FROM tab1
----
5723
6596
9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT DISTINCT col2 FROM tab1 WHERE - col0 BETWEEN + CAST( + 17 AS SIGNED ) * col1 AND ( + col0 * 5 )
----

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT col2 FROM tab1 WHERE - col0 BETWEEN + CAST ( + 17 AS INTEGER ) * col1 AND ( + col0 * 5 )
----

query I rowsort
SELECT col0 * 93 AS col1 FROM tab1
----
4743
7905
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT MAX( DISTINCT + 40 ) FROM tab0 WHERE NULL IS NULL
----
40

skipif mysql # not compatible
query I rowsort label-4131
SELECT MAX ( DISTINCT + 40 ) FROM tab0 WHERE NULL IS NULL
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT 37 * COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
111

skipif mysql # not compatible
query I rowsort label-4132
SELECT 37 * COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col0 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - 38 + COUNT( * ) AS col0 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-4134
SELECT - 38 + COUNT ( * ) AS col0 FROM tab0
----
-35

query I rowsort
SELECT ALL col1 * - col0 FROM tab2 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 0 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT COUNT( * ) * 97 FROM tab1 WHERE NOT - 97 * + col0 + - col0 IS NULL
----
291

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT COUNT ( * ) * 97 FROM tab1 WHERE NOT - 97 * + col0 + - col0 IS NULL
----
291

query I rowsort
SELECT DISTINCT + col0 * + 12 AS col1 FROM tab0
----
1044
1164
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4139
SELECT DISTINCT + AVG ( + col2 ) / ( SUM( + 98 ) ) FROM tab2 WHERE NOT NULL BETWEEN col0 + - ( 81 ) AND + col0 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + AVG ( + col2 ) / ( SUM ( + 98 ) ) FROM tab2 WHERE NOT NULL BETWEEN col0 + - ( 81 ) AND + col0 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + SUM( ALL col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4140
SELECT + SUM ( ALL col2 ) FROM tab0
----
156

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( 39 ) NOT BETWEEN + 28 AND NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( NULL ) IN ( col1 + col0 )
----

query I rowsort
SELECT DISTINCT + col0 + - 17 AS col2 FROM tab0
----
-2
70
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 2 * col2 col0 FROM tab0
----
141
297
30

query I rowsort
SELECT + col0 / col0 FROM tab0 WHERE + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT + 71 - - MIN( + ( ( + 95 ) ) ) FROM tab2
----
166

skipif mysql # not compatible
query I rowsort label-4146
SELECT + 71 - - MIN ( + ( ( + 95 ) ) ) FROM tab2
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL SUM( col0 ) AS col2 FROM tab0 cor0 WHERE NOT - col0 <> + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL SUM ( col0 ) AS col2 FROM tab0 cor0 WHERE NOT - col0 <> + 16
----
NULL

query I rowsort
SELECT col0 * + col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + 34 * COUNT( * ) AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4150
SELECT + 34 * COUNT ( * ) AS col2 FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 / - col2 >= - 74 + - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT + 36 * + COUNT( * ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + 36 * + COUNT ( * ) FROM tab0 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * 42 + - col2 col1 FROM tab2 WHERE NOT ( NULL ) IN ( + 32 / 10 )
----

query I rowsort
SELECT ALL - 29 + + + 70 FROM tab2
----
41
41
41

query I rowsort
SELECT DISTINCT + 96 + - col2 + - col0 * ( - col1 ) FROM tab1
----
4305
462
714

query I rowsort
SELECT ALL 87 + + col1 FROM tab2
----
138
154
164

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 89 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT DISTINCT col1 DIV + ( - col1 ) + - 9 * 27 AS col0 FROM tab1
----
-244

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT col1 / + ( - col1 ) + - 9 * 27 AS col0 FROM tab1
----
-244

query I rowsort
SELECT col1 + + + col2 + col1 AS col0 FROM tab0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL - MIN( ALL + 31 ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - MIN ( ALL + 31 ) FROM tab2
----
-31

query I rowsort
SELECT - col0 * + 41 * - col2 + + col2 FROM tab2
----
105000
178408
43401

query I rowsort
SELECT 44 + + col1 FROM tab0 WHERE NULL <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND - col2
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT col2 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 AS col0 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT - + SUM( + - ( - col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT - + SUM ( + - ( - col0 ) ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 + - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + col0 * + 36 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4170
SELECT DISTINCT + 68 * + CAST( COUNT( * ) AS SIGNED ) + + 68 FROM tab2
----
272

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + 68 * + CAST ( COUNT ( * ) AS INTEGER ) + + 68 FROM tab2
----
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - 30 - - col1 AS col2 FROM tab0
----
-29
-9
51

query I rowsort
SELECT 54 FROM tab2 AS cor0 WHERE ( NULL ) = col2
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL > - col0
----

query I rowsort
SELECT + col1 + - - col2 AS col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL + 51 + COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL + 51 + COUNT ( * ) FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 / + - ( 69 ) ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + - MAX( - - col2 ) + - 67 + COUNT( * ) FROM tab0 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-4178
SELECT + - MAX ( - - col2 ) + - 67 + COUNT ( * ) FROM tab0 AS cor0
----
-163

query I rowsort
SELECT + col1 AS col1 FROM tab0 cor0 WHERE NOT 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT COUNT( 26 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4180
SELECT COUNT ( 26 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 3 IN ( + + col2 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + - 65 * + 57 AS col1 FROM tab2
----
-148200
-214890
-85215

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT col0 DIV + 74 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4183
SELECT col0 / + 74 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4184
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + 79 * - CAST( col0 AS SIGNED ) - 32 )
----

skipif mysql # not compatible
query III rowsort label-4184
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + 79 * - CAST ( col0 AS INTEGER ) - 32 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 <= + col0 + + 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + + 77 + ( - col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT - col1 - + 3 <= NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( - 32 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL MIN( + - ( + col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL MIN ( + - ( + col1 ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab2 WHERE 63 IS NOT NULL
----
16

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - 50 * - COUNT( * ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-4194
SELECT - 50 * - COUNT ( * ) FROM tab1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT + - COUNT( * ) * ( 40 ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-4195
SELECT + - COUNT ( * ) * ( 40 ) FROM tab2 AS cor0
----
-120

query I rowsort
SELECT ALL col2 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 + + + col0 + + + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + 30 FROM tab2 AS cor0
----
105
76
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT + col1 + CAST( NULL AS SIGNED ) * - - col1 * + - 72 * col1 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-4198
SELECT + col1 + CAST ( NULL AS INTEGER ) * - - col1 * + - 72 * col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col0 FROM tab0 cor0
----
-11
-34
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col2 * - col1 + - col2
----

query I rowsort
SELECT DISTINCT col2 + + - 17 AS col1 FROM tab2
----
23
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - 14 - - COUNT( DISTINCT - - col0 ) - - 83 FROM tab1 WHERE - col2 IS NOT NULL
----
72

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 14 - - COUNT ( DISTINCT - - col0 ) - - 83 FROM tab1 WHERE - col2 IS NOT NULL
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL CAST( + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - 68 * + COUNT( - + 89 ) col1 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4204
SELECT - 68 * + COUNT ( - + 89 ) col1 FROM tab0 AS cor0
----
-204

query II rowsort
SELECT DISTINCT 39 AS col0, col0 FROM tab1 AS cor0
----
39
51
39
85
39
91

query I rowsort
SELECT ALL - col0 * - 77 * 54 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT + 4 + COUNT( * ) - + MIN( ALL - - 75 ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + 4 + COUNT ( * ) - + MIN ( ALL - - 75 ) FROM tab1 AS cor0
----
-68

query I rowsort
SELECT ALL col2 * - 81 * col1 AS col2 FROM tab2 WHERE NULL = ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT COUNT( * ) + - SUM( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT COUNT ( * ) + - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE - 53 BETWEEN ( 38 * + 81 * col1 ) AND ( NULL )
----

query I rowsort
SELECT ALL + + 29 * + - col2 * - - col1 * - + col1 AS col1 FROM tab2 AS cor0
----
1734867
6877640
7550498

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= - + col2 - - col0 * + ( - 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > 39
----

query I rowsort
SELECT ALL - ( col1 ) * col1 - - - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2415
3456
9020

query I rowsort
SELECT ALL + AVG ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 39 NOT IN ( + col2, 85 )
----

query II rowsort
SELECT ALL + 31 AS col0, 50 AS col0 FROM tab2
----
31
50
31
50
31
50

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, 1 AS col1 FROM tab1
----
59
1
68
1
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT ALL CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT col2 DIV + - 48 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT col2 / + - 48 FROM tab2
----
-1
0
0

query I rowsort
SELECT - 89 * + col0 FROM tab1
----
-4539
-7565
-8099

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT col1 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 55 * + col0 FROM tab1
----
2805
4675
5005

query I rowsort
SELECT col2 * - + 41 FROM tab1
----
-2419
-2788
-3936

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + - col1 AND - col2 * - col0 * + 68
----

query I rowsort
SELECT ALL + col2 * - 47 AS col0 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT DISTINCT + 52 * + col0 FROM tab0
----
4524
5044
780

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4229
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4229
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT + COUNT( * ) * + + 67 AS col0 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4230
SELECT + COUNT ( * ) * + + 67 AS col0 FROM tab0 AS cor0
----
201

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + col2 * - 75 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + 28 + - MIN( DISTINCT - + ( - col0 ) ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4232
SELECT + 28 + - MIN ( DISTINCT - + ( - col0 ) ) AS col2 FROM tab0
----
13

query I rowsort
SELECT - ( + - col2 ) * - 10 FROM tab2 AS cor0
----
-230
-400
-580

query I rowsort
SELECT ALL col1 * - - col0 * 3 * + - col2 FROM tab1 AS cor0 WHERE NOT ( - 29 ) IS NULL
----
-205632
-75225
-872508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT DISTINCT - col1 * ( + CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT - col1 * ( + CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL ( - col1 ) / + CAST( NULL AS SIGNED ) - + - col2 * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL ( - col1 ) / + CAST ( NULL AS INTEGER ) - + - col2 * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * - + col1 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1122
-1474
-1694

query II rowsort
SELECT + col1 AS col0, 73 + - - 40 AS col2 FROM tab2
----
51
113
67
113
77
113

query I rowsort
SELECT ALL col2 + - col1 + - col2 * + ( col0 ) * - - col0 + 82 + col1 * - + col2 FROM tab0
----
-14334
-75829
-931410

query I rowsort
SELECT DISTINCT + col1 + - + 99 + - col1 FROM tab0
----
-99

query I rowsort
SELECT + col1 * - 15 * - 42 + + col2 + col0 FROM tab0
----
13327
51092
826

query I rowsort
SELECT - col2 + col0 * - col2 AS col1 FROM tab1
----
-4992
-5074
-6256

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 * + 67 ) IS NULL AND NULL < - + col1 - + + 30
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( - ( + col0 ) * - col0 )
----

query II rowsort
SELECT DISTINCT - col2 AS col0, col1 AS col0 FROM tab0
----
-10
21
-47
81
-99
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 42 * - - col2 - - col1 BETWEEN 52 * col0 + col1 + - - col0 AND NULL )
----

query II rowsort
SELECT ALL + col1 AS col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL 37 + + + 54 + - SUM( DISTINCT 34 ) AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL 37 + + + 54 + - SUM ( DISTINCT 34 ) AS col1 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT CAST( - ( - col1 ) AS SIGNED ) + 7 FROM tab1
----
12
21
54

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT CAST ( - ( - col1 ) AS INTEGER ) + 7 FROM tab1
----
12
21
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4250
SELECT DISTINCT 88 col1, MIN( ALL + - col0 ) AS col0 FROM tab2 WHERE NOT + 65 * - ( col0 ) IS NOT NULL
----
88
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4250
SELECT DISTINCT 88 col1, MIN ( ALL + - col0 ) AS col0 FROM tab2 WHERE NOT + 65 * - ( col0 ) IS NOT NULL
----
88
NULL

query II rowsort
SELECT + 15, 48 AS col0 FROM tab1
----
15
48
15
48
15
48

query II rowsort
SELECT col1, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 AS col1, col2 * + col1 col0 FROM tab1
----
70
1344
70
295
70
3196

query I rowsort
SELECT ALL + col0 + - + ( - col1 ) FROM tab0
----
108
96
98

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 * - col1 AND NULL
----

query I rowsort
SELECT DISTINCT + ( ( - 10 ) ) * - + 4 AS col1 FROM tab1 AS cor0
----
40

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4259
SELECT + 60 AS col0, 92 DIV - col0 AS col0 FROM tab2 AS cor0
----
60
-1
60
-1
60
-2

skipif mysql # not compatible
query II rowsort label-4259
SELECT + 60 AS col0, 92 / - col0 AS col0 FROM tab2 AS cor0
----
60
-1
60
-1
60
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4260
SELECT ALL + ( - col2 ) AS col2, + CAST( + + col0 AS SIGNED ) + - + col0 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-4260
SELECT ALL + ( - col2 ) AS col2, + CAST ( + + col0 AS INTEGER ) + - + col0 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query II rowsort
SELECT - + 75 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
-75
-46
-75
-64
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL - MIN( ALL ( - col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - MIN ( ALL ( - col1 ) ) FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col1 col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL >= ( NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT ALL + 21 * col0 + - col0 + - + ( col0 ) DIV col1 * - - col0 * - 88 AS col2 FROM tab0 cor0
----
300
32364
829932

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL + 21 * col0 + - col0 + - + ( col0 ) / col1 * - - col0 * - 88 AS col2 FROM tab0 cor0
----
300
32364
829932

query I rowsort
SELECT DISTINCT - + col0 * - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT DISTINCT - + 24 AS col2 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT ALL + - 33 AS col2 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT + + 84 + + - col1 FROM tab2 AS cor0
----
17
33
7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 92 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4272
SELECT col0 + col2 * + col0, - 75 AS col0 FROM tab2 WHERE NOT - 17 * + CAST( NULL AS SIGNED ) = NULL AND NOT NULL BETWEEN + 25 AND NULL
----

skipif mysql # not compatible
query II rowsort label-4272
SELECT col0 + col2 * + col0, - 75 AS col0 FROM tab2 WHERE NOT - 17 * + CAST ( NULL AS INTEGER ) = NULL AND NOT NULL BETWEEN + 25 AND NULL
----

query II rowsort
SELECT ALL col0 AS col2, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + 16 * + ( + 27 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 48b71d232f6aafe607354db08bd58d2a

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT - ( + + col0 ) + + + col0 * + col2 * col1 DIV - - ( + - col1 ) FROM tab0 AS cor0
----
-720
-957
-9700

skipif mysql # not compatible
query I rowsort label-4275
SELECT - ( + + col0 ) + + + col0 * + col2 * col1 / - - ( + - col1 ) FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4276
SELECT - col2 + - col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT - col2 + - col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + ( + + col1 ) FROM tab1 AS cor0 WHERE ( NULL ) <= - col1
----

query II rowsort
SELECT DISTINCT + col1, + 27 AS col2 FROM tab1 AS cor0
----
14
27
47
27
5
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) + - - 62 * col2 * + - 99 AS col1 FROM tab0 AS cor0
----
-288501
-607759
-61467

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) + - - 62 * col2 * + - 99 AS col1 FROM tab0 AS cor0
----
-288501
-607759
-61467

query I rowsort
SELECT DISTINCT col0 + + ( col0 ) - + - col0 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT + + 50 FROM tab1 WHERE ( - col1 ) * col2 / + + 6 + + col2 + - 61 >= + 19 + - + CAST( 97 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-4281
SELECT + + 50 FROM tab1 WHERE ( - col1 ) * col2 / + + 6 + + col2 + - 61 >= + 19 + - + CAST ( 97 AS INTEGER )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT CAST( - - CAST( - ( - col0 ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4282
SELECT CAST ( - - CAST ( - ( - col0 ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL + 91 * - ( - CAST( + col1 AS SIGNED ) ) + - col1 FROM tab2
----
4590
6030
6930

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL + 91 * - ( - CAST ( + col1 AS INTEGER ) ) + - col1 FROM tab2
----
4590
6030
6930

query I rowsort
SELECT DISTINCT + col2 - - + 88 + + - col2 AS col2 FROM tab2
----
88

query I rowsort
SELECT ALL - + ( 84 ) - + col1 AS col2 FROM tab1 AS cor0
----
-131
-89
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL - + MAX( + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - + MAX ( + col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT col2 * + col1 * + col1 + 6 / + col2 AS col0 FROM tab2 AS cor0 WHERE + 56 - - + 37 = - col1 * - - col2 + col1 * 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4288
SELECT ALL - MIN( - CAST( + + col1 AS SIGNED ) ) AS col0, CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col0 FROM tab0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL - MIN ( - CAST ( + + col1 AS INTEGER ) ) AS col0, CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col0 FROM tab0
----
81
NULL

query I rowsort
SELECT 44 * col1 FROM tab0
----
3564
44
924

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL MIN( DISTINCT + + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL MIN ( DISTINCT + + col2 ) AS col2 FROM tab2
----
23

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + 79 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 79 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT COUNT( DISTINCT - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT COUNT ( DISTINCT - col0 ) FROM tab2
----
3

query I rowsort
SELECT ALL 76 * - + col2 AS col0 FROM tab1
----
-4484
-5168
-7296

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 * - + 3 ) IS NULL
----
59
68
96

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 59 NOT BETWEEN - col2 AND - 19 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + 99 FROM tab1
----
1386
4653
495

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT + 15 DIV - - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 15 / - - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - ( + 98 ) * - col2 + 18 FROM tab0
----
4624
9720
998

query I rowsort
SELECT col2 * - 51 AS col2 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # DIV for integer division: 
query II rowsort label-4302
SELECT - 48 * - - 96 * + 30 * + + ( col0 ) * - - col1 col0, col2 DIV + + col0 FROM tab0
----
-13409280
1
-167961600
3
-252564480
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4302
SELECT - 48 * - - 96 * + 30 * + + ( col0 ) * - - col1 col0, col2 / + + col0 FROM tab0
----
-13409280
1
-167961600
3
-252564480
0

query I rowsort
SELECT 69 * + 54 * + ( - 14 ) AS col0 FROM tab2
----
-52164
-52164
-52164

query II rowsort
SELECT ALL col2 AS col0, - ( - - col0 ) AS col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL col0 * + col0 FROM tab2 AS cor0 WHERE col1 + ( 27 ) > + col1 * - col1
----
2116
4096
5625

query I rowsort
SELECT - col0 + 43 AS col2 FROM tab2 AS cor0
----
-21
-3
-32

query I rowsort
SELECT ALL col0 * col0 + - col2 FROM tab0 cor0
----
178
7559
9310

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT DISTINCT ( + - MIN( DISTINCT - + 44 ) ) col1, - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
44
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4308
SELECT DISTINCT ( + - MIN ( DISTINCT - + 44 ) ) col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
44
-9

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE + 94 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 81 * - col0 + - + ( - 86 ) FROM tab0 AS cor0
----
-1129
-6961
-7771

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) <> + + 11
----
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) <> + + 11
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - - ( col0 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - - ( col0 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col1 + col1 + col2 AS col0 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT col0 * + 18 + col2 + col2 + col1 + 39 AS col2 FROM tab1
----
1163
1692
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-4315
SELECT ALL col2 + - ( 30 ) + col2 DIV + col1 AS col2 FROM tab2
----
-7
10
28

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL col2 + - ( 30 ) + col2 / + col1 AS col2 FROM tab2
----
-7
10
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT MIN( ALL col0 ) + 65 AS col1 FROM tab1
----
116

skipif mysql # not compatible
query I rowsort label-4316
SELECT MIN ( ALL col0 ) + 65 AS col1 FROM tab1
----
116

query I rowsort
SELECT ALL 99 - 82 AS col0 FROM tab1
----
17
17
17

query I rowsort
SELECT ALL - 3 * - - col2 * col1 * - + col1 * col2 * 42 + + - col2 FROM tab2
----
1195286360
173367031
1902725438

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 10 FROM tab1
----
-5
37
4

query I rowsort
SELECT ALL + 10 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 96 * + col2 FROM tab2 AS cor0
----
-2208
-3840
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - COUNT( * ) * - 82 AS col1 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-4323
SELECT - COUNT ( * ) * - 82 AS col1 FROM tab2 AS cor0
----
246

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 WHERE - 94 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + - 34 AS col1 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - ( + 53 ) AS col0 FROM tab2 AS cor0
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4327
SELECT ALL - - 22 DIV - + col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL - - 22 / - + col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT ALL + - 62 AS col0 FROM tab0 AS cor0 WHERE ( col0 + + CAST( NULL AS SIGNED ) > NULL )
----

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + - 62 AS col0 FROM tab0 AS cor0 WHERE ( col0 + + CAST ( NULL AS INTEGER ) > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + - SUM( + 57 ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + - SUM ( + 57 ) FROM tab0 AS cor0
----
-171

query I rowsort
SELECT ALL - - ( + col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT ALL col1 - + col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL col1 - + col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT + ( + + COUNT( * ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT + ( + + COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col0, + 54 FROM tab0
----
1
54
21
54
81
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4335
SELECT + COUNT( * ), 43 AS col0 FROM tab1 cor0
----
3
43

skipif mysql # not compatible
query II rowsort label-4335
SELECT + COUNT ( * ), 43 AS col0 FROM tab1 cor0
----
3
43

query II rowsort
SELECT - col2, + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-10
20
-47
94
-99
198

query I rowsort
SELECT DISTINCT - + col0 + col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL - 60 DIV - col2 + ( + col2 ) + + 43 FROM tab0 AS cor0
----
142
59
91

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - 60 / - col2 + ( + col2 ) + + 43 FROM tab0 AS cor0
----
142
59
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT - 51 + + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT - 51 + + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

query I rowsort
SELECT + 31 + - col0 FROM tab1
----
-20
-54
-60

query I rowsort
SELECT col0 + + + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - 29 + + - 6 FROM tab2 cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + 34 * + ( - 35 ) FROM tab1 AS cor0
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT SUM( DISTINCT - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT SUM ( DISTINCT - - col1 ) FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + - ( - + col1 ) col1 FROM tab2 cor0
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 57 / + col2 / col1 * - col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL + COUNT( * ) * - MIN( - 6 ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + COUNT ( * ) * - MIN ( - 6 ) FROM tab2 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT - 1 + + 89 + + col1 DIV - + 77 + - col0 + col1 FROM tab2 cor0
----
100
80
93

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - 1 + + 89 + + col1 / - + 77 + - col0 + col1 FROM tab2 cor0
----
100
80
93

query I rowsort
SELECT ALL col2 + + 11 FROM tab1
----
107
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT 50 * - + COUNT( * ) col1 FROM tab1
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4351
SELECT DISTINCT 50 * - + COUNT ( * ) col1 FROM tab1
----
-150

query I rowsort
SELECT col2 * - + col1 - - + col1 + - ( col1 ) * + 4 FROM tab1
----
-1386
-310
-3337

query III rowsort
SELECT * FROM tab0 WHERE NULL < - ( + 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT ALL CAST( + col1 AS SIGNED ) + 53 AS col0 FROM tab2
----
104
120
130

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL CAST ( + col1 AS INTEGER ) + 53 AS col0 FROM tab2
----
104
120
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE NOT ( - + 3 ) + + + 70 <= + + 55 / + - col1 + - 41 + - + 3
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT ALL - SUM( + + 33 ) * - ( + COUNT( * ) ) + CAST( 58 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
355

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL - SUM ( + + 33 ) * - ( + COUNT ( * ) ) + CAST ( 58 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
355

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT + ( + + COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4357
SELECT + ( + + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - col1 / - 41 + col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < + col0
----

query I rowsort
SELECT + col1 + + col0 / - + 26 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col2 * + + 50 AS col1 FROM tab0
----
2350
4950
500

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) >= 33 + + - 10 AND + col0 >= NULL
----

query I rowsort
SELECT ( 27 ) AS col1 FROM tab0 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4364
SELECT ALL - col0 AS col0, + 94 * - CAST( - + 85 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
7990
-85
7990
-91
7990

skipif mysql # not compatible
query II rowsort label-4364
SELECT ALL - col0 AS col0, + 94 * - CAST ( - + 85 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
7990
-85
7990
-91
7990

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT - COUNT( * ) - - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 48 IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-4365
SELECT - COUNT ( * ) - - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 48 IS NULL
----
-12

query II rowsort
SELECT DISTINCT - col0, col2 FROM tab1 AS cor0 WHERE col2 / + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4367
SELECT - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT DISTINCT MAX( + CAST( - + col0 AS SIGNED ) ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT MAX ( + CAST ( - + col0 AS INTEGER ) ) AS col0 FROM tab1
----
-51

query II rowsort
SELECT DISTINCT 69 + + col2 + + 57 * - 3 * + + col0 AS col2, 15 FROM tab2
----
-10835
15
-12698
15
-7774
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT - SUM( ALL col0 ) col1 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4370
SELECT - SUM ( ALL col0 ) col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT CAST( NULL AS SIGNED ) * 55 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT CAST ( NULL AS INTEGER ) * 55 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT 28 * + - COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4372
SELECT 28 * + - COUNT ( * ) FROM tab0
----
-84

query II rowsort
SELECT ALL - col2 + col0 AS col0, col0 AS col1 FROM tab2
----
17
75
23
46
24
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT ( - + SUM( - - col2 ) ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT ( - + SUM ( - - col2 ) ) AS col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT 79 + COUNT( * ) AS col1, + 4 AS col0 FROM tab2 AS cor0
----
82
4

skipif mysql # not compatible
query II rowsort label-4375
SELECT 79 + COUNT ( * ) AS col1, + 4 AS col0 FROM tab2 AS cor0
----
82
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - MAX( ALL + + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-4376
SELECT - MAX ( ALL + + col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + MIN( DISTINCT - 96 ) AS col2 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-4377
SELECT + MIN ( DISTINCT - 96 ) AS col2 FROM tab2
----
-96

query I rowsort
SELECT + 22 * col0 * - col0 FROM tab0
----
-166518
-206998
-4950

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4379
SELECT * FROM tab0 AS cor0 WHERE + CAST( + 32 AS SIGNED ) NOT BETWEEN NULL AND + col2
----
87
21
10

skipif mysql # not compatible
query III rowsort label-4379
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + 32 AS INTEGER ) NOT BETWEEN NULL AND + col2
----
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 - col0 * - col0 AND - - col2 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT + - ( + + COUNT( * ) ) - - - 34 AS col0 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4381
SELECT + - ( + + COUNT ( * ) ) - - - 34 AS col0 FROM tab0 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT DISTINCT + + SUM( + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT + + SUM ( + col2 ) FROM tab2 AS cor0
----
121

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL > NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / + - col2 BETWEEN NULL AND + - col0 + ( col2 )
----

query I rowsort
SELECT 2 + 73 + - + col1 * + - col2 + 11 FROM tab1 cor0
----
1430
3282
381

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT COUNT( * ) * - 36 + - ( - 87 ) AS col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4386
SELECT COUNT ( * ) * - 36 + - ( - 87 ) AS col0 FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT COUNT( * ) + 95 * - + 19 * - - 48 * 28 FROM tab0
----
-2425917

skipif mysql # not compatible
query I rowsort label-4387
SELECT COUNT ( * ) + 95 * - + 19 * - - 48 * 28 FROM tab0
----
-2425917

query I rowsort
SELECT col1 + - col1 + + - col2 AS col0 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT col0 * - col0 + + col1 + + col0 * + col2 + + col1 AS col0, + 22 FROM tab0
----
-6657
22
196
22
642
22

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + col0 NOT IN ( - 19, ( + col1 ) * - + col2 * - 12 + + col2 - - col0 * col1 * - 51 * - col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL - MAX( DISTINCT ( - - 33 ) ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - MAX ( DISTINCT ( - - 33 ) ) FROM tab1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT col0 DIV - 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4392
SELECT col0 / - 80 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + col1 - - col1 FROM tab2 AS cor0
----
2652
4556
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL + 82 * ( - COUNT( * ) ) * COUNT( * ) FROM tab1 AS cor0
----
-738

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + 82 * ( - COUNT ( * ) ) * COUNT ( * ) FROM tab1 AS cor0
----
-738

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE + col2 <> + + col1
----
-1
-21
-81

query I rowsort
SELECT + - 13 * col2 FROM tab0 AS cor0
----
-1287
-130
-611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 - - col0 col1 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT DISTINCT MAX( 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT MAX ( 87 ) FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col2 * - - col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT 27 + + + ( + - col2 ) FROM tab1 cor0
----
-32
-41
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4402
SELECT ALL 70 * + - COUNT( * ) col0, 7 AS col0 FROM tab1 AS cor0
----
-210
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4402
SELECT ALL 70 * + - COUNT ( * ) col0, 7 AS col0 FROM tab1 AS cor0
----
-210
7

query I rowsort
SELECT + - col0 + + col2 * + - 42 FROM tab1 AS cor0
----
-2563
-2947
-4083

query I rowsort
SELECT ALL + col2 + - col2 * + - col2 AS col2 FROM tab2 AS cor0
----
1640
3422
552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + 89 col1, col0 AS col0 FROM tab1 AS cor0
----
103
51
136
91
94
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT DISTINCT 11 / - ( + - SUM( - CAST( NULL AS SIGNED ) ) ) / + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT 11 / - ( + - SUM ( - CAST ( NULL AS INTEGER ) ) ) / + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + + 12 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL col2 DIV 38 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL col2 / 38 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT 97 * SUM( ALL - 28 ) FROM tab1
----
-8148

skipif mysql # not compatible
query I rowsort label-4410
SELECT 97 * SUM ( ALL - 28 ) FROM tab1
----
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT COUNT( * ) * 85 * + - 30 FROM tab1 AS cor0
----
-7650

skipif mysql # not compatible
query I rowsort label-4411
SELECT COUNT ( * ) * 85 * + - 30 FROM tab1 AS cor0
----
-7650

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( col1 ) IN ( - 32 * - + 71 + + col2, - col1 * 80, ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - - col2 / 3 * - - col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4413
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - - col2 / 3 * - - col1 IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col2 FROM tab0
----
-45
-45
-45

query I rowsort
SELECT + 39 + ( + col2 ) FROM tab0
----
138
49
86

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 54 + + col0 IS NULL
----

query I rowsort
SELECT - col0 * + + col2 * col2 AS col0 FROM tab2 cor0
----
-102400
-24334
-252300

query I rowsort
SELECT 43 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
43
43
43

query I rowsort
SELECT col2 + + col1 + - + col2 AS col0 FROM tab0 cor0 WHERE 34 + - col1 IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 IS NULL
----

query I rowsort
SELECT ( - 37 ) FROM tab2
----
-37
-37
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT - 89 DIV + + 76 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4422
SELECT - 89 / + + 76 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - 3 * - 12 AS col0 FROM tab1
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col1 FROM tab0
----
-93
-93
-93

query I rowsort
SELECT ALL - ( + 16 ) AS col0 FROM tab1 cor0
----
-16
-16
-16

query II rowsort
SELECT 68, + col0 AS col0 FROM tab1
----
68
51
68
85
68
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4427
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT 22 * + - COUNT( * ) AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT 22 * + - COUNT ( * ) AS col2 FROM tab2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT + + ( + CAST( 75 AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif mysql # not compatible
query I rowsort label-4429
SELECT + + ( + CAST ( 75 AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query II rowsort label-4430
SELECT DISTINCT - 96 col1, COUNT( * ) FROM tab0 AS cor0
----
-96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4430
SELECT DISTINCT - 96 col1, COUNT ( * ) FROM tab0 AS cor0
----
-96
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col0, 88 FROM tab2 AS cor0
----
46
88
64
88
75
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL - COUNT( * ) * - - COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT MIN( + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4433
SELECT MIN ( + col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL <> - + col2 * col2 - - - 22 ) OR NOT NULL = NULL
----

query I rowsort
SELECT col2 + + col2 - + col1 + col0 FROM tab1
----
180
198
229

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT + col0 * col0 DIV col1 + - col1 AS col0 FROM tab0
----
-79
339
9408

skipif mysql # not compatible
query I rowsort label-4436
SELECT + col0 * col0 / col1 + - col1 AS col0 FROM tab0
----
-79
339
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT MIN( - col2 ) + 83 AS col0 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT MIN ( - col2 ) + 83 AS col0 FROM tab1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT DISTINCT - col2 DIV + col2 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT - col2 / + col2 AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 82 + + - col2 FROM tab2
----
24
42
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( - col2 ) AND - col1 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT SUM( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-4441
SELECT SUM ( DISTINCT + col2 ) AS col2 FROM tab2 cor0
----
121

query I rowsort
SELECT DISTINCT col2 + col2 + 21 FROM tab0
----
115
219
41

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab2 AS cor0 WHERE - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT MAX( ALL + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT MAX ( ALL + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + - SUM( ALL col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4445
SELECT + - SUM ( ALL col2 ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT col2 * 98 AS col0 FROM tab0 AS cor0
----
4606
9702
980

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT 30 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4447
SELECT 30 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
90

query I rowsort
SELECT col0 * + col2 + + 82 FROM tab1 AS cor0
----
4978
5097
6270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + - 45 col2 FROM tab0 AS cor0
----
-144
-255
-3852

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col0 > NULL
----

query II rowsort
SELECT DISTINCT - 51 * + col2 * - col1 AS col0, + 15 AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * + - col1 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 16 * 84 AS col2 FROM tab2
----
-1344

query II rowsort
SELECT + ( + col1 ), 31 FROM tab1
----
14
31
47
31
5
31

query I rowsort
SELECT ALL + - ( - 1 ) FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT - - MIN( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4456
SELECT - - MIN ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 = - + col0 + 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE ( NOT ( + + 29 ) BETWEEN NULL AND col2 * - col0 * 60 )
----
15
87
97

query I rowsort
SELECT ALL + col2 + - 19 AS col0 FROM tab0 AS cor0
----
-9
28
80

query I rowsort
SELECT DISTINCT col0 * - + col2 * - col1 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT - - 6 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT col2 + - 27 + - ( + col1 ) FROM tab0 cor0
----
-38
-61
71

query I rowsort
SELECT DISTINCT - 95 + - 93 FROM tab2 AS cor0
----
-188

query I rowsort
SELECT + col0 * + - 25 + - col2 + 48 AS col0 FROM tab2 AS cor0
----
-1125
-1592
-1885

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT + + ( - COUNT( * ) ) + + 91 AS col1 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + + ( - COUNT ( * ) ) + + 91 AS col1 FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4467
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT + 1 + + + col1 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - 86 * - + COUNT( * ) AS col1 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-4469
SELECT - 86 * - + COUNT ( * ) AS col1 FROM tab0
----
258

query I rowsort
SELECT DISTINCT - col1 + + col2 - - + 5 FROM tab0
----
-29
-6
103

query I rowsort
SELECT - col2 * + col1 + 52 * - col2 + + + col1 + - col1 - col1 + - col1 * col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-3663
-7694
-9975

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4472
SELECT ALL * FROM tab1 WHERE NOT CAST( + 89 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4472
SELECT ALL * FROM tab1 WHERE NOT CAST ( + 89 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + COUNT( * ) FROM tab2 WHERE + 9 * col0 * + ( + + 13 ) NOT IN ( - + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4473
SELECT + COUNT ( * ) FROM tab2 WHERE + 9 * col0 * + ( + + 13 ) NOT IN ( - + col0 )
----
3

query I rowsort
SELECT + col2 * - 19 AS col1 FROM tab0
----
-1881
-190
-893

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col2 - + 57 col2 FROM tab2 AS cor0
----
1543
3307
472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - 50 * - + col1 col0 FROM tab2 AS cor0
----
2527
3292
3810

query III rowsort
SELECT ALL * FROM tab2 WHERE 4 / - - col0 * - col0 <= col0 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT ALL + 69 * + CAST( - COUNT( * ) AS SIGNED ) + COUNT( * ) - + COUNT( * ) * + 88 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + 69 * + CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( * ) - + COUNT ( * ) * + 88 FROM tab0 AS cor0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT + COUNT( DISTINCT + + ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + COUNT ( DISTINCT + + ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4481
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( - - col1 AS SIGNED ) - col1 * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4481
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( - - col1 AS INTEGER ) - col1 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 65 / col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4483
SELECT ALL + + col1 DIV col1, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
1
-21
1
-81

skipif mysql # not compatible
query II rowsort label-4483
SELECT ALL + + col1 / col1, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
1
-21
1
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL col1 * + - 35 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) - col2 * + - col2 IS NOT NULL
----
-1785
-2345
-2695

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL col1 * + - 35 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) - col2 * + - col2 IS NOT NULL
----
-1785
-2345
-2695

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + + + col0 IS NOT NULL
----

query II rowsort
SELECT + col1, 28 FROM tab1
----
14
28
47
28
5
28

query II rowsort
SELECT ALL col0 AS col1, - 62 * + col1 AS col2 FROM tab0
----
15
-5022
87
-1302
97
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT DISTINCT 78 * - MAX( ALL + col0 ) AS col1, - 67 AS col2 FROM tab2
----
-5850
-67

skipif mysql # not compatible
query II rowsort label-4488
SELECT DISTINCT 78 * - MAX ( ALL + col0 ) AS col1, - 67 AS col2 FROM tab2
----
-5850
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT + col1 DIV - 92 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT + col1 / - 92 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 21 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 33 FROM tab1 cor0 WHERE NOT NULL = col1 - 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4492
SELECT DISTINCT 70, CAST( NULL AS SIGNED ) - - - col2 col0 FROM tab0 AS cor0
----
70
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4492
SELECT DISTINCT 70, CAST ( NULL AS INTEGER ) - - - col2 col0 FROM tab0 AS cor0
----
70
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT ALL - - col2 + - col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - - col2 + - col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4494
SELECT - 34 + MIN( ALL + col2 ) + - - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 34 + MIN ( ALL + col2 ) + - - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL + 28 * 18 AS col0 FROM tab2
----
504
504
504

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT + 37 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col0 + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - col0 + + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT - MAX( DISTINCT - col1 ) col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4498
SELECT DISTINCT - MAX ( DISTINCT - col1 ) col0 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 45 + col0 col0 FROM tab1 AS cor0
----
110
135
183

query I rowsort
SELECT - col1 * + ( + ( col2 ) ) + + - col0 - col0 FROM tab0
----
-293
-3837
-384

query I rowsort
SELECT ALL col2 + 1 AS col1 FROM tab1
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT + 22 + + COUNT( * ) AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 22 + + COUNT ( * ) AS col2 FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - - COUNT( * ) - ( + MIN( + 60 ) ) AS col2 FROM tab1 WHERE col1 = col2 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT - - COUNT ( * ) - ( + MIN ( + 60 ) ) AS col2 FROM tab1 WHERE col1 = col2 + + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4504
SELECT ALL - CAST( - + col1 AS SIGNED ) * + 12 - - + col1 - col0, col1 + col2 AS col2 FROM tab1 AS cor0
----
-20
64
131
110
520
115

skipif mysql # not compatible
query II rowsort label-4504
SELECT ALL - CAST ( - + col1 AS INTEGER ) * + 12 - - + col1 - col0, col1 + col2 AS col2 FROM tab1 AS cor0
----
-20
64
131
110
520
115

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT ALL 30 DIV ( 1 ) FROM tab1 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL 30 / ( 1 ) FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT - - col0 - + - col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4507
SELECT - COUNT( ALL - 82 ) DIV + - 63 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT - COUNT ( ALL - 82 ) / + - 63 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4508
SELECT + MAX( DISTINCT - col2 ) DIV - - COUNT( * ) + - 48 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-4508
SELECT + MAX ( DISTINCT - col2 ) / - - COUNT ( * ) + - 48 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 46 NOT BETWEEN - - col0 * col1 * - - ( + col1 ) + col2 + col2 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 46 NOT BETWEEN - - col0 * col1 * - - ( + col1 ) + col2 + col2 AND NULL
----
-3

query II rowsort
SELECT - col0 AS col2, 13 FROM tab2 AS cor0
----
-46
13
-64
13
-75
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT - + MIN( ALL - + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - + MIN ( ALL - + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT DISTINCT - 22 * COUNT( - col0 ) FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 * - 70 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - 22 * COUNT ( - col0 ) FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 * - 70 AND NULL
----
0

query I rowsort
SELECT DISTINCT + + 53 * + 53 * + col2 FROM tab0 AS cor0
----
132023
278091
28090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - 1 col1 FROM tab2 AS cor0
----
-51
-1
-67
-1
-77
-1

query I rowsort
SELECT + 79 * ( col0 ) FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - - ( - ( COUNT( * ) ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4516
SELECT - - ( - ( COUNT ( * ) ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4517
SELECT DISTINCT * FROM tab2 cor0 WHERE + 16 + col0 * col1 <= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4517
SELECT DISTINCT * FROM tab2 cor0 WHERE + 16 + col0 * col1 <= + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + ( AVG ( DISTINCT + col2 ) ) - 67 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - col2 * - 93 * + ( - - 92 ) FROM tab1
----
504804
581808
821376

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE NOT - col1 NOT IN ( + 98 * 21 * - 9 + col1, col0 + + - ( 53 ), - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL <> col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4522
SELECT ALL + ( + + 62 ) * - + COUNT( * ) DIV - COUNT( * ) + + - 57 AS col1 FROM tab2, tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + ( + + 62 ) * - + COUNT ( * ) / - COUNT ( * ) + + - 57 AS col1 FROM tab2, tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT COUNT( * ) DIV - 42 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT COUNT ( * ) / - 42 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL SUM( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT DISTINCT col2 + + col1 - 6 * + - col0 + + - col0 AS col2 FROM tab1 AS cor0
----
365
489
570

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 <= - + col1 + + col1
----

query I rowsort
SELECT + col2 + + 40 * + 80 * + 43 * - + 33 FROM tab1 cor0
----
-4540704
-4540732
-4540741

query I rowsort
SELECT + col2 + 39 FROM tab0 cor0
----
138
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - ( COUNT( col1 ) ) + - SUM( + + col1 ) AS col2 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-4530
SELECT - ( COUNT ( col1 ) ) + - SUM ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-106

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 16 IS NULL
----

query I rowsort
SELECT DISTINCT + 40 * 11 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - MIN( - col1 ) col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4533
SELECT - MIN ( - col1 ) col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT 84 * ( 61 ) FROM tab2 AS cor0 WHERE + 74 IS NULL
----

query I rowsort
SELECT 33 * col2 * + 96 FROM tab2
----
126720
183744
72864

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + 16 - - col0 / + + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT + 20 + - SUM( ALL - col0 ) AS col0 FROM tab1
----
247

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT + 20 + - SUM ( ALL - col0 ) AS col0 FROM tab1
----
247

query I rowsort
SELECT ALL col2 - + col2 - + - col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - SUM( + col0 ) - + 81 * ( + 4 ) FROM tab0
----
-523

skipif mysql # not compatible
query I rowsort label-4539
SELECT - SUM ( + col0 ) - + 81 * ( + 4 ) FROM tab0
----
-523

query I rowsort
SELECT + col1 - + - col2 + 42 + + col2 + col1 * + ( col1 ) * - 84 FROM tab0
----
-36961
-550907
157

query I rowsort
SELECT DISTINCT + col2 - 1 FROM tab2 AS cor0
----
22
39
57

query II rowsort
SELECT 36 + col0, col0 FROM tab2 AS cor0
----
100
64
111
75
82
46

query I rowsort
SELECT ALL col2 - + - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ( - 50 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + SUM( - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4546
SELECT + SUM ( - col1 ) FROM tab1
----
-66

query I rowsort
SELECT ALL 83 * - ( 49 ) AS col0 FROM tab1
----
-4067
-4067
-4067

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4548
SELECT + MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + 11 * + + ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + 11 * + + ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
33

query II rowsort
SELECT ALL + col2, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT DISTINCT + col1 * CAST( col2 AS SIGNED ) - + col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT + col1 * CAST ( col2 AS INTEGER ) - + col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4552
SELECT * FROM tab1 WHERE NOT + CAST( col0 AS SIGNED ) * - CAST( NULL AS SIGNED ) * - - 67 + - col1 <> + col0
----

skipif mysql # not compatible
query III rowsort label-4552
SELECT * FROM tab1 WHERE NOT + CAST ( col0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - - 67 + - col1 <> + col0
----

query I rowsort
SELECT - 57 * - 59 FROM tab2
----
3363
3363
3363

query I rowsort
SELECT ALL col2 + 28 + - col0 FROM tab1
----
2
5
73

query I rowsort
SELECT + 24 * 99 AS col1 FROM tab2
----
2376
2376
2376

query I rowsort
SELECT + 51 * - + col0 AS col0 FROM tab0
----
-4437
-4947
-765

query I rowsort
SELECT ALL + 87 * - 44 FROM tab0
----
-3828
-3828
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + 90 * - - MAX( ALL - 57 ) FROM tab0
----
-5130

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 90 * - - MAX ( ALL - 57 ) FROM tab0
----
-5130

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT - col2 DIV + + 89 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4559
SELECT - col2 / + + 89 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 54 * + - 76 * + - ( - col2 ) FROM tab2
----
164160
238032
94392

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT 70 DIV - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4561
SELECT 70 / - col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col2 * + + 85 AS col2 FROM tab2
----
-1955
-3400
-4930

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT ALL - 1 DIV - col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - 1 / - col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4564
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + ( + + ( + col2 ) ) < - + CAST( - col1 AS SIGNED )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4564
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + ( + + ( + col2 ) ) < - + CAST ( - col1 AS INTEGER )
----
15
81
47

query I rowsort
SELECT DISTINCT + ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 56 * + - 50 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 col2 FROM tab1 cor0
----
80
80
80

query II rowsort
SELECT DISTINCT col1 + - col0 AS col2, 38 AS col0 FROM tab0
----
-66
38
-96
38
66
38

query III rowsort
SELECT ALL * FROM tab2 WHERE + 49 + + + ( + col1 ) + - - ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 8 FROM tab2 WHERE NULL IS NULL
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4571
SELECT DISTINCT 32 * - CAST( NULL AS SIGNED ) * - + 52 + col2 * + 77 AS col0, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-4571
SELECT DISTINCT 32 * - CAST ( NULL AS INTEGER ) * - + 52 + col2 * + 77 AS col0, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT col2 - + col1 - + col2 DIV + + col2 FROM tab2 AS cor0
----
-10
-29
-38

skipif mysql # not compatible
query I rowsort label-4572
SELECT col2 - + col1 - + col2 / + + col2 FROM tab2 AS cor0
----
-10
-29
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT col0 * + - ( - ( - CAST( + - col1 AS SIGNED ) ) ) + - - 32 + - - col0 AS col1 FROM tab0 AS cor0
----
1262
1946
226

skipif mysql # not compatible
query I rowsort label-4573
SELECT col0 * + - ( - ( - CAST ( + - col1 AS INTEGER ) ) ) + - - 32 + - - col0 AS col1 FROM tab0 AS cor0
----
1262
1946
226

query II rowsort
SELECT - + col2 + + col1, col1 AS col2 FROM tab1 AS cor0
----
-21
47
-54
5
-82
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - 24 + - COUNT( * ) FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4575
SELECT - 24 + - COUNT ( * ) FROM tab0 cor0
----
-27

query I rowsort
SELECT - 74 + + col1 AS col1 FROM tab1
----
-27
-60
-69

query I rowsort
SELECT DISTINCT + 48 + - col2 AS col2 FROM tab0
----
-51
1
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT - col0 + + col2 + - col1 + - col2 DIV + 73 AS col0 FROM tab0
----
-49
-98
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT - col0 + + col2 + - col1 + - col2 / + 73 AS col0 FROM tab0
----
-49
-98
0

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN - col0 AND - 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + + 77 ) + 19 FROM tab2
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT 61 + COUNT( * ) AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4581
SELECT 61 + COUNT ( * ) AS col2 FROM tab2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4582
SELECT 9 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
9
NULL
9
NULL
9
NULL

skipif mysql # not compatible
query II rowsort label-4582
SELECT 9 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
9
NULL
9
NULL
9
NULL

query I rowsort
SELECT DISTINCT - col0 * 64 AS col2 FROM tab1
----
-3264
-5440
-5824

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 16 IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col2 + col0 AS col2 FROM tab1 AS cor0
----
14
-45
47
23
5
26

query II rowsort
SELECT ALL - col0 AS col2, - 27 FROM tab2 AS cor0
----
-46
-27
-64
-27
-75
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT - MAX( col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - MAX ( col2 ) AS col2 FROM tab2
----
-58

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE - col0 NOT IN ( + col1 * + col1 )
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 + 82 FROM tab1
----
-14
14
23

query I rowsort
SELECT ALL - ( - col1 ) FROM tab1 WHERE - 64 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT ALL 21 + + 65 DIV col0 FROM tab1
----
21
21
22

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL 21 + + 65 / col0 FROM tab1
----
21
21
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4592
SELECT * FROM tab0 WHERE NOT ( NULL ) <= ( CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4592
SELECT * FROM tab0 WHERE NOT ( NULL ) <= ( CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT - ( col0 ) + + col1 AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT - 85 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT - 85 NOT IN ( col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT - col2 DIV col2 + col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4595
SELECT - col2 / col2 + col2 FROM tab1
----
58
67
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 34 * col2 ) <= - 16 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 64 = NULL
----

query I rowsort
SELECT ALL 36 AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - SUM( ALL 46 ) * COUNT( * ) col0 FROM tab2
----
-414

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4599
SELECT - SUM ( ALL 46 ) * COUNT ( * ) col0 FROM tab2
----
-414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * col0 col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT - COUNT( * ) * 84 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-4601
SELECT - COUNT ( * ) * 84 FROM tab1
----
-252

query I rowsort
SELECT col1 FROM tab0 WHERE col1 * 88 + - 82 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT MAX( DISTINCT - col1 ) AS col2 FROM tab0 WHERE - 12 * col0 + + col0 IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT MAX ( DISTINCT - col1 ) AS col2 FROM tab0 WHERE - 12 * col0 + + col0 IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + SUM( DISTINCT col2 ) AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-4605
SELECT + SUM ( DISTINCT col2 ) AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
156

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab1 WHERE NULL IS NULL
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * - 46 + AVG ( DISTINCT ( - col0 ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * - 46 + AVG ( DISTINCT ( - col0 ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - ( ( + COUNT( - ( - 15 ) ) ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4608
SELECT - ( ( + COUNT ( - ( - 15 ) ) ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT 23 * 98 - - col0 AS col0 FROM tab2
----
2300
2318
2329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT DISTINCT 98 * + col1 FROM tab1 AS cor0 WHERE NOT + CAST( ( + col2 ) AS SIGNED ) * + col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT 98 * + col1 FROM tab1 AS cor0 WHERE NOT + CAST ( ( + col2 ) AS INTEGER ) * + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4612
SELECT ALL 48 / SUM( DISTINCT col1 ) + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4612
SELECT ALL 48 / SUM ( DISTINCT col1 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT DISTINCT col0 DIV + 79 + - col2 AS col0 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT col0 / + 79 + - col2 AS col0 FROM tab1
----
-58
-67
-96

query I rowsort
SELECT 18 + - 52 * + col2 FROM tab1
----
-3050
-3518
-4974

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 53 = ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col1 FROM tab1 cor0 WHERE - ( - col0 ) + col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - MIN( ALL col1 ) * 5 AS col1 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - MIN ( ALL col1 ) * 5 AS col1 FROM tab2 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - MIN( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4618
SELECT - MIN ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - - SUM( 76 ) FROM tab2 cor0
----
228

skipif mysql # not compatible
query I rowsort label-4619
SELECT - - SUM ( 76 ) FROM tab2 cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT - SUM( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4620
SELECT - SUM ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT 40 - col2 FROM tab2 AS cor0
----
-18
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT ALL COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 * ( col1 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + + - 66 FROM tab2
----
-15
1
11

query I rowsort
SELECT - ( col0 ) - + col1 AS col1 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( + ( + 32 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT COUNT( * ) * - MAX( col1 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-4627
SELECT COUNT ( * ) * - MAX ( col1 ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT + 38 + + COUNT( * ) col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4628
SELECT + 38 + + COUNT ( * ) col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col0 FROM tab1
----
-92
-92
-92

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NULL IN ( - 69 )
----

query I rowsort
SELECT - col0 + 63 AS col2 FROM tab0 WHERE NOT + 58 IS NULL
----
-24
-34
48

query II rowsort
SELECT DISTINCT - 50 AS col2, col2 * + - col1 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
-50
-197184
-50
-291525
-50
-54004

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT COUNT( * ) * - 95 AS col0 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-4633
SELECT COUNT ( * ) * - 95 AS col0 FROM tab1 AS cor0
----
-285

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( 65 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 29 < ( col2 + col0 )
----

query I rowsort
SELECT ( + col1 ) - + col0 FROM tab2 AS cor0 WHERE NOT NULL < ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4637
SELECT ALL + MAX( ALL - col2 ) FROM tab1 AS cor0 WHERE NULL IN ( ( - + CAST( col1 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL + MAX ( ALL - col2 ) FROM tab1 AS cor0 WHERE NULL IN ( ( - + CAST ( col1 AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT COUNT( ALL col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT COUNT ( ALL col0 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT MIN( ALL + - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4639
SELECT MIN ( ALL + - col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT ALL 24 + + col0 - 69 FROM tab0
----
-30
42
52

query I rowsort
SELECT 21 + - col1 FROM tab2
----
-30
-46
-56

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > ( NULL ) AND NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - col0 + ( - 31 ) AS col0 FROM tab2
----
-106
-77
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT - 10 + + CAST( + col2 AS SIGNED ) FROM tab2
----
13
30
48

skipif mysql # not compatible
query I rowsort label-4644
SELECT - 10 + + CAST ( + col2 AS INTEGER ) FROM tab2
----
13
30
48

query I rowsort
SELECT - 35 + - ( - 57 ) FROM tab1 AS cor0 WHERE ( NOT - col0 BETWEEN + 7 + + 83 AND 28 * + col1 )
----
22
22
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( - col2 ) = NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 24 >= + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4648
SELECT + + 3 + - + col0 * CAST( NULL AS DECIMAL ) * 36 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT + + 3 + - + col0 * CAST ( NULL AS REAL ) * 36 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 84 + + 72 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - ( col2 ) + + col2 + 9 / + 76 ) >= ( NULL )
----

query I rowsort
SELECT col1 + col0 * + 44 FROM tab0 AS cor0 WHERE 82 NOT BETWEEN + + 1 AND + - col0
----
3849
4269
741

query I rowsort
SELECT - 63 * - col0 * + - col2 + - + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-161240
-273992
-66631

query I rowsort
SELECT DISTINCT + + col2 + 41 FROM tab0 AS cor0
----
140
51
88

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( 65 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - col0 + - col0 + - - col2 * - 15 FROM tab2 AS cor0
----
-386
-651
-953

query I rowsort
SELECT - 83 * col1 AS col1 FROM tab1
----
-1162
-3901
-415

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4656
SELECT DISTINCT * FROM tab1 WHERE - + CAST( - ( - col1 ) AS SIGNED ) + col2 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4656
SELECT DISTINCT * FROM tab1 WHERE - + CAST ( - ( - col1 ) AS INTEGER ) + col2 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 = ( NULL )
----

query I rowsort
SELECT ALL + col0 * - + col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT col1 - + ( + 80 ) * col1 * - - 99 * col2 + col1 FROM tab1 AS cor0
----
-10644452
-2336390
-25312226

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE - ( - col0 ) NOT IN ( col1 / - col0 - 88 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT + 8 + - 9 - + col0 + CAST( NULL AS SIGNED ) + 99 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT + 8 + - 9 - + col0 + CAST ( NULL AS INTEGER ) + 99 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * ( + col0 ) + col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL - COUNT( + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - COUNT ( + col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT - - 70 DIV 80 DIV + 82 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4665
SELECT - - 70 / 80 / + 82 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT + 49 * - - COUNT( * ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 49 * - - COUNT ( * ) FROM tab1
----
147

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NULL >= NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4668
SELECT ALL CAST( + col2 AS SIGNED ) DIV + 54 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL CAST ( + col2 AS INTEGER ) / + 54 AS col2 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 76 * + - COUNT( + col2 ) AS col0 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-4670
SELECT 76 * + - COUNT ( + col2 ) AS col0 FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + MAX( DISTINCT - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4671
SELECT + MAX ( DISTINCT - col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT ALL COUNT( * ), + 60 AS col0 FROM tab2
----
3
60

skipif mysql # not compatible
query II rowsort label-4672
SELECT ALL COUNT ( * ), + 60 AS col0 FROM tab2
----
3
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4673
SELECT ALL - col0 FROM tab2 WHERE NOT NULL NOT IN ( 84 / + CAST( col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - col0 FROM tab2 WHERE NOT NULL NOT IN ( 84 / + CAST ( col0 AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 77 BETWEEN - col0 AND NULL
----

query II rowsort
SELECT DISTINCT - + col2, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col2 FROM tab2
----
67
67
67

onlyif mysql # DIV for integer division: 
query II rowsort label-4678
SELECT col2 DIV col2 AS col0, + 44 FROM tab0
----
1
44
1
44
1
44

skipif mysql # not compatible
query II rowsort label-4678
SELECT col2 / col2 AS col0, + 44 FROM tab0
----
1
44
1
44
1
44

query I rowsort
SELECT ALL - - col0 * - + col0 + - col0 AS col0 FROM tab1 WHERE + + 10 < NULL
----

query I rowsort
SELECT ALL + ( + - 43 ) AS col2 FROM tab2
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - MIN( ALL - + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - MIN ( ALL - + col2 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( + + col0 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + COUNT( * ) + + 85 FROM tab1 AS cor0 WHERE NOT NULL IN ( 78 * 12 / + 9 )
----
85

skipif mysql # not compatible
query I rowsort label-4684
SELECT + COUNT ( * ) + + 85 FROM tab1 AS cor0 WHERE NOT NULL IN ( 78 * 12 / + 9 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT + 4 + - + ( - - col0 ) + - col2 DIV + col2 FROM tab0 AS cor0
----
-12
-84
-94

skipif mysql # not compatible
query I rowsort label-4685
SELECT + 4 + - + ( - - col0 ) + - col2 / + col2 FROM tab0 AS cor0
----
-12
-84
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4686
SELECT ALL + COUNT( * ) + - 66 + - 83 - + 49 DIV + 67 FROM tab1 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + COUNT ( * ) + - 66 + - 83 - + 49 / + 67 FROM tab1 AS cor0
----
-146

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 + col0 FROM tab0 AS cor0
----
-690
-783
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 10 ) + + col0 col1 FROM tab1 AS cor0
----
101
61
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR - col2 IN ( + 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT ALL - 94 col1, MAX( col1 ) AS col0 FROM tab2 WHERE NULL < NULL
----
-94
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4691
SELECT ALL - 94 col1, MAX ( col1 ) AS col0 FROM tab2 WHERE NULL < NULL
----
-94
NULL

query I rowsort
SELECT ALL col2 + + col2 + 30 AS col1 FROM tab1
----
148
166
222

query I rowsort
SELECT ALL - 49 + + + col1 AS col1 FROM tab0
----
-28
-48
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 79 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4695
SELECT DISTINCT CAST( - SUM( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) - - 79 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT CAST ( - SUM ( + CAST ( NULL AS REAL ) ) AS INTEGER ) - - 79 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT 92 DIV col1 col2 FROM tab0 AS cor0
----
1
4
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4696
SELECT 92 / col1 col2 FROM tab0 AS cor0
----
1
4
92

query I rowsort
SELECT 38 * - - 58 FROM tab1 AS cor0
----
2204
2204
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT + MIN( + - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT + MIN ( + - col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT - col2 - 1 + - - 82 - + + col0 * - col1 FROM tab2 AS cor0
----
2404
4969
5048

query I rowsort
SELECT ALL 46 + col0 FROM tab2
----
110
121
92

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4702
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col2 * + 66 / + CAST( NULL AS SIGNED ) * + + 54 ) AND + col0 * + + 0
----

skipif mysql # not compatible
query III rowsort label-4702
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - col2 * + 66 / + CAST ( NULL AS INTEGER ) * + + 54 ) AND + col0 * + + 0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 col2 FROM tab1 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL + - SUM( col1 ) * 94 FROM tab1 AS cor0
----
-6204

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL + - SUM ( col1 ) * 94 FROM tab1 AS cor0
----
-6204

query I rowsort
SELECT ALL + col0 * - - col1 * - col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL + 72 * + COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + 72 * + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
648

query I rowsort
SELECT ALL + + 64 * - + 64 AS col1 FROM tab0 AS cor0
----
-4096
-4096
-4096

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + col0 * col0 >= ( NULL )
----

query II rowsort
SELECT ALL col0, 24 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
75
64
101
75
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col2 FROM tab0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL - MIN( col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - MIN ( col1 ) AS col1 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( - + 86 ) <= + col1 - + 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 32 * col0 AS col0 FROM tab2
----
1472
2048
2400

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 62
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col2 * + + col0 >= ( NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 62 IN ( - col1, + col2 + + ( - 1 ) * + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT ALL 95 AS col0, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - + col1 ) NOT IN ( - - ( + col1 ) )
----
95
0

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL 95 AS col0, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - + col1 ) NOT IN ( - - ( + col1 ) )
----
95
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0, - col1 * - 4 col1 FROM tab2 AS cor0
----
46
204
64
308
75
268

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + COUNT( * ) * COUNT( * ) * 61 AS col2 FROM tab1
----
549

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + COUNT ( * ) * COUNT ( * ) * 61 AS col2 FROM tab1
----
549

query II rowsort
SELECT col0, col0 + - col2 FROM tab1
----
51
-45
85
26
91
23

query I rowsort
SELECT - - col0 * - + col2 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT ALL + col1 DIV 76 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + col1 / 76 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( + + 49 ) * + col0 FROM tab1 AS cor0
----
-2499
-4165
-4459

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 53 + - 56 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - COUNT( * ) + - 40 AS col2 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-4728
SELECT - COUNT ( * ) + - 40 AS col2 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT DISTINCT 17 + - 17 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT DISTINCT col1 DIV + + col0 + + col2 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT col1 / + + col0 + + col2 AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - + col2 * + + col2 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + + col0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL - + MIN( - + col1 ) + + SUM( 50 ) AS col0 FROM tab2 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - + MIN ( - + col1 ) + + SUM ( 50 ) AS col0 FROM tab2 AS cor0
----
227

query I rowsort
SELECT 67 * 73 + 71 AS col1 FROM tab2 AS cor0
----
4962
4962
4962

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL + MAX( ALL col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + MAX ( ALL col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT DISTINCT col2 * + col1 + - col1 FROM tab0 AS cor0
----
189
3726
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col0 FROM tab2 cor0
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-4740
SELECT 18 AS col0, col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
18
1
18
1
18
1

skipif mysql # not compatible
query II rowsort label-4740
SELECT 18 AS col0, col2 / + col2 AS col0 FROM tab0 AS cor0
----
18
1
18
1
18
1

query II rowsort
SELECT ALL + col1, - col1 FROM tab0 AS cor0 WHERE - 46 > NULL
----

query I rowsort
SELECT ALL + + col2 * 78 AS col1 FROM tab0 cor0
----
3666
7722
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - - MAX( DISTINCT + 96 ) AS col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4743
SELECT - - MAX ( DISTINCT + 96 ) AS col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT - col0 * + + 63 AS col1 FROM tab2 AS cor0
----
-2898
-4032
-4725

query I rowsort
SELECT - col2 * + ( + 4 ) FROM tab1 AS cor0
----
-236
-272
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * - col0 col0 FROM tab2 AS cor0
----
-2484
-3456
-4050

onlyif mysql # aggregate syntax: 
query II rowsort label-4747
SELECT + - 24 AS col0, COUNT( * ) AS col1 FROM tab1 cor0
----
-24
3

skipif mysql # not compatible
query II rowsort label-4747
SELECT + - 24 AS col0, COUNT ( * ) AS col1 FROM tab1 cor0
----
-24
3

query II rowsort
SELECT 76 * + - col1, col1 FROM tab0
----
-1596
21
-6156
81
-76
1

query I rowsort
SELECT 83 * 93 FROM tab2
----
7719
7719
7719

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL < + - 81 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4751
SELECT DISTINCT 62 * - 56 * + + SUM( - CAST( + col2 AS SIGNED ) ) * + + 14 FROM tab0
----
7582848

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT 62 * - 56 * + + SUM ( - CAST ( + col2 AS INTEGER ) ) * + + 14 FROM tab0
----
7582848

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 25 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - 85 * + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + 56 * - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 85 * + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 56 * - + col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col0 FROM tab1 AS cor0 WHERE NOT + col0 * - - col2 IS NULL
----
-45
23
26

query I rowsort
SELECT ALL col1 + col0 AS col2 FROM tab0 cor0 WHERE NULL = 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab0 AS cor0
----
35

query I rowsort
SELECT ALL - 80 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) + + - col2 NOT BETWEEN + 26 * + col0 * + - col2 * col1 AND + col0 - + col2 - 5
----

query I rowsort
SELECT - 48 + col2 AS col0 FROM tab0
----
-1
-38
51

query I rowsort
SELECT + 14 + + - col1 AS col1 FROM tab0
----
-67
-7
13

query I rowsort
SELECT + + 80 + + col0 FROM tab0 AS cor0
----
167
177
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT ALL 59 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL 59 / col0 AS col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + - 69 AS col0 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT - - col1 / - CAST( NULL AS SIGNED ) + + - ( + col1 ) + + col0 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT - - col1 / - CAST ( NULL AS INTEGER ) + + - ( + col1 ) + + col0 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - MAX( col1 ) col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4764
SELECT - MAX ( col1 ) col2 FROM tab0 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - 55 col1 FROM tab0
----
-26
34
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4766
SELECT ALL MAX( ALL - + CAST( - 3 AS SIGNED ) ) + + 16 + COUNT( * ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL MAX ( ALL - + CAST ( - 3 AS INTEGER ) ) + + 16 + COUNT ( * ) FROM tab0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4768
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT - + 97 IN ( + 10 * + 93 + 35 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2 WHERE NOT - + 97 IN ( + 10 * + 93 + 35 * - col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col1 col0 FROM tab0
----
-98
11
34

query I rowsort
SELECT col1 - - - col2 * - + col2 * + - ( - ( 14 ) ) AS col2 FROM tab1
----
129038
48739
64783

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 90 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT col2 - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT col2 - col2 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 59 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4774
SELECT col1 DIV + - 36 + col2 + - col1 * + 97 - + - 50 FROM tab2 AS cor0
----
-4875
-6392
-7381

skipif mysql # not compatible
query I rowsort label-4774
SELECT col1 / + - 36 + col2 + - col1 * + 97 - + - 50 FROM tab2 AS cor0
----
-4875
-6392
-7381

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - - COUNT( ALL 55 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4775
SELECT - - COUNT ( ALL 55 ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 96 + + col1 <> - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + 57 * + + 41 <= - col0 + 81 + + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col0 FROM tab1 AS cor0
----
9
9
9

query II rowsort
SELECT ALL - 14 AS col2, col0 FROM tab0
----
-14
15
-14
87
-14
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 * + + col0 * col0 AS col2, - col0 + + + 76 AS col0 FROM tab0
----
158949
-11
18225
61
9409
-21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 * + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4783
SELECT - col2 * + 92 * + CAST( NULL AS SIGNED ) AS col1, + col0 * - 2 FROM tab2
----
NULL
-128
NULL
-150
NULL
-92

skipif mysql # not compatible
query II rowsort label-4783
SELECT - col2 * + 92 * + CAST ( NULL AS INTEGER ) AS col1, + col0 * - 2 FROM tab2
----
NULL
-128
NULL
-150
NULL
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT + CAST( + 85 AS SIGNED ) * + MIN( DISTINCT - 81 ) col1 FROM tab0
----
-6885

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4784
SELECT + CAST ( + 85 AS INTEGER ) * + MIN ( DISTINCT - 81 ) col1 FROM tab0
----
-6885

query I rowsort
SELECT col1 * + col1 * col2 * - ( + + col1 ) AS col2 FROM tab1
----
-263424
-7059964
-7375

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT 53 * - + COUNT( * ) AS col2 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-4786
SELECT 53 * - + COUNT ( * ) AS col2 FROM tab2
----
-159

query I rowsort
SELECT ALL ( + col0 ) * + col2 * - col2 AS col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4788
SELECT DISTINCT + ( + + COUNT( * ) ) DIV - SUM( - - col2 ) * 13 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + ( + + COUNT ( * ) ) / - SUM ( - - col2 ) * 13 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4789
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 56 <> + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4789
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 56 <> + col1 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - SUM( DISTINCT + 66 ) + 28 + + SUM( - col2 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - SUM ( DISTINCT + 66 ) + 28 + + SUM ( - col2 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT DISTINCT col2 + - + CAST( + 97 AS SIGNED ) + col2 FROM tab1
----
21
39
95

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT col2 + - + CAST ( + 97 AS INTEGER ) + col2 FROM tab1
----
21
39
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT 42 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT 42 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 / + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4793
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 / + col1 IS NULL )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 1 + + + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT - MIN( ALL + - 85 ) + - + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-4795
SELECT - MIN ( ALL + - 85 ) + - + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 57 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4797
SELECT DISTINCT - col1 + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - col1 + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL ( ( 82 ) ) + COUNT( * ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL ( ( 82 ) ) + COUNT ( * ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT - 20 + + ( col1 ) + col1 + - col0 * + 60 * - 73 AS col2 FROM tab2 AS cor0
----
201562
280454
328614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT + col1 + - - CAST( - col1 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT + col1 + - - CAST ( - col1 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT - 90 + + col0 AS col2 FROM tab0
----
-3
-75
7

query I rowsort
SELECT 44 + + + 25 AS col1 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - - MAX( ALL - + col1 ) col2 FROM tab0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4803
SELECT - - MAX ( ALL - + col1 ) col2 FROM tab0 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT COUNT( * ) + 35 + - COUNT( * ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-4804
SELECT COUNT ( * ) + 35 + - COUNT ( * ) AS col1 FROM tab2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT + 46 + + COUNT( + - col2 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT + 46 + + COUNT ( + - col2 ) FROM tab0
----
49

query I rowsort
SELECT ALL + col0 - + 4 FROM tab0
----
11
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL - MIN( - col2 ) AS col0 FROM tab2 WHERE + + 27 + 26 * + col2 * + col0 * + col1 IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - MIN ( - col2 ) AS col0 FROM tab2 WHERE + + 27 + 26 * + col2 * + col0 * + col1 IS NOT NULL
----
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - 70 - - 82 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 62 ) * + - col0 IN ( + 59 )
----

query I rowsort
SELECT + + col1 * + - col1 AS col2 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - 97 * + COUNT( DISTINCT - 42 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4811
SELECT - 97 * + COUNT ( DISTINCT - 42 ) FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 * + 14 col2 FROM tab1, tab0 AS cor0
----
112

query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab0 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - ( - COUNT( ( - - col2 ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4815
SELECT - ( - COUNT ( ( - - col2 ) ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> + 80
----

query II rowsort
SELECT col2 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query III rowsort label-4818
SELECT ALL + COUNT( * ), COUNT( * ), COUNT( * ) FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query III rowsort label-4818
SELECT ALL + COUNT ( * ), COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 18 NOT IN ( 14, + col2 * + col2 )
----

query I rowsort
SELECT - 95 * + + col2 AS col0 FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4822
SELECT CAST( + col0 AS SIGNED ) AS col0, - col1 FROM tab2 WHERE NOT - + col2 * - col2 * + 97 * col1 - 4 + + - 10 IS NULL
----
46
-51
64
-77
75
-67

skipif mysql # not compatible
query II rowsort label-4822
SELECT CAST ( + col0 AS INTEGER ) AS col0, - col1 FROM tab2 WHERE NOT - + col2 * - col2 * + 97 * col1 - 4 + + - 10 IS NULL
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT + SUM( DISTINCT + - 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-4823
SELECT + SUM ( DISTINCT + - 45 ) FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + SUM( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4824
SELECT + SUM ( - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL <= + + 6 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4826
SELECT - SUM( 94 ) DIV - ( + COUNT( * ) ) FROM tab0 cor0
----
94

skipif mysql # not compatible
query I rowsort label-4826
SELECT - SUM ( 94 ) / - ( + COUNT ( * ) ) FROM tab0 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4827
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN ( - + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4827
SELECT * FROM tab2 AS cor0 WHERE + col2 BETWEEN ( - + CAST ( NULL AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT 11 + - - MIN( ALL - ( col0 ) ) AS col0 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-4829
SELECT 11 + - - MIN ( ALL - ( col0 ) ) AS col0 FROM tab2
----
-64

query I rowsort
SELECT DISTINCT 87 + - col2 FROM tab1
----
-9
19
28

query II rowsort
SELECT DISTINCT col0, + col2 FROM tab2 cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 59 < NULL
----

query II rowsort
SELECT col2 * + col0 - - + col1, col1 AS col2 FROM tab1 AS cor0
----
4910
14
5020
5
6235
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT DISTINCT MAX( ALL - 67 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-67

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT MAX ( ALL - 67 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT DISTINCT + MIN( - col2 ) - - 28 col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4835
SELECT DISTINCT + MIN ( - col2 ) - - 28 col0 FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL ( + - ( - col2 ) ) / col1 * CAST( NULL AS SIGNED ) + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL ( + - ( - col2 ) ) / col1 * CAST ( NULL AS INTEGER ) + 43 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, + 34 FROM tab2 AS cor0
----
-51
34
-67
34
-77
34

query I rowsort
SELECT ALL 11 * + 94 FROM tab0 AS cor0
----
1034
1034
1034

query I rowsort
SELECT ALL + 83 + + - col0 FROM tab1 AS cor0
----
-2
-8
32

query I rowsort
SELECT - 56 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL + ( ( - 54 ) ) * + + col1 + col0 FROM tab1
----
-185
-2447
-705

query I rowsort
SELECT - - col1 FROM tab1 WHERE + ( + + col1 ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col0 * + col0 NOT BETWEEN - col2 AND + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 42 = 8 + + + col1
----

query I rowsort
SELECT DISTINCT 13 FROM tab1 WHERE - 22 + - col2 NOT BETWEEN - col0 + + 88 AND NULL
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - MAX( ALL col0 ) col0 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT - MAX ( ALL col0 ) col0 FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT - MAX( col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT - MAX ( col1 ) FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4848
SELECT + 70 * 98 DIV + col1 AS col0 FROM tab1 AS cor0
----
1372
145
490

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 70 * 98 / + col1 AS col0 FROM tab1 AS cor0
----
1372
145
490

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4849
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4849
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * - col2 + col2 + col1 IN ( - + col1, 37, - - ( + col0 ), col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4851
SELECT ALL MIN( ALL - col2 ) DIV COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL MIN ( ALL - col2 ) / COUNT ( * ) FROM tab2
----
-19

query I rowsort
SELECT col2 * - + 61 AS col1 FROM tab2
----
-1403
-2440
-3538

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 NOT IN ( - + ( - col1 ) + + ( col0 ), col0 * 44, - 61, - 14 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - col1 / + col2 / col2 * + col2
----

query I rowsort
SELECT ALL + col0 * col0 + + + col2 AS col2 FROM tab0 AS cor0
----
272
7579
9508

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT DISTINCT - - col0 DIV + col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT - - col0 / + col0 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT - + SUM( - - 92 ) FROM tab1 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT - + SUM ( - - 92 ) FROM tab1 cor0
----
-276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col1 FROM tab0 AS cor0 WHERE NOT - 35 IS NOT NULL
----

query I rowsort
SELECT - - 1 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL - + 23 + - COUNT( * ) FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - + 23 + - COUNT ( * ) FROM tab1 cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT + ( - + COUNT( * ) ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + ( - + COUNT ( * ) ) + + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT + 13 * + + col0 FROM tab0
----
1131
1261
195

query I rowsort
SELECT DISTINCT - 85 + + + col0 FROM tab0
----
-70
12
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col2 * + + col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4866
SELECT CAST( - + col1 AS SIGNED ) * - - CAST( NULL AS DECIMAL ) + + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT CAST ( - + col1 AS INTEGER ) * - - CAST ( NULL AS REAL ) + + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL MAX( - col0 ) col1 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4867
SELECT ALL MAX ( - col0 ) col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL + + COUNT( * ) * - 17 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL + + COUNT ( * ) * - 17 FROM tab0 cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + 69 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL MAX( + 56 ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
56

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL MAX ( + 56 ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + SUM( col2 ) - - MAX( - + col1 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-4873
SELECT + SUM ( col2 ) - - MAX ( - + col1 ) FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - SUM( - col0 ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-4874
SELECT - SUM ( - col0 ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
196

query I rowsort
SELECT ALL + 4 - - 26 * + - col0 * + col1 AS col1 FROM tab0 cor0
----
-2518
-31586
-47498

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + + col1 * + + col1 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col2 - 42 - + col2 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT - + col2 + + - CAST( + - col2 AS SIGNED ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT - + col2 + + - CAST ( + - col2 AS INTEGER ) FROM tab0 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4879
SELECT col0 DIV col1 + col2 AS col0, col0 FROM tab0 AS cor0
----
14
87
196
97
47
15

skipif mysql # not compatible
query II rowsort label-4879
SELECT col0 / col1 + col2 AS col0, col0 FROM tab0 AS cor0
----
14
87
196
97
47
15

query I rowsort
SELECT 87 + - - col0 + + col1 FROM tab0
----
183
185
195

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + - - 38 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT DISTINCT + SUM( - ( - + col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT + SUM ( - ( - + col1 ) ) FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + - col1 - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT DISTINCT CAST( - 80 AS SIGNED ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT CAST ( - 80 AS INTEGER ) FROM tab0 AS cor0
----
-80

query I rowsort
SELECT + col1 * 20 AS col2 FROM tab0 AS cor0
----
1620
20
420

query I rowsort
SELECT DISTINCT + - 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-40

query I rowsort
SELECT - col0 + - 58 AS col0 FROM tab1 AS cor0
----
-109
-143
-149

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT - - 29 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - - 29 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT COUNT( * ) + 45 AS col1 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-4891
SELECT COUNT ( * ) + 45 AS col1 FROM tab2 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT SUM( + 62 ) + - COUNT( * ) FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4892
SELECT SUM ( + 62 ) + - COUNT ( * ) FROM tab1 AS cor0
----
183

query I rowsort
SELECT + 75 + - + col0 FROM tab0 AS cor0
----
-12
-22
60

query I rowsort
SELECT ALL - + col1 + - - ( + - col0 ) + + 57 * - 54 + + - col1 AS col0 FROM tab2 AS cor0
----
-3226
-3287
-3296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL 72 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + - 45 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL 72 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + - 45 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT + ( - 83 ) + + + COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + ( - 83 ) + + + COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL ( - 39 ) * + - COUNT( * ) AS col2 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL ( - 39 ) * + - COUNT ( * ) AS col2 FROM tab2
----
117

query I rowsort
SELECT 6 * ( - col1 ) AS col2 FROM tab1
----
-282
-30
-84

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT SUM( + + 2 ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4900
SELECT SUM ( + + 2 ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT MAX( - + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT MAX ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT - SUM( ALL - 69 ) - - 56 + - 6 + - + 80 + - 14 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4902
SELECT - SUM ( ALL - 69 ) - - 56 + - 6 + - + 80 + - 14 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 + col1 * - 99 col1 FROM tab0
----
-2070
-8010
-90

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> 59
----

query I rowsort
SELECT ALL + 57 - - 96 * + col2 + - col0 AS col1 FROM tab1 AS cor0
----
5636
6494
9222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE 92 + 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 83, 19 AS col2 FROM tab2 AS cor0
----
-83
19
-83
19
-83
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 + col0 AND + col0 * - 86
----

query I rowsort
SELECT - + col2 * - col0 * + 42 FROM tab0 AS cor0
----
29610
36540
403326

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col2 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1, - 74 + - col2 AS col2 FROM tab2 cor0
----
-51
-97
-67
-132
-77
-114

query I rowsort
SELECT DISTINCT ( ( + 49 ) ) AS col2 FROM tab2 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab0 AS cor0 WHERE NOT col2 + - ( - col2 ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - + col2 * col0 + 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT ( + col1 ) DIV 36 col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4917
SELECT ( + col1 ) / 36 col2 FROM tab0
----
0
0
2

query I rowsort
SELECT ( 84 ) AS col2 FROM tab2
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + 94 col0, ( + - col1 ) FROM tab1
----
-5546
-5
-6392
-47
-9024
-14

query I rowsort
SELECT ALL 34 * + + ( - - col0 ) FROM tab0
----
2958
3298
510

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 8 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT DISTINCT + + 92 DIV + col0 col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4922
SELECT DISTINCT + + 92 / + col0 col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT DISTINCT ( + col2 ) * + 96 AS col0 FROM tab0
----
4512
9504
960

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 7 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - ( + col1 ) ) + + col1 * - - col1 < NULL
----

query I rowsort
SELECT DISTINCT + 5 * - + col0 FROM tab1
----
-255
-425
-455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4927
SELECT CAST( - + ( + - 17 ) AS SIGNED ) * + + col2 AS col0 FROM tab2
----
391
680
986

skipif mysql # not compatible
query I rowsort label-4927
SELECT CAST ( - + ( + - 17 ) AS INTEGER ) * + + col2 AS col0 FROM tab2
----
391
680
986

query I rowsort
SELECT ALL - 88 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT MAX( ALL - + col2 ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4929
SELECT MAX ( ALL - + col2 ) col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT + + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + 18 / + 96 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4933
SELECT DISTINCT - 9 AS col1, MAX( + ( - CAST( + col0 AS SIGNED ) ) ) - - 70 FROM tab2 AS cor0
----
-9
24

skipif mysql # not compatible
query II rowsort label-4933
SELECT DISTINCT - 9 AS col1, MAX ( + ( - CAST ( + col0 AS INTEGER ) ) ) - - 70 FROM tab2 AS cor0
----
-9
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT + - 94 DIV - col0 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4934
SELECT + - 94 / - col0 AS col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT ALL + col0 DIV + - 44 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + col0 / + - 44 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 * + 42 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab2 cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - 84 + SUM( - col0 ) AS col2 FROM tab1
----
-311

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - 84 + SUM ( - col0 ) AS col2 FROM tab1
----
-311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT col2 * + - 35 + + + 96 AS col0 FROM tab1
----
-1969
-2284
-3264

query I rowsort
SELECT 27 + - 88 FROM tab2
----
-61
-61
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT DISTINCT + col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + col0 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT ALL - 48 AS col1 FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT + + col1 * - 41 AS col1 FROM tab2 AS cor0
----
-2091
-2747
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + 70 - + COUNT( * ) * 97 + + 8 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 70 - + COUNT ( * ) * 97 + + 8 FROM tab1
----
-213

query I rowsort
SELECT + - ( + col2 ) * + 62 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 73 ) IS NOT NULL
----

query I rowsort
SELECT 0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col2 * col1 * col1 - col1 FROM tab2 AS cor0
----
237083
260295
59772

query I rowsort
SELECT ALL - - 19 AS col2 FROM tab0 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT COUNT( DISTINCT + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4950
SELECT COUNT ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

query II rowsort
SELECT col0 AS col0, ( - col1 ) AS col2 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT col1 DIV + - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4953
SELECT col1 / + - col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query II rowsort
SELECT DISTINCT - 92 AS col2, 49 * - col0 AS col2 FROM tab1 WHERE + - col0 BETWEEN + ( - 14 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4956
SELECT + + MAX( ( + - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT + + MAX ( ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col0 FROM tab2 AS cor0
----
-8

query II rowsort
SELECT ALL + 43 AS col2, 3 FROM tab1 AS cor0
----
43
3
43
3
43
3

query I rowsort
SELECT ALL + 77 * + col2 + + col2 AS col0 FROM tab0 AS cor0
----
3666
7722
780

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4960
SELECT - + 78 + - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-4960
SELECT - + 78 + - + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4961
SELECT CAST( - + 26 AS SIGNED ), + col1 * - col0 AS col0 FROM tab0
----
-26
-1215
-26
-1827
-26
-97

skipif mysql # not compatible
query II rowsort label-4961
SELECT CAST ( - + 26 AS INTEGER ), + col1 * - col0 AS col0 FROM tab0
----
-26
-1215
-26
-1827
-26
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT DISTINCT + 78 + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT + 78 + COUNT ( * ) FROM tab1
----
81

query I rowsort
SELECT + + col0 * + col2 + col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT + - 86 + 79 AS col0 FROM tab2 AS cor0
----
-7
-7
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / + col2 <= 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT 30 + - SUM( DISTINCT col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4966
SELECT 30 + - SUM ( DISTINCT col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-168

query I rowsort
SELECT - + col0 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT + col0 + + + col2 AS col0 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> col0 * col1 + + + col2 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 + + col1 col0 FROM tab0
----
-47
-67
13

query I rowsort
SELECT ALL 83 + ( - col1 ) * 26 + - 65 AS col2 FROM tab1
----
-112
-1204
-346

query II rowsort
SELECT col0 AS col2, - 62 * + col2 FROM tab2
----
46
-1426
64
-2480
75
-3596

query I rowsort
SELECT + col0 FROM tab2 WHERE + col2 * - col0 * 41 + - 50 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + + 57 FROM tab2 WHERE NULL IS NULL
----
57
57
57

query I rowsort
SELECT DISTINCT + - 19 + - col0 FROM tab1 WHERE NULL <> + - col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT - 34 * 90 + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3063

skipif mysql # not compatible
query I rowsort label-4976
SELECT - 34 * 90 + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3063

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - SUM( ALL - 40 ) AS col2 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - SUM ( ALL - 40 ) AS col2 FROM tab2 AS cor0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT DISTINCT AVG ( DISTINCT + + 56 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT AVG ( DISTINCT + + 56 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT - + MIN( + col0 ) + + MAX( DISTINCT - - 73 ) FROM tab0 WHERE ( + col1 >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT - + MIN ( + col0 ) + + MAX ( DISTINCT - - 73 ) FROM tab0 WHERE ( + col1 >= NULL )
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 70 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT - + 79 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= - - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4981
SELECT - + 79 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= - - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT + ( - SUM( ALL - 67 ) ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4983
SELECT + ( - SUM ( ALL - 67 ) ) FROM tab2 AS cor0
----
201

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - COUNT( * ) FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4985
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT + 21 DIV COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4986
SELECT + 21 / COUNT ( * ) FROM tab0
----
7

query III rowsort
SELECT ALL * FROM tab0 WHERE + 29 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4988
SELECT + COUNT( * ) DIV + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4988
SELECT + COUNT ( * ) / + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT - MAX( ALL - - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - MAX ( ALL - - col1 ) FROM tab2 cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4990
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2, + col2 + CAST( NULL AS SIGNED ), 60 + + + col2, - 91 )
----
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2, + col2 + CAST ( NULL AS INTEGER ), 60 + + + col2, - 91 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col2 - - + col1 + 96 * - col1 <= ( NULL )
----

query II rowsort
SELECT ALL + col0, + col2 - - + col0 AS col1 FROM tab1
----
51
147
85
144
91
159

query II rowsort
SELECT + col2 AS col2, col1 + 63 FROM tab1
----
59
68
68
110
96
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( + col2 ) * col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4995
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 94 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-4771
-6240
-7198

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + COUNT( ALL col0 ) + + + ( + 67 ) col1 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4997
SELECT + COUNT ( ALL col0 ) + + + ( + 67 ) col1 FROM tab1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT DISTINCT - col0 + + - 38 * + col2 + - 95 DIV + col1 FROM tab0
----
-1802
-3954
-471

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - col0 + + - 38 * + col2 + - 95 / + col1 FROM tab0
----
-1802
-3954
-471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - - col2 AS col1, col0 - - col2 col2 FROM tab1
----
118
144
136
159
192
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5000
SELECT DISTINCT 93 - + COUNT( * ) + + ( + 82 ) * AVG ( ALL ( CAST( NULL AS SIGNED ) ) ) * - 20 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT 93 - + COUNT ( * ) + + ( + 82 ) * AVG ( ALL ( CAST ( NULL AS INTEGER ) ) ) * - 20 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL - + MIN( ALL + 75 ) - 38 FROM tab0 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - + MIN ( ALL + 75 ) - 38 FROM tab0 AS cor0
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5002
SELECT CAST( col1 AS SIGNED ), - col1 AS col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-5002
SELECT CAST ( col1 AS INTEGER ), - col1 AS col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 79 - + 77 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT ALL - + col1 DIV - 16 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - + col1 / - 16 FROM tab1 AS cor0
----
0
0
2

query II rowsort
SELECT DISTINCT + - 66 * - col2 AS col1, - col1 FROM tab2 AS cor0
----
1518
-51
2640
-77
3828
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT + col2 * - CAST( - 71 AS SIGNED ) + - 31 FROM tab2 AS cor0
----
1602
2809
4087

skipif mysql # not compatible
query I rowsort label-5006
SELECT + col2 * - CAST ( - 71 AS INTEGER ) + - 31 FROM tab2 AS cor0
----
1602
2809
4087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL + col0 * CAST( + 96 AS SIGNED ) + + col2 + - col0 * 89 + - col0 + + col2 AS col0 FROM tab0 AS cor0
----
184
542
780

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + col0 * CAST ( + 96 AS INTEGER ) + + col2 + - col0 * 89 + - col0 + + col2 AS col0 FROM tab0 AS cor0
----
184
542
780

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT + ( - + COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT + 90 AS col2, + col2 AS col2 FROM tab1
----
90
59
90
68
90
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5011
SELECT DISTINCT COUNT( * ) * - CAST( - - MIN( DISTINCT col0 ) AS SIGNED ) AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT COUNT ( * ) * - CAST ( - - MIN ( DISTINCT col0 ) AS INTEGER ) AS col2 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT - 92 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT 65 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5012
SELECT - 92 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 65 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT ALL - col2 DIV col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - col2 / col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - 15 FROM tab0 cor0
----
-1305
-1455
-225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + 67 >= + + ( - + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5016
SELECT col2, col1 DIV col0 col2 FROM tab2 AS cor0
----
23
1
40
1
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5016
SELECT col2, col1 / col0 col2 FROM tab2 AS cor0
----
23
1
40
1
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT + + MIN( ALL - + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5017
SELECT + + MIN ( ALL - + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - - MIN( ALL col1 ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5018
SELECT - - MIN ( ALL col1 ) AS col2 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL - ( + + 46 ) FROM tab1 AS cor0
----
-46
-46
-46

query II rowsort
SELECT DISTINCT + col0 AS col2, + 54 AS col2 FROM tab1 AS cor0
----
51
54
85
54
91
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5021
SELECT - MIN( DISTINCT 89 ) AS col2, - 71 DIV - 58 AS col0 FROM tab2
----
-89
1

skipif mysql # not compatible
query II rowsort label-5021
SELECT - MIN ( DISTINCT 89 ) AS col2, - 71 / - 58 AS col0 FROM tab2
----
-89
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL COUNT( col2 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5022
SELECT ALL COUNT ( col2 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT 62 * 43 + - SUM( - 79 ) + + + COUNT( * ) FROM tab0 WHERE NOT - col2 IS NULL
----
2906

skipif mysql # not compatible
query I rowsort label-5023
SELECT 62 * 43 + - SUM ( - 79 ) + + + COUNT ( * ) FROM tab0 WHERE NOT - col2 IS NULL
----
2906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) >= - 38
----

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) >= - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT + SUM( ALL - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + SUM ( ALL - + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5026
SELECT DISTINCT - - col2 / CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT - - col2 / CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + 82 AS col1, + 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 2f5331d0e34fdb4268e8b777257f5de2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 37
----

query I rowsort
SELECT + 90 + + 99 - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
121
130
93

query I rowsort
SELECT DISTINCT + - 60 FROM tab0 cor0
----
-60

query II rowsort
SELECT col0, col0 * + col1 FROM tab1 AS cor0
----
51
714
85
425
91
4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5032
SELECT + CAST( ( + + 42 ) AS SIGNED ) DIV COUNT( * ) * SUM( ALL - - col0 ) + - + 67 FROM tab0 AS cor0
----
2719

skipif mysql # not compatible
query I rowsort label-5032
SELECT + CAST ( ( + + 42 ) AS INTEGER ) / COUNT ( * ) * SUM ( ALL - - col0 ) + - + 67 FROM tab0 AS cor0
----
2719

query I rowsort
SELECT + - col0 * - 3 * - - col0 * col0 * + - col1 FROM tab1 AS cor0
----
-106253511
-5571342
-9211875

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT DISTINCT + COUNT( col2 ) + - + SUM( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + COUNT ( col2 ) + - + SUM ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
-224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT ALL + 9 * - - CAST( NULL AS SIGNED ) - + col0 - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + 9 * - - CAST ( NULL AS INTEGER ) - + col0 - + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5036
SELECT + MAX( DISTINCT - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5036
SELECT + MAX ( DISTINCT - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT - 2 * - CAST( + 20 AS SIGNED ) AS col2 FROM tab1
----
40
40
40

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 2 * - CAST ( + 20 AS INTEGER ) AS col2 FROM tab1
----
40
40
40

query I rowsort
SELECT ALL 3 + - ( + - col1 ) FROM tab2
----
54
70
80

query I rowsort
SELECT - col2 * col0 - - 8 + + - col1 FROM tab1
----
-4902
-5012
-6227

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT DISTINCT ( - + col1 ) DIV - col1 - + 61 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT ( - + col1 ) / - col1 - + 61 FROM tab0
----
-60

query I rowsort
SELECT + col0 - + - col1 + - col0 AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 - + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 2 * + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT 65 + + col2 FROM tab1 AS cor0
----
124
133
161

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT 25 - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-5045
SELECT 25 - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5046
SELECT * FROM tab2 WHERE NOT 19 * + col1 + - 1 BETWEEN NULL AND - CAST( + col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5046
SELECT * FROM tab2 WHERE NOT 19 * + col1 + - 1 BETWEEN NULL AND - CAST ( + col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 * + 64 FROM tab0 AS cor0
----
5568
6208
960

onlyif mysql # DIV for integer division: 
query II rowsort label-5048
SELECT + + ( + + col2 ) * col0 DIV 71 + + col0, col0 * col0 AS col0 FROM tab0 cor0
----
232
9409
24
225
99
7569

skipif mysql # not compatible
query II rowsort label-5048
SELECT + + ( + + col2 ) * col0 / 71 + + col0, col0 * col0 AS col0 FROM tab0 cor0
----
232
9409
24
225
99
7569

query II rowsort
SELECT ALL col0 AS col0, - 19 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT + ( - MIN( - 7 ) ) AS col2 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5050
SELECT + ( - MIN ( - 7 ) ) AS col2 FROM tab1
----
7

query I rowsort
SELECT ALL 94 + + 44 FROM tab1
----
138
138
138

query I rowsort
SELECT DISTINCT ( + 3 ) * - col0 + + col0 AS col2 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5053
SELECT 46, + ( COUNT( * ) ) / - MIN( - col0 ) + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-5053
SELECT 46, + ( COUNT ( * ) ) / - MIN ( - col0 ) + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1
----
46
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5054
SELECT COUNT( * ) DIV - - 81 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT COUNT ( * ) / - - 81 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 * col0 col2 FROM tab0
----
1044
1164
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT - COUNT( DISTINCT + col0 ) DIV + - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5056
SELECT - COUNT ( DISTINCT + col0 ) / + - COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT col2 * - 1 AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT + COUNT( * ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5058
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col1 * + col2 AS col2 FROM tab0
----
15
3807
87
210
97
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col2 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5061
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col2 FROM tab2
----
-9

query I rowsort
SELECT + ( col2 ) + - 10 * col2 AS col1 FROM tab1
----
-531
-612
-864

query I rowsort
SELECT + 36 + + 76 * col2 AS col0 FROM tab2
----
1784
3076
4444

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - 69 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 43 ) NOT IN ( - col0 )
----

query I rowsort
SELECT ALL col0 * + 35 AS col1 FROM tab0
----
3045
3395
525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col1 FROM tab1
----
-98
-98
-98

query III rowsort
SELECT * FROM tab1 WHERE col2 - col1 NOT BETWEEN + col2 AND - ( - col2 ) / ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 51 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND - col1 + 30 * col1
----

query I rowsort
SELECT DISTINCT 26 * + col2 + + col0 FROM tab2
----
1104
1583
644

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT - col2 DIV + 70 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT - col2 / + 70 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 col0 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT 5 + + COUNT( * ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT 5 + + COUNT ( * ) AS col2 FROM tab2
----
8

query I rowsort
SELECT 45 * 82 AS col1 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL col0 + + col2 FROM tab1 WHERE col2 BETWEEN ( + col2 ) AND ( + col0 * - 62 )
----

query I rowsort
SELECT DISTINCT + 37 - col0 AS col0 FROM tab2
----
-27
-38
-9

query I rowsort
SELECT 34 + - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-17
-51
-57

query I rowsort
SELECT + 85 * - 54 AS col0 FROM tab0
----
-4590
-4590
-4590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT + CAST( + col2 AS SIGNED ) + 99 FROM tab2
----
122
139
157

skipif mysql # not compatible
query I rowsort label-5080
SELECT + CAST ( + col2 AS INTEGER ) + 99 FROM tab2
----
122
139
157

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT ALL + col1 + - col0 FROM tab1 WHERE 87 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT DISTINCT - MAX( DISTINCT - col2 ) AS col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN + col0 * col1 + + col0 AND 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT - MAX ( DISTINCT - col2 ) AS col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN + col0 * col1 + + col0 AND 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT ALL col0 DIV 3 FROM tab2
----
15
21
25

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL col0 / 3 FROM tab2
----
15
21
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT MIN( ALL + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT MIN ( ALL + col0 ) FROM tab1
----
51

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN ( - ( - col2 ) ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + COUNT( * ) * 61 FROM tab1 WHERE NULL BETWEEN col1 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT + COUNT ( * ) * 61 FROM tab1 WHERE NULL BETWEEN col1 AND - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT - col0 DIV col2 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5088
SELECT - col0 / col2 AS col1 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - COUNT( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5089
SELECT - COUNT ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + SUM( 12 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5090
SELECT + SUM ( 12 ) FROM tab2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * - 43 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * - 43 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * + col1 col1 FROM tab0
----
-1764
-6804
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 50 = ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 43 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT ALL - 36 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
-36
0

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - 36 / + col1 AS col2 FROM tab0 AS cor0
----
-1
-36
0

query I rowsort
SELECT - + col2 * - 83 AS col1 FROM tab2 AS cor0
----
1909
3320
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - COUNT( * ) * MIN( ( + col1 ) ) + MIN( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5097
SELECT - COUNT ( * ) * MIN ( ( + col1 ) ) + MIN ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT + col2 + - col1 FROM tab2 cor0 WHERE NOT col1 * col2 IS NULL
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT - CAST( - 41 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( col0 * col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5099
SELECT - CAST ( - 41 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( col0 * col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT - + CAST( NULL AS SIGNED ) * + col2 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT - + CAST ( NULL AS INTEGER ) * + col2 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT DISTINCT + CAST( 89 AS SIGNED ) FROM tab1 AS cor0 WHERE - CAST( col2 AS SIGNED ) + 91 IS NOT NULL
----
89

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + CAST ( 89 AS INTEGER ) FROM tab1 AS cor0 WHERE - CAST ( col2 AS INTEGER ) + 91 IS NOT NULL
----
89

query I rowsort
SELECT - col2 * + ( 77 + - col2 ) AS col0 FROM tab1 cor0
----
-1062
-612
1824

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT DISTINCT - + col2 * + col0 + + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-4895
-5014
-6187

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT - + col2 * + col0 + + col2 / col2 AS col1 FROM tab1 AS cor0
----
-4895
-5014
-6187

query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab0 WHERE ( + 92 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT COUNT( DISTINCT - 69 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5105
SELECT COUNT ( DISTINCT - 69 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT ALL - CAST( + - col2 AS SIGNED ) * ( + col0 ) + + col2 FROM tab0
----
752
880
9702

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - CAST ( + - col2 AS INTEGER ) * ( + col0 ) + + col2 FROM tab0
----
752
880
9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5107
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT ALL - col0 DIV 53 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - col0 / 53 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT col1 + + 6 AS col1 FROM tab1
----
11
20
53

query I rowsort
SELECT - 90 + + col2 FROM tab2 WHERE - col1 * col2 >= 21
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * col1 + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN + col1 / col1 AND - col2
----

query I rowsort
SELECT ALL + col1 * + + col0 + + col0 FROM tab0
----
1230
1914
194

query I rowsort
SELECT DISTINCT 77 * col0 AS col2 FROM tab2
----
3542
4928
5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT - + CAST( NULL AS SIGNED ) + + ( + 35 ) * + ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT - + CAST ( NULL AS INTEGER ) + + ( + 35 ) * + ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT - 66 + - - COUNT( + col0 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5116
SELECT - 66 + - - COUNT ( + col0 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5117
SELECT - - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT - - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5118
SELECT + CAST( NULL AS SIGNED ) AS col0, 98 FROM tab0
----
NULL
98
NULL
98
NULL
98

skipif mysql # not compatible
query II rowsort label-5118
SELECT + CAST ( NULL AS INTEGER ) AS col0, 98 FROM tab0
----
NULL
98
NULL
98
NULL
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT ALL + col2 * col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL + col2 * col2 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 52 AS col0, 7 AS col1 FROM tab1 AS cor0
----
-52
7
-52
7
-52
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - 35 * + MAX( + col2 ) col1 FROM tab1 AS cor0
----
-3360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5121
SELECT - 35 * + MAX ( + col2 ) col1 FROM tab1 AS cor0
----
-3360

query I rowsort
SELECT DISTINCT + col0 * - - col2 - - 27 AS col0 FROM tab2 AS cor0
----
1085
2587
4377

query I rowsort
SELECT DISTINCT - col1 * + + 86 FROM tab1 AS cor0
----
-1204
-4042
-430

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT + ( + 92 ) DIV + col2 FROM tab0 AS cor0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-5124
SELECT + ( + 92 ) / + col2 FROM tab0 AS cor0
----
0
1
9

query I rowsort
SELECT DISTINCT - col2 * - + col1 + + + col0 * + col2 FROM tab0 AS cor0
----
1080
4512
9702

query I rowsort
SELECT ALL - - col2 * - - col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 1 col2, + col1 - 76 + - col2 * 7 AS col0 FROM tab0 cor0
----
1
-125
1
-324
1
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col2 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5129
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col1 * - - CAST( + 95 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5129
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col1 * - - CAST ( + 95 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 WHERE NOT col0 BETWEEN + col0 + - col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5130
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 WHERE NOT col0 BETWEEN + col0 + - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT 70 * MIN( DISTINCT col1 ) * - 17 AS col2 FROM tab1
----
-5950

skipif mysql # not compatible
query I rowsort label-5131
SELECT 70 * MIN ( DISTINCT col1 ) * - 17 AS col2 FROM tab1
----
-5950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT ALL 50 DIV COUNT( * ) AS col2 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL 50 / COUNT ( * ) AS col2 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL 99 * COUNT( * ) * + 13 FROM tab1 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL 99 * COUNT ( * ) * + 13 FROM tab1 WHERE ( NULL ) > NULL
----
0

query I rowsort
SELECT 11 * - col2 AS col1 FROM tab1
----
-1056
-649
-748

query II rowsort
SELECT - + ( 60 ), - col1 AS col2 FROM tab2 AS cor0
----
-60
-51
-60
-67
-60
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5136
SELECT * FROM tab2 cor0 WHERE NOT col1 BETWEEN NULL AND + 68 * + - CAST( + 94 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5136
SELECT * FROM tab2 cor0 WHERE NOT col1 BETWEEN NULL AND + 68 * + - CAST ( + 94 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + ( - COUNT( DISTINCT + col1 ) ) * + 75 AS col0 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-5138
SELECT + ( - COUNT ( DISTINCT + col1 ) ) * + 75 AS col0 FROM tab1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT + COUNT( * ) * + ( - 9 ) AS col2 FROM tab2 AS cor0 WHERE - col1 + - col2 >= 14
----
0

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + COUNT ( * ) * + ( - 9 ) AS col2 FROM tab2 AS cor0 WHERE - col1 + - col2 >= 14
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + 26 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT ALL - + MIN( col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL - + MIN ( col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - 45 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5143
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5143
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query II rowsort
SELECT ALL - - col1 + + - col1 + col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND - ( + - col0 )
----

query II rowsort
SELECT col0 AS col2, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT * FROM tab0 WHERE + 32 NOT IN ( 32 )
----

query I rowsort
SELECT DISTINCT + col2 + + + col1 * - 4 FROM tab0
----
-277
-74
95

query I rowsort
SELECT col1 + - 59 AS col0 FROM tab1
----
-12
-45
-54

onlyif mysql # aggregate syntax: 
query III rowsort label-5150
SELECT ALL 58 AS col2, COUNT( * ) AS col2, - + 85 FROM tab2
----
58
3
-85

skipif mysql # not compatible
query III rowsort label-5150
SELECT ALL 58 AS col2, COUNT ( * ) AS col2, - + 85 FROM tab2
----
58
3
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT COUNT( * ) + + + 62 AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-5151
SELECT COUNT ( * ) + + + 62 AS col1 FROM tab1
----
65

query I rowsort
SELECT DISTINCT + 27 + - ( + col0 ) FROM tab2 WHERE NOT - 67 * ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 + - - col0 AS col1 FROM tab0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5154
SELECT ALL * FROM tab2 WHERE ( NOT + CAST( NULL AS SIGNED ) BETWEEN + col1 AND + col2 )
----

skipif mysql # not compatible
query III rowsort label-5154
SELECT ALL * FROM tab2 WHERE ( NOT + CAST ( NULL AS INTEGER ) BETWEEN + col1 AND + col2 )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE + - 78 NOT BETWEEN - col2 * - - ( col0 ) AND - 76
----

query I rowsort
SELECT + 67 + 68 FROM tab1
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT SUM( DISTINCT col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5157
SELECT DISTINCT SUM ( DISTINCT col2 ) col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT - MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 = ( - + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT - col2 * 21 DIV + - col0 AS col0 FROM tab2 AS cor0
----
10
13
16

skipif mysql # not compatible
query I rowsort label-5160
SELECT - col2 * 21 / + - col0 AS col0 FROM tab2 AS cor0
----
10
13
16

query II rowsort
SELECT col0 AS col1, + 23 AS col2 FROM tab0 AS cor0
----
15
23
87
23
97
23

query I rowsort
SELECT DISTINCT - col2 + 93 FROM tab0 WHERE NULL IS NULL
----
-6
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( - col2 * + col0 ) IS NOT NULL AND - 33 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( - col2 * + col0 ) IS NOT NULL AND - 33 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col0 / col2 * - CAST( NULL AS SIGNED ), ( - - 27 ) )
----

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col0 / col2 * - CAST ( NULL AS INTEGER ), ( - - 27 ) )
----

query I rowsort
SELECT ALL - - col2 - 5 FROM tab1 AS cor0
----
54
63
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT ALL + - COUNT( * ) * - + 3 AS col0 FROM tab1 AS cor0 WHERE 44 + CAST( col2 AS SIGNED ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + - COUNT ( * ) * - + 3 AS col0 FROM tab1 AS cor0 WHERE 44 + CAST ( col2 AS INTEGER ) IS NOT NULL
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col2 FROM tab0 AS cor0 WHERE NOT 81 + - col2 + col2 + + + 85 + + 16 / + + ( + col0 ) + 56 IS NOT NULL
----

query I rowsort
SELECT - 48 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 1 * 30 FROM tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT DISTINCT - col1 DIV col2 + - col1 - + 78 * + + 59 FROM tab1 cor0
----
-4607
-4616
-4649

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT - col1 / col2 + - col1 - + 78 * + + 59 FROM tab1 cor0
----
-4607
-4616
-4649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT CAST( - 26 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1040
-1508
-598

skipif mysql # not compatible
query I rowsort label-5171
SELECT CAST ( - 26 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1040
-1508
-598

onlyif mysql # DIV for integer division: 
query I rowsort label-5172
SELECT 40 DIV col1 * col2 FROM tab0 AS cor0
----
0
10
3960

skipif mysql # not compatible
query I rowsort label-5172
SELECT 40 / col1 * col2 FROM tab0 AS cor0
----
0
10
3960

query I rowsort
SELECT 60 * + + 23 FROM tab2
----
1380
1380
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT COUNT( * ) * + ( - COUNT( * ) ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5174
SELECT COUNT ( * ) * + ( - COUNT ( * ) ) AS col2 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT col1 * - CAST( + 43 AS SIGNED ) AS col2 FROM tab0
----
-3483
-43
-903

skipif mysql # not compatible
query I rowsort label-5175
SELECT col1 * - CAST ( + 43 AS INTEGER ) AS col2 FROM tab0
----
-3483
-43
-903

query I rowsort
SELECT 1 * + + col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - 81 ) = NULL
----

query I rowsort
SELECT ALL - - 85 AS col1 FROM tab0 WHERE - 32 NOT BETWEEN - 23 AND col1 + 66
----
85
85
85

query II rowsort
SELECT ALL + col0 AS col0, col2 + col1 FROM tab2
----
46
74
64
117
75
125

query II rowsort
SELECT - col0 AS col0, + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5181
SELECT + COUNT( * ), ( 26 ) AS col0 FROM tab1 cor0
----
3
26

skipif mysql # not compatible
query II rowsort label-5181
SELECT + COUNT ( * ), ( 26 ) AS col0 FROM tab1 cor0
----
3
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5183
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 - CAST( NULL AS SIGNED ) + 57 / + + 45 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5183
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 - CAST ( NULL AS INTEGER ) + 57 / + + 45 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT - ( 40 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT 40 * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5184
SELECT - ( 40 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT 40 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT + MIN( - - col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5185
SELECT DISTINCT + MIN ( - - col0 ) col2 FROM tab2
----
46

query I rowsort
SELECT ALL + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5187
SELECT ALL - CAST( + - CAST( - + 78 AS DECIMAL ) AS SIGNED ) * - 81 * + - COUNT( * ) - + - 30 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-56832

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - CAST ( + - CAST ( - + 78 AS REAL ) AS INTEGER ) * - 81 * + - COUNT ( * ) - + - 30 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-56832

query I rowsort
SELECT DISTINCT 61 FROM tab1 WHERE NOT col0 IS NULL
----
61

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT - 98 NOT BETWEEN NULL AND + col0 + ( + col2 )
----

query I rowsort
SELECT ALL 39 + col2 FROM tab1 cor0 WHERE + col1 NOT BETWEEN + col0 * - col2 * - ( col2 ) AND NULL
----
107
135
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT + SUM( - + col0 ) + 98 AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5191
SELECT + SUM ( - + col0 ) + 98 AS col0 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT + 72 + - col1 * + col2 AS col1 FROM tab0 cor0
----
-138
-27
-3735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT col0 + - + col2 + - col1 * - + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL = + col1 * - + col2
----

skipif mysql # not compatible
query I rowsort label-5193
SELECT col0 + - + col2 + - col1 * - + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL = + col1 * - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5194
SELECT - 77 + + col1 AS col0, - 58 DIV + 59 AS col0 FROM tab2 AS cor0
----
-10
0
-26
0
0
0

skipif mysql # not compatible
query II rowsort label-5194
SELECT - 77 + + col1 AS col0, - 58 / + 59 AS col0 FROM tab2 AS cor0
----
-10
0
-26
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 95 + + - col1 + - 55 * ( + 20 ) + - 4 >= + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL MAX( ALL - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL MAX ( ALL - col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL + col0 + + - col1 + + - col0 * - + 57 AS col2 FROM tab2
----
2617
3635
4283

query I rowsort
SELECT DISTINCT 65 + col2 FROM tab2
----
105
123
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5199
SELECT ALL + COUNT( * ) + 64 * 71 AS col0, + 73 FROM tab0
----
4547
73

skipif mysql # not compatible
query II rowsort label-5199
SELECT ALL + COUNT ( * ) + 64 * 71 AS col0, + 73 FROM tab0
----
4547
73

query II rowsort
SELECT DISTINCT 39 + col1 AS col1, - 11 + + col0 AS col0 FROM tab2 WHERE NOT + + ( + 94 ) + 46 BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT col2 + col2 + - - 12 AS col2, col2 FROM tab0
----
106
47
210
99
32
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NULL >= col2 + col2
----
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL >= col2 + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( - col0 ) > + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT DISTINCT - 78 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT - 78 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT + SUM( ALL col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT + SUM ( ALL col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT + 2 + col2 AS col2 FROM tab1 cor0
----
61
70
98

query I rowsort
SELECT - 29 AS col2 FROM tab0 WHERE col2 * + col1 * - 17 + col0 IS NOT NULL
----
-29
-29
-29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT ALL + CAST( 27 AS SIGNED ) * + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1377
2295
2457

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL + CAST ( 27 AS INTEGER ) * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1377
2295
2457

query II rowsort
SELECT + + 74 AS col2, - 79 FROM tab1 AS cor0
----
74
-79
74
-79
74
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col2 + - col1 * col1 col0 FROM tab2 AS cor0
----
51
-2578
67
-4431
77
-5889

onlyif mysql # DIV for integer division: 
query I rowsort label-5213
SELECT ALL + 65 DIV + 88 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + 65 / + 88 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL + MIN( DISTINCT - 24 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL + MIN ( DISTINCT - 24 ) FROM tab2
----
-24

query II rowsort
SELECT DISTINCT col2 * - col0 AS col2, + col0 FROM tab2
----
-1058
46
-2560
64
-4350
75

query I rowsort
SELECT + col1 * col2 FROM tab1 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT - MAX( ALL col2 ) * 32 AS col0 FROM tab1
----
-3072

skipif mysql # not compatible
query I rowsort label-5217
SELECT - MAX ( ALL col2 ) * 32 AS col0 FROM tab1
----
-3072

query I rowsort
SELECT DISTINCT 74 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT DISTINCT + - 84 * + COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-252
-3

skipif mysql # not compatible
query II rowsort label-5220
SELECT DISTINCT + - 84 * + COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-252
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col1 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT ALL + + ( 90 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT DISTINCT + COUNT( ALL + col0 ) col1 FROM tab1 WHERE NOT NULL < + col0 / CAST( col0 AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5223
SELECT DISTINCT + COUNT ( ALL + col0 ) col1 FROM tab1 WHERE NOT NULL < + col0 / CAST ( col0 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - col2 + - + 62 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - COUNT( * ) * - + 35 * COUNT( * ) + - - 19 AS col0 FROM tab2 AS cor0
----
334

skipif mysql # not compatible
query I rowsort label-5225
SELECT - COUNT ( * ) * - + 35 * COUNT ( * ) + - - 19 AS col0 FROM tab2 AS cor0
----
334

query I rowsort
SELECT DISTINCT + ( + - 65 ) AS col0 FROM tab0 AS cor0
----
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 86 IS NULL
----

query II rowsort
SELECT col1 AS col0, col1 + - col0 AS col1 FROM tab0 AS cor0
----
1
-96
21
-66
81
66

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( ( - + col0 ), + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col2 col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT 3 * col0 + + - col0 AS col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5233
SELECT col2 * + - 95 + col2 - - CAST( NULL AS SIGNED ), - col2 AS col0 FROM tab0 cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-5233
SELECT col2 * + - 95 + col2 - - CAST ( NULL AS INTEGER ), - col2 AS col0 FROM tab0 cor0
----
NULL
-10
NULL
-47
NULL
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 40 + 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - col1 ) + + col0 AS col0 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5236
SELECT DISTINCT 9 + - 94 + 13 * + CAST( NULL AS SIGNED ) / - + SUM( + + 14 ) * - SUM( DISTINCT col2 ) + - 59 + 89 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT 9 + - 94 + 13 * + CAST ( NULL AS INTEGER ) / - + SUM ( + + 14 ) * - SUM ( DISTINCT col2 ) + - 59 + 89 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5237
SELECT - 0 * CAST( NULL AS SIGNED ) + 16 / COUNT( * ) / + 81 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT - 0 * CAST ( NULL AS INTEGER ) + 16 / COUNT ( * ) / + 81 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5238
SELECT - col1 + - col2 col2, - CAST( + 16 AS SIGNED ) AS col1 FROM tab0
----
-100
-16
-128
-16
-31
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5238
SELECT - col1 + - col2 col2, - CAST ( + 16 AS INTEGER ) AS col1 FROM tab0
----
-100
-16
-128
-16
-31
-16

query I rowsort
SELECT col1 + + + ( - 4 ) FROM tab0
----
-3
17
77

query I rowsort
SELECT ALL 93 + - col2 FROM tab2
----
35
53
70

query I rowsort
SELECT ALL 63 - - col1 AS col0 FROM tab1
----
110
68
77

query I rowsort
SELECT - col0 + - - 74 - col0 FROM tab0
----
-100
-120
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 - - - col1 AS col1, + col1 + - 99 col2 FROM tab0
----
-34
-18
26
-78
46
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT SUM( ALL + col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5244
SELECT SUM ( ALL + col0 ) col2 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + - col1 * - col0 col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT 83 + - col0 IN ( + 30 - + col1, 29 / - + 61 * col1 + 75 )
----
3

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 83 + - col0 IN ( + 30 - + col1, 29 / - + 61 * col1 + 75 )
----
3

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - 41 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT ALL ( - + CAST( + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL ( - + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( - - col2 ) BETWEEN NULL AND + - 64 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IN ( 51 )
----

query I rowsort
SELECT 14 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT ALL col2 DIV + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL col2 / + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5255
SELECT ALL 63 AS col1, - ( - + MIN( ALL CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5255
SELECT ALL 63 AS col1, - ( - + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - + MIN( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5256
SELECT - + MIN ( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT + CAST( NULL AS SIGNED ) * + + ( col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT + CAST ( NULL AS INTEGER ) * + + ( col0 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5259
SELECT DISTINCT + 49 AS col1, col1 DIV + - 57 FROM tab2
----
49
-1
49
0

skipif mysql # not compatible
query II rowsort label-5259
SELECT DISTINCT + 49 AS col1, col1 / + - 57 FROM tab2
----
49
-1
49
0

query I rowsort
SELECT - col0 * + 87 FROM tab2
----
-4002
-5568
-6525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col0 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + col1 * col2 * 88 FROM tab0
----
18480
335016
8712

query I rowsort
SELECT DISTINCT ( - + col2 ) * - ( + - col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL + 2 * SUM( DISTINCT 82 ) FROM tab1 AS cor0
----
164

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + 2 * SUM ( DISTINCT 82 ) FROM tab1 AS cor0
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT DISTINCT + ( + col0 ) DIV 58 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT + ( + col0 ) / 58 FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT DISTINCT CAST( - MIN( ALL - 33 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT CAST ( - MIN ( ALL - 33 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
33

query II rowsort
SELECT + - col0, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT - + CAST( + - AVG ( 13 ) AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5268
SELECT - + CAST ( + - AVG ( 13 ) AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 61 * + 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + 16 AS col2 FROM tab0 AS cor0
----
-5
-65
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5271
SELECT COUNT( + col0 ) + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5271
SELECT COUNT ( + col0 ) + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT - col1 + + 63 + + - 61 FROM tab1 AS cor0
----
-12
-3
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > 24
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > 24
----
0

query I rowsort
SELECT - 23 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col1 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT - col0 + + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT + col1 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT + col1 / + - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 81 ) <= ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 + - 47 col0 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - MIN( ALL - + 81 ) AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5280
SELECT - MIN ( ALL - + 81 ) AS col0 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT - MAX( col2 ) - - 85 + 56 AS col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5281
SELECT - MAX ( col2 ) - - 85 + 56 AS col1 FROM tab2
----
83

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL < - 71 )
----

query I rowsort
SELECT ALL col1 + + 39 AS col1 FROM tab2
----
106
116
90

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE col2 * + - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + 31 * - - col2 FROM tab1
----
1829
2108
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + COUNT( * ) - - - 69 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-5286
SELECT + COUNT ( * ) - - - 69 FROM tab0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 46 + 93 = NULL
----

query I rowsort
SELECT + - col0 * + + 0 + - 79 AS col1 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT + COUNT( * ) * - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT + COUNT ( * ) * - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5290
SELECT col2 AS col2, + col2 + 73 DIV - + 70 FROM tab0 AS cor0
----
10
9
47
46
99
98

skipif mysql # not compatible
query II rowsort label-5290
SELECT col2 AS col2, + col2 + 73 / - + 70 FROM tab0 AS cor0
----
10
9
47
46
99
98

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 IN ( - - col0 * col2 * - col1 - + - 45 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL = ( - + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL - - COUNT( * ) * - ( - COUNT( * ) ) * - + ( - 84 ) + + 0 + - 63 + MIN( DISTINCT 25 ) FROM tab2 WHERE - - 87 + + 89 + 54 * - col0 > - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - - COUNT ( * ) * - ( - COUNT ( * ) ) * - + ( - 84 ) + + 0 + - 63 + MIN ( DISTINCT 25 ) FROM tab2 WHERE - - 87 + + 89 + 54 * - col0 > - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - + MAX( DISTINCT + - 88 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-5294
SELECT - + MAX ( DISTINCT + - 88 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
88

query I rowsort
SELECT DISTINCT - 79 * - + col1 * + 83 + + - col2 FROM tab1 AS cor0
----
308111
32726
91702

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - 27 ) - - 58 + 57 + - - col2 * col0 * 5 > ( NULL )
----

query I rowsort
SELECT + ( - ( - + ( - + col2 ) ) ) AS col0 FROM tab1 cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 73 ) col1 FROM tab1 cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL + 85 + MAX( ALL + 97 ) AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 85 + MAX ( ALL + 97 ) AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * - - ( 98 ) AS col1 FROM tab1
----
5782
6664
9408

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 93 + - - 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 87 <= + col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col0 * + col0 * + col0 * col1 FROM tab1
----
-1857114
-3070625
-35417837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5304
SELECT - 8 DIV + - MAX( ALL + col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5304
SELECT - 8 / + - MAX ( ALL + col1 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT - col1 * + - 28 AS col0 FROM tab0
----
2268
28
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT DISTINCT CAST( NULL AS SIGNED ) * 91 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 91 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - col2 + - 26 AS col0 FROM tab0 AS cor0
----
2183
74
9775

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT - MIN( + 87 ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5308
SELECT - MIN ( + 87 ) AS col0 FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - + 91 - + MAX( DISTINCT + + 4 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5309
SELECT - + 91 - + MAX ( DISTINCT + + 4 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5310
SELECT * FROM tab0 AS cor0 WHERE + 44 + + ( + 29 ) < ( ( + - col1 ) + col1 * - 9 / + + CAST( NULL AS SIGNED ) - - col2 )
----

skipif mysql # not compatible
query III rowsort label-5310
SELECT * FROM tab0 AS cor0 WHERE + 44 + + ( + 29 ) < ( ( + - col1 ) + col1 * - 9 / + + CAST ( NULL AS INTEGER ) - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT DISTINCT - col1 + col1 DIV - col0 col0 FROM tab0 AS cor0
----
-1
-21
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5311
SELECT DISTINCT - col1 + col1 / - col0 col0 FROM tab0 AS cor0
----
-1
-21
-86

query I rowsort
SELECT DISTINCT + - 66 * - 46 AS col1 FROM tab0 AS cor0 WHERE NULL > 33
----

query I rowsort
SELECT - ( - 40 ) AS col1 FROM tab0 cor0 WHERE ( + + col2 ) > + - col2 + + col1
----
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL - + COUNT( * ) + 74 AS col0 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL - + COUNT ( * ) + 74 AS col0 FROM tab2 AS cor0
----
71

query I rowsort
SELECT - 70 + - ( - + 26 ) FROM tab2
----
-44
-44
-44

query I rowsort
SELECT + 36 + col0 AS col0 FROM tab0
----
123
133
51

query II rowsort
SELECT DISTINCT col0 + + col2 AS col2, - col2 AS col0 FROM tab2
----
104
-40
133
-58
69
-23

query I rowsort
SELECT DISTINCT 10 * 56 - + - col2 AS col1 FROM tab0
----
570
607
659

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT - 54 + + + SUM( DISTINCT + + col1 ) FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-5319
SELECT - 54 + + + SUM ( DISTINCT + + col1 ) FROM tab2
----
141

query I rowsort
SELECT 92 * + + 58 * col2 FROM tab2
----
122728
213440
309488

query I rowsort
SELECT ( + + 85 ) AS col1 FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT DISTINCT + MAX( DISTINCT + - col2 ) - + + COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT + MAX ( DISTINCT + - col2 ) - + + COUNT ( * ) FROM tab0
----
-13

query III rowsort
SELECT * FROM tab1 WHERE + col2 / - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 1 - + col0 FROM tab1
----
-50
-84
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL - MIN( ALL + 9 ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - MIN ( ALL + 9 ) AS col1 FROM tab2 cor0
----
-9

query II rowsort
SELECT col1, col0 - - col0 * - 80 AS col0 FROM tab2 AS cor0
----
51
-3634
67
-5925
77
-5056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT CAST( + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5328
SELECT CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col2 * - - col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5330
SELECT ALL 6 * 77 DIV - COUNT( * ) AS col2 FROM tab1
----
-154

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL 6 * 77 / - COUNT ( * ) AS col2 FROM tab1
----
-154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5331
SELECT - + CAST( NULL AS DECIMAL ) - col0 + col0 AS col2 FROM tab0 WHERE NOT - - 25 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT - + CAST ( NULL AS REAL ) - col0 + col0 AS col2 FROM tab0 WHERE NOT - - 25 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE ( NOT col0 - 73 <= NULL )
----

query I rowsort
SELECT col0 * - 48 FROM tab0
----
-4176
-4656
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT - MIN( + 29 ) FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - MIN ( + 29 ) FROM tab0 AS cor0
----
-29

query I rowsort
SELECT ALL + + 35 AS col1 FROM tab1 AS cor0
----
35
35
35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > 25
----

query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT - col2 * 75 + CAST( NULL AS SIGNED ) - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT - col2 * 75 + CAST ( NULL AS INTEGER ) - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL + ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - - col0 * - 16 FROM tab2 AS cor0
----
-1024
-1200
-736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0 WHERE NOT NULL < ( - ( + + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0 WHERE NOT NULL < ( - ( + + col2 ) )
----

query I rowsort
SELECT DISTINCT + 15 * 47 + 43 FROM tab2 AS cor0
----
748

query I rowsort
SELECT DISTINCT + - col0 * - - col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT ALL + 25 DIV + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL + 25 / + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col1 * - 79 AS col2 FROM tab2 AS cor0
----
-4029
-5293
-6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col1 FROM tab0 WHERE col1 IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT ALL + 82 * + col2 + - + col1 * + 71 AS col2 FROM tab2
----
-1
-1735
-2187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + col2 + - ( 86 ) AS col0, - col0 + - col0 col2 FROM tab2 WHERE NOT ( col2 ) < col0 - + col2
----
-17
-92
18
-128
47
-150

onlyif mysql # DIV for integer division: 
query II rowsort label-5350
SELECT + col2 AS col2, - col1 DIV + - 56 AS col2 FROM tab2
----
23
0
40
1
58
1

skipif mysql # not compatible
query II rowsort label-5350
SELECT + col2 AS col2, - col1 / + - 56 AS col2 FROM tab2
----
23
0
40
1
58
1

query II rowsort
SELECT ALL col1 * col0 AS col1, 61 AS col1 FROM tab2
----
2346
61
4928
61
5025
61

query II rowsort
SELECT + col1, 70 FROM tab0 AS cor0
----
1
70
21
70
81
70

query I rowsort
SELECT DISTINCT + + 13 FROM tab1 cor0 WHERE 65 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5354
SELECT DISTINCT col1 DIV + - col2 - - col1 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT col1 / + - col2 - - col1 FROM tab0 AS cor0
----
1
19
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL MIN( ALL - + 67 ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL MIN ( ALL - + 67 ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5356
SELECT + - 1 * - + CAST( NULL AS DECIMAL ) + ( - - col1 ), + 35 AS col0 FROM tab0 AS cor0
----
NULL
35
NULL
35
NULL
35

skipif mysql # not compatible
query II rowsort label-5356
SELECT + - 1 * - + CAST ( NULL AS REAL ) + ( - - col1 ), + 35 AS col0 FROM tab0 AS cor0
----
NULL
35
NULL
35
NULL
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT ALL + col2 DIV - - 84 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + col2 / - - 84 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT DISTINCT + 87 AS col2, + COUNT( * ) + - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
87
-67

skipif mysql # not compatible
query II rowsort label-5358
SELECT DISTINCT + 87 AS col2, + COUNT ( * ) + - 76 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
87
-67

query I rowsort
SELECT DISTINCT - 54 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5360
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - ( - - 79 ) AS col0 FROM tab1
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-5363
SELECT col2 DIV + col0 DIV 17 * - col1 * + 4 col0, ( - 39 ) FROM tab1 AS cor0
----
0
-39
0
-39
0
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5363
SELECT col2 / + col0 / 17 * - col1 * + 4 col0, ( - 39 ) FROM tab1 AS cor0
----
0
-39
0
-39
0
-39

query I rowsort
SELECT + + 26 AS col0 FROM tab0 cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT COUNT( * ) * 64 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
576

skipif mysql # not compatible
query I rowsort label-5366
SELECT COUNT ( * ) * 64 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT MIN( DISTINCT + - 10 ) * + - 6 - MAX( + col2 ) AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5367
SELECT MIN ( DISTINCT + - 10 ) * + - 6 - MAX ( + col2 ) AS col1 FROM tab2
----
2

query III rowsort
SELECT * FROM tab1 WHERE NOT - 99 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2, + col2 * - 47 * - + 0 AS col0 FROM tab1
----
59
0
68
0
96
0

query II rowsort
SELECT - col1, 87 AS col2 FROM tab2
----
-51
87
-67
87
-77
87

query I rowsort
SELECT col2 + - + col2 + col2 AS col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT ALL + col2 * - 35 + + + 54 + - CAST( - + 4 AS SIGNED ) - + 54 AS col2 FROM tab1
----
-2061
-2376
-3356

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + col2 * - 35 + + + 54 + - CAST ( - + 4 AS INTEGER ) - + 54 AS col2 FROM tab1
----
-2061
-2376
-3356

query I rowsort
SELECT + col1 + + 0 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col0 * + + col2 + - col0 AS col2 FROM tab0
----
690
783
9506

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5375
SELECT ALL + 41 + + + col0 * + col1 + + col2 + + col0 - + - col1 + 46 * - col1 * + col2 / + + col1 / + CAST( NULL AS SIGNED ) AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5375
SELECT ALL + 41 + + + col0 * + col1 + + col2 + + col0 - + - col1 + 46 * - col1 * + col2 / + + col1 / + CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT col2 DIV - col0 + + 60 FROM tab2
----
60
60
60

skipif mysql # not compatible
query I rowsort label-5376
SELECT col2 / - col0 + + 60 FROM tab2
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, - col1 AS col2 FROM tab0
----
-10
-21
-47
-81
-99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 WHERE NOT ( + + col0 ) * - + 12 IS NOT NULL
----

query II rowsort
SELECT ALL col2, ( 5 ) AS col0 FROM tab2
----
23
5
40
5
58
5

query I rowsort
SELECT ALL col0 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + - 84 IN ( - col0, - col2 )
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT 7 * - COUNT( * ) + - ( 35 ) * - - 71 - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
-2485

skipif mysql # not compatible
query I rowsort label-5381
SELECT 7 * - COUNT ( * ) + - ( 35 ) * - - 71 - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
-2485

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 IS NULL )
----

query I rowsort
SELECT ALL - - col2 * col2 * + 6 AS col1 FROM tab0 AS cor0
----
13254
58806
600

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) < + 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL col2 + - col0 / - col1 + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col0 * - + col2 + - 29 + - - ( 44 ) / + col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5385
SELECT ALL col2 + - col0 / - col1 + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col0 * - + col2 + - 29 + - - ( 44 ) / + col2 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL MIN( DISTINCT - col2 ) + + 62 col0 FROM tab1
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5386
SELECT ALL MIN ( DISTINCT - col2 ) + + 62 col0 FROM tab1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5387
SELECT CAST( NULL AS SIGNED ) col2, COUNT( col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5387
SELECT CAST ( NULL AS INTEGER ) col2, COUNT ( col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5388
SELECT ALL + - 45 DIV + + col0, + 60 * + 69 AS col1 FROM tab0 AS cor0
----
-3
4140
0
4140
0
4140

skipif mysql # not compatible
query II rowsort label-5388
SELECT ALL + - 45 / + + col0, + 60 * + 69 AS col1 FROM tab0 AS cor0
----
-3
4140
0
4140
0
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT - COUNT( * ) + 83 AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT - COUNT ( * ) + 83 AS col0 FROM tab2 AS cor0
----
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 IN ( - 35, col2, - - 30, + - 62 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT ALL col2 DIV + 88 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL col2 / + 88 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col2 * - col2 + + - col2 * - - col1 * - col0 AS col0 FROM tab2 AS cor0
----
195520
288086
53429

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - 27 * + COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5393
SELECT - 27 * + COUNT ( * ) FROM tab1 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT col0 DIV + 1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5394
SELECT col0 / + 1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL MAX( - 54 ) col1 FROM tab1
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5395
SELECT ALL MAX ( - 54 ) col1 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - MAX( ALL + 56 ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-5396
SELECT - MAX ( ALL + 56 ) FROM tab2
----
-56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 > - col2
----

query I rowsort
SELECT + 3 + - - 61 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col2 + col2 - - col0 AND ( col1 )
----

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab1 WHERE ( ( + col2 = NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col1 / col2 IS NOT NULL
----

query II rowsort
SELECT + 62, col0 AS col0 FROM tab0 AS cor0
----
62
15
62
87
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT MIN( + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5402
SELECT MIN ( + col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL + 94 * + ( + ( COUNT( ALL - + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + 94 * + ( + ( COUNT ( ALL - + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT SUM( 49 ) DIV - 34 AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT SUM ( 49 ) / - 34 AS col1 FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT DISTINCT - - MIN( - CAST( + - col0 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT - - MIN ( - CAST ( + - col0 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT - 95 * MIN( - 43 ) * + MIN( DISTINCT + 23 ) AS col0 FROM tab1
----
93955

skipif mysql # not compatible
query I rowsort label-5406
SELECT - 95 * MIN ( - 43 ) * + MIN ( DISTINCT + 23 ) AS col0 FROM tab1
----
93955

query I rowsort
SELECT - col2 * + 70 AS col2 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT + 61 + + 71 FROM tab1 AS cor0
----
132
132
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + col1 col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + - 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT MAX( ALL + 13 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5411
SELECT MAX ( ALL + 13 ) FROM tab1 AS cor0
----
13

query I rowsort
SELECT + ( - + 52 ) FROM tab2 cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5413
SELECT + SUM( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT + SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT IN ( - + 97, col0 )
----

query I rowsort
SELECT DISTINCT + col2 + - 22 AS col0 FROM tab1
----
37
46
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT ( + 9 ) AS col0, - MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
9
46

skipif mysql # not compatible
query II rowsort label-5416
SELECT ( + 9 ) AS col0, - MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
9
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT DISTINCT - 30 DIV - col2 + + - col0 FROM tab0
----
-15
-84
-97

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - 30 / - col2 + + - col0 FROM tab0
----
-15
-84
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) <= + + 77
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----

query II rowsort
SELECT col0 AS col0, - 44 AS col0 FROM tab0
----
15
-44
87
-44
97
-44

query I rowsort
SELECT + - ( + - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT col0 * + + col0 + + 29 FROM tab2 AS cor0
----
2145
4125
5654

query I rowsort
SELECT + ( + 31 ) AS col2 FROM tab0 cor0
----
31
31
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 25 > NULL
----

query I rowsort
SELECT ALL - + ( + - 91 ) FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT ALL + + 23 AS col1 FROM tab0 cor0
----
23
23
23

query II rowsort
SELECT DISTINCT - col1, col0 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL COUNT( - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL COUNT ( - + col0 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 19 * col2 * - 98 * + + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - 4 * - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5430
SELECT - 4 * - COUNT ( * ) FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-5431
SELECT ALL col2 DIV + col0 col2, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5431
SELECT ALL col2 / + col0 col2, col1 FROM tab2
----
0
51
0
67
0
77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 8 ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5433
SELECT - COUNT( DISTINCT - 95 ) DIV 55 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT - COUNT ( DISTINCT - 95 ) / 55 FROM tab0
----
0

query I rowsort
SELECT - 41 AS col1 FROM tab0 AS cor0 WHERE NOT 18 IS NULL
----
-41
-41
-41

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT + MAX( ALL 41 ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5436
SELECT + MAX ( ALL 41 ) FROM tab2 AS cor0
----
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 83 IS NULL
----

query II rowsort
SELECT 57 - - + col0 AS col0, - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT DISTINCT + 88 AS col2, COUNT( * ) FROM tab2 cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-5439
SELECT DISTINCT + 88 AS col2, COUNT ( * ) FROM tab2 cor0
----
88
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 * ( + col2 ) )
----

query I rowsort
SELECT ALL + 66 * - col2 + - col2 FROM tab2 AS cor0
----
-1541
-2680
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5442
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( 6 AS SIGNED ) BETWEEN - ( - 20 ) AND NULL AND - 92 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5442
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( 6 AS INTEGER ) BETWEEN - ( - 20 ) AND NULL AND - 92 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 63 + col1 AS col1 FROM tab2
----
114
130
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - ( 25 ) + + SUM( ALL + col1 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-5444
SELECT - ( 25 ) + + SUM ( ALL + col1 ) FROM tab1
----
41

query I rowsort
SELECT - col2 + col2 * + col1 AS col2 FROM tab2
----
1150
3040
3828

query I rowsort
SELECT + 44 + + col2 + + + col2 - - - 13 AS col1 FROM tab0
----
125
229
51

query II rowsort
SELECT ALL + ( - - col0 ) AS col1, 3 AS col1 FROM tab0
----
15
3
87
3
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL COUNT( + - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL COUNT ( + - col2 ) FROM tab2
----
3

query I rowsort
SELECT ALL 21 * + col0 FROM tab2 cor0
----
1344
1575
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 28 col1 FROM tab1 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL + - COUNT( col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + - COUNT ( col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - + MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5452
SELECT - + MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5453
SELECT + 16 * COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5453
SELECT + 16 * COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT DISTINCT - MAX( ALL + col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT - MAX ( ALL + col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT COUNT( DISTINCT - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5455
SELECT COUNT ( DISTINCT - col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL - ( + COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5456
SELECT ALL - ( + COUNT ( * ) ) col1 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 83 - + - 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - 76 IS NULL
----

query I rowsort
SELECT 87 * + - col1 AS col1 FROM tab1 AS cor0
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5460
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL 74 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5463
SELECT + col2 DIV - 50 + + col2 + col0 * CAST( CAST( 93 AS SIGNED ) AS SIGNED ) + ( col2 ) DIV col1 AS col1 FROM tab2 AS cor0
----
4301
5992
7032

skipif mysql # not compatible
query I rowsort label-5463
SELECT + col2 / - 50 + + col2 + col0 * CAST ( CAST ( 93 AS INTEGER ) AS INTEGER ) + ( col2 ) / col1 AS col1 FROM tab2 AS cor0
----
4301
5992
7032

onlyif mysql # aggregate syntax: 
query II rowsort label-5464
SELECT ALL - MIN( - + col0 ), + 22 AS col0 FROM tab2 AS cor0
----
75
22

skipif mysql # not compatible
query II rowsort label-5464
SELECT ALL - MIN ( - + col0 ), + 22 AS col0 FROM tab2 AS cor0
----
75
22

query I rowsort
SELECT - 10 * col2 AS col2 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5466
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + CAST( NULL AS DECIMAL ) > + + 87
----

skipif mysql # not compatible
query III rowsort label-5466
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + CAST ( NULL AS REAL ) > + + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL + + COUNT( * ) + - + 31 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + + COUNT ( * ) + - + 31 FROM tab0 AS cor0
----
-28

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + col0 NOT IN ( col1 + - + 77 + + - col0 - - 49, 85, col1, 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + - + col1 - 32 + col2 * + col0 FROM tab1
----
4946
5037
6177

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5470
SELECT * FROM tab2 WHERE CAST( ( + 1 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5470
SELECT * FROM tab2 WHERE CAST ( ( + 1 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5471
SELECT + - 5 * + + 13 + 66 * col2 + + + CAST( - 66 AS SIGNED ) + + col2 * + col2 AS col0, - col1 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
16204
0
5180
-139
629
-44

skipif mysql # not compatible
query II rowsort label-5471
SELECT + - 5 * + + 13 + 66 * col2 + + + CAST ( - 66 AS INTEGER ) + + col2 * + col2 AS col0, - col1 * col1 / col2 AS col2 FROM tab0 AS cor0
----
16204
0
5180
-139
629
-44

query I rowsort
SELECT ALL - + ( - col2 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT 82 + + 59 + 93 FROM tab2 AS cor0
----
234
234
234

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-5475
SELECT - - col2 * - col0 AS col0, col0 DIV + 38 FROM tab2 AS cor0
----
-1058
1
-2560
1
-4350
1

skipif mysql # not compatible
query II rowsort label-5475
SELECT - - col2 * - col0 AS col0, col0 / + 38 FROM tab2 AS cor0
----
-1058
1
-2560
1
-4350
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL MIN( ALL + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL MIN ( ALL + col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-5477
SELECT col1 AS col2, col0 DIV col1 + - + 61 * - 98 AS col0 FROM tab1 AS cor0
----
14
5981
47
5979
5
5995

skipif mysql # not compatible
query II rowsort label-5477
SELECT col1 AS col2, col0 / col1 + - + 61 * - 98 AS col0 FROM tab1 AS cor0
----
14
5981
47
5979
5
5995

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5478
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + CAST( NULL AS SIGNED ) * + + 41 * col2 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5478
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + CAST ( NULL AS INTEGER ) * + + 41 * col2 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 85 AS col1, col1 + - col2 FROM tab2 cor0
----
85
28
85
37
85
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 20
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 44 + + col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 15 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 * col2 AS col1, col1 + col2 FROM tab0
----
100
31
2209
128
9801
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL COUNT( - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL COUNT ( - col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT + COUNT( 93 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5485
SELECT + COUNT ( 93 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL + - MIN( ALL 60 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + - MIN ( ALL 60 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-60

query II rowsort
SELECT col1, col1 + - col2 * + - col0 FROM tab0
----
1
9604
21
891
81
786

query I rowsort
SELECT - col2 * - - 48 AS col0 FROM tab0
----
-2256
-4752
-480

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - 62 IS NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - col2 + + + 84 * - + col1 AS col1, - col2 - + col1 FROM tab0 AS cor0
----
-1754
-31
-6757
-128
15
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT ALL + MAX( - col2 ) * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL + MAX ( - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL <> NULL ) )
----

query I rowsort
SELECT + col2 * - col1 + + 44 * - col0 FROM tab1
----
-3588
-4035
-7200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5496
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5496
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 8 * + 38 - + + ( + col1 ) * - 39 AS col2 FROM tab2 AS cor0
----
2293
2917
3307

query I rowsort
SELECT DISTINCT + col2 * + + 90 + + - col1 AS col0 FROM tab1 AS cor0
----
5305
6073
8626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5499
SELECT - COUNT( + 75 ) DIV + ( + 96 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT - COUNT ( + 75 ) / + ( + 96 ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT DISTINCT - col2 DIV + - 31 AS col0 FROM tab2 WHERE + 29 NOT IN ( - 93 + - col2 + 33 * col2 DIV + col2 * + col0 )
----
0
1

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT - col2 / + - 31 AS col0 FROM tab2 WHERE + 29 NOT IN ( - 93 + - col2 + 33 * col2 / + col2 * + col0 )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5502
SELECT ALL + col2 * - + ( - - col0 ) * + - col2 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + col2 * - + ( - - col0 ) * + - col2 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + + 27 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT SUM( ALL - + 67 ) AS col0 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-5504
SELECT SUM ( ALL - + 67 ) AS col0 FROM tab2 AS cor0
----
-201

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT 41 >= - + 57 / - col0 + col1
----
46
64
75

query I rowsort
SELECT ALL ( + + 51 ) FROM tab2 AS cor0
----
51
51
51

query II rowsort
SELECT + 82, + col1 AS col1 FROM tab0 AS cor0
----
82
1
82
21
82
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT - - 90 * + - COUNT( ( + + col2 ) ) + - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-5508
SELECT - - 90 * + - COUNT ( ( + + col2 ) ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT DISTINCT - col0 DIV - ( - 63 ) AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - col0 / - ( - 63 ) AS col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5510
SELECT - col2 col1, + col2 * col0 DIV 55 FROM tab1
----
-59
91
-68
112
-96
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5510
SELECT - col2 col1, + col2 * col0 / 55 FROM tab1
----
-59
91
-68
112
-96
89

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + - 7 FROM tab0
----
3
40
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5513
SELECT DISTINCT - MIN( - ( + + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - MIN ( - ( + + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( + 6 ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + + 46 * + COUNT( * ) FROM tab2 WHERE NOT 31 IS NULL
----
138

skipif mysql # not compatible
query I rowsort label-5515
SELECT + + 46 * + COUNT ( * ) FROM tab2 WHERE NOT 31 IS NULL
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT CAST( NULL AS SIGNED ) / + col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5516
SELECT CAST ( NULL AS INTEGER ) / + col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * col0 col2 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT - - 90 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab0 AS cor0 WHERE NOT 22 IS NULL
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT col2 DIV + - col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT col2 / + - col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT col2 * + col2 + - 96 AS col1 FROM tab2 AS cor0
----
1504
3268
433

query I rowsort
SELECT ALL col2 * - ( - - col1 ) FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT ALL 43 + + - col0 AS col2, ( - + 13 ) * - - 30 FROM tab0 AS cor0
----
-44
-390
-54
-390
28
-390

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( col2 ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + - 81 FROM tab0
----
-60
-80
0

query II rowsort
SELECT - 91, col0 - + + ( + 68 ) FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT COUNT( * ) * - 67 * 98 FROM tab1
----
-19698

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT COUNT ( * ) * - 67 * 98 FROM tab1
----
-19698

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN 70 AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 * - + col0 + col0, - col0 col1 FROM tab0 AS cor0
----
240
-15
7656
-87
9506
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5531
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col0, + ( ( col0 ) ) FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT - col1 DIV col2 + col0 FROM tab0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-5533
SELECT - col1 / col2 + col0 FROM tab0
----
14
85
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT ALL + COUNT( * ) - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + COUNT ( * ) - COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5535
SELECT - 23 + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-5535
SELECT - 23 + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
-26

query III rowsort
SELECT * FROM tab1 WHERE + 51 * ( - col0 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5537
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5537
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - COUNT( * ) FROM tab2 WHERE NULL < - col0 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-5538
SELECT - COUNT ( * ) FROM tab2 WHERE NULL < - col0 + - col1
----
0

query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab1 WHERE col2 + col1 > ( + 29 * + ( + col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col2 + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 2 * - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - SUM( col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5542
SELECT - SUM ( col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT DISTINCT COUNT( * ) col1 FROM tab1 WHERE NOT 53 * + ( col1 * 83 ) - + col1 IN ( - 48 * col0 + + 49 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5543
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 WHERE NOT 53 * + ( col1 * 83 ) - + col1 IN ( - 48 * col0 + + 49 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT 7 * COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT 7 * COUNT ( * ) FROM tab1
----
21

query I rowsort
SELECT - col0 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT COUNT( * ) * + 61 AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-5548
SELECT COUNT ( * ) * + 61 AS col0 FROM tab0
----
183

query I rowsort
SELECT DISTINCT + 70 FROM tab1 WHERE ( NULL ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5550
SELECT DISTINCT - COUNT( * ) - MAX( ALL + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT - COUNT ( * ) - MAX ( ALL + CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT ALL - SUM( + 36 ) * COUNT( 19 ) AS col1 FROM tab2 WHERE ( + col2 ) <> 83
----
-324

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - SUM ( + 36 ) * COUNT ( 19 ) AS col1 FROM tab2 WHERE ( + col2 ) <> 83
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + 86 * MAX( ALL 83 ) FROM tab2
----
7138

skipif mysql # not compatible
query I rowsort label-5553
SELECT + 86 * MAX ( ALL 83 ) FROM tab2
----
7138

query I rowsort
SELECT col1 * + 85 AS col2 FROM tab1
----
1190
3995
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( + col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( + col2 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN ( - 0 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT ALL ( + col1 ) DIV - 85 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL ( + col1 ) / - 85 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 75 * 9 FROM tab0 AS cor0
----
-675

query I rowsort
SELECT DISTINCT - 71 * + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 92 - ( 54 ) AS col0 FROM tab0
----
-146

query I rowsort
SELECT DISTINCT + col2 + + col1 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + col1 ) * 81 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + col0 col2 FROM tab0 AS cor0
----
-13
-2194
-9704

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5564
SELECT - CAST( NULL AS DECIMAL ) / CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT - CAST ( NULL AS REAL ) / CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 10 + - 3 AS col2 FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5566
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( col0 AS SIGNED ) + - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5566
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( col0 AS INTEGER ) + - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 - + 0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + col1 * + - col0 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab1 WHERE ( col2 ) NOT IN ( - 36 * col2 + + 21 * 4 ) OR col1 >= col2
----
67

query I rowsort
SELECT 26 * - + 73 * - col0 AS col2 FROM tab1
----
161330
172718
96798

query I rowsort
SELECT ALL + 18 * + 51 FROM tab1 WHERE 93 / 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT + MAX( col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + MAX ( col2 ) AS col2 FROM tab0
----
99

query I rowsort
SELECT + 75 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + 61 ) ) BETWEEN ( 57 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL SUM( + - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL SUM ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT CAST( 89 AS SIGNED ) FROM tab1 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-5576
SELECT CAST ( 89 AS INTEGER ) FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT + ( - 15 ) AS col1 FROM tab2
----
-15
-15
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5578
SELECT ALL MAX( 41 ) * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL MAX ( 41 ) * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / col2 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 74 ) NOT IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 49 * - col2 <> 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 49 NOT IN ( - - 55 * col1 )
----

query I rowsort
SELECT col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL col2 + - 81 * 67 * + ( + 60 ) FROM tab1 AS cor0
----
-325524
-325552
-325561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT - - CAST( - + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5585
SELECT - - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 34 + col2 * - 63 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - SUM( ALL 72 ) FROM tab0 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-5587
SELECT - SUM ( ALL 72 ) FROM tab0 cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT - + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col0 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT + ( + ( + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT + ( + ( + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 33 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + 41 + - 51 AS col2 FROM tab1
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT + 35 DIV 37 * + + 80 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT + 35 / 37 * + + 80 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 73 * + - col1 - col2 AS col0 FROM tab2 AS cor0
----
-3746
-4949
-5661

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5596
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) <> ( CAST( col2 AS SIGNED ) * 9 )
----

skipif mysql # not compatible
query III rowsort label-5596
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) <> ( CAST ( col2 AS INTEGER ) * 9 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < - 74
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 33 + 87 + + col2 <= 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 45 * col2 + - ( 68 ) AS col1 FROM tab0 AS cor0
----
-2183
-4523
-518

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - - col1
----

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( NULL ) > - 40
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 6 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5603
SELECT + MAX( + ( + + CAST( NULL AS DECIMAL ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT + MAX ( + ( + + CAST ( NULL AS REAL ) ) ) FROM tab2
----
NULL

query I rowsort
SELECT col0 FROM tab2 WHERE NULL NOT IN ( - 45 )
----

query II rowsort
SELECT - + col2 AS col1, 25 FROM tab0 AS cor0
----
-10
25
-47
25
-99
25

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5607
SELECT ALL MAX( + + CAST( - + col0 AS SIGNED ) ) - - 69 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL MAX ( + + CAST ( - + col0 AS INTEGER ) ) - - 69 FROM tab2 AS cor0
----
23

query I rowsort
SELECT - 98 * - + col0 AS col2 FROM tab1 AS cor0
----
4998
8330
8918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col1 AS col2 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT 55 FROM tab2 AS cor0 WHERE NULL IS NULL
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5611
SELECT 60 DIV + col1 col2 FROM tab1 cor0
----
1
12
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT 60 / + col1 col2 FROM tab1 cor0
----
1
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT - - MIN( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE col1 + + + 54 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-5612
SELECT - - MIN ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0 WHERE col1 + + + 54 IS NOT NULL
----
5

query I rowsort
SELECT + - col1 * - 46 AS col0 FROM tab2 AS cor0
----
2346
3082
3542

query II rowsort
SELECT DISTINCT + col1, col2 * + + 7 AS col0 FROM tab0 AS cor0
----
1
693
21
70
81
329

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab0 WHERE ( NULL <> + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE ( NULL <> + col1 )
----
0

query I rowsort
SELECT + 7 * + col0 FROM tab0
----
105
609
679

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL + MIN( DISTINCT - + 71 ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + MIN ( DISTINCT - + 71 ) FROM tab2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT + COUNT( * ) * - - 4 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5618
SELECT + COUNT ( * ) * - - 4 FROM tab2
----
12

query II rowsort
SELECT 67, 11 AS col1 FROM tab1
----
67
11
67
11
67
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, - col1 FROM tab0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + - 49 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT 22 DIV - col1 AS col0 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT 22 / - col1 AS col0 FROM tab1
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - 7 + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5624
SELECT - 7 + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 NOT IN ( + col0 - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 71 * + - MAX( ALL + + col1 ) AS col2 FROM tab2
----
-5467

skipif mysql # not compatible
query I rowsort label-5626
SELECT 71 * + - MAX ( ALL + + col1 ) AS col2 FROM tab2
----
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT + MIN( - 90 ) + + 77 AS col0 FROM tab1 WHERE NULL IS NULL
----
-13

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT + MIN ( - 90 ) + + 77 AS col0 FROM tab1 WHERE NULL IS NULL
----
-13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + 59
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT col2 < + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 + - col0 * - - col2 AS col2, col0 + - 31 FROM tab1
----
-4800
20
-4956
54
-6120
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL - col2 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL - col2 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 14 + - col2 FROM tab2
----
-26
-44
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT + 45 + + ( + CAST( NULL AS SIGNED ) ) / + CAST( + + ( col2 ) AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT + 45 + + ( + CAST ( NULL AS INTEGER ) ) / + CAST ( + + ( col2 ) AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT ( - + COUNT( * ) ) * COUNT( * ) + - CAST( - - MAX( ALL + 55 ) AS SIGNED ) AS col0 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-5634
SELECT ( - + COUNT ( * ) ) * COUNT ( * ) + - CAST ( - - MAX ( ALL + 55 ) AS INTEGER ) AS col0 FROM tab2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT - MIN( - + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - MIN ( - + col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT + 12 + + col0 FROM tab0
----
109
27
99

query I rowsort
SELECT 15 FROM tab1 WHERE - - 43 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 54 / col1 + + + 56 * + 6 IS NULL
----

query I rowsort
SELECT - col1 + - - col0 AS col0 FROM tab1
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT - - 17 DIV + ( - col1 ) + - 9 + - 96 FROM tab2 AS cor0
----
-105
-105
-105

skipif mysql # not compatible
query I rowsort label-5640
SELECT - - 17 / + ( - col1 ) + - 9 + - 96 FROM tab2 AS cor0
----
-105
-105
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
9

query I rowsort
SELECT ALL - - col0 * + 83 FROM tab1 AS cor0
----
4233
7055
7553

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5643
SELECT * FROM tab1 AS cor0 WHERE CAST( - - col0 AS SIGNED ) / - col2 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5643
SELECT * FROM tab1 AS cor0 WHERE CAST ( - - col0 AS INTEGER ) / - col2 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5644
SELECT ALL - + ( + MIN( DISTINCT col1 ) ) + - 33 * - - CAST( 69 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2328

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL - + ( + MIN ( DISTINCT col1 ) ) + - 33 * - - CAST ( 69 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2328

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT - + COUNT( * ) + + 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5645
SELECT - + COUNT ( * ) + + 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - ( 22 ) + - - 65 FROM tab2
----
43
43
43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - 10 AND NULL
----

query I rowsort
SELECT ALL - col2 - - 10 + + 8 - - + col1 * + col1 FROM tab1 cor0
----
-16
118
2159

query I rowsort
SELECT DISTINCT + col0 * - + 49 FROM tab2 AS cor0
----
-2254
-3136
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - - SUM( - + col0 ) * 13 AS col1 FROM tab2 AS cor0
----
-2405

skipif mysql # not compatible
query I rowsort label-5650
SELECT - - SUM ( - + col0 ) * 13 AS col1 FROM tab2 AS cor0
----
-2405

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * col2 NOT IN ( + - col2, col2 - - + 49, col1 + + + 75 )
----

query II rowsort
SELECT ALL + + ( + + col1 ) AS col0, + col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + 39 / - - 56 - - - col0 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT + COUNT( * ) * + 70 AS col2 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-5654
SELECT + COUNT ( * ) * + 70 AS col2 FROM tab1
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT + col0 DIV - 88 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT + col0 / - 88 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 / + - col0 AS col0 FROM tab2 WHERE NOT ( + col1 ) NOT IN ( - + 0 * 33 )
----

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 FROM tab2 WHERE NULL BETWEEN - col0 AND + col2
----

query I rowsort
SELECT ALL 8 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - 31 AS col0 FROM tab1 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 88 ) col2 FROM tab1 AS cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col1 FROM tab1 WHERE NOT + 91 * + + col0 + + col2 * + col2 * + col0 NOT IN ( - - 23, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT + MAX( col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + MAX ( col1 ) AS col1 FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + - col1 / - col2 + - col0 / - ( + col1 ) <> - 96
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - COUNT( * ) + - MAX( ALL + col0 ) + - 47 AS col0 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5666
SELECT - COUNT ( * ) + - MAX ( ALL + col0 ) + - 47 AS col0 FROM tab1 AS cor0
----
-141

query I rowsort
SELECT DISTINCT 85 * - - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4335
7225
7735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col1 FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) <= 36 * + col0 + - col0
----

query II rowsort
SELECT 4, col0 FROM tab0 AS cor0
----
4
15
4
87
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5671
SELECT * FROM tab1 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5671
SELECT * FROM tab1 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col0 * 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT DISTINCT + COUNT( - - 59 ) + + + 16 AS col2 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT + COUNT ( - - 59 ) + + + 16 AS col2 FROM tab2 AS cor0
----
19

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - COUNT( * ) * + 45 FROM tab0, tab1 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-5675
SELECT - COUNT ( * ) * + 45 FROM tab0, tab1 AS cor0
----
-405

query I rowsort
SELECT DISTINCT + 25 * + col2 + col2 * + 43 AS col1 FROM tab1
----
4012
4624
6528

query I rowsort
SELECT ALL - + 2 FROM tab1 WHERE NOT ( NULL ) BETWEEN + 63 + 57 AND NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NULL NOT IN ( + - col2, + 90 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 40 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 22 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 75 - + + col1 FROM tab1
----
28
61
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + - + 86 * + col2 col1 FROM tab0 AS cor0
----
-235
-650
-8415

query I rowsort
SELECT + 12 + - - col0 * - col2 FROM tab2 AS cor0
----
-1046
-2548
-4338

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT - col1 + + 13 DIV - - col2 FROM tab0 AS cor0
----
-1
-20
-81

skipif mysql # not compatible
query I rowsort label-5684
SELECT - col1 + + 13 / - - col2 FROM tab0 AS cor0
----
-1
-20
-81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( - 21 ) + - + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * + - 75 * col1 * col1 + + col0 + + + col1 FROM tab2 AS cor0
----
-22557083
-34239834
-9948728

query I rowsort
SELECT ALL + col1 * + - col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL - - COUNT( * ) * + 16 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
144

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - - COUNT ( * ) * + 16 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
144

query II rowsort
SELECT + 2, col1 FROM tab0
----
2
1
2
21
2
81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT DISTINCT + col2 * + col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT + col2 * + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL COUNT( * ) * + 72 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL COUNT ( * ) * + 72 FROM tab0 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT SUM( col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5693
SELECT SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + + col1 * 10 AS col2 FROM tab1 AS cor0
----
140
470
50

query I rowsort
SELECT ALL col1 * + 50 FROM tab1 AS cor0
----
2350
250
700

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 81 <= + ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL SUM( + 64 ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL SUM ( + 64 ) FROM tab0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT col0 * + CAST( NULL AS SIGNED ) * 18 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT col0 * + CAST ( NULL AS INTEGER ) * 18 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL - MIN( - 87 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL - MIN ( - 87 ) FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT COUNT( * ) * 72 FROM tab1 WHERE NOT col0 > + col1
----
0

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT COUNT ( * ) * 72 FROM tab1 WHERE NOT col0 > + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT MAX( - col1 ) * - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5701
SELECT MAX ( - col1 ) * - COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT ALL - 82 * - col0 * - + 97 FROM tab2 AS cor0
----
-365884
-509056
-596550

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT SUM( DISTINCT + + 3 ) * - COUNT( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT SUM ( DISTINCT + + 3 ) * - COUNT ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT 11 DIV + - MIN( ALL - ( col0 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT 11 / + - MIN ( ALL - ( col0 ) ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL + ( - - 31 ) AS col1, col0 FROM tab1 AS cor0
----
31
51
31
85
31
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * - col2 col1 FROM tab2
----
-1817
-3160
-4582

query I rowsort
SELECT + ( col0 ) * - + col2 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col1 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT - SUM( - - col0 ) * - MIN( ALL + + 52 ) AS col2 FROM tab2
----
9620

skipif mysql # not compatible
query I rowsort label-5709
SELECT - SUM ( - - col0 ) * - MIN ( ALL + + 52 ) AS col2 FROM tab2
----
9620

query I rowsort
SELECT - col2 * - 25 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT 60 AS col0 FROM tab0 AS cor0 WHERE 43 / + 90 + - col0 * + col2 = NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT DISTINCT + col0 + - - col2 DIV - 2 col1 FROM tab0
----
-8
48
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5713
SELECT DISTINCT + col0 + - - col2 / - 2 col1 FROM tab0
----
-8
48
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT DISTINCT 85 + + + MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT 85 + + + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT + ( - - col2 ) DIV - col0 + - ( + 15 ) + ( - - 16 ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + ( - - col2 ) / - col0 + - ( + 15 ) + ( - - 16 ) FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5716
SELECT DISTINCT CAST( + 40 AS SIGNED ) col0 FROM tab1 WHERE + col0 IN ( + col0, CAST( NULL AS SIGNED ) )
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5716
SELECT DISTINCT CAST ( + 40 AS INTEGER ) col0 FROM tab1 WHERE + col0 IN ( + col0, CAST ( NULL AS INTEGER ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT + MIN( ALL - - col0 ) * - MIN( + + col2 ) + + 57 AS col1 FROM tab1
----
-2952

skipif mysql # not compatible
query I rowsort label-5717
SELECT + MIN ( ALL - - col0 ) * - MIN ( + + col2 ) + + 57 AS col1 FROM tab1
----
-2952

query I rowsort
SELECT DISTINCT col0 * - + col1 + - + col2 + ( ( - + col2 ) ) AS col2 FROM tab1
----
-4413
-543
-906

query I rowsort
SELECT 60 + - - col2 * - - 74 FROM tab0
----
3538
7386
800

query I rowsort
SELECT DISTINCT 27 * + 78 - + ( - col1 ) AS col0 FROM tab0
----
2107
2127
2187

query I rowsort
SELECT ALL + ( col2 ) * 3 + + + col1 + - col1 * + 56 FROM tab2
----
-2736
-3511
-4115

query II rowsort
SELECT col2 AS col1, 69 AS col1 FROM tab2
----
23
69
40
69
58
69

query II rowsort
SELECT ALL - + 9 AS col0, ( - col0 ) * - col0 + - + 66 AS col1 FROM tab1 AS cor0
----
-9
2535
-9
7159
-9
8215

query I rowsort
SELECT col2 * col0 - - col0 AS col1 FROM tab0 AS cor0
----
720
957
9700

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - 21 * - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5727
SELECT ALL - 9 DIV COUNT( * ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL - 9 / COUNT ( * ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5728
SELECT DISTINCT 32 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT 32 / - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + 25 / - 27 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT SUM( 53 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0, - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT SUM ( 53 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0, - 99 )
----
NULL

query I rowsort
SELECT DISTINCT + + 75 * + col0 AS col1 FROM tab1 cor0
----
3825
6375
6825

query I rowsort
SELECT DISTINCT + col0 * - + 14 FROM tab1 AS cor0
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT DISTINCT COUNT( - + ( col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT COUNT ( - + ( col0 ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col2 FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-5735
SELECT col0 * - col1 * + col2 AS col0, + col1 DIV col1 * 67 col1 FROM tab0 AS cor0
----
-18270
67
-57105
67
-9603
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5735
SELECT col0 * - col1 * + col2 AS col0, + col1 / col1 * 67 col1 FROM tab0 AS cor0
----
-18270
67
-57105
67
-9603
67

query II rowsort
SELECT col0 * + + 5 * 27 AS col0, + col1 FROM tab1
----
11475
5
12285
47
6885
14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 49 * + col1 FROM tab1
----
2303
245
686

query I rowsort
SELECT 7 * - + 24 FROM tab1
----
-168
-168
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT DISTINCT ( + COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5740
SELECT DISTINCT ( + COUNT ( * ) ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 * - - col1 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5742
SELECT DISTINCT COUNT( * ) / ( ( MAX( ALL - 23 ) ) ) FROM tab2 AS cor0 WHERE - col0 + - ( CAST( - col2 AS DECIMAL ) ) * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT COUNT ( * ) / ( ( MAX ( ALL - 23 ) ) ) FROM tab2 AS cor0 WHERE - col0 + - ( CAST ( - col2 AS REAL ) ) * - col0 IS NULL
----
NULL

query II rowsort
SELECT ALL - + 37 * + col0 * + col1 * col0, - 13 AS col0 FROM tab2 AS cor0 WHERE col0 <= - 85 * - col1
----
-11669504
-13
-13944375
-13
-3992892
-13

query III rowsort
SELECT * FROM tab0 WHERE + 68 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT DISTINCT + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

query I rowsort
SELECT + 4 * - col0 FROM tab1 cor0
----
-204
-340
-364

query I rowsort
SELECT ALL - col1 + - ( + col1 ) + - + col2 + + - 12 FROM tab0
----
-113
-221
-64

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + 22 FROM tab2
----
73
89
99

query I rowsort
SELECT DISTINCT + col2 - + + col0 AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT - ( col2 ) + col0 / + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT - ( col2 ) + col0 / + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 84 * - col1 + - + ( - + col0 ) FROM tab1 AS cor0
----
1227
4039
505

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col0 AS col2, 71 * 25 * - col0 col0 FROM tab1
----
-4896
-90525
-5015
-150875
-6188
-161525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 22 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 31 col0, col2 FROM tab1 AS cor0
----
-31
59
-31
68
-31
96

query I rowsort
SELECT + - ( + 51 ) AS col1 FROM tab1 AS cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5759
SELECT ALL MIN( DISTINCT - CAST( + - CAST( + col0 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL MIN ( DISTINCT - CAST ( + - CAST ( + col0 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT 5 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
5

query I rowsort
SELECT DISTINCT - 95 * 6 FROM tab2
----
-570

query I rowsort
SELECT col1 * + - 42 AS col2 FROM tab1
----
-1974
-210
-588

query I rowsort
SELECT + 53 + - + 4 - + col0 FROM tab0
----
-38
-48
34

query II rowsort
SELECT - col0 + + 98, + col2 AS col1 FROM tab1
----
13
59
47
96
7
68

query III rowsort
SELECT * FROM tab1 WHERE NOT + 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 65 + + + 18 AS col2 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5767
SELECT ALL 74 + col0 + - - col0 * + - col2 + - CAST( + 24 AS SIGNED ), + 97 AS col0 FROM tab0
----
-640
97
-733
97
-9456
97

skipif mysql # not compatible
query II rowsort label-5767
SELECT ALL 74 + col0 + - - col0 * + - col2 + - CAST ( + 24 AS INTEGER ), + 97 AS col0 FROM tab0
----
-640
97
-733
97
-9456
97

query I rowsort
SELECT ALL col1 * - col2 * - col2 + - + 17 AS col2 FROM tab1
----
129007
17388
217311

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT 22 - - + COUNT( * ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-5769
SELECT 22 - - + COUNT ( * ) AS col0 FROM tab0
----
25

query III rowsort
SELECT * FROM tab1 WHERE + ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL + MIN( 70 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + MIN ( 70 ) FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT 37 + - - MIN( DISTINCT + col1 ) + 51 AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5772
SELECT 37 + - - MIN ( DISTINCT + col1 ) + 51 AS col0 FROM tab0 AS cor0
----
89

query II rowsort
SELECT DISTINCT col0, - 38 FROM tab2 cor0
----
46
-38
64
-38
75
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5774
SELECT + COUNT( * ) + - MAX( CAST( + + col1 AS SIGNED ) ) * COUNT( DISTINCT - 32 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5774
SELECT + COUNT ( * ) + - MAX ( CAST ( + + col1 AS INTEGER ) ) * COUNT ( DISTINCT - 32 ) FROM tab1 AS cor0
----
-44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - - 59 IS NOT NULL AND NOT NULL <> - col2 * col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT + - SUM( + + col1 ) + + COUNT( * ) col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT + - SUM ( + + col1 ) + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5777
SELECT DISTINCT 7 + + col2 + CAST( NULL AS DECIMAL ) * - col1 AS col2, - col1 AS col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT 7 + + col2 + CAST ( NULL AS REAL ) * - col1 AS col2, - col1 AS col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5778
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) * - col1 * - + col1 + - col1 AS col1, col2 * + col0 + + 27 AS col0 FROM tab1
----
NULL
4923
NULL
5042
NULL
6215

skipif mysql # not compatible
query II rowsort label-5778
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) * - col1 * - + col1 + - col1 AS col1, col2 * + col0 + + 27 AS col0 FROM tab1
----
NULL
4923
NULL
5042
NULL
6215

query I rowsort
SELECT col2 * ( - 65 ) AS col0 FROM tab1
----
-3835
-4420
-6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + 50 + col0 + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + 50 + col0 + - col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 * + 39 - - + col0 + - + col0 FROM tab2
----
1794
2496
2925

query I rowsort
SELECT - col0 * - col1 + - 12 + col0 + col2 FROM tab2 WHERE NULL NOT BETWEEN col0 - - 46 AND - col1 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < + + 95
----

query I rowsort
SELECT - col1 * col0 * col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT COUNT( * ) * - SUM( DISTINCT 63 ) FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5785
SELECT COUNT ( * ) * - SUM ( DISTINCT 63 ) FROM tab0 AS cor0
----
-189

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 * + + col2 + col0 AND 82
----

query I rowsort
SELECT 98 * + + col1 AS col1 FROM tab1
----
1372
4606
490

query I rowsort
SELECT ALL 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - + col0 * - + col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL - + MAX( DISTINCT col2 ) / + 69 * + 1 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - + MAX ( DISTINCT col2 ) / + 69 * + 1 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + + col0 ) col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE + col2 IN ( + col1, + col1 )
----

query II rowsort
SELECT DISTINCT - ( col1 ) * + 30 AS col1, - col2 * - - col2 FROM tab1 AS cor0
----
-1410
-4624
-150
-3481
-420
-9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 88 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT - COUNT( DISTINCT - ( + + 32 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5795
SELECT - COUNT ( DISTINCT - ( + + 32 ) ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, - 61 + - col0 col0 FROM tab1 AS cor0
----
51
-112
85
-146
91
-152

query II rowsort
SELECT DISTINCT + col2, + col1 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 36 + 41 - - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT ALL ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - - 56 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-43
46
9

query II rowsort
SELECT + col0 * + col1 AS col0, + 72 AS col2 FROM tab1
----
425
72
4277
72
714
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL 98 * + COUNT( * ) AS col1 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL 98 * + COUNT ( * ) AS col1 FROM tab1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT 59 + - - MIN( col0 ) col0 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5803
SELECT 59 + - - MIN ( col0 ) col0 FROM tab2 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL - + SUM( DISTINCT - 97 ) AS col1 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - + SUM ( DISTINCT - 97 ) AS col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT 3 + + 15 * - col1 FROM tab0 AS cor0
----
-12
-1212
-312

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 98 IS NOT NULL
----

query I rowsort
SELECT col2 * - + col2 + - 42 AS col1 FROM tab0 AS cor0
----
-142
-2251
-9843

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 98 * 10 = - 0 - + + col2
----

query I rowsort
SELECT DISTINCT + + col2 * - - 10 + + + col2 - - + col1 FROM tab0 AS cor0
----
1090
131
598

query I rowsort
SELECT + col0 * col1 - - col2 AS col2 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL + COUNT( + col2 ) * + 99 * - 40 FROM tab2 AS cor0
----
-11880

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL + COUNT ( + col2 ) * + 99 * - 40 FROM tab2 AS cor0
----
-11880

query I rowsort
SELECT ALL col2 + col2 + - col2 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT DISTINCT + col1 * + 26 AS col0, - ( 96 ) FROM tab1 AS cor0
----
1222
-96
130
-96
364
-96

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE 89 + 35 - + 11 * + ( + col2 ) BETWEEN - col0 AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5815
SELECT - 63 + - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NULL NOT BETWEEN + + col1 AND - col2 + col2
----

skipif mysql # not compatible
query I rowsort label-5815
SELECT - 63 + - CAST ( NULL AS REAL ) FROM tab0 WHERE NULL NOT BETWEEN + + col1 AND - col2 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT DISTINCT - col2 DIV + 74 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT - col2 / + 74 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL - SUM( ALL + - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - SUM ( ALL + - col2 ) FROM tab1
----
223

query II rowsort
SELECT DISTINCT - col1 AS col2, 69 AS col1 FROM tab0
----
-1
69
-21
69
-81
69

query II rowsort
SELECT + col0, + col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT 75 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) NOT BETWEEN - col2 AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5820
SELECT 75 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) NOT BETWEEN - col2 AND - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 19 * col0 FROM tab2 AS cor0
----
1216
1425
874

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 73 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT ALL + col2 DIV + + 47 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL + col2 / + + 47 AS col0 FROM tab0
----
0
1
2

query I rowsort
SELECT - col2 * + + 77 FROM tab0
----
-3619
-7623
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT + COUNT( + ( col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5826
SELECT + COUNT ( + ( col2 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < + col0
----

query I rowsort
SELECT ALL - 11 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT - - col1 DIV + ( 36 ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5829
SELECT - - col1 / + ( 36 ) FROM tab2 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 72 * - col1 * + 81 NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5831
SELECT ALL - - SUM( + 26 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - - SUM ( + 26 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5832
SELECT + ( + ( COUNT( col0 ) ) ) AS col1 FROM tab1 WHERE col1 + - + CAST( 32 AS DECIMAL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5832
SELECT + ( + ( COUNT ( col0 ) ) ) AS col1 FROM tab1 WHERE col1 + - + CAST ( 32 AS REAL ) IS NOT NULL
----
3

query I rowsort
SELECT + col0 + + col1 + - col0 AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL + ( 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-5834
SELECT ALL + ( CAST ( - - col0 AS INTEGER ) ) col0 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query II rowsort label-5835
SELECT - col2 DIV - - col1 * + + col0 + + + 73 AS col0, col0 FROM tab2 WHERE + + 25 * - 97 DIV col2 < col2
----
73
46
73
64
73
75

skipif mysql # not compatible
query II rowsort label-5835
SELECT - col2 / - - col1 * + + col0 + + + 73 AS col0, col0 FROM tab2 WHERE + + 25 * - 97 / col2 < col2
----
73
46
73
64
73
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 + - 73 AND col1
----

query I rowsort
SELECT + ( + + col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5839
SELECT ALL + ( - - 64 ) + 80 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL + ( - - 64 ) + 80 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT - CAST( + 98 AS SIGNED ) - + col1 AS col2 FROM tab1
----
-103
-112
-145

skipif mysql # not compatible
query I rowsort label-5840
SELECT - CAST ( + 98 AS INTEGER ) - + col1 AS col2 FROM tab1
----
-103
-112
-145

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NULL > col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL + COUNT( ALL col1 ) * - 8 col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5842
SELECT ALL + COUNT ( ALL col1 ) * - 8 col0 FROM tab1 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT DISTINCT - col2 DIV + 97 * col1 col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5843
SELECT DISTINCT - col2 / + 97 * col1 col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5844
SELECT DISTINCT - - col0 DIV + col1 AS col2, col0 AS col1 FROM tab0 AS cor0
----
0
15
4
87
97
97

skipif mysql # not compatible
query II rowsort label-5844
SELECT DISTINCT - - col0 / + col1 AS col2, col0 AS col1 FROM tab0 AS cor0
----
0
15
4
87
97
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col0 ) * 86 / - 39 + + - 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - 45, 62 AS col0 FROM tab0 AS cor0
----
-45
62
-45
62
-45
62

query I rowsort
SELECT ALL + - col1 + - - 82 AS col1 FROM tab2 cor0
----
15
31
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 18 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT DISTINCT - SUM( + + col0 ) * - 10 FROM tab0 cor0
----
1990

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - SUM ( + + col0 ) * - 10 FROM tab0 cor0
----
1990

query I rowsort
SELECT DISTINCT - col0 + + - 54 AS col2 FROM tab2 AS cor0
----
-100
-118
-129

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5851
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND - ( + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5851
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND - ( + ( + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT - - COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5852
SELECT - - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - 89 FROM tab1 AS cor0 WHERE NOT NULL < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT DISTINCT 99 DIV + - 26 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT 99 / + - 26 AS col2 FROM tab1
----
-3

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT + - col1 * - 34 * + col2 = + 68 / col2 + ( - col0 )
----
46
64
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + + col1 IS NOT NULL
----

query I rowsort
SELECT + - 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NULL ) = - 25 * + col1 / 19 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5860
SELECT - - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-5860
SELECT - - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

query I rowsort
SELECT ALL - + 57 AS col2 FROM tab1 AS cor0
----
-57
-57
-57

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 25 * - 50 NOT BETWEEN + 87 AND + col0 + col2
----

query I rowsort
SELECT - 33 + col2 FROM tab0 AS cor0
----
-23
14
66

query I rowsort
SELECT ALL + col2 * 81 FROM tab0 AS cor0
----
3807
8019
810

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT ALL - CAST( - 31 AS SIGNED ) col2 FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5866
SELECT ALL - CAST ( - 31 AS INTEGER ) col2 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT col1 + - - CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT col1 + - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5869
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - ( + col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 + - - col2 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 21 - + 21 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL COUNT( DISTINCT - col0 ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL COUNT ( DISTINCT - col0 ) - - COUNT ( * ) FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5875
SELECT DISTINCT + - COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT + - COUNT ( * ) - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - col0 ) * + - col2 + - col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT ALL - 52 * col0 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5878
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 60 + - - CAST( - 86 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5878
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 60 + - - CAST ( - 86 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - col0 col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT DISTINCT + col1 * - - col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL - + MIN( ALL + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL - + MIN ( ALL + col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT - + MIN( ALL + 6 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT - + MIN ( ALL + 6 ) FROM tab2 AS cor0
----
-6

query II rowsort
SELECT - col0 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * col2 * - 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1, tab2 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT col2 DIV + - col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5886
SELECT col2 / + - col2 AS col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN col2 / - col2 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 42, col0 * + + col1 AS col1 FROM tab0 cor0
----
42
1215
42
1827
42
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT + 99 * 60 DIV 11 FROM tab2 cor0 WHERE NOT - 70 * - col2 DIV - 9 + - col2 IS NULL
----
540
540
540

skipif mysql # not compatible
query I rowsort label-5889
SELECT + 99 * 60 / 11 FROM tab2 cor0 WHERE NOT - 70 * - col2 / - 9 + - col2 IS NULL
----
540
540
540

onlyif mysql # DIV for integer division: 
query I rowsort label-5890
SELECT - col0 DIV + 21 AS col1 FROM tab2 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-5890
SELECT - col0 / + 21 AS col1 FROM tab2 AS cor0
----
-2
-3
-3

query II rowsort
SELECT ALL - 11 AS col1, + 95 AS col0 FROM tab2 AS cor0
----
-11
95
-11
95
-11
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5892
SELECT DISTINCT AVG ( 6 ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT AVG ( 6 ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT DISTINCT 82 * + col2 * + - CAST( 33 AS SIGNED ) * 80 col0 FROM tab2
----
-12555840
-4979040
-8659200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5893
SELECT DISTINCT 82 * + col2 * + - CAST ( 33 AS INTEGER ) * 80 col0 FROM tab2
----
-12555840
-4979040
-8659200

query I rowsort
SELECT + + 88 FROM tab0 WHERE NOT - 35 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + ( + col2 ) AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ( + MAX( DISTINCT - - col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5896
SELECT ( + MAX ( DISTINCT - - col0 ) ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + col2 + + col1 * + + 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT + col2 * + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-5899
SELECT + col2 * + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL - ( col2 ) * 70 + - col1 FROM tab2 AS cor0
----
-1661
-2877
-4127

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5901
SELECT * FROM tab1 AS cor0 WHERE ( NOT - CAST( NULL AS SIGNED ) + col0 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-5901
SELECT * FROM tab1 AS cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) + col0 IS NULL )
----

query I rowsort
SELECT DISTINCT - col1 + col2 * - col2 - + col1 FROM tab0 AS cor0
----
-142
-2371
-9803

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT ALL SUM( ALL - 16 ) col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5903
SELECT ALL SUM ( ALL - 16 ) col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT 47 + - 27 + - + col1 AS col1 FROM tab2 AS cor0
----
-31
-47
-57

query I rowsort
SELECT ALL - col2 + + + 21 FROM tab2 AS cor0
----
-19
-2
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT DISTINCT - COUNT( * ) + 95 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT - COUNT ( * ) + 95 FROM tab1
----
92

query II rowsort
SELECT - - col0 * + col2 AS col2, - 94 FROM tab1 WHERE - col2 + + 11 * - col1 * + 11 < + + 44
----
4896
-94
5015
-94
6188
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT ALL - 16 DIV - + 18 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - 16 / - + 18 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT COUNT( * ) * COUNT( - - col0 ) * - - 19 AS col2 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-5909
SELECT COUNT ( * ) * COUNT ( - - col0 ) * - - 19 AS col2 FROM tab1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT COUNT( * ) * + COUNT( * ) * - - MIN( DISTINCT 34 ) FROM tab2
----
306

skipif mysql # not compatible
query I rowsort label-5910
SELECT COUNT ( * ) * + COUNT ( * ) * - - MIN ( DISTINCT 34 ) FROM tab2
----
306

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - - 52 - + 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + ( - + 98 ) <> - col1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + + col1 * + - 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 8
----

query I rowsort
SELECT col1 * 21 FROM tab0 cor0
----
1701
21
441

query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT DISTINCT + COUNT( - - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + COUNT ( - - col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 34 * + 86 FROM tab0
----
2924
2924
2924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT DISTINCT CAST( 65 AS SIGNED ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT CAST ( 65 AS INTEGER ) FROM tab0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT + 38 DIV 67 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5921
SELECT + 38 / 67 FROM tab0
----
0
0
0

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT + 28 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 + + - 94 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 + + - 94 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col0 FROM tab1 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col0 * - 70
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5928
SELECT * FROM tab0 WHERE - col1 - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5928
SELECT * FROM tab0 WHERE - col1 - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 31 AS col0, col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 ) >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT 52 DIV - - 57 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT 52 / - - 57 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT + col2 DIV - col1 + 12 FROM tab0 AS cor0
----
-87
12
12

skipif mysql # not compatible
query I rowsort label-5931
SELECT + col2 / - col1 + 12 FROM tab0 AS cor0
----
-87
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT DISTINCT - col2 + + - 83 DIV col0 FROM tab0 AS cor0
----
-10
-52
-99

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT - col2 + + - 83 / col0 FROM tab0 AS cor0
----
-10
-52
-99

query I rowsort
SELECT + - col1 * 42 * + col2 FROM tab2 AS cor0
----
-129360
-163212
-49266

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT - MAX( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5934
SELECT - MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
15
87
97

query I rowsort
SELECT 11 + - col2 * col0 FROM tab1 AS cor0
----
-4885
-5004
-6177

onlyif mysql # aggregate syntax: 
query II rowsort label-5937
SELECT DISTINCT - 50, MIN( + - col0 ) AS col0 FROM tab0
----
-50
-97

skipif mysql # not compatible
query II rowsort label-5937
SELECT DISTINCT - 50, MIN ( + - col0 ) AS col0 FROM tab0
----
-50
-97

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT + MIN( ALL + - 11 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-5939
SELECT + MIN ( ALL + - 11 ) FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL + COUNT( ALL - 11 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL + COUNT ( ALL - 11 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT MIN( DISTINCT col2 ) FROM tab1 cor0 WHERE NOT + 77 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT MIN ( DISTINCT col2 ) FROM tab1 cor0 WHERE NOT + 77 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL COUNT( + + 47 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL COUNT ( + + 47 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5944
SELECT ALL - AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL - AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 48 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT DISTINCT - 34 / 2 + col2 FROM tab0 WHERE NOT - CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT - 34 / 2 + col2 FROM tab0 WHERE NOT - CAST ( + col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col2 * - - 3 * + - col0 FROM tab0 WHERE NOT + col2 * - 93 IS NULL
----
2115
2610
28809

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT + 94 DIV + col0 + - ( - 34 ) FROM tab2
----
35
35
36

skipif mysql # not compatible
query I rowsort label-5948
SELECT + 94 / + col0 + - ( - 34 ) FROM tab2
----
35
35
36

query I rowsort
SELECT - 70 + + 9 + + 30 * 29 AS col0 FROM tab1
----
809
809
809

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= - 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT + + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5951
SELECT + + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT ALL - + 65 col2, - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-65
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5952
SELECT ALL - + 65 col2, - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-65
-9

query II rowsort
SELECT + 36 * + 53 * + col1 AS col0, col2 AS col1 FROM tab1
----
26712
96
89676
68
9540
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + - col0 * col1 + - col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL MIN( - - 97 ) FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL MIN ( - - 97 ) FROM tab2 cor0
----
97

query I rowsort
SELECT - + 26 + + col1 + - 12 * ( - 5 ) AS col2 FROM tab2 AS cor0
----
101
111
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + ( ( + col1 ) ) / - 56 - - - ( col0 ) + - + ( - + 70 ) + + col1 - + - col2 * 63 IN ( + - col2 - + col1, + 1 )
----

query I rowsort
SELECT + col1 + + 53 * + col2 AS col0 FROM tab2
----
1270
2197
3141

query III rowsort
SELECT 2 + - col0 + + + ( + - col1 ) AS col0, + col2 + + col0 * + + col2 * + 13 + + col2, - - 5 AS col0 FROM tab2
----
9 values hashing to 1b8e607ae51acce8b40aaf3e3f16bb9d

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL - 56 * + 47 + + COUNT( * ) FROM tab0
----
-2629

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - 56 * + 47 + + COUNT ( * ) FROM tab0
----
-2629

query I rowsort
SELECT + col2 * - 40 + - + 5 AS col2 FROM tab1
----
-2365
-2725
-3845

query III rowsort
SELECT * FROM tab1 WHERE + - col0 - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col2 ) + - 41 col2 FROM tab2
----
-64
-81
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT DISTINCT 95 - 50, COUNT( * ) AS col1 FROM tab1
----
45
3

skipif mysql # not compatible
query II rowsort label-5965
SELECT DISTINCT 95 - 50, COUNT ( * ) AS col1 FROM tab1
----
45
3

query III rowsort
SELECT * FROM tab1 WHERE + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT + MAX( ALL + col2 ) col2 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5967
SELECT + MAX ( ALL + col2 ) col2 FROM tab2
----
58

query I rowsort
SELECT DISTINCT 61 + 99 * + ( + col2 ) * - - col1 AS col2 FROM tab1
----
133117
29266
316465

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + ( - col0 ) + - - 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 - - col1 col0 FROM tab2 AS cor0
----
-24
-8
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT - + 48 * + COUNT( * ) FROM tab1 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT - + 48 * + COUNT ( * ) FROM tab1 cor0
----
-144

query I rowsort
SELECT ALL - 36 * - + col0 AS col0 FROM tab1 AS cor0
----
1836
3060
3276

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT 92 * + + 26 * + col1 FROM tab1 AS cor0
----
112424
11960
33488

onlyif mysql # DIV for integer division: 
query I rowsort label-5975
SELECT DISTINCT + 6 DIV + - 67 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT + 6 / + - 67 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( col2, - col1, 31 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT 19 DIV + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5977
SELECT 19 / + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 * + - 55 * ( + + col2 ) FROM tab1
----
-269280
-275825
-340340

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 > + 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT - ( 51 ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-5980
SELECT - ( 51 ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-51
3

query I rowsort
SELECT col0 * + 27 * - 55 * - - col0 AS col1 FROM tab1 AS cor0
----
-10729125
-12297285
-3862485

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 = col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( - col1, 2, - - 85, + + col0, - 66 * - + 60 - + 65 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT DISTINCT + + 16 DIV - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT + + 16 / - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1
-3
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 63 - + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT ALL - col0 DIV - col2 - col2 + + + col1 * + + 64 AS col2 FROM tab0 AS cor0
----
-35
1342
5137

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL - col0 / - col2 - col2 + + + col1 * + + 64 AS col2 FROM tab0 AS cor0
----
-35
1342
5137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, col0 + + col1 col2 FROM tab1
----
-14
65
-47
138
-5
90

query I rowsort
SELECT - ( - + 4 ) FROM tab2
----
4
4
4

onlyif mysql # DIV for integer division: 
query II rowsort label-5989
SELECT DISTINCT + 6 AS col2, - 58 DIV col2 DIV + + col2 FROM tab0
----
6
0

skipif mysql # not compatible
query II rowsort label-5989
SELECT DISTINCT + 6 AS col2, - 58 / col2 / + + col2 FROM tab0
----
6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT - MAX( ALL col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - MAX ( ALL col1 ) FROM tab1
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5991
SELECT ALL * FROM tab2 WHERE NOT + + CAST( + 92 AS DECIMAL ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5991
SELECT ALL * FROM tab2 WHERE NOT + + CAST ( + 92 AS REAL ) * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 NOT BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE + col0 * - 17 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + - ( + col2 ) + + col0 * col2 AS col1 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT col0 + + 7 AS col2 FROM tab0 AS cor0
----
104
22
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT - MAX( ALL + + col2 ) AS col2 FROM tab1 AS cor0 WHERE + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - MAX ( ALL + + col2 ) AS col2 FROM tab1 AS cor0 WHERE + col2 <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - 15 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * 14 FROM tab1
----
-196
-658
-70

query III rowsort
SELECT * FROM tab2 WHERE NOT + 43 * + 19 >= + 2
----

query I rowsort
SELECT DISTINCT col0 * 75 FROM tab0
----
1125
6525
7275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6001
SELECT * FROM tab0 WHERE 85 * col2 <= 8 + - CAST( NULL AS SIGNED ) * + ( col2 )
----

skipif mysql # not compatible
query III rowsort label-6001
SELECT * FROM tab0 WHERE 85 * col2 <= 8 + - CAST ( NULL AS INTEGER ) * + ( col2 )
----

query I rowsort
SELECT DISTINCT 49 FROM tab0 WHERE col2 >= ( + col1 * + 33 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT + ( COUNT( * ) ) * + MAX( col0 + col1 ) AS col2 FROM tab0
----
324

skipif mysql # not compatible
query I rowsort label-6003
SELECT + ( COUNT ( * ) ) * + MAX ( col0 + col1 ) AS col2 FROM tab0
----
324

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6004
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col2 * + CAST( NULL AS SIGNED ) AND + 48
----

skipif mysql # not compatible
query III rowsort label-6004
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col2 * + CAST ( NULL AS INTEGER ) AND + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT - COUNT( * ) + 91 * - 16 FROM tab2
----
-1459

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - COUNT ( * ) + 91 * - 16 FROM tab2
----
-1459

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6006
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND CAST( - 51 AS SIGNED ) * ( 4 )
----

skipif mysql # not compatible
query III rowsort label-6006
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND CAST ( - 51 AS INTEGER ) * ( 4 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 41 col2 FROM tab0
----
-3567
-3977
-615

query I rowsort
SELECT ALL col0 + - 66 FROM tab2
----
-2
-20
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT 72 * - COUNT( * ) col1 FROM tab2
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6009
SELECT DISTINCT 72 * - COUNT ( * ) col1 FROM tab2
----
-216

query I rowsort
SELECT ALL - col1 * col1 + ( col1 ) AS col1 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT - col1 + 81 FROM tab1
----
34
67
76

query III rowsort
SELECT * FROM tab0 WHERE col0 + col1 * + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - ( + 48 ) + col0 > ( NULL )
----

query I rowsort
SELECT - 89 FROM tab1 WHERE NOT 59 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 > ( ( - ( col2 ) ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 67 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 12 col2 FROM tab1
----
108
71
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 98 ) NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL MIN( 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL MIN ( 79 ) FROM tab0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6020
SELECT + COUNT( * ) DIV - 53 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6020
SELECT + COUNT ( * ) / - 53 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT col0 DIV + ( - col2 ) AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT col0 / + ( - col2 ) AS col1 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT - col0 / - 78 FROM tab1 WHERE NOT ( col2 * - CAST( NULL AS SIGNED ) ) <> - col2 + col2
----

skipif mysql # not compatible
query I rowsort label-6022
SELECT - col0 / - 78 FROM tab1 WHERE NOT ( col2 * - CAST ( NULL AS INTEGER ) ) <> - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE col1 < - col1
----
0

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE col1 < - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN 86 AND + col0 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 + + 78 ) BETWEEN + col2 AND col0 * - 64
----

query I rowsort
SELECT - col2 - - 52 * 60 AS col0 FROM tab1
----
3024
3052
3061

query I rowsort
SELECT col0 * 7 AS col2 FROM tab2
----
322
448
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT 59 * + CAST( col0 AS SIGNED ) FROM tab1
----
3009
5015
5369

skipif mysql # not compatible
query I rowsort label-6029
SELECT 59 * + CAST ( col0 AS INTEGER ) FROM tab1
----
3009
5015
5369

onlyif mysql # DIV for integer division: 
query I rowsort label-6030
SELECT + col1 DIV - 97 FROM tab0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT + col1 / - 97 FROM tab0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 62 + + col1 * col0 FROM tab1
----
4339
487
776

query I rowsort
SELECT DISTINCT + col2 / + 15 FROM tab2 WHERE NOT ( col1 ) = NULL
----

query I rowsort
SELECT - col0 * - 26 FROM tab1 AS cor0 WHERE NOT NULL >= ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT DISTINCT + MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT + MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT DISTINCT + 55 FROM tab1 AS cor0 WHERE 44 + CAST( + col2 AS SIGNED ) IN ( - 87 + col1 / - 9 )
----

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + 55 FROM tab1 AS cor0 WHERE 44 + CAST ( + col2 AS INTEGER ) IN ( - 87 + col1 / - 9 )
----

query I rowsort
SELECT ALL col2 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT DISTINCT + MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT + MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL - COUNT( DISTINCT col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL - COUNT ( DISTINCT col1 ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < ( 71 )
----

query I rowsort
SELECT + col1 * 80 FROM tab2 AS cor0
----
4080
5360
6160

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( 54 * col1 ) <= ( - 52 / col1 )
----
10
47
99

query I rowsort
SELECT 14 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6044
SELECT SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
199

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 45 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + 24 * COUNT( * ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + 24 * COUNT ( * ) FROM tab1 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT ALL + col1 DIV 59 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + col1 / 59 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( + 2 * 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT 12 * MAX( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT 12 * MAX ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 62 + 24 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL SUM( + col1 ) + - 7 col1 FROM tab0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6052
SELECT ALL SUM ( + col1 ) + - 7 col1 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT - COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6053
SELECT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 19 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6055
SELECT ALL + 44 DIV CAST( AVG ( ALL col0 ) AS SIGNED ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL + 44 / CAST ( AVG ( ALL col0 ) AS INTEGER ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT COUNT( * ) + + COUNT( * ) * COUNT( * ) col1 FROM tab2
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6056
SELECT COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
12

query I rowsort
SELECT - 63 + ( 59 ) AS col0 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL + MAX( - 30 ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL + MAX ( - 30 ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT + COUNT( * ) + ( - COUNT( 97 ) ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6061
SELECT DISTINCT + COUNT ( * ) + ( - COUNT ( 97 ) ) col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT ALL 99 DIV col2 + + ( ( col0 ) ) AS col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL 99 / col2 + + ( ( col0 ) ) AS col0 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT + MIN( - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6063
SELECT + MIN ( - col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6064
SELECT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - ( + col0 ) - - - 9 FROM tab0
----
-106
-24
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT COUNT( * ) / 10 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT COUNT ( * ) / 10 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6067
SELECT + 47 + + - col1 + + 59 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT + 47 + + - col1 + + 59 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6068
SELECT - 25 + + COUNT( ALL CAST( - col1 AS DECIMAL ) ) FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6068
SELECT - 25 + + COUNT ( ALL CAST ( - col1 AS REAL ) ) FROM tab0 cor0
----
-22

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL 38 / - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col1, 1 AS col0 FROM tab0 AS cor0
----
1
1
21
1
81
1

query II rowsort
SELECT ALL - 20, - 46 * 23 * - col2 AS col0 FROM tab2 AS cor0
----
-20
24334
-20
42320
-20
61364

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT + col2 + + - col1 DIV col1 * - col1 + + col0 AS col1 FROM tab0 AS cor0
----
118
143
197

skipif mysql # not compatible
query I rowsort label-6073
SELECT + col2 + + - col1 / col1 * - col1 + + col0 AS col1 FROM tab0 AS cor0
----
118
143
197

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL OR col1 BETWEEN NULL AND - col0 + col0 * + 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - - col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT - + col0 DIV + col0 - - ( - col1 ) + - col0 col1 FROM tab0 AS cor0
----
-109
-97
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6076
SELECT - + col0 / + col0 - - ( - col1 ) + - col0 col1 FROM tab0 AS cor0
----
-109
-97
-99

query I rowsort
SELECT + col2 * 25 FROM tab2 AS cor0
----
1000
1450
575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col0 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL + SUM( ALL + + 77 ) * + - COUNT( * ) + + 28 * COUNT( * ) FROM tab0
----
-609

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + SUM ( ALL + + 77 ) * + - COUNT ( * ) + + 28 * COUNT ( * ) FROM tab0
----
-609

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NULL <> 57
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col1 * - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL 14 * + + MIN( ALL - col1 ) FROM tab2
----
-1078

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL 14 * + + MIN ( ALL - col1 ) FROM tab2
----
-1078

query I rowsort
SELECT DISTINCT - + 36 FROM tab2 cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT - - CAST( 42 AS SIGNED ) FROM tab2 cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-6084
SELECT - - CAST ( 42 AS INTEGER ) FROM tab2 cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT - 99 * - CAST( + - col0 AS SIGNED ) * - col0 * 0 + 47 * - col0 FROM tab0
----
-4089
-4559
-705

skipif mysql # not compatible
query I rowsort label-6085
SELECT - 99 * - CAST ( + - col0 AS INTEGER ) * - col0 * 0 + 47 * - col0 FROM tab0
----
-4089
-4559
-705

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT - CAST( NULL AS SIGNED ) / - - 51 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT - CAST ( NULL AS INTEGER ) / - - 51 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * 56 FROM tab1
----
2632
280
784

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT COUNT( * ) FROM tab2 WHERE NOT ( + col0 ) <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( + col0 ) <> - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - 89 * - SUM( DISTINCT - 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3204

skipif mysql # not compatible
query I rowsort label-6090
SELECT - 89 * - SUM ( DISTINCT - 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT - + MIN( DISTINCT + col0 ) * 83 * + - 86 * - - COUNT( * ) + - 90 FROM tab0 AS cor0
----
321120

skipif mysql # not compatible
query I rowsort label-6091
SELECT - + MIN ( DISTINCT + col0 ) * 83 * + - 86 * - - COUNT ( * ) + - 90 FROM tab0 AS cor0
----
321120

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT ALL col0 DIV 65 + + - col2 * - col2 FROM tab1 AS cor0
----
3482
4625
9216

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL col0 / 65 + + - col2 * - col2 FROM tab1 AS cor0
----
3482
4625
9216

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 col1 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - 60 * + - ( - col0 ) * - col2 + col0 + col0 FROM tab1 AS cor0
----
293862
301070
371462

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL ( 76 ) + - 98 * - MIN( ALL - col1 ) + - 76 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-7546

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL ( 76 ) + - 98 * - MIN ( ALL - col1 ) + - 76 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-7546

query II rowsort
SELECT col1, 46 AS col2 FROM tab0
----
1
46
21
46
81
46

query I rowsort
SELECT DISTINCT - col1 * 48 FROM tab2
----
-2448
-3216
-3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6100
SELECT 72 DIV - COUNT( + col2 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-6100
SELECT 72 / - COUNT ( + col2 ) FROM tab2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT ALL CAST( + 1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL CAST ( + 1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 24 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6103
SELECT - col2 FROM tab2 AS cor0 WHERE - 56 IS NULL OR + 40 NOT IN ( ( col2 ) * - CAST( + col1 + - col2 AS DECIMAL ) )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6103
SELECT - col2 FROM tab2 AS cor0 WHERE - 56 IS NULL OR + 40 NOT IN ( ( col2 ) * - CAST ( + col1 + - col2 AS REAL ) )
----
-23
-40
-58

query I rowsort
SELECT 81 + - 57 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL <> ( - col0 * 17 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE col1 BETWEEN + col0 AND + 76 * - - 4
----
-81

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6108
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col0 * - + 73 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 * - + 73 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * col2 - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT 40 - + SUM( DISTINCT - 97 ) FROM tab0 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-6110
SELECT 40 - + SUM ( DISTINCT - 97 ) FROM tab0 AS cor0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT DISTINCT + ( - - MIN( DISTINCT - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT + ( - - MIN ( DISTINCT - col1 ) ) FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL + - 56 - COUNT( * ) FROM tab1 WHERE NOT NULL = + - CAST( + col0 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + - 56 - COUNT ( * ) FROM tab1 WHERE NOT NULL = + - CAST ( + col0 AS INTEGER )
----
-56

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 57 / - 27 <> col1 + + col1 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT ALL - 41 DIV - 40 + 0 FROM tab2 WHERE - 38 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - 41 / - 40 + 0 FROM tab2 WHERE - 38 IS NOT NULL
----
1
1
1

query II rowsort
SELECT ALL col1 AS col1, + col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT 96 * - + col1 AS col2 FROM tab0 cor0
----
-2016
-7776
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL MIN( ALL - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL MIN ( ALL - col2 ) FROM tab2 cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT + - CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6118
SELECT + - CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - + 2 * - + col2 AS col0 FROM tab1
----
10030
12376
9792

query I rowsort
SELECT ( - + 43 ) - + - 36 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT DISTINCT + COUNT( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + COUNT ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - + 84 AS col0 FROM tab0 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT DISTINCT + MAX( DISTINCT + - ( + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT + MAX ( DISTINCT + - ( + col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 61 * + - col1 FROM tab1 cor0
----
-2867
-305
-854

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE - col2 NOT BETWEEN - + 4 * - col1 AND NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT DISTINCT + + COUNT( * ) + + 36 AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT + + COUNT ( * ) + + 36 AS col2 FROM tab0 AS cor0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6128
SELECT + col1 + - col0 + - - CAST( - col1 AS DECIMAL ) * + col0 * + 2 AS col1 FROM tab2 WHERE + - 16 + col0 - col1 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6128
SELECT + col1 + - col0 + - - CAST ( - col1 AS REAL ) * + col0 * + 2 AS col1 FROM tab2 WHERE + - 16 + col0 - col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT + MIN( ALL 4 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT + MIN ( ALL 4 ) FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT MAX( - 92 ) + - 99 AS col2 FROM tab0
----
-191

skipif mysql # not compatible
query I rowsort label-6130
SELECT MAX ( - 92 ) + - 99 AS col2 FROM tab0
----
-191

query II rowsort
SELECT + col1 + + col0 + + 36, - col1 + - - ( + col0 ) AS col0 FROM tab2
----
133
-5
177
-13
178
8

query I rowsort
SELECT DISTINCT - col2 + + col2 + 54 AS col0 FROM tab1
----
54

query I rowsort
SELECT - 87 + + + 6 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6134
SELECT 85 + ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT 85 + ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 93 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT + - MAX( ALL 13 ) FROM tab1 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT + - MAX ( ALL 13 ) FROM tab1 cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + col2 col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT - - SUM( + - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT - - SUM ( + - col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 90 + - ( + 44 ) = ( - col1 + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT + COUNT( ALL + col0 ) - - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT + COUNT ( ALL + col0 ) - - COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = ( 89 + - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) = 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6144
SELECT + 23 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT + 23 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT - MAX( ALL col0 ) * - - 34 FROM tab0
----
-3298

skipif mysql # not compatible
query I rowsort label-6145
SELECT - MAX ( ALL col0 ) * - - 34 FROM tab0
----
-3298

query II rowsort
SELECT - col2 * + col0 * + + 2 AS col2, col0 FROM tab0
----
-1410
15
-1740
87
-19206
97

query I rowsort
SELECT col2 * - + 29 AS col0 FROM tab0
----
-1363
-2871
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ALL - + 85 + + + COUNT( * ) AS col0 FROM tab2 WHERE NULL BETWEEN + 39 AND - col2
----
-85

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL - + 85 + + + COUNT ( * ) AS col0 FROM tab2 WHERE NULL BETWEEN + 39 AND - col2
----
-85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab1
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6151
SELECT DISTINCT ( + - SUM( ALL - CAST( NULL AS DECIMAL ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT ( + - SUM ( ALL - CAST ( NULL AS REAL ) ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT SUM( - - col1 ) col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6152
SELECT SUM ( - - col1 ) col0 FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - 86 >= ( NULL )
----

query II rowsort
SELECT ALL col0 AS col2, + col0 - col1 + - 66 * - 78 FROM tab1
----
51
5185
85
5228
91
5192

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT - 23 + COUNT( * ) FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-6155
SELECT - 23 + COUNT ( * ) FROM tab1 WHERE NOT + - col0 IS NOT NULL
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6156
SELECT - - 87 AS col2 FROM tab1 WHERE NOT + 91 IS NOT NULL AND NULL IN ( col0 + - 0, CAST( NULL AS DECIMAL ) - + 34, col1 )
----

skipif mysql # not compatible
query I rowsort label-6156
SELECT - - 87 AS col2 FROM tab1 WHERE NOT + 91 IS NOT NULL AND NULL IN ( col0 + - 0, CAST ( NULL AS REAL ) - + 34, col1 )
----

query II rowsort
SELECT ALL 87, 89 AS col0 FROM tab1 AS cor0
----
87
89
87
89
87
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT 91 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-6158
SELECT 91 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
273

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL - COUNT( * ) + - 94 AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL - COUNT ( * ) + - 94 AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT 7 * - col0 AS col1 FROM tab0 cor0
----
-105
-609
-679

query II rowsort
SELECT - col0, ( + col1 ) AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT DISTINCT + + CAST( + ( - 52 ) AS SIGNED ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT + + CAST ( + ( - 52 ) AS INTEGER ) FROM tab2 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 + col2 col0 FROM tab1 AS cor0
----
125
88
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6165
SELECT DISTINCT - COUNT( * ) + + - ( + 12 ) DIV + CAST( NULL AS SIGNED ) col0, COUNT( DISTINCT - - col2 ) DIV 35 FROM tab1
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6165
SELECT DISTINCT - COUNT ( * ) + + - ( + 12 ) / + CAST ( NULL AS INTEGER ) col0, COUNT ( DISTINCT - - col2 ) / 35 FROM tab1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - COUNT( ALL - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6166
SELECT - COUNT ( ALL - col1 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT ALL - col0 - + CAST( - 95 AS SIGNED ) FROM tab2
----
20
31
49

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL - col0 - + CAST ( - 95 AS INTEGER ) FROM tab2
----
20
31
49

query I rowsort
SELECT - 40 + - - 14 + + + col0 FROM tab1 WHERE NULL IS NULL
----
25
59
65

query I rowsort
SELECT + 33 + - col2 FROM tab2
----
-25
-7
10

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT 63 * col1, col0 FROM tab1 AS cor0 WHERE + col0 * col0 <> - 55 + - 9
----
2961
91
315
85
882
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 64 + + - 32 AS col2, + 9 col1 FROM tab1 AS cor0
----
32
9
32
9
32
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT col1 * - 34 * - + col0 - col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 + - col0, col1 * - col1 + + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6173
SELECT col1 * - 34 * - + col0 - col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 + - col0, col1 * - col1 + + CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT + + SUM( - col1 ) + + SUM( col1 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT + + SUM ( - col1 ) + + SUM ( col1 ) AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= - 3
----

query I rowsort
SELECT ALL 58 * col1 FROM tab1 AS cor0
----
2726
290
812

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - + MAX( - col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-6178
SELECT - + MAX ( - col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT ALL 15 * - 75 * + - col1 AS col1 FROM tab2 AS cor0
----
57375
75375
86625

onlyif mysql # DIV for integer division: 
query I rowsort label-6181
SELECT ALL - + col0 DIV + col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL - + col0 / + col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - 0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6183
SELECT ALL + COUNT( * ), - 91 AS col2 FROM tab2
----
3
-91

skipif mysql # not compatible
query II rowsort label-6183
SELECT ALL + COUNT ( * ), - 91 AS col2 FROM tab2
----
3
-91

query II rowsort
SELECT + col0, col2 * - + col1 AS col1 FROM tab1
----
51
-1344
85
-295
91
-3196

query I rowsort
SELECT DISTINCT - col2 * + 76 FROM tab2
----
-1748
-3040
-4408

query II rowsort
SELECT col0, ( + col1 ) + + - 57 AS col2 FROM tab2 cor0
----
46
-6
64
20
75
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT + MIN( col0 ) FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT + MIN ( col0 ) FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 82 NOT BETWEEN NULL AND + + col0 * col1
----

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab2 AS cor0 WHERE ( NOT - ( - col1 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT - MIN( ALL - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT - MIN ( ALL - col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT ALL - + SUM( DISTINCT - col0 ) AS col0, + 44 FROM tab2 AS cor0
----
185
44

skipif mysql # not compatible
query II rowsort label-6192
SELECT ALL - + SUM ( DISTINCT - col0 ) AS col0, + 44 FROM tab2 AS cor0
----
185
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL - 91 + + + COUNT( * ) FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - 91 + + + COUNT ( * ) FROM tab1 cor0
----
-88

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab1 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT COUNT( + - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT COUNT ( + - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT ( + ( 17 ) ) + col1 AS col1, + col0 + + - col2 FROM tab2
----
68
23
84
17
94
24

query I rowsort
SELECT DISTINCT + 13 - + col0 FROM tab0
----
-2
-74
-84

query I rowsort
SELECT DISTINCT 62 - + 30 AS col2 FROM tab0
----
32

query II rowsort
SELECT col1 AS col2, + col0 * 73 AS col2 FROM tab0
----
1
7081
21
6351
81
1095

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT ALL COUNT( * ) - + 76 col0 FROM tab2
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6200
SELECT ALL COUNT ( * ) - + 76 col0 FROM tab2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6201
SELECT + CAST( NULL AS SIGNED ), 45 + + col2 AS col2 FROM tab0
----
NULL
144
NULL
55
NULL
92

skipif mysql # not compatible
query II rowsort label-6201
SELECT + CAST ( NULL AS INTEGER ), 45 + + col2 AS col2 FROM tab0
----
NULL
144
NULL
55
NULL
92

query I rowsort
SELECT DISTINCT + - 87 * + 75 FROM tab0 AS cor0
----
-6525

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6203
SELECT * FROM tab2 AS cor0 WHERE + CAST( col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6203
SELECT * FROM tab2 AS cor0 WHERE + CAST ( col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT + - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6204
SELECT + - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab1
----
53

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 1 * + col1 * - col1 > NULL
----

query I rowsort
SELECT + 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + + AVG ( - 40 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND - 99
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT ALL - 17 * col2 FROM tab1 cor0
----
-1003
-1156
-1632

query I rowsort
SELECT col0 * - col0 * - ( - col2 ) + 1 * + col2 AS col1 FROM tab2 AS cor0
----
-163800
-326192
-48645

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT ALL 89 DIV col0 * - col2 AS col2 FROM tab0 AS cor0
----
-10
-235
0

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL 89 / col0 * - col2 AS col2 FROM tab0 AS cor0
----
-10
-235
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 * - + 60 - + col0 col1 FROM tab1 AS cor0
----
-3591
-3625
-3631

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col0 FROM tab2 AS cor0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT + col0 DIV - - 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT + col0 / - - 97 FROM tab1
----
0
0
0

query II rowsort
SELECT + col0, - 2 + - col2 * - + 75 AS col1 FROM tab1
----
51
7198
85
4423
91
5098

query I rowsort
SELECT + 48 * + 81 AS col0 FROM tab2
----
3888
3888
3888

query I rowsort
SELECT 99 * - + ( - 55 ) * - 73 + - ( - col0 ) AS col2 FROM tab0
----
-397388
-397398
-397470

query II rowsort
SELECT DISTINCT col1, - col1 AS col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT 49 * - COUNT( * ) FROM tab0 WHERE NOT + col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6220
SELECT 49 * - COUNT ( * ) FROM tab0 WHERE NOT + col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6222
SELECT DISTINCT COUNT( * ) * CAST( + + 36 AS SIGNED ) FROM tab0 cor0
----
108

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT COUNT ( * ) * CAST ( + + 36 AS INTEGER ) FROM tab0 cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 73 col2 FROM tab2 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT - - ( COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6224
SELECT - - ( COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 14 * - 61 FROM tab2 AS cor0
----
-854

query I rowsort
SELECT DISTINCT col1 + + - col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - col0 * col0 * 86 * col0 + + col0 FROM tab2 AS cor0
----
-22544320
-36281175
-8370850

query I rowsort
SELECT ALL col2 + 98 FROM tab2
----
121
138
156

query I rowsort
SELECT DISTINCT + + 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6230
SELECT DISTINCT + - col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-6230
SELECT DISTINCT + - col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT - + 8 * + col2 + + col2 FROM tab1 cor0
----
-413
-476
-672

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( - + col0 ) NOT IN ( + 16 / - - col0 * + - col0 * + col2 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + COUNT( DISTINCT + col2 ) * - 39 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-351

skipif mysql # not compatible
query I rowsort label-6233
SELECT + COUNT ( DISTINCT + col2 ) * - 39 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-351

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 44 col0, 95 AS col1 FROM tab2 AS cor0
----
-44
95
-44
95
-44
95

query I rowsort
SELECT col0 * + - col1 * + 30 FROM tab2 AS cor0
----
-147840
-150750
-70380

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE 94 / + col1 IS NULL
----

query II rowsort
SELECT + - 46 AS col1, col1 FROM tab1 AS cor0
----
-46
14
-46
47
-46
5

query I rowsort
SELECT - ( - + 53 ) FROM tab2 AS cor0
----
53
53
53

query II rowsort
SELECT ALL col0, col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6241
SELECT - - ( - CAST( NULL AS SIGNED ) ) / - 61 + + COUNT( * ) * COUNT( * ), - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6241
SELECT - - ( - CAST ( NULL AS INTEGER ) ) / - 61 + + COUNT ( * ) * COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
NULL
-3

query I rowsort
SELECT - col0 - + - col1 * - col1 FROM tab0 cor0
----
-528
-6576
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT COUNT( * ) * + + SUM( DISTINCT + 5 ) - - 94 FROM tab2
----
109

skipif mysql # not compatible
query I rowsort label-6243
SELECT COUNT ( * ) * + + SUM ( DISTINCT + 5 ) - - 94 FROM tab2
----
109

query I rowsort
SELECT ALL - 21 * - - 75 + - col2 + col2 AS col0 FROM tab0
----
-1575
-1575
-1575

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6245
SELECT ALL - col0 - + CAST( NULL AS DECIMAL ) * + 74 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - col0 - + CAST ( NULL AS REAL ) * + 74 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * col1 NOT IN ( - + col0 ) AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL COUNT( * ) - - COUNT( * ) + + 51 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL COUNT ( * ) - - COUNT ( * ) + + 51 FROM tab2
----
57

query III rowsort
SELECT * FROM tab2 WHERE ( - - 16 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * - - col0 + - 32 BETWEEN ( NULL ) AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col1 ) col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + 26 + + col1 FROM tab0
----
107
27
47

query I rowsort
SELECT + col0 * - - 46 - col1 + - - ( - col1 ) FROM tab0 AS cor0
----
3960
4460
528

query I rowsort
SELECT + 50 + - ( + - 65 ) FROM tab0 AS cor0
----
115
115
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT - CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6254
SELECT - CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 col2 FROM tab1 AS cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col0 + - - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6258
SELECT - SUM( CAST( + col0 AS SIGNED ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6258
SELECT - SUM ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT col2 * col1 * - 80 AS col0 FROM tab0 AS cor0
----
-16800
-304560
-7920

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 47 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT ALL - col2 * - - col1 * - CAST( + col1 AS SIGNED ) * - 46 FROM tab0 AS cor0
----
-14184882
-202860
-4554

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - col2 * - - col1 * - CAST ( + col1 AS INTEGER ) * - 46 FROM tab0 AS cor0
----
-14184882
-202860
-4554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col0 col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col2 <= NULL
----

query I rowsort
SELECT ( - - col2 ) + + 79 AS col1 FROM tab1
----
138
147
175

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT - col1 DIV + + 45 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT - col1 / + + 45 FROM tab2
----
-1

query I rowsort
SELECT col2 + + - col1 * - 24 AS col2 FROM tab2
----
1247
1666
1888

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT COUNT( * ) + 23 - 15 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-6268
SELECT COUNT ( * ) + 23 - 15 FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT + CAST( NULL AS SIGNED ) + - col1 + - col0 / + col0 * CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT + CAST ( NULL AS INTEGER ) + - col1 + - col0 / + col0 * CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT DISTINCT + 90 DIV - - 15 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT + 90 / - - 15 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + - 46 FROM tab0 cor0
----
-46
-46
-46

query I rowsort
SELECT 63 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 + - 14, col2 AS col1 FROM tab2 cor0
----
37
23
53
58
63
40

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < + col0 * - 98 + + 70
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE ( - col1 ) > 28
----

query I rowsort
SELECT - - col1 AS col0 FROM tab0 WHERE ( - - 35 ) <> - col1
----
1
21
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 38 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 91 + + - col0 AS col2 FROM tab1 AS cor0
----
-142
-176
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT DISTINCT 58 DIV - + 27 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT 58 / - + 27 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT + 95 + col2 FROM tab2 AS cor0
----
118
135
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT - SUM( - 77 ) FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT - SUM ( - 77 ) FROM tab2 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT ALL + MIN( + col0 ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL + MIN ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - - 92 * + col0 AS col1 FROM tab2 AS cor0
----
4232
5888
6900

query I rowsort
SELECT + col0 * - 79 FROM tab2
----
-3634
-5056
-5925

onlyif mysql # DIV for integer division: 
query I rowsort label-6285
SELECT 59 DIV col1 * - - col2 FROM tab0
----
0
20
5841

skipif mysql # not compatible
query I rowsort label-6285
SELECT 59 / col1 * - - col2 FROM tab0
----
0
20
5841

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN - + col0 AND - + 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT DISTINCT 96 + + col0 DIV + col2 col1 FROM tab1
----
96
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6287
SELECT DISTINCT 96 + + col0 / + col2 col1 FROM tab1
----
96
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6288
SELECT ALL - 3 * + SUM( - col2 ) + - - CAST( NULL AS SIGNED ) + - COUNT( - - col2 ) * 17 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL - 3 * + SUM ( - col2 ) + - - CAST ( NULL AS INTEGER ) + - COUNT ( - - col2 ) * 17 FROM tab0
----
NULL

query II rowsort
SELECT ALL 84 - + col1, col2 AS col2 FROM tab2
----
17
58
33
23
7
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6290
SELECT - CAST( + 60 AS SIGNED ) * - COUNT( * ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-6290
SELECT - CAST ( + 60 AS INTEGER ) * - COUNT ( * ) FROM tab0
----
180

query II rowsort
SELECT + col2 AS col2, col0 + ( + 39 ) AS col2 FROM tab1
----
59
124
68
130
96
90

query II rowsort
SELECT ALL + col2 AS col2, + col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT + 91 * - + 24 FROM tab1
----
-2184

query I rowsort
SELECT ALL + - ( - - 43 ) AS col0 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 96 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6296
SELECT col1 DIV 41 col1, 89 AS col1 FROM tab0 AS cor0
----
0
89
0
89
1
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6296
SELECT col1 / 41 col1, 89 AS col1 FROM tab0 AS cor0
----
0
89
0
89
1
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6297
SELECT ALL MIN( DISTINCT + + 81 ) FROM tab1 WHERE + CAST( - 21 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL MIN ( DISTINCT + + 81 ) FROM tab1 WHERE + CAST ( - 21 AS INTEGER ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( - col0 ) ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + + - 39 FROM tab0 AS cor0 WHERE 91 * + col0 IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + - 39 FROM tab0 AS cor0 WHERE 91 * + col0 IS NOT NULL
----
-33

query I rowsort
SELECT DISTINCT - - col2 * - col1 * ( 81 ) AS col1 FROM tab2 AS cor0
----
-249480
-314766
-95013

query I rowsort
SELECT ( - 44 ) AS col0 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col2 = ( - col1 ) - - - 32
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT + COUNT( * ) * COUNT( + col1 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6303
SELECT + COUNT ( * ) * COUNT ( + col1 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col2 * - 13 FROM tab0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ( 91 ) * + - COUNT( * ) + - 56 * COUNT( * ) FROM tab2
----
-441

skipif mysql # not compatible
query I rowsort label-6305
SELECT ( 91 ) * + - COUNT ( * ) + - 56 * COUNT ( * ) FROM tab2
----
-441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 * + + col2 col2 FROM tab2
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab2 WHERE + col1 IN ( - 86 + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab2 WHERE + col1 IN ( - 86 + 34 )
----
0

query II rowsort
SELECT ALL + col2 AS col2, + col2 * - col2 FROM tab0
----
10
-100
47
-2209
99
-9801

query I rowsort
SELECT + col0 + - 88 FROM tab2 AS cor0
----
-13
-24
-42

query II rowsort
SELECT - col2 + + 48 + + col0, col1 AS col1 FROM tab0 AS cor0
----
125
21
16
81
46
1

query I rowsort
SELECT + col2 + 61 FROM tab2 AS cor0
----
101
119
84

query III rowsort
SELECT * FROM tab0 WHERE + 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT + + 69 * - ( - COUNT( 51 ) ) AS col1 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-6313
SELECT + + 69 * - ( - COUNT ( 51 ) ) AS col1 FROM tab2 AS cor0
----
207

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( - 86 ) ) col0 FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT + + 24 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - - 40 AS col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT + col2 - + ( 53 ) FROM tab2 cor0
----
-13
-30
5

query I rowsort
SELECT ALL + col0 + - - ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + - 45 - - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6320
SELECT + - 45 - - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col0 FROM tab2 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT + 20 - - - COUNT( * ) FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 20 - - - COUNT ( * ) FROM tab2 cor0
----
17

query I rowsort
SELECT col2 - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE + col2 + 29 * - 2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT DISTINCT AVG ( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT + MAX( - + col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6326
SELECT + MAX ( - + col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * col1 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * col1 >= ( NULL )
----
0

query I rowsort
SELECT + + 90 * + + 29 FROM tab1 AS cor0
----
2610
2610
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6329
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT - 53 * - col0 AS col0 FROM tab0
----
4611
5141
795

query II rowsort
SELECT - ( col2 ) AS col1, col2 + - 11 AS col1 FROM tab1
----
-59
48
-68
57
-96
85

query II rowsort
SELECT col2 AS col0, - 20 FROM tab2 AS cor0
----
23
-20
40
-20
58
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6333
SELECT 48, MAX( + col1 ) AS col2 FROM tab1 cor0
----
48
47

skipif mysql # not compatible
query II rowsort label-6333
SELECT 48, MAX ( + col1 ) AS col2 FROM tab1 cor0
----
48
47

query I rowsort
SELECT ALL - col1 + - 42 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-47
-56
-89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 / + col0 + ( + + col2 ) IS NULL )
----

query I rowsort
SELECT - 98 * - - col2 * - 98 AS col0 FROM tab2 AS cor0 WHERE + col0 * + col1 * col2 / 50 IS NOT NULL
----
220892
384160
557032

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN + + ( + col0 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT ( + 0 ) + + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT ( + 0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6339
SELECT DISTINCT - col1 * - col2 / + col0 + + 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-6339
SELECT DISTINCT - col1 * - col2 / + col0 + + CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT - col0 * - ( + 47 ) * + col0 AS col1 FROM tab0 WHERE col2 + - + 35 * + col2 * CAST( + 59 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6340
SELECT - col0 * - ( + 47 ) * + col0 AS col1 FROM tab0 WHERE col2 + - + 35 * + col2 * CAST ( + 59 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col2 FROM tab1
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT - - MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT - - MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL + - ( - col0 ) * col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > + col2 / + 39 + + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL COUNT( * ) * + 15 + - + ( - - 47 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL COUNT ( * ) * + 15 + - + ( - - 47 ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL 85 - - col0 FROM tab2
----
131
149
160

query I rowsort
SELECT + col0 - + col2 + - col2 + + 94 * - col1 AS col2 FROM tab0
----
-1907
-195
-7693

query I rowsort
SELECT DISTINCT 70 - + col0 + - col2 AS col1 FROM tab1
----
-74
-77
-89

query I rowsort
SELECT DISTINCT - 4 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
SELECT ALL - 19 - - + CAST( + - ( - 72 ) AS SIGNED ) col1 FROM tab0
----
53
53
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6350
SELECT ALL - 19 - - + CAST ( + - ( - 72 ) AS INTEGER ) col1 FROM tab0
----
53
53
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 8 + + + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 79
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 36 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6354
SELECT col0 * + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-6354
SELECT col0 * + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - 2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6356
SELECT * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + col0 + - 96 * col0 BETWEEN col2 AND + col1 / - CAST( NULL AS SIGNED ) - - 52 + - 54 - + 98 * - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6356
SELECT * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + col0 + - 96 * col0 BETWEEN col2 AND + col1 / - CAST ( NULL AS INTEGER ) - - 52 + - 54 - + 98 * - CAST ( - col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT + 57 DIV - col0 AS col1 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6357
SELECT + 57 / - col0 AS col1 FROM tab0
----
-3
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT - col0 DIV + - col1 col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6358
SELECT - col0 / + - col1 col2 FROM tab1
----
1
17
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + 37 * + COUNT( - col2 ) AS col1 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 37 * + COUNT ( - col2 ) AS col1 FROM tab0
----
111

query II rowsort
SELECT - 22 * - col2 * + 89 * + + col1 AS col2, ( col0 ) FROM tab0
----
193842
97
411180
87
7454106
15

query I rowsort
SELECT ALL - - 74 FROM tab0 cor0
----
74
74
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT - COUNT( * ) * 77 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT - COUNT ( * ) * 77 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT ALL COUNT( * ) * + - 40 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL COUNT ( * ) * + - 40 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6365
SELECT ALL MIN( 56 ) AS col2, 6 FROM tab2 AS cor0
----
56
6

skipif mysql # not compatible
query II rowsort label-6365
SELECT ALL MIN ( 56 ) AS col2, 6 FROM tab2 AS cor0
----
56
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6366
SELECT DISTINCT - CAST( - 80 AS SIGNED ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT - CAST ( - 80 AS INTEGER ) FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT DISTINCT - + ( MAX( - - col2 ) ) * - COUNT( * ) AS col2 FROM tab1 cor0
----
288

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT - + ( MAX ( - - col2 ) ) * - COUNT ( * ) AS col2 FROM tab1 cor0
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 + - 68 * + col1 col1 FROM tab2 AS cor0
----
-3445
-4533
-5213

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL - 74 * + COUNT( * ) FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - 74 * + COUNT ( * ) FROM tab0 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT DISTINCT + - MIN( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT + - MIN ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + 34 + col0 * 74 * - col2 AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - 16 + - - col0 + + 36 * + col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2, + col1, - + col2 + + col0 + col2, + col2, - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT MAX( + - 3 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT MAX ( + - 3 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6374
SELECT DISTINCT - + col2 / + + CAST( NULL AS SIGNED ) + + ( + 84 ) * col1, + 84 AS col0 FROM tab0 AS cor0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-6374
SELECT DISTINCT - + col2 / + + CAST ( NULL AS INTEGER ) + + ( + 84 ) * col1, + 84 AS col0 FROM tab0 AS cor0
----
NULL
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - + col0 col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6376
SELECT ALL col0 DIV col1 + - + col2 * + + col0 * col0 FROM tab2
----
-163840
-326249
-48668

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL col0 / col1 + - + col2 * + + col0 * col0 FROM tab2
----
-163840
-326249
-48668

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 24 <= + 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT DISTINCT SUM( - + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT SUM ( - + col1 ) FROM tab1
----
-66

query I rowsort
SELECT + 28 * + 97 FROM tab1
----
2716
2716
2716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6380
SELECT - COUNT( ALL - 84 ) AS col1, - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6380
SELECT - COUNT ( ALL - 84 ) AS col1, - AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
-3
NULL

query I rowsort
SELECT DISTINCT - col2 + + 57 AS col1 FROM tab1
----
-11
-2
-39

query I rowsort
SELECT ALL col1 * col1 + - 82 AS col2 FROM tab0
----
-81
359
6479

query III rowsort
SELECT * FROM tab0 WHERE 85 * + + col2 + + col1 = + + ( + - 76 ) / 77
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col0 col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL - col2 + - ( + 40 ) FROM tab1
----
-108
-136
-99

query I rowsort
SELECT ALL 55 - col1 FROM tab0
----
-26
34
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col1 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT - col0 * - col1 * + - col0 + - 55 FROM tab2 AS cor0
----
-107971
-315447
-376930

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT DISTINCT - col1 * - - 32 + col0 + - - 85 + + + 64 + + 78 DIV + ( 56 ) FROM tab2 AS cor0
----
-1436
-1919
-2250

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT - col1 * - - 32 + col0 + - - 85 + + + 64 + + 78 / + ( 56 ) FROM tab2 AS cor0
----
-1436
-1919
-2250

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab0 cor0
----
-87

query I rowsort
SELECT + 98 * - 72 * + col0 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col1, - col1 AS col2 FROM tab1
----
14
-14
47
-47
5
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6395
SELECT ALL + 2 AS col0, col1 DIV - 11 + + col2 FROM tab0
----
2
40
2
9
2
99

skipif mysql # not compatible
query II rowsort label-6395
SELECT ALL + 2 AS col0, col1 / - 11 + + col2 FROM tab0
----
2
40
2
9
2
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 63 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL + 74 * + - COUNT( * ) AS col1 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + 74 * + - COUNT ( * ) AS col1 FROM tab1
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT DISTINCT 1 * + CAST( col2 AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT 1 * + CAST ( col2 AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT ALL - col0 DIV + - 39 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL - col0 / + - 39 FROM tab0 AS cor0
----
0
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col0 FROM tab1 AS cor0
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 69 / + - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-6403
SELECT + - col0 DIV + 6 AS col1, - col2 + - + 62 FROM tab0 AS cor0
----
-14
-72
-16
-161
-2
-109

skipif mysql # not compatible
query II rowsort label-6403
SELECT + - col0 / + 6 AS col1, - col2 + - + 62 FROM tab0 AS cor0
----
-14
-72
-16
-161
-2
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6404
SELECT ALL + COUNT( * ) DIV - 19 AS col0, - 34 FROM tab2 AS cor0
----
0
-34

skipif mysql # not compatible
query II rowsort label-6404
SELECT ALL + COUNT ( * ) / - 19 AS col0, - 34 FROM tab2 AS cor0
----
0
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6405
SELECT - ( - col2 ) * + - col0 / - CAST( NULL AS DECIMAL ) + + - col2 + - + ( - 1 ) * 20 / + col1 * + ( - col0 ) + col0, col0 col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6405
SELECT - ( - col2 ) * + - col0 / - CAST ( NULL AS REAL ) + + - col2 + - + ( - 1 ) * 20 / + col1 * + ( - col0 ) + col0, col0 col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6406
SELECT DISTINCT - col0 DIV + col2 AS col2, + ( + col1 ) FROM tab1 AS cor0
----
-1
47
-1
5
0
14

skipif mysql # not compatible
query II rowsort label-6406
SELECT DISTINCT - col0 / + col2 AS col2, + ( + col1 ) FROM tab1 AS cor0
----
-1
47
-1
5
0
14

query I rowsort
SELECT ALL + 9 * + + col2 + + col1 FROM tab2 AS cor0
----
258
437
589

query II rowsort
SELECT DISTINCT + col0, - 96 AS col2 FROM tab1 AS cor0 WHERE col0 + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT + col0 DIV - - col2 + col2 AS col1 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-6409
SELECT + col0 / - - col2 + col2 AS col1 FROM tab1 AS cor0
----
60
69
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT ALL col0 DIV 83 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL col0 / 83 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT ALL + col1 - + - col0 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + col1 - + - col0 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - ( + + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6412
SELECT - ( + + COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT + col0 * + + col2 DIV col2 * + 71 AS col0 FROM tab0
----
1065
6177
6887

skipif mysql # not compatible
query I rowsort label-6413
SELECT + col0 * + + col2 / col2 * + 71 AS col0 FROM tab0
----
1065
6177
6887

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6414
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT - col0 - - col2 - + col1 NOT BETWEEN - col0 AND - CAST( NULL AS SIGNED ) * + + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-6414
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT - col0 - - col2 - + col1 NOT BETWEEN - col0 AND - CAST ( NULL AS INTEGER ) * + + col0 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6415
SELECT DISTINCT + 36 AS col0, 59 DIV + - col1 AS col1 FROM tab2 AS cor0
----
36
-1
36
0

skipif mysql # not compatible
query II rowsort label-6415
SELECT DISTINCT + 36 AS col0, 59 / + - col1 AS col1 FROM tab2 AS cor0
----
36
-1
36
0

query I rowsort
SELECT ALL - 31 * - 99 + + col2 FROM tab0 AS cor0
----
3079
3116
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6417
SELECT CAST( - col0 AS SIGNED ) - - 52 AS col1 FROM tab2
----
-12
-23
6

skipif mysql # not compatible
query I rowsort label-6417
SELECT CAST ( - col0 AS INTEGER ) - - 52 AS col1 FROM tab2
----
-12
-23
6

onlyif mysql # DIV for integer division: 
query II rowsort label-6418
SELECT ALL col1, col2 DIV + - col0 + + col0 FROM tab2
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-6418
SELECT ALL col1, col2 / + - col0 + + col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6419
SELECT ALL * FROM tab2 WHERE ( + + col0 ) * - + CAST( - - col2 AS SIGNED ) + + 25 + + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6419
SELECT ALL * FROM tab2 WHERE ( + + col0 ) * - + CAST ( - - col2 AS INTEGER ) + + 25 + + - col1 IS NULL
----

query II rowsort
SELECT + 48 AS col0, col1 + + 54 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, - col1 * + 28 AS col0 FROM tab0 AS cor0
----
1
-28
21
-588
81
-2268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + - col0 col2 FROM tab0 AS cor0
----
123
2
3792

query I rowsort
SELECT DISTINCT + 96 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6424
SELECT - + CAST( - - COUNT( col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6424
SELECT - + CAST ( - - COUNT ( col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6425
SELECT + CAST( NULL AS SIGNED ), ( col1 ) AS col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6425
SELECT + CAST ( NULL AS INTEGER ), ( col1 ) AS col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT ( - 80 ) AS col2 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT ALL - ( 10 ) AS col2 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT + ( - + ( - col2 ) ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ALL 83 * + - SUM( col2 ) FROM tab0
----
-12948

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL 83 * + - SUM ( col2 ) FROM tab0
----
-12948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6430
SELECT DISTINCT MIN( DISTINCT CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - ( - col2 ) NOT IN ( - col2, - col2, - - col1 * - col0 * col2, + 11 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6432
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 * - - CAST( NULL AS DECIMAL ) + - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6432
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 * - - CAST ( NULL AS REAL ) + - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ( + MIN( - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6433
SELECT ( + MIN ( - col2 ) ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6434
SELECT ALL - ( - COUNT( * ) ) DIV MIN( ALL + 4 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL - ( - COUNT ( * ) ) / MIN ( ALL + 4 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL - COUNT( * ) + 42 AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - COUNT ( * ) + 42 AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6436
SELECT + + CAST( - col1 AS SIGNED ) DIV 30 AS col1 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6436
SELECT + + CAST ( - col1 AS INTEGER ) / 30 AS col1 FROM tab2 AS cor0
----
-1
-2
-2

query II rowsort
SELECT + col1 AS col1, + 16 + col2 FROM tab0 AS cor0
----
1
115
21
26
81
63

query I rowsort
SELECT ALL 2 + - col2 * - col2 AS col0 FROM tab2
----
1602
3366
531

query III rowsort
SELECT * FROM tab1 WHERE - 11 * 13 NOT BETWEEN NULL AND + + col0 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT col1 - - - col2 DIV + - col0 AS col1 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-6440
SELECT col1 - - - col2 / + - col0 AS col1 FROM tab1
----
15
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < col0 * + col2 + - col2
----

query I rowsort
SELECT col2 * - - col2 AS col1 FROM tab2 WHERE col1 + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 56 - + + col2 + + col1 AS col2 FROM tab0
----
-42
67
90

query II rowsort
SELECT DISTINCT col0 * 77 + col0 - + col0 AS col0, + 48 FROM tab0
----
1155
48
6699
48
7469
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6445
SELECT ALL - SUM( ALL + + col2 ) - - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6445
SELECT ALL - SUM ( ALL + + col2 ) - - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT DISTINCT 83 + + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
86

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT 83 + + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6447
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col1 * + + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-60
145
2118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE - 38 * - CAST( + + col2 AS SIGNED ) IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE - 38 * - CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-6450
SELECT ALL + ( + col2 ) AS col2, 74 DIV ( - - col0 ) FROM tab0 AS cor0
----
10
0
47
4
99
0

skipif mysql # not compatible
query II rowsort label-6450
SELECT ALL + ( + col2 ) AS col2, 74 / ( - - col0 ) FROM tab0 AS cor0
----
10
0
47
4
99
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT + col1 + col0 * 85 DIV + - 92 + + col1 * 61 AS col1 FROM tab2 cor0
----
3120
4085
4715

skipif mysql # not compatible
query I rowsort label-6451
SELECT + col1 + col0 * 85 / + - 92 + + col1 * 61 AS col1 FROM tab2 cor0
----
3120
4085
4715

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT DISTINCT SUM( - + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT SUM ( - + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6453
SELECT ALL - CAST( NULL AS SIGNED ) / 77 + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - CAST ( NULL AS INTEGER ) / 77 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 < - col2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + col2 AND 36
----
15
81
47
97
1
99

query I rowsort
SELECT - - 9 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT DISTINCT - COUNT( * ) AS col0, ( + COUNT( - 58 ) ) + - 77 + - 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-136

skipif mysql # not compatible
query II rowsort label-6456
SELECT DISTINCT - COUNT ( * ) AS col0, ( + COUNT ( - 58 ) ) + - 77 + - 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-136

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT col2 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT DISTINCT - ( - 20 ) + + MIN( - col2 ) + + 4 AS col0 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-34

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT - ( - 20 ) + + MIN ( - col2 ) + + 4 AS col0 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - + COUNT( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6459
SELECT - + COUNT ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT - + col2 * - + col0 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT + AVG ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT NULL >= + col0
----
NULL

query I rowsort
SELECT + ( + + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - col1 * - + col1 FROM tab0 AS cor0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 26 col0 FROM tab2 AS cor0
----
-26

query II rowsort
SELECT col0, + 89 FROM tab1
----
51
89
85
89
91
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6468
SELECT ALL + COUNT( * ) col2, + 25 AS col0 FROM tab1
----
3
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6468
SELECT ALL + COUNT ( * ) col2, + 25 AS col0 FROM tab1
----
3
25

query I rowsort
SELECT DISTINCT + 80 * - + 72 FROM tab0
----
-5760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6470
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND CAST( NULL AS SIGNED ) * + 68 + + col0 + - 77
----

skipif mysql # not compatible
query III rowsort label-6470
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND CAST ( NULL AS INTEGER ) * + 68 + + col0 + - 77
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + col1 AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT + CAST( NULL AS SIGNED ) + - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT + CAST ( NULL AS INTEGER ) + - + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6473
SELECT COUNT( * ) DIV + 56 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6473
SELECT COUNT ( * ) / + 56 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT - 67 * + 28 FROM tab2
----
-1876
-1876
-1876

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6476
SELECT col2 * - - CAST( NULL AS DECIMAL ) + - ( + col1 ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT col2 * - - CAST ( NULL AS REAL ) + - ( + col1 ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 61 AS col2 FROM tab0 AS cor0 WHERE NULL < - col0 + - col1
----

query I rowsort
SELECT ALL + 70 * + col0 AS col1 FROM tab1 AS cor0
----
3570
5950
6370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT DISTINCT + col1 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT + col1 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 + - 5 AS col1 FROM tab2
----
18
35
53

query I rowsort
SELECT ALL + col1 + col1 + + col0 FROM tab2
----
148
209
218

query I rowsort
SELECT ALL col1 * - ( - - 65 ) - 92 AS col0 FROM tab1
----
-1002
-3147
-417

query I rowsort
SELECT DISTINCT col2 + + + col1 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT DISTINCT - MAX( col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT - MAX ( col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT CAST( - MIN( ALL 14 ) AS SIGNED ) * + 78 FROM tab1
----
-1092

skipif mysql # not compatible
query I rowsort label-6485
SELECT CAST ( - MIN ( ALL 14 ) AS INTEGER ) * + 78 FROM tab1
----
-1092

query I rowsort
SELECT col2 / col1 / + col1 / - - 32 FROM tab0 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 98 = + 69
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - MAX( - 36 ) + - SUM( DISTINCT - ( + col2 ) ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-6488
SELECT - MAX ( - 36 ) + - SUM ( DISTINCT - ( + col2 ) ) FROM tab0
----
192

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col1 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT SUM( DISTINCT ( - col1 ) ) * 49 + + 58 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT SUM ( DISTINCT ( - col1 ) ) * 49 + + 58 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6492
SELECT ALL 35 FROM tab1 WHERE NOT ( - 6 ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL 35 FROM tab1 WHERE NOT ( - 6 ) >= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT COUNT( * ) AS col2 FROM tab0 WHERE + col0 NOT IN ( - 12 * - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-6494
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE + col0 NOT IN ( - 12 * - col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT COUNT( DISTINCT - 22 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6495
SELECT COUNT ( DISTINCT - 22 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT SUM( - 32 ) + + 23 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-6496
SELECT SUM ( - 32 ) + + 23 FROM tab2
----
-73

query I rowsort
SELECT DISTINCT 1 + col1 FROM tab1
----
15
48
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col0 / + col1 col2 FROM tab1 WHERE NULL <> ( + 94 + - col0 * 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE 5 >= col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6499
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE 5 >= col0
----
0

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col1 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - col2 - col2 / 66 IN ( - col0 * 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE + col2 + col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col1 - 99 FROM tab0
----
-18
-78
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT - CAST( - col0 AS SIGNED ) * 0 + col1 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6504
SELECT - CAST ( - col0 AS INTEGER ) * 0 + col1 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - 82 + - col2 AS col1 FROM tab1
----
-141
-150
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT - 43 * COUNT( * ) + + COUNT( ALL + CAST( + col1 AS SIGNED ) ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-6506
SELECT - 43 * COUNT ( * ) + + COUNT ( ALL + CAST ( + col1 AS INTEGER ) ) FROM tab0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT DISTINCT - COUNT( * ) * 56 AS col1 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT - COUNT ( * ) * 56 AS col1 FROM tab1
----
-168

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL col0 * col2 + col0 FROM tab2 WHERE NOT col1 IS NULL
----
1104
2624
4425

query I rowsort
SELECT - 77 * - col1 - 11 FROM tab1
----
1067
3608
374

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL + COUNT( 37 ) + 46 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + COUNT ( 37 ) + 46 FROM tab0 AS cor0
----
49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 FROM tab0 cor0 WHERE ( NULL ) BETWEEN ( 55 / - col0 ) AND col2
----

query I rowsort
SELECT ALL 3 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
182
251
302

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 IN ( 12 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col2 FROM tab2 WHERE NULL IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6517
SELECT * FROM tab0 WHERE ( + CAST( + col0 AS SIGNED ) ) * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6517
SELECT * FROM tab0 WHERE ( + CAST ( + col0 AS INTEGER ) ) * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab2 WHERE NOT + 76 IS NULL
----
-15

query I rowsort
SELECT ALL - 75 AS col2 FROM tab2 cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE 35 NOT IN ( + col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE 35 NOT IN ( + col1 )
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT col1 DIV ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6521
SELECT col1 / ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 44 FROM tab2 AS cor0 WHERE 88 NOT IN ( 34 )
----
44
44
44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 8 - - col1 ) IN ( col0 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - 52 AND + 87
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col0 * 17 FROM tab0 AS cor0
----
-1479
-1649
-255

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 89 ) * - col2 - + col1 FROM tab2 AS cor0
----
1996
3483
5095

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 ) BETWEEN + col2 / - ( col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 64 / + 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 - 65 * col2 FROM tab0 AS cor0
----
-3040
-563
-6338

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT + MIN( - col1 ) + + COUNT( * ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT + MIN ( - col1 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-74

query I rowsort
SELECT ALL + 62 + - col2 * col1 FROM tab1 AS cor0
----
-1282
-233
-3134

query I rowsort
SELECT ( + 7 ) * col2 FROM tab2 WHERE NULL IS NULL
----
161
280
406

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <= - col0
----
15
81
47

query I rowsort
SELECT ALL - 14 + + 12 AS col0 FROM tab0 WHERE col2 / 32 < - col0 * col0
----

query I rowsort
SELECT DISTINCT + 18 + col1 AS col2 FROM tab0
----
19
39
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT + col0 DIV 79 AS col0 FROM tab1 WHERE - col0 * 90 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6537
SELECT + col0 / 79 AS col0 FROM tab1 WHERE - col0 * 90 IS NOT NULL
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT DISTINCT + MAX( DISTINCT - 52 ) DIV 59 + - SUM( ALL col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT + MAX ( DISTINCT - 52 ) / 59 + - SUM ( ALL col2 ) FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6539
SELECT ALL AVG ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL AVG ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT DISTINCT - MAX( DISTINCT - 25 ) AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT - MAX ( DISTINCT - 25 ) AS col2 FROM tab1
----
25

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 80 - + 9 IS NOT NULL
----

query I rowsort
SELECT ALL + 1 * + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT 91 * 28 FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT DISTINCT col2 DIV - - col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT col2 / - - col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT DISTINCT + col2 * col0 DIV + col2 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT + col2 * col0 / + col2 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6547
SELECT ALL + + 45 + - CAST( MIN( + 63 ) AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + + 45 + - CAST ( MIN ( + 63 ) AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT 69 * 86 FROM tab2 WHERE NOT ( + 51 * + col1 ) IS NULL
----
5934
5934
5934

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT ( - - col1 / col0 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 / col2 IN ( 62 * ( col1 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col0 ) NOT BETWEEN + 28 AND + 98 + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT + COUNT( ALL 61 ) * - 19 AS col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + COUNT ( ALL 61 ) * - 19 AS col1 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 7 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 78 * - col1 * - col1 ) IS NULL
----

query II rowsort
SELECT + 91 AS col2, - 96 AS col2 FROM tab0 AS cor0
----
91
-96
91
-96
91
-96

query I rowsort
SELECT DISTINCT - col0 * - col2 - - col1 + col2 AS col1 FROM tab1 AS cor0
----
5006
5079
6303

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 0 ) IN ( col2 + 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT ALL + - col0 DIV - + col1 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + - col0 / - + col1 FROM tab0 cor0
----
0
4
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 59
----

query I rowsort
SELECT + col1 * - 31 * - + col2 FROM tab2 AS cor0
----
120466
36363
95480

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT DISTINCT - col2 DIV - col0 * 88 * 9 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT - col2 / - col0 * 88 * 9 + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - - COUNT( + 98 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6564
SELECT - - COUNT ( + 98 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL + col0 * col0 / + CAST( NULL AS SIGNED ) * 5 + - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + col0 * col0 / + CAST ( NULL AS INTEGER ) * 5 + - col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 0 + - ( + col2 ) NOT IN ( - col2 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 96 * - + 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 * col1 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL SUM( 2 ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL SUM ( 2 ) AS col1 FROM tab1 AS cor0
----
6

query II rowsort
SELECT col0 + - col2 AS col2, + 93 FROM tab0
----
-2
93
-32
93
77
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT DISTINCT + 85 * - + COUNT( * ) FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT + 85 * - + COUNT ( * ) FROM tab2
----
-255

query II rowsort
SELECT ALL col2 + - col2, col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT col1 + - 63 + col2 FROM tab0
----
-32
37
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + - 34 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - - col0 + col2 ) AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT - CAST( - col0 AS SIGNED ) + + 53 AS col2 FROM tab0
----
140
150
68

skipif mysql # not compatible
query I rowsort label-6576
SELECT - CAST ( - col0 AS INTEGER ) + + 53 AS col2 FROM tab0
----
140
150
68

query I rowsort
SELECT - 88 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 33 col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - col0 * + - ( - 29 ) * + col2 + 69 + col1 AS col2 FROM tab2 AS cor0
----
-126014
-30562
-74094

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + col1 + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
1262
1837
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6583
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + 94 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 94 FROM tab1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT DISTINCT + + SUM( ALL col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT + + SUM ( ALL col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT col2 * + - 66 * col1 * - col0 - ( col0 ) FROM tab2 AS cor0
----
13009856
19235625
3561182

query I rowsort
SELECT + col1 * + + col0 + col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE ( + col1 * 25 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL + 15 + + COUNT( * ) FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + 15 + + COUNT ( * ) FROM tab2 cor0
----
18

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 > - 89 + col0 * 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT col0 DIV - 83 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6591
SELECT col0 / - 83 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT MIN( ALL + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6592
SELECT MIN ( ALL + + col0 ) FROM tab0
----
15

query II rowsort
SELECT + col0, ( + col1 ) AS col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6595
SELECT * FROM tab2 WHERE NOT - + col2 + - CAST( + + col2 AS SIGNED ) - + col1 >= ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6595
SELECT * FROM tab2 WHERE NOT - + col2 + - CAST ( + + col2 AS INTEGER ) - + col1 >= ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + col2 AS col1 FROM tab2 WHERE ( + + 84 ) * col2 NOT IN ( + 56 - col0 )
----
104
133
69

query I rowsort
SELECT ALL 91 * + col0 FROM tab2
----
4186
5824
6825

query II rowsort
SELECT DISTINCT col0 AS col2, + 95 + - col0 + - - col2 * - 3 FROM tab1
----
51
-244
85
-167
91
-200

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL + MIN( + 81 ) AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL + MIN ( + 81 ) AS col1 FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL + COUNT( + + 67 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL + COUNT ( + + 67 ) AS col0 FROM tab2 cor0
----
3

query II rowsort
SELECT + col0, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL - MAX( - - 39 ) AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL - MAX ( - - 39 ) AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-39

query III rowsort
SELECT * FROM tab2 WHERE NOT 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT DISTINCT + - SUM( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( + col0 <> NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT + - SUM ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( + col0 <> NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6607
SELECT * FROM tab0 AS cor0 WHERE NOT - 16 IN ( - - CAST( - 43 AS SIGNED ) / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6607
SELECT * FROM tab0 AS cor0 WHERE NOT - 16 IN ( - - CAST ( - 43 AS INTEGER ) / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL col2 + col1 * col1 AS col2 FROM tab1 AS cor0
----
2277
292
84

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( + col2 + + - 85 )
----

query I rowsort
SELECT DISTINCT - + col2 + 76 + + col2 FROM tab2 AS cor0
----
76

query I rowsort
SELECT 30 * - + col0 FROM tab1
----
-1530
-2550
-2730

query I rowsort
SELECT - ( + 11 ) AS col1 FROM tab0
----
-11
-11
-11

query II rowsort
SELECT ALL + col2 AS col2, - col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + COUNT( * ) + - SUM( DISTINCT 33 ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-6616
SELECT + COUNT ( * ) + - SUM ( DISTINCT 33 ) AS col1 FROM tab0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT CAST( - col1 AS SIGNED ) * 68 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
209504
264323
79810

skipif mysql # not compatible
query I rowsort label-6618
SELECT CAST ( - col1 AS INTEGER ) * 68 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
209504
264323
79810

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6619
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6620
SELECT DISTINCT 42 DIV - col1 + col2 DIV 40 AS col0, + 96 * - + 76 FROM tab1
----
-1
-7296
-7
-7296
1
-7296

skipif mysql # not compatible
query II rowsort label-6620
SELECT DISTINCT 42 / - col1 + col2 / 40 AS col0, + 96 * - + 76 FROM tab1
----
-1
-7296
-7
-7296
1
-7296

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> 6
----

query III rowsort
SELECT * FROM tab2 WHERE - ( 5 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT DISTINCT COUNT( * ) - + - SUM( ALL col0 ) AS col0 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT COUNT ( * ) - + - SUM ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
230

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6624
SELECT - col1 - + 45 DIV + CAST( col2 AS SIGNED ) + + - ( - 32 ) * - col2 AS col1, - col0 - - col1 AS col2 FROM tab0 AS cor0
----
-1585
66
-3169
-96
-345
-66

skipif mysql # not compatible
query II rowsort label-6624
SELECT - col1 - + 45 / + CAST ( col2 AS INTEGER ) + + - ( - 32 ) * - col2 AS col1, - col0 - - col1 AS col2 FROM tab0 AS cor0
----
-1585
66
-3169
-96
-345
-66

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + col0 + - col2 + - col1 - - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT DISTINCT - MAX( + 72 ) AS col2 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT - MAX ( + 72 ) AS col2 FROM tab0 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6627
SELECT + 78 * col1 AS col1, - 17 + + + col0 * + CAST( - + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1638
-1844
6318
-1232
78
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6627
SELECT + 78 * col1 AS col1, - 17 + + + col0 * + CAST ( - + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1638
-1844
6318
-1232
78
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 46 col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT + - 28 * col1 * - 77 FROM tab2 AS cor0
----
109956
144452
166012

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL SUM( + + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL SUM ( + + col2 ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6631
SELECT * FROM tab2 WHERE NOT NULL IN ( + - col2 * CAST( NULL AS SIGNED ), 95 )
----

skipif mysql # not compatible
query III rowsort label-6631
SELECT * FROM tab2 WHERE NOT NULL IN ( + - col2 * CAST ( NULL AS INTEGER ), 95 )
----

query I rowsort
SELECT ALL 55 * col0 * 89 AS col2 FROM tab1
----
249645
416075
445445

query I rowsort
SELECT + col0 * ( + + 8 ) FROM tab0
----
120
696
776

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6634
SELECT DISTINCT COUNT( - col0 ) * - COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT COUNT ( - col0 ) * - COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT CAST( - 33 AS SIGNED ) AS col0 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT CAST ( - 33 AS INTEGER ) AS col0 FROM tab2
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6636
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6636
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col0 FROM tab0 cor0
----
80
80
80

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - 74 * + SUM( ALL + + col2 ) * - COUNT( DISTINCT + + col0 ) AS col0 FROM tab0
----
34632

skipif mysql # not compatible
query I rowsort label-6639
SELECT - 74 * + SUM ( ALL + + col2 ) * - COUNT ( DISTINCT + + col0 ) AS col0 FROM tab0
----
34632

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 * 88 FROM tab0
----
1848
7128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT 27 * - + COUNT( * ) col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6642
SELECT 27 * - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT col0 + + - col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT + MIN( DISTINCT - + 8 ) AS col2 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT + MIN ( DISTINCT - + 8 ) AS col2 FROM tab2 AS cor0
----
-8

query II rowsort
SELECT ALL + + 48 AS col0, 77 * - 87 AS col1 FROM tab1 cor0
----
48
-6699
48
-6699
48
-6699

query I rowsort
SELECT DISTINCT 55 + - - col0 + + col2 FROM tab0 AS cor0
----
117
152
251

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + + 74 - - col0 + + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + col1 col1, col2 - - - 70 AS col2 FROM tab2
----
117
-30
125
-12
74
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 * ( + col0 ) col2 FROM tab1 WHERE ( + col2 - - + col0 + col0 + 64 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT 92 + SUM( 20 ) col1 FROM tab2
----
152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6650
SELECT 92 + SUM ( 20 ) col1 FROM tab2
----
152

query I rowsort
SELECT - 7 * 5 FROM tab1 WHERE NULL IS NULL
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT SUM( ALL - - ( - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6652
SELECT SUM ( ALL - - ( - col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT ALL 8 + - col0 AS col0 FROM tab0
----
-7
-79
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT + COUNT( DISTINCT - ( col1 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6654
SELECT + COUNT ( DISTINCT - ( col1 ) ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - col0 NOT BETWEEN NULL AND ( + + col0 * + + 11 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - ( - 31 ) col2 FROM tab0
----
118
128
46

query I rowsort
SELECT DISTINCT - col2 + + 90 - - col0 FROM tab2
----
107
113
114

query I rowsort
SELECT - ( + col0 ) + col1 * ( - - col1 ) - - 75 AS col0 FROM tab0
----
-21
429
6621

query I rowsort
SELECT - + 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 9 AND - 11
----

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab2 cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - + col1 col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6663
SELECT - - 95 * + COUNT( * ) + 25 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT - - 95 * + COUNT ( * ) + 25 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + col1, + col2 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query II rowsort label-6665
SELECT col1 * col1 AS col1, + 63 DIV - col0 FROM tab1
----
196
-1
2209
0
25
0

skipif mysql # not compatible
query II rowsort label-6665
SELECT col1 * col1 AS col1, + 63 / - col0 FROM tab1
----
196
-1
2209
0
25
0

query I rowsort
SELECT + 11 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - + 93, col2 * 92 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT 24 * + + SUM( ALL - col0 ) FROM tab2
----
-4440

skipif mysql # not compatible
query I rowsort label-6668
SELECT 24 * + + SUM ( ALL - col0 ) FROM tab2
----
-4440

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 > + - 26 + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT ALL COUNT( col0 ) AS col1, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-6670
SELECT ALL COUNT ( col0 ) AS col1, + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT + MIN( ALL + 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6672
SELECT + MIN ( ALL + 35 ) FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT + MAX( + 71 ) AS col1 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6674
SELECT + MAX ( + 71 ) AS col1 FROM tab0 AS cor0
----
71

query I rowsort
SELECT - ( + 87 ) AS col2 FROM tab1 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, ( - col2 ) col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6677
SELECT + 80 AS col2, COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0 cor0
----
80
-9

skipif mysql # not compatible
query II rowsort label-6677
SELECT + 80 AS col2, COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 cor0
----
80
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT SUM( DISTINCT - - col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-6678
SELECT SUM ( DISTINCT - - col2 ) FROM tab1 cor0
----
223

query III rowsort
SELECT * FROM tab1 WHERE - + 23 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 - col2 * - - 60 FROM tab2
----
-1334
-2336
-3405

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6681
SELECT ALL CAST( + 49 AS SIGNED ) + + + 24 + - col2 + col2 DIV - col0 - - 25 * 49 AS col1 FROM tab2
----
1240
1258
1275

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL CAST ( + 49 AS INTEGER ) + + + 24 + - col2 + col2 / - col0 - - 25 * 49 AS col1 FROM tab2
----
1240
1258
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL MIN( - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL MIN ( - col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6683
SELECT DISTINCT 56 - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6683
SELECT DISTINCT 56 - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 + - 40 FROM tab1 AS cor0
----
-26
-35
7

query I rowsort
SELECT - 80 + - col2 AS col1 FROM tab1 AS cor0
----
-139
-148
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT - - COUNT( * ) * + 19 AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT - - COUNT ( * ) * + 19 AS col2 FROM tab1 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( ALL - 84 ) col1 FROM tab2 cor0 WHERE ( NULL ) < ( - col2 - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT - CAST( + - col0 AS SIGNED ) * - 71 AS col2 FROM tab2 AS cor0
----
-3266
-4544
-5325

skipif mysql # not compatible
query I rowsort label-6689
SELECT - CAST ( + - col0 AS INTEGER ) * - 71 AS col2 FROM tab2 AS cor0
----
-3266
-4544
-5325

query I rowsort
SELECT ALL 46 * + + 5 AS col0 FROM tab0 AS cor0
----
230
230
230

query I rowsort
SELECT - ( + 34 ) AS col2 FROM tab0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6692
SELECT MAX( + col1 ), + 62 AS col1 FROM tab1
----
47
62

skipif mysql # not compatible
query II rowsort label-6692
SELECT MAX ( + col1 ), + 62 AS col1 FROM tab1
----
47
62

query I rowsort
SELECT ALL - 67 * + - 34 AS col2 FROM tab0 AS cor0
----
2278
2278
2278

onlyif mysql # aggregate syntax: 
query III rowsort label-6694
SELECT - - COUNT( DISTINCT + col0 ) AS col1, - COUNT( * ), + 5 AS col2 FROM tab2 AS cor0
----
3
-3
5

skipif mysql # not compatible
query III rowsort label-6694
SELECT - - COUNT ( DISTINCT + col0 ) AS col1, - COUNT ( * ), + 5 AS col2 FROM tab2 AS cor0
----
3
-3
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT DISTINCT - + 85 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT - + 85 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 15 * - ( - 82 ) * - col1 * - col0 + - col0 + + 15 - + ( + 82 ) FROM tab1 AS cor0
----
522598
5260552
878102

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 + 67 > NULL
----

query I rowsort
SELECT + ( col0 ) * + - 49 AS col2 FROM tab2 AS cor0
----
-2254
-3136
-3675

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6700
SELECT DISTINCT col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) + - 33 BETWEEN NULL AND + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) + - 33 BETWEEN NULL AND + CAST ( NULL AS REAL )
----

query II rowsort
SELECT ALL col1 AS col0, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT 93 * - - SUM( col1 ) FROM tab2
----
18135

skipif mysql # not compatible
query I rowsort label-6702
SELECT 93 * - - SUM ( col1 ) FROM tab2
----
18135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 AS col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT 34 * - col2 AS col1 FROM tab2
----
-1360
-1972
-782

query II rowsort
SELECT ALL - 84, + col0 FROM tab1 AS cor0
----
-84
51
-84
85
-84
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL + - COUNT( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + - COUNT ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * + 61 * 62 + col0 AS col2 FROM tab2 AS cor0
----
192928
253469
291278

query I rowsort
SELECT DISTINCT 96 + - 97 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 67 / + 79 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT + col0 + + col0 DIV + 45 AS col0 FROM tab0 AS cor0
----
15
88
99

skipif mysql # not compatible
query I rowsort label-6710
SELECT + col0 + + col0 / + 45 AS col0 FROM tab0 AS cor0
----
15
88
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT DISTINCT + MIN( + 51 ), + ( + 30 ) AS col2 FROM tab1 AS cor0
----
51
30

skipif mysql # not compatible
query II rowsort label-6711
SELECT DISTINCT + MIN ( + 51 ), + ( + 30 ) AS col2 FROM tab1 AS cor0
----
51
30

query I rowsort
SELECT - 11 + ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-62
-78
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + - - col2 AS col1, + col0 col1 FROM tab0 AS cor0
----
196
97
62
15
97
87

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab1 cor0
----
71

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + col2 - + - ( + 83 ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 / col2 - - + col2 IS NULL
----

query I rowsort
SELECT ALL col2 + + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 54 - + 45 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT - MAX( - + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6720
SELECT - MAX ( - + col1 ) AS col2 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + col0 col1 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT - SUM( - col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6722
SELECT - SUM ( - col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT DISTINCT + COUNT( * ) AS col0, - 4 * 21 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0
-84

skipif mysql # not compatible
query II rowsort label-6723
SELECT DISTINCT + COUNT ( * ) AS col0, - 4 * 21 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT ALL - 17 DIV + col0 + + 12 AS col1 FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - 17 / + col0 + + 12 AS col1 FROM tab2
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT COUNT( ALL - ( - 47 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6725
SELECT COUNT ( ALL - ( - 47 ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT 63 - - MAX( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT 63 - - MAX ( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6727
SELECT DISTINCT - 64 AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-64
3

skipif mysql # not compatible
query II rowsort label-6727
SELECT DISTINCT - 64 AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-64
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL COUNT( * ) - + 32 + - COUNT( * ) FROM tab2 AS cor0 JOIN tab1 AS cor1 ON ( + 47 ) <= + 33
----
-32

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL COUNT ( * ) - + 32 + - COUNT ( * ) FROM tab2 AS cor0 JOIN tab1 AS cor1 ON ( + 47 ) <= + 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL SUM( + 53 ) * + COUNT( ALL + col0 ) FROM tab1
----
477

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL SUM ( + 53 ) * + COUNT ( ALL + col0 ) FROM tab1
----
477

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> ( col2 ) * + col2
----

query I rowsort
SELECT DISTINCT 99 * ( + col0 ) AS col1 FROM tab1 cor0
----
5049
8415
9009

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 32 BETWEEN - 97 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * col1 * + col2, col0 )
----

query I rowsort
SELECT DISTINCT + + 14 * + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
1190
1274
714

query I rowsort
SELECT - 84 * - 86 FROM tab2 AS cor0
----
7224
7224
7224

query I rowsort
SELECT DISTINCT + - 79 * 16 AS col2 FROM tab2 AS cor0
----
-1264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col0 FROM tab1
----
-65
-65
-65

query I rowsort
SELECT ALL - 64 * + col2 AS col2 FROM tab2
----
-1472
-2560
-3712

query I rowsort
SELECT col2 * - 24 * + col1 AS col1 FROM tab1
----
-32256
-7080
-76704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT ( AVG ( ALL - - 54 ) ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT ( AVG ( ALL - - 54 ) ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6743
SELECT ALL CAST( NULL AS SIGNED ) * + 43 AS col1, - COUNT( * ) AS col1 FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6743
SELECT ALL CAST ( NULL AS INTEGER ) * + 43 AS col1, - COUNT ( * ) AS col1 FROM tab2
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT DISTINCT 78 * + MAX( - col0 ) AS col1 FROM tab2
----
-3588

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT 78 * + MAX ( - col0 ) AS col1 FROM tab2
----
-3588

query I rowsort
SELECT DISTINCT - 16 * - + col1 FROM tab2 AS cor0
----
1072
1232
816

query I rowsort
SELECT - ( + col1 ) + - 33 + - col1 FROM tab2 cor0
----
-135
-167
-187

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( + - 4 = ( - col2 * - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT - ( 8 ) + + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
2
39
91

skipif mysql # not compatible
query I rowsort label-6748
SELECT - ( 8 ) + + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
2
39
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT ALL + col1 DIV col0 + col0 FROM tab0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + col1 / col0 + col0 FROM tab0
----
20
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6750
SELECT ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + + 10, - 97 AS col2 FROM tab2 AS cor0
----
10
-97
10
-97
10
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL + COUNT( * ) * + 50 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL + COUNT ( * ) * + 50 FROM tab2 AS cor0
----
150

query II rowsort
SELECT - ( 63 ) - - col1 AS col1, 98 * - col2 FROM tab0 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
-42
-980
-62
-9702
18
-4606

query I rowsort
SELECT - col2 - - + col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6755
SELECT ALL - COUNT( * ) * + 21 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - COUNT ( * ) * + 21 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT col1 - + + col2 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + + 15 )
----

query II rowsort
SELECT DISTINCT 96 - - col2 AS col1, - col1 * + + col1 FROM tab0
----
106
-441
143
-6561
195
-1

query III rowsort
SELECT * FROM tab0 WHERE - 15 >= ( + col0 )
----

query I rowsort
SELECT - 84 + + 92 AS col0 FROM tab2
----
8
8
8

query I rowsort
SELECT DISTINCT - col2 - 32 FROM tab0
----
-131
-42
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 70 * + col2 col0, col1 col0 FROM tab1 AS cor0
----
4130
5
4760
47
6720
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL + - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL + - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - 95 AS col1 FROM tab0 AS cor0
----
-1995
-7695
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT ALL 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-6766
SELECT ALL MIN ( ALL + col0 ) col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + MAX( + 99 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6767
SELECT + MAX ( + 99 ) FROM tab2 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( 5 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT + col1 * CAST( NULL AS SIGNED ) / + - 80 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT + col1 * CAST ( NULL AS INTEGER ) / + - 80 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6772
SELECT ALL - ( - ( - 91 ) ) * 36 AS col0, 19 - + + COUNT( * ) - - + COUNT( * ) * COUNT( - col2 ) FROM tab1
----
-3276
25

skipif mysql # not compatible
query II rowsort label-6772
SELECT ALL - ( - ( - 91 ) ) * 36 AS col0, 19 - + + COUNT ( * ) - - + COUNT ( * ) * COUNT ( - col2 ) FROM tab1
----
-3276
25

query I rowsort
SELECT - 54 + - col1 AS col0 FROM tab2
----
-105
-121
-131

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE 90 / + ( + + 81 ) * + col2 IS NULL
----

query I rowsort
SELECT ALL + 9 * col0 AS col2 FROM tab1
----
459
765
819

query II rowsort
SELECT DISTINCT col0 * col1, col0 + 37 * - 7 AS col2 FROM tab0
----
1215
-244
1827
-172
97
-162

query I rowsort
SELECT DISTINCT - col2 * + + col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6778
SELECT * FROM tab2 WHERE NOT - 77 + + col0 + - CAST( NULL AS DECIMAL ) IN ( + + col0 * - + col2, col1, + + CAST( - - col2 AS DECIMAL ) * - col2, - + ( - ( col2 ) ) )
----

skipif mysql # not compatible
query III rowsort label-6778
SELECT * FROM tab2 WHERE NOT - 77 + + col0 + - CAST ( NULL AS REAL ) IN ( + + col0 * - + col2, col1, + + CAST ( - - col2 AS REAL ) * - col2, - + ( - ( col2 ) ) )
----

query II rowsort
SELECT DISTINCT col2 * - col0, + col2 FROM tab0
----
-705
47
-870
10
-9603
99

query I rowsort
SELECT - col2 * col1 + + 17 AS col1 FROM tab1
----
-1327
-278
-3179

query I rowsort
SELECT 93 + - - col2 AS col0 FROM tab1
----
152
161
189

query I rowsort
SELECT - col2 + 91 AS col2 FROM tab0
----
-8
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT COUNT( DISTINCT col0 ) + 77 AS col1 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-6783
SELECT COUNT ( DISTINCT col0 ) + 77 AS col1 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL ( + + MAX( DISTINCT + col0 ) ) - + 11 AS col0 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL ( + + MAX ( DISTINCT + col0 ) ) - + 11 AS col0 FROM tab1
----
80

query I rowsort
SELECT + ( + col1 ) + - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 <> 23
----

query I rowsort
SELECT + 16 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( - - col0 ) * + + 9 FROM tab2 AS cor0
----
414
576
675

query I rowsort
SELECT DISTINCT col2 + - + 70 * + - col2 AS col2 FROM tab2 cor0
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL + - MIN( DISTINCT - 47 ) + - 33 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL + - MIN ( DISTINCT - 47 ) + - 33 FROM tab1 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + 95 * - ( - 76 ) * - + col2 + + - 18 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT - 7 DIV - 1 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6793
SELECT - 7 / - 1 FROM tab0
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT DISTINCT + - MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE 30 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT + - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE 30 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 - 58 FROM tab2
----
-7
19
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, ( + - col0 ) FROM tab1
----
-14
-51
-47
-91
-5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT DISTINCT + col2 DIV - - col0 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + col2 / - - col0 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT ( - + col2 ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT - 66 + + 38 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6800
SELECT DISTINCT SUM( ALL + ( + - col2 ) ) AS col2, CAST( 58 AS SIGNED ) FROM tab2 AS cor0
----
-121
58

skipif mysql # not compatible
query II rowsort label-6800
SELECT DISTINCT SUM ( ALL + ( + - col2 ) ) AS col2, CAST ( 58 AS INTEGER ) FROM tab2 AS cor0
----
-121
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT ALL + 48 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + CAST( 53 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL + 48 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + CAST ( 53 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL COUNT( ALL + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL COUNT ( ALL + col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL 94 - - 88 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 6 * col2 + 87 col1 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-195
-507
27

query I rowsort
SELECT ALL - ( + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + 46 * - col2 FROM tab0
----
-2162
-4554
-460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 * 99 col2 FROM tab2
----
4257

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 64 BETWEEN NULL AND + - 56 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT ALL col0 DIV - + col2 + - - 55 + + col2 - col1 + col1 FROM tab0
----
102
154
57

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL col0 / - + col2 + - - 55 + + col2 - col1 + col1 FROM tab0
----
102
154
57

query I rowsort
SELECT - 12 * + ( 42 ) FROM tab1
----
-504
-504
-504

query I rowsort
SELECT DISTINCT ( 26 ) + + col0 AS col1 FROM tab2
----
101
72
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 84 col2 FROM tab1
----
4956
5712
8064

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6813
SELECT * FROM tab0 WHERE - col1 * - + CAST( + col2 AS SIGNED ) * - col2 + + - 10 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6813
SELECT * FROM tab0 WHERE - col1 * - + CAST ( + col2 AS INTEGER ) * - col2 + + - 10 IS NULL
----

query I rowsort
SELECT ALL 80 + + col0 - + 43 FROM tab1
----
122
128
88

query I rowsort
SELECT - + col2 * ( - col2 ) * - col2 * col1 + 92 FROM tab0 AS cor0
----
-20908
-8409571
-970207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT COUNT( * ) + + 87 DIV - 16 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6816
SELECT COUNT ( * ) + + 87 / - 16 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + + col0 NOT BETWEEN - col2 AND + - col2
----

query I rowsort
SELECT DISTINCT col0 + + col0 - + - col2 * + - 15 AS col2 FROM tab0
----
-1291
-675
24

query II rowsort
SELECT DISTINCT - + 50 AS col0, ( - + col0 ) / - - col1 - + ( 99 ) * - col2 * - + ( + col2 ) * - - col2 FROM tab1 WHERE NOT + 75 BETWEEN - ( col0 ) AND NULL
----

query I rowsort
SELECT + - 77 - 57 FROM tab1 AS cor0
----
-134
-134
-134

query I rowsort
SELECT DISTINCT - - col2 - + - 62 FROM tab0 AS cor0
----
109
161
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6822
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST( + 75 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6822
SELECT DISTINCT * FROM tab2 cor0 WHERE CAST ( + 75 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + 58 * + + ( col2 ) AS col1 FROM tab1 AS cor0
----
3422
3944
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + - 11 col2 FROM tab1 AS cor0
----
107
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT + + 83 * - 48 + SUM( ALL + 27 ) * + 65 FROM tab0 AS cor0
----
1281

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + + 83 * - 48 + SUM ( ALL + 27 ) * + 65 FROM tab0 AS cor0
----
1281

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 49 * col2 * + col2 < + 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT MAX( + col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6827
SELECT MAX ( + col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL + MAX( + + col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6828
SELECT ALL + MAX ( + + col0 ) col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 WHERE NOT - col2 + - col0 = 47
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6830
SELECT ALL + col0 DIV + + 52, - 49 AS col0 FROM tab0
----
0
-49
1
-49
1
-49

skipif mysql # not compatible
query II rowsort label-6830
SELECT ALL + col0 / + + 52, - 49 AS col0 FROM tab0
----
0
-49
1
-49
1
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT ALL - MAX( - - col2 ) AS col2, 72 + COUNT( * ) AS col1 FROM tab2
----
-58
75

skipif mysql # not compatible
query II rowsort label-6831
SELECT ALL - MAX ( - - col2 ) AS col2, 72 + COUNT ( * ) AS col1 FROM tab2
----
-58
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6832
SELECT DISTINCT 71 DIV - - COUNT( * ) AS col1 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT 71 / - - COUNT ( * ) AS col1 FROM tab0
----
23

query I rowsort
SELECT ALL AVG ( DISTINCT col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ALL + - COUNT( * ) * + + 7 FROM tab1 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + - COUNT ( * ) * + + 7 FROM tab1 cor0
----
-21

query II rowsort
SELECT DISTINCT - 40 AS col0, col1 AS col2 FROM tab0
----
-40
1
-40
21
-40
81

query I rowsort
SELECT 25 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT 62 + - 50 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT 62 + - 50 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT DISTINCT - + 0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT - 26 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT - 26 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= - 37
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT - + COUNT( * ) + - 41 * COUNT( * ) DIV 69 AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6841
SELECT - + COUNT ( * ) + - 41 * COUNT ( * ) / 69 AS col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT + + 49 + + col2 FROM tab2 AS cor0
----
107
72
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6843
SELECT DISTINCT col1 + - 69 + - col1 / + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT col1 + - 69 + - col1 / + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6844
SELECT - col0 DIV + col2 col2, col0 + - 49 DIV + - col1 FROM tab2
----
-1
64
-1
75
-2
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6844
SELECT - col0 / + col2 col2, col0 + - 49 / + - col1 FROM tab2
----
-1
64
-1
75
-2
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT SUM( ALL + - 67 ) * - COUNT( * ) AS col2 FROM tab0
----
603

skipif mysql # not compatible
query I rowsort label-6845
SELECT SUM ( ALL + - 67 ) * - COUNT ( * ) AS col2 FROM tab0
----
603

query I rowsort
SELECT - - ( + col2 ) FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT - 85 + + + COUNT( ALL - + col2 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT - 85 + + + COUNT ( ALL - + col2 ) FROM tab1 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + + + 55 col0 FROM tab2
----
75
75
75

query I rowsort
SELECT DISTINCT + + 90 - 88 * + col0 FROM tab1 AS cor0
----
-4398
-7390
-7918

query I rowsort
SELECT DISTINCT 13 * + 77 AS col1 FROM tab0 AS cor0
----
1001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT ALL + + 9 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + + 9 / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6854
SELECT col2 AS col0 FROM tab0 WHERE NOT - 26 * - ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6854
SELECT col2 AS col0 FROM tab0 WHERE NOT - 26 * - ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6855
SELECT COUNT( * ) DIV 15 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6855
SELECT COUNT ( * ) / 15 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT + MIN( ALL 54 ) col1 FROM tab1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6856
SELECT + MIN ( ALL 54 ) col1 FROM tab1
----
54

query II rowsort
SELECT DISTINCT + 40, + 97 AS col0 FROM tab2
----
40
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6858
SELECT ALL + 81, col0 / - - CAST( NULL AS SIGNED ) * - 75 AS col2 FROM tab1
----
81
NULL
81
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6858
SELECT ALL + 81, col0 / - - CAST ( NULL AS INTEGER ) * - 75 AS col2 FROM tab1
----
81
NULL
81
NULL
81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab1
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT DISTINCT COUNT( * ) AS col2, + ( 36 ) AS col1 FROM tab0
----
3
36

skipif mysql # not compatible
query II rowsort label-6860
SELECT DISTINCT COUNT ( * ) AS col2, + ( 36 ) AS col1 FROM tab0
----
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL - MIN( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - MIN ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 > NULL
----

query I rowsort
SELECT ALL - col2 * + + 45 FROM tab0 AS cor0
----
-2115
-4455
-450

query I rowsort
SELECT col2 * ( + 2 ) * + + 63 * + + col0 FROM tab1 AS cor0
----
616896
631890
779688

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + + COUNT( * ) * + 37 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-6865
SELECT + + COUNT ( * ) * + 37 FROM tab0 AS cor0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6866
SELECT - COUNT( * ) DIV - - 16 + - - CAST( + MAX( + + 54 ) AS SIGNED ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6866
SELECT - COUNT ( * ) / - - 16 + - - CAST ( + MAX ( + + 54 ) AS INTEGER ) AS col0 FROM tab1
----
54

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + col0 * - + col2 - + 2 FROM tab0 AS cor0
----
-707
-872
-9605

query I rowsort
SELECT ALL col1 + + ( - col2 ) FROM tab2
----
28
37
9

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 * + col2 + - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 * + col2 + - col2 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 53, col1 col2 FROM tab1
----
-53
14
-53
47
-53
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 17 * - 69 col2 FROM tab1 WHERE 72 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 15 + - - col2 + - + col2 AS col2 FROM tab1
----
-15

query I rowsort
SELECT ALL + - 62 FROM tab0 WHERE NULL <> + 64 - - 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT ALL - CAST( + - col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL - CAST ( + - col2 AS INTEGER ) FROM tab0
----
10
47
99

query I rowsort
SELECT col2 + - + 54 * + 70 FROM tab0
----
-3681
-3733
-3770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 * + col0 col1 FROM tab1
----
-1938
-3230
-3458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT CAST( - + col1 AS SIGNED ) + + + col0 FROM tab1 cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-6879
SELECT CAST ( - + col1 AS INTEGER ) + + + col0 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT + + col2 + ( 43 ) FROM tab0 AS cor0
----
142
53
90

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE 55 * - + col0 IS NULL
----

query I rowsort
SELECT ALL 59 + + col1 AS col1 FROM tab0
----
140
60
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT DISTINCT 2 * ( + MIN( - 30 ) ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-60

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT 2 * ( + MIN ( - 30 ) ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT + 80 AS col0 FROM tab2 WHERE NOT + col0 < CAST( NULL AS SIGNED ) * - - col2 + + - col0 - + 58
----

skipif mysql # not compatible
query I rowsort label-6884
SELECT + 80 AS col0 FROM tab2 WHERE NOT + col0 < CAST ( NULL AS INTEGER ) * - - col2 + + - col0 - + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL + + 16 * + COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL + + 16 * + COUNT ( * ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT + col1 * col1 + - 29 * - + col1 * + 84 FROM tab2 AS cor0
----
126837
167701
193501

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> ( 59 )
----

query II rowsort
SELECT ALL - - col2 AS col2, - ( - 42 ) AS col1 FROM tab0 WHERE NOT + col2 < - + 51
----
10
42
47
42
99
42

query I rowsort
SELECT DISTINCT 10 * - 46 FROM tab2
----
-460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6891
SELECT COUNT( * ) DIV - - 75 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6891
SELECT COUNT ( * ) / - - 75 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT - SUM( ALL + col1 ) * - 57 FROM tab0 AS cor0
----
5871

skipif mysql # not compatible
query I rowsort label-6893
SELECT - SUM ( ALL + col1 ) * - 57 FROM tab0 AS cor0
----
5871

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 9 * + + col0 FROM tab2 AS cor0
----
-414
-576
-675

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 2 IN ( + col2, col1 - - + 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6897
SELECT ALL col1 DIV 31 * - + 27 + + 21 AS col1 FROM tab2 AS cor0
----
-33
-33
-6

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL col1 / 31 * - + 27 + + 21 AS col1 FROM tab2 AS cor0
----
-33
-33
-6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 31 BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > + 29 + 86
----

query II rowsort
SELECT - 84 * + col0, col0 AS col1 FROM tab1
----
-4284
51
-7140
85
-7644
91

query I rowsort
SELECT - col1 * + + col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL 84 * col2 * + 62 AS col1 FROM tab2
----
119784
208320
302064

query II rowsort
SELECT - col1, - 68 AS col2 FROM tab1 AS cor0
----
-14
-68
-47
-68
-5
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL COUNT( col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL COUNT ( col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 68 + - col2 AS col0 FROM tab1 AS cor0
----
-28
0
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, ( - col2 ) * - - 95 col1 FROM tab0 cor0
----
-15
-4465
-87
-950
-97
-9405

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 - + 62 + col1 * + col1 > - col1 * - col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT + MAX( - - col2 ) * ( + AVG ( ALL - col0 ) ) FROM tab0 WHERE + 80 + + 37 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT + MAX ( - - col2 ) * ( + AVG ( ALL - col0 ) ) FROM tab0 WHERE + 80 + + 37 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6909
SELECT DISTINCT CAST( + 31 AS SIGNED ) - + + col2, 17 col2 FROM tab1
----
-28
17
-37
17
-65
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6909
SELECT DISTINCT CAST ( + 31 AS INTEGER ) - + + col2, 17 col2 FROM tab1
----
-28
17
-37
17
-65
17

query I rowsort
SELECT ALL 60 * - col0 * + col1 * - - col1 + - 60 AS col2 FROM tab2
----
-20200560
-22767420
-7178820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6911
SELECT ( - - 78 ) AS col1, col1 * CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
78
196
78
2209
78
25

skipif mysql # not compatible
query II rowsort label-6911
SELECT ( - - 78 ) AS col1, col1 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
78
196
78
2209
78
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT CAST( NULL AS SIGNED ) * 93 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT CAST ( NULL AS INTEGER ) * 93 * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL MIN( + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL MIN ( + col1 ) FROM tab2
----
51

query I rowsort
SELECT ALL col2 * - 80 FROM tab1 cor0
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT + SUM( + 11 ) AS col0 FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-6915
SELECT + SUM ( + 11 ) AS col0 FROM tab2 cor0
----
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT 72 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col2 FROM tab0 cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT - col2 * + col0, col2 + - col1 AS col2 FROM tab0
----
-705
-34
-870
-11
-9603
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT DISTINCT col2 * col1 DIV + 80 FROM tab0
----
1
2
47

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT col2 * col1 / + 80 FROM tab0
----
1
2
47

query I rowsort
SELECT + 53 * 16 FROM tab1
----
848
848
848

query II rowsort
SELECT ALL - col0 * + col2, - col0 AS col2 FROM tab1
----
-4896
-51
-5015
-85
-6188
-91

query I rowsort
SELECT DISTINCT + + 51 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT - - 2 * - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6925
SELECT - - 2 * - COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT ALL + col0 + + 50 AS col0 FROM tab1 AS cor0
----
101
135
141

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / - - col1 IS NULL
----

query I rowsort
SELECT ALL + col0 * + ( - col2 ) + - 82 AS col0 FROM tab1 AS cor0
----
-4978
-5097
-6270

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL - ( - COUNT( * ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - ( - COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT - 75 + - SUM( ALL - - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT - 75 + - SUM ( ALL - - col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + 19 ) col2 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT - COUNT( + - 37 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6933
SELECT - COUNT ( + - 37 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + col2 - - 93 + + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
291
313
3947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 + col1 col0 FROM tab2 AS cor0
----
-22
-32
-48

query I rowsort
SELECT col0 - - - col1 AS col2 FROM tab2
----
-13
-5
8

query II rowsort
SELECT + 26 - - 29, col0 AS col0 FROM tab0
----
55
15
55
87
55
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6938
SELECT ALL 66 - + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL 66 - + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6939
SELECT 31 * - + COUNT( * ) + - CAST( + 18 AS SIGNED ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-6939
SELECT 31 * - + COUNT ( * ) + - CAST ( + 18 AS INTEGER ) FROM tab0
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 - col0 col1 FROM tab2
----
-34
-52
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 AS col1, 82 + + 70 col2 FROM tab1
----
88
152
88
152
88
152

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + + 75 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= 34 * + 64
----

query I rowsort
SELECT ALL - ( + 96 ) + ( + + 44 ) FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6945
SELECT - - MAX( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6945
SELECT - - MAX ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6946
SELECT + COUNT( * ) AS col2, + 5 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
8

skipif mysql # not compatible
query II rowsort label-6946
SELECT + COUNT ( * ) AS col2, + 5 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT DISTINCT - + col0 DIV ( - col1 ) AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - + col0 / ( - col1 ) AS col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + + 31 FROM tab1 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT + SUM( ALL - col0 ) col2 FROM tab0 cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6949
SELECT + SUM ( ALL - col0 ) col2 FROM tab0 cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6950
SELECT + ( col0 ) AS col1, ( + - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6950
SELECT + ( col0 ) AS col1, ( + - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT - + 41 AS col0 FROM tab2 AS cor0
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-6952
SELECT + - col1 AS col1, - 94 DIV col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-94
-21
-4
-81
-1

skipif mysql # not compatible
query II rowsort label-6952
SELECT + - col1 AS col1, - 94 / col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-94
-21
-4
-81
-1

query I rowsort
SELECT ALL - 79 AS col0 FROM tab0, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col1 FROM tab0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT + col0 DIV - - col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6955
SELECT + col0 / - - col1 FROM tab1
----
1
17
3

query I rowsort
SELECT ALL - col2 + + 74 AS col1 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT ALL - 40 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE col0 IN ( - col2 * 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - 1 + + COUNT( * ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6961
SELECT - 1 + + COUNT ( * ) FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6962
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + 36 * + COUNT( * ) + + COUNT( * ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-6963
SELECT + 36 * + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6964
SELECT - COUNT( * ) + MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT - COUNT ( * ) + MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT 44 * + MIN( col0 ) + 63 * MAX( DISTINCT + col0 ) FROM tab0
----
6771

skipif mysql # not compatible
query I rowsort label-6965
SELECT 44 * + MIN ( col0 ) + 63 * MAX ( DISTINCT + col0 ) FROM tab0
----
6771

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT DISTINCT 19 DIV col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT 19 / col2 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT ALL MIN( DISTINCT 8 ) AS col0 FROM tab1 WHERE - col0 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL MIN ( DISTINCT 8 ) AS col0 FROM tab1 WHERE - col0 >= col2
----
NULL

query I rowsort
SELECT DISTINCT - col1 - col0 * - col0 FROM tab0
----
144
7548
9408

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT + col2 * - 97 AS col0 FROM tab2
----
-2231
-3880
-5626

query I rowsort
SELECT ALL - 28 FROM tab0 WHERE 95 <> col0
----
-28
-28
-28

query I rowsort
SELECT col2 FROM tab0 WHERE ( - 90 * + 80 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 98 + + 11 AS col2 FROM tab0
----
-87
-87
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT - COUNT( * ) * - CAST( - 64 AS SIGNED ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-6974
SELECT - COUNT ( * ) * - CAST ( - 64 AS INTEGER ) FROM tab2
----
-192

query I rowsort
SELECT ALL 60 + + col2 FROM tab2
----
100
118
83

query I rowsort
SELECT col1 + 54 FROM tab0
----
135
55
75

query I rowsort
SELECT DISTINCT col2 * + 96 AS col1 FROM tab0
----
4512
9504
960

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6978
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT COUNT( * ) - + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6981
SELECT COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 * 38 FROM tab2
----
-1938
-2546
-2926

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 63 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT DISTINCT - MIN( - 83 ) * 8 AS col2 FROM tab2
----
664

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT - MIN ( - 83 ) * 8 AS col2 FROM tab2
----
664

onlyif mysql # DIV for integer division: 
query I rowsort label-6985
SELECT DISTINCT ( col2 ) DIV + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT ( col2 ) / + col0 FROM tab1
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 > - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL + COUNT( * ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6987
SELECT ALL + COUNT ( * ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col2 * - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6989
SELECT + COUNT( * ) DIV - ( CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6989
SELECT + COUNT ( * ) / - ( CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1
----
1

query I rowsort
SELECT - col1 * col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( 89 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE ( col1 ) BETWEEN 84 * 32 + col2 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT DISTINCT ( - COUNT( * ) ) + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT ( - COUNT ( * ) ) + COUNT ( * ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 73 - - col0 * 38 col2 FROM tab1
----
27
2865
916

onlyif mysql # DIV for integer division: 
query I rowsort label-6994
SELECT + col1 DIV - 22 FROM tab2
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-6994
SELECT + col1 / - 22 FROM tab2
----
-2
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL - COUNT( * ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6995
SELECT ALL - COUNT ( * ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6996
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * ( 58 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6999
SELECT DISTINCT - COUNT( * ) DIV - 18 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT - COUNT ( * ) / - 18 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ( 8 ) + + MAX( ALL 49 + 51 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
108

skipif mysql # not compatible
query I rowsort label-7000
SELECT ( 8 ) + + MAX ( ALL 49 + 51 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
108

query I rowsort
SELECT col1 * 62 AS col0 FROM tab0
----
1302
5022
62

query I rowsort
SELECT DISTINCT - 31 * ( col1 * - 12 ) FROM tab0
----
30132
372
7812

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 87 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 96 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 96 IS NOT NULL
----
-3

query I rowsort
SELECT 25 AS col2 FROM tab2 AS cor0 WHERE NOT + 23 <> col2 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7006
SELECT SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT DISTINCT - CAST( 86 AS SIGNED ) + - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0 WHERE ( - 98 * - col1 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7007
SELECT DISTINCT - CAST ( 86 AS INTEGER ) + - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0 WHERE ( - 98 * - col1 ) IS NULL
----

query I rowsort
SELECT - 86 * col0 AS col1 FROM tab2 AS cor0
----
-3956
-5504
-6450

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col1 + col2 )
----

query I rowsort
SELECT 40 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7011
SELECT DISTINCT - + col1 + 94 DIV + col2 AS col2 FROM tab2 AS cor0
----
-47
-66
-75

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT - + col1 + 94 / + col2 AS col2 FROM tab2 AS cor0
----
-47
-66
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 * 94 col2 FROM tab2 AS cor0
----
3102
3102
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - MIN( ALL - col0 ) * MIN( col1 + col1 ) AS col0 FROM tab0
----
194

skipif mysql # not compatible
query I rowsort label-7013
SELECT - MIN ( ALL - col0 ) * MIN ( col1 + col1 ) AS col0 FROM tab0
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT MAX( ALL col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7014
SELECT MAX ( ALL col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT DISTINCT - ( - COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7015
SELECT DISTINCT - ( - COUNT ( * ) ) col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - 56 + + + 1 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + COUNT( * ) + + 27 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7018
SELECT + COUNT ( * ) + + 27 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - col1 col1 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT ALL + 35 * + col2 FROM tab1 cor0 WHERE NOT - 49 IS NOT NULL
----

query I rowsort
SELECT + 12 + + col0 AS col0 FROM tab1 AS cor0
----
103
63
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL - COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

query I rowsort
SELECT ALL - 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT 31 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT + + 87 / col0 * - ( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT + + 87 / col0 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + + 10 ) - col2 AS col1 FROM tab2 AS cor0
----
-33
-50
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7029
SELECT - CAST( NULL AS SIGNED ) / - col0 + col1 AS col0 FROM tab1 cor0 WHERE col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-7029
SELECT - CAST ( NULL AS INTEGER ) / - col0 + col1 AS col0 FROM tab1 cor0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT + + 1 AS col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - + col0 col1 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT + - 84 - col0 FROM tab0 AS cor0
----
-171
-181
-99

query I rowsort
SELECT DISTINCT + col0 * col2 * + 10 * col2 FROM tab0 AS cor0
----
331350
87000
9506970

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 / 46 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 / 46 * col2 IS NOT NULL
----
0

query I rowsort
SELECT - 81 - - 6 + - 75 FROM tab1 AS cor0
----
-150
-150
-150

query I rowsort
SELECT ALL + col2 * 54 AS col0 FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT DISTINCT - col1 * col0 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT - col1 * col0 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 91 - + ( - col1 ) FROM tab0 AS cor0
----
-10
-70
-90

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7040
SELECT 10 + + 29 DIV - + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7040
SELECT 10 + + 29 / - + COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT - col0 + + col1 - + col1 * - col2 AS col0 FROM tab2
----
1178
3093
3878

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL ( - ( COUNT( * ) ) ) + - 70 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL ( - ( COUNT ( * ) ) ) + - 70 FROM tab0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7043
SELECT ALL - SUM( ALL CAST( NULL AS DECIMAL ) ) + COUNT( * ) * - 27 AS col1 FROM tab2 WHERE NOT - col0 NOT BETWEEN + ( col1 ) AND + 52 AND NOT ( col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL - SUM ( ALL CAST ( NULL AS REAL ) ) + COUNT ( * ) * - 27 AS col1 FROM tab2 WHERE NOT - col0 NOT BETWEEN + ( col1 ) AND + 52 AND NOT ( col1 ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 22 + + - 59 ) >= ( - 29 ) * + 16 - + 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + col1 - - col1 FROM tab1 WHERE NULL IS NULL
----
185
79
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 * + col2 ) BETWEEN NULL AND + col1
----

query I rowsort
SELECT - ( - 34 ) AS col1 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT + 23 * + + col2 FROM tab0 AS cor0
----
1081
2277
230

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT COUNT( DISTINCT - 17 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT COUNT ( DISTINCT - 17 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - - col2 * + col2, - col0 * + col0 AS col1 FROM tab1 AS cor0
----
3481
-7225
4624
-8281
9216
-2601

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7051
SELECT ALL + 0 DIV - - col2 - + CAST( - + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL + 0 / - - col2 - + CAST ( - + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL + - AVG ( col2 ) FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7053
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) < NULL
----
0

query II rowsort
SELECT + 57, - col1 * col0 AS col0 FROM tab1 cor0
----
57
-425
57
-4277
57
-714

query I rowsort
SELECT ALL - + col1 * - 51 + col2 FROM tab0 AS cor0
----
1081
150
4178

query I rowsort
SELECT - col1 + - 53 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col1 * 52 - col2 AND ( + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT COUNT( ALL - col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7057
SELECT COUNT ( ALL - col1 ) FROM tab1 cor0
----
3

query II rowsort
SELECT + 42 AS col2, - 44 * col1 AS col0 FROM tab0 AS cor0
----
42
-3564
42
-44
42
-924

query I rowsort
SELECT ( 45 ) AS col2 FROM tab2 AS cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7062
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7062
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7063
SELECT ALL MAX( ALL col0 ) / - 83 + - 7 * 81 AS col1 FROM tab2 WHERE NOT ( - CAST( NULL AS DECIMAL ) * + col0 ) >= - col0 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL MAX ( ALL col0 ) / - 83 + - 7 * 81 AS col1 FROM tab2 WHERE NOT ( - CAST ( NULL AS REAL ) * + col0 ) >= - col0 * - col2
----
NULL

query I rowsort
SELECT DISTINCT ( + + col1 ) + + col1 FROM tab2
----
102
134
154

query I rowsort
SELECT col1 * 79 + col1 FROM tab0
----
1680
6480
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT - 64 + + COUNT( * ) AS col0 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-7066
SELECT - 64 + + COUNT ( * ) AS col0 FROM tab2
----
-61

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - col0 / - - 36 * - ( + 63 ) )
----

query I rowsort
SELECT ALL + 89 AS col2 FROM tab2 WHERE NOT + col2 * + 47 > + + 70
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 51
----

query I rowsort
SELECT ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( 35 + ( - col0 ) ) IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT - col1 + - col2, col0 * 70 AS col0 FROM tab1
----
-110
3570
-115
6370
-64
5950

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL - + 25 * + - ( ( COUNT( * ) ) ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - + 25 * + - ( ( COUNT ( * ) ) ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT - - ( + - ( - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + - 57 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT - - ( + - ( - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + - 57 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( col0 ) * + 27 FROM tab2 cor0
----
-1242
-1728
-2025

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT DISTINCT col0 DIV + + 32 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT col0 / + + 32 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + COUNT( * ) * + 6 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT + COUNT ( * ) * + 6 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT - 60 * col0, + col0 AS col0 FROM tab1 AS cor0
----
-3060
51
-5100
85
-5460
91

query I rowsort
SELECT 0 * + - ( - col2 ) * + + 85 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 / 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7080
SELECT + 36 DIV COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7080
SELECT + 36 / COUNT ( * ) AS col2 FROM tab1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7081
SELECT - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT DISTINCT - SUM( col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT - SUM ( col0 ) FROM tab0
----
-199

query I rowsort
SELECT ALL 82 * col1 * - 39 FROM tab2
----
-163098
-214266
-246246

query I rowsort
SELECT ALL col1 + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT - SUM( ALL - 87 ) AS col2 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-7085
SELECT - SUM ( ALL - 87 ) AS col2 FROM tab2 AS cor0
----
261

query III rowsort
SELECT * FROM tab2 WHERE NOT 28 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 56 col0 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7088
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7089
SELECT + + MAX( DISTINCT + col0 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-7089
SELECT + + MAX ( DISTINCT + col0 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT - - MAX( ALL - ( + ( - 27 ) ) ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7090
SELECT - - MAX ( ALL - ( + ( - 27 ) ) ) AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT - col0 * + 41 + - col2 AS col2 FROM tab1 cor0
----
-2187
-3544
-3799

query I rowsort
SELECT + - 85 AS col1 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL col0 + - - col0 AS col2 FROM tab1
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 - + col0 col1 FROM tab0
----
-129
-177
-99

query I rowsort
SELECT col0 + - 23 AS col1 FROM tab2
----
23
41
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT - SUM( col1 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7096
SELECT DISTINCT - SUM ( col1 ) col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT 82 AS col0 FROM tab1 AS cor0 WHERE - 97 IS NULL
----

query II rowsort
SELECT ALL 60 + - 71 + - col0 * + + col2, + 98 AS col2 FROM tab1
----
-4907
98
-5026
98
-6199
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT COUNT( DISTINCT 54 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7099
SELECT COUNT ( DISTINCT 54 ) AS col0 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7100
SELECT DISTINCT col2 AS col0, ( - col0 ) DIV + ( + col0 ) + + col1 + + col2 + - col1 AS col0 FROM tab1
----
59
58
68
67
96
95

skipif mysql # not compatible
query II rowsort label-7100
SELECT DISTINCT col2 AS col0, ( - col0 ) / + ( + col0 ) + + col1 + + col2 + - col1 AS col0 FROM tab1
----
59
58
68
67
96
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT COUNT( * ) * 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
198

skipif mysql # not compatible
query I rowsort label-7101
SELECT COUNT ( * ) * 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
198

query I rowsort
SELECT - col1 - + + col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT + 66 - - 69 FROM tab1 AS cor0
----
135
135
135

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL ( - - 55 ) FROM tab1 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT ( 65 * - col0 ) <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7106
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT ( 65 * - col0 ) <> + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( + - col2 ) col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT DISTINCT col0 * 43 + + col1 FROM tab0 WHERE NOT - 64 IS NULL
----
3762
4172
726

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <= + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 50 ) AS col0 FROM tab0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT + CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT - + 58 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
-58
-58
-58

query II rowsort
SELECT DISTINCT + + col0 * - col0 AS col1, - ( col1 ) FROM tab1 AS cor0
----
-2601
-14
-7225
-5
-8281
-47

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL - ( + ( COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - ( + ( COUNT ( * ) ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 * - ( + col0 ) AS col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - col0 NOT BETWEEN - + col1 * + 99 AND NULL
----

query I rowsort
SELECT DISTINCT + 33 * col2 FROM tab1
----
1947
2244
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7120
SELECT - - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT - col0 AS col2, - ( - 74 ) AS col0 FROM tab1
----
-51
74
-85
74
-91
74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 > ( NULL )
----

query I rowsort
SELECT + 33 + - col1 - + + col0 * - - 68 * + col1 FROM tab2 AS cor0
----
-159546
-335148
-341734

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL MIN( 86 ) FROM tab2 cor0
----
86

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL MIN ( 86 ) FROM tab2 cor0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7125
SELECT ALL - - COUNT( * ) AS col2, ( - + 22 ) FROM tab1 AS cor0
----
3
-22

skipif mysql # not compatible
query II rowsort label-7125
SELECT ALL - - COUNT ( * ) AS col2, ( - + 22 ) FROM tab1 AS cor0
----
3
-22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + 46 / 28
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7127
SELECT DISTINCT - 42 + - 36 DIV - + 65 AS col1, COUNT( - - col1 ) AS col2 FROM tab2 cor0
----
-42
3

skipif mysql # not compatible
query II rowsort label-7127
SELECT DISTINCT - 42 + - 36 / - + 65 AS col1, COUNT ( - - col1 ) AS col2 FROM tab2 cor0
----
-42
3

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 27 AND ( + + col0 / - col0 - 17 )
----

query I rowsort
SELECT ALL - col2 * + col1 + - col0 FROM tab2
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT ( COUNT( DISTINCT col2 ) ) col2 FROM tab0 WHERE 26 + + - col1 / + ( + 25 ) > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7130
SELECT DISTINCT ( COUNT ( DISTINCT col2 ) ) col2 FROM tab0 WHERE 26 + + - col1 / + ( + 25 ) > NULL
----
0

query I rowsort
SELECT + col1 * + - 78 AS col2 FROM tab1
----
-1092
-3666
-390

query II rowsort
SELECT - 84 * col0, col1 AS col2 FROM tab1
----
-4284
14
-7140
5
-7644
47

query I rowsort
SELECT + 32 * + col0 AS col1 FROM tab2
----
1472
2048
2400

query I rowsort
SELECT DISTINCT - col2 + - 41 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col0 * + col2 AND col2
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 >= - 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT ALL + col1 / - 71 * + 4 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + col1 / - 71 * + 4 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7137
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( CAST( col1 AS SIGNED ), - 48 * col0 + + - col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-7137
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( CAST ( col1 AS INTEGER ), - 48 * col0 + + - col1, col0 )
----

query I rowsort
SELECT ALL col0 + - 83 FROM tab1
----
-32
2
8

query I rowsort
SELECT - 23 + - 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL - COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL - COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7141
SELECT - + COUNT( * ) AS col0, ( + 31 ) AS col1 FROM tab0 AS cor0
----
-3
31

skipif mysql # not compatible
query II rowsort label-7141
SELECT - + COUNT ( * ) AS col0, ( + 31 ) AS col1 FROM tab0 AS cor0
----
-3
31

query I rowsort
SELECT DISTINCT ( + 95 ) FROM tab1 AS cor0
----
95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL - - MAX( col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - - MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT DISTINCT - COUNT( * ) AS col2, 19 + 26 col1 FROM tab1
----
-3
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7146
SELECT DISTINCT - COUNT ( * ) AS col2, 19 + 26 col1 FROM tab1
----
-3
45

query I rowsort
SELECT - 89 * + col0 FROM tab0
----
-1335
-7743
-8633

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7149
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - MAX( ALL 74 ) * COUNT( * ) FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-7150
SELECT - MAX ( ALL 74 ) * COUNT ( * ) FROM tab0
----
-222

query II rowsort
SELECT - col1 AS col1, - ( + col0 ) AS col0 FROM tab1
----
-14
-51
-47
-91
-5
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-7152
SELECT ALL col1 AS col0, 29 DIV col2 AS col2 FROM tab0 AS cor0
----
1
0
21
2
81
0

skipif mysql # not compatible
query II rowsort label-7152
SELECT ALL col1 AS col0, 29 / col2 AS col2 FROM tab0 AS cor0
----
1
0
21
2
81
0

query I rowsort
SELECT + - ( 41 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 73 + + col1 AS col0 FROM tab1
----
120
78
87

query I rowsort
SELECT col2 * col1 * + 18 FROM tab0 AS cor0
----
1782
3780
68526

query I rowsort
SELECT ALL - 83 * + + col0 / + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * 93 FROM tab0 AS cor0
----
-1953
-7533
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT ALL - CAST( - + col0 AS SIGNED ) + + + col0 col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7158
SELECT ALL - CAST ( - + col0 AS INTEGER ) + + + col0 col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT DISTINCT 87 + + COUNT( * ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT 87 + + COUNT ( * ) FROM tab1 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 > + ( col1 ) * col2 / + 23 - col1
----
51
14
96
85
5
59

query I rowsort
SELECT col0 * - 56 - - col2 FROM tab1
----
-2760
-4701
-5028

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT + 42 + COUNT( * ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7162
SELECT + 42 + COUNT ( * ) AS col0 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + 60 + + + ( + - ( - + COUNT( ALL + 34 ) ) ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7163
SELECT + 60 + + + ( + - ( - + COUNT ( ALL + 34 ) ) ) FROM tab1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT - col1 DIV 17 * col0 * - col1 + - + col2 FROM tab2
----
15017
19672
7015

skipif mysql # not compatible
query I rowsort label-7164
SELECT - col1 / 17 * col0 * - col1 + - + col2 FROM tab2
----
15017
19672
7015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT DISTINCT - col0 + - col2 * + 31 * + + col0 FROM tab2 WHERE NOT col1 + + + CAST( - - 70 AS SIGNED ) * - + 82 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT - col0 + - col2 * + 31 * + + col0 FROM tab2 WHERE NOT col1 + + + CAST ( - - 70 AS INTEGER ) * - + 82 IS NOT NULL
----

query I rowsort
SELECT + 42 * + col2 AS col1 FROM tab0 AS cor0
----
1974
4158
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7167
SELECT DISTINCT - 11 + - col1 - - col1 * 17 * + CAST( NULL AS SIGNED ) * col1, - 60 AS col2 FROM tab1 AS cor0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-7167
SELECT DISTINCT - 11 + - col1 - - col1 * 17 * + CAST ( NULL AS INTEGER ) * col1, - 60 AS col2 FROM tab1 AS cor0
----
NULL
-60

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT - + CAST( NULL AS SIGNED ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7169
SELECT - + CAST ( NULL AS INTEGER ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + - col2 - + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 = + 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 > ( + + 57 )
----
75
67
58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7174
SELECT ALL + - MAX( DISTINCT CAST( + 95 AS SIGNED ) ) FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL + - MAX ( DISTINCT CAST ( + 95 AS INTEGER ) ) FROM tab0 cor0
----
-95

query I rowsort
SELECT - - 7 AS col1 FROM tab0 WHERE NOT - - 66 IS NULL
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7176
SELECT DISTINCT 85 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT 85 / + col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7177
SELECT ALL COUNT( * ) DIV - 3 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL COUNT ( * ) / - 3 AS col1 FROM tab2
----
-1

query I rowsort
SELECT + ( 58 ) * + col2 FROM tab1
----
3422
3944
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT MAX( ALL col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7179
SELECT MAX ( ALL col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT ALL COUNT( * ) AS col1, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7180
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7181
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col1 BETWEEN - CAST( NULL AS SIGNED ) * - 76 - + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7181
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - col1 BETWEEN - CAST ( NULL AS INTEGER ) * - 76 - + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < 34 * col1 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) > + + 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT col1 DIV + + 5 FROM tab1 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-7184
SELECT col1 / + + 5 FROM tab1 AS cor0
----
1
2
9

query I rowsort
SELECT DISTINCT - - col0 * - ( - col2 ) FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7186
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - 80 + + 41 + + - col2 > CAST( 94 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7186
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - 80 + + 41 + + - col2 > CAST ( 94 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 6 + - + col2 AS col0 FROM tab1 AS cor0
----
-102
-65
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT DISTINCT 32 AS col1, COUNT( * ) + - 55 AS col2 FROM tab2
----
32
-52

skipif mysql # not compatible
query II rowsort label-7188
SELECT DISTINCT 32 AS col1, COUNT ( * ) + - 55 AS col2 FROM tab2
----
32
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT - - ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - - ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) IS NULL ) OR NOT ( NOT ( + col0 > + col2 * col0 + - col0 + + col2 ) )
----

query II rowsort
SELECT + + col1 * col2 + - + col0 * - col1 + col0 + col2 AS col1, col1 + 57 FROM tab0 AS cor0
----
2134
78
392
58
5084
138

query I rowsort
SELECT - + 16 + + 90 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT + - col1 + + - 84 AS col1 FROM tab0 AS cor0
----
-105
-165
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + + + col2 <> + 15 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - 61 + 1 AS col1 FROM tab0 AS cor0
----
1282
4942
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 46 * + 7 * 15 * - + 14 + + col2 - 96 AS col2 FROM tab0 AS cor0
----
67534
67571
67623

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7198
SELECT DISTINCT + 85 AS col0, + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-7198
SELECT DISTINCT + 85 AS col0, + CAST ( NULL AS REAL ) FROM tab2 cor0
----
85
NULL

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + col0 ) = NULL
----

query II rowsort
SELECT - 77 - col2 AS col0, 51 AS col0 FROM tab2
----
-100
51
-117
51
-135
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, 55 AS col2 FROM tab2
----
46
55
64
55
75
55

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col2, + 67 * - ( col0 ) + - 63 + col2, 19 + 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT 64 * MIN( ALL - 83 ) FROM tab2
----
-5312

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT 64 * MIN ( ALL - 83 ) FROM tab2
----
-5312

query I rowsort
SELECT DISTINCT + col2 * - 17 AS col1 FROM tab2
----
-391
-680
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT COUNT( - - 36 ) FROM tab0 AS cor0 WHERE + col0 BETWEEN - col1 * - 69 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT COUNT ( - - 36 ) FROM tab0 AS cor0 WHERE + col0 BETWEEN - col1 * - 69 AND + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 / - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 / - col2 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT DISTINCT 69 DIV + + col1 col1 FROM tab0 cor0
----
0
3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7211
SELECT DISTINCT 69 / + + col1 col1 FROM tab0 cor0
----
0
3
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT - 72 AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - - 13 * - 37, + 9, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7212
SELECT - 72 AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - - 13 * - 37, + 9, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL + COUNT( * ) * 62 * - 56 FROM tab2 AS cor0
----
-10416

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL + COUNT ( * ) * 62 * - 56 FROM tab2 AS cor0
----
-10416

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT ALL MIN( - 15 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL MIN ( - 15 ) FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT ALL - ( COUNT( col0 ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL - ( COUNT ( col0 ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL ( + - 95 ) * - 51 + - - col0 FROM tab1 AS cor0
----
4896
4930
4936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 * col0 AS col0, col1 * + - col1 + ( col2 ) col0 FROM tab0
----
2001
-431
2231
98
345
-6514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7218
SELECT + COUNT( * ) * - + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7218
SELECT + COUNT ( * ) * - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-9

query I rowsort
SELECT col2 * + + 75 AS col0 FROM tab2
----
1725
3000
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT DISTINCT col0 * - 58 * + CAST( 83 AS SIGNED ) FROM tab2
----
-221444
-308096
-361050

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT col0 * - 58 * + CAST ( 83 AS INTEGER ) FROM tab2
----
-221444
-308096
-361050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT DISTINCT CAST( col2 AS SIGNED ) + + - col2 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + - col2 AS col1 FROM tab0
----
0

query I rowsort
SELECT col2 * - - col2 AS col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT col2 * - - 88 * + col0 * + col1 * - + col2 AS col1 FROM tab0
----
-16077600
-236186280
-83661336

query I rowsort
SELECT DISTINCT + col0 + + col0 * + col1 - - col2 * - 5 FROM tab0 AS cor0
----
-301
1864
995

query I rowsort
SELECT - 15 + - + col1 AS col2 FROM tab0 AS cor0
----
-16
-36
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - COUNT( * ) * + 11 FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7226
SELECT - COUNT ( * ) * + 11 FROM tab0 cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT - ( - CAST( - - MIN( - 90 ) AS SIGNED ) ) * - - COUNT( * ) * + 53 AS col2 FROM tab0 AS cor0
----
-14310

skipif mysql # not compatible
query I rowsort label-7227
SELECT - ( - CAST ( - - MIN ( - 90 ) AS INTEGER ) ) * - - COUNT ( * ) * + 53 AS col2 FROM tab0 AS cor0
----
-14310

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND col0 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, col2 AS col2 FROM tab1 AS cor0 WHERE - 7 IS NOT NULL
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - 56 - 59 AS col0 FROM tab1 cor0
----
-115
-115
-115

query I rowsort
SELECT ALL + 56 + - col1 FROM tab0 AS cor0
----
-25
35
55

query II rowsort
SELECT - ( + col1 ) - - - col1, ( + col0 ) FROM tab2 cor0
----
-102
46
-134
75
-154
64

query I rowsort
SELECT DISTINCT - - col0 + col1 * + col1 FROM tab2 AS cor0
----
2647
4564
5993

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE col1 > - - 60
----
-40
-58

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL < + - col2 + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 64 <= - + col1 * - + 82
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( + 58 ) IS NOT NULL
----

query II rowsort
SELECT + col0 * - - col0 + + + col2 + col2, + 30 AS col1 FROM tab0 AS cor0
----
319
30
7589
30
9607
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL - ( SUM( DISTINCT - + col0 ) ) * + 30 AS col2 FROM tab0 AS cor0
----
5970

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - ( SUM ( DISTINCT - + col0 ) ) * + 30 AS col2 FROM tab0 AS cor0
----
5970

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT MIN( ALL - 14 ) * 12 AS col0 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-7242
SELECT MIN ( ALL - 14 ) * 12 AS col0 FROM tab1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT SUM( + 41 ) AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-7243
SELECT SUM ( + 41 ) AS col1 FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT + COUNT( DISTINCT + 89 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7244
SELECT + COUNT ( DISTINCT + 89 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( + - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT + ( col1 ) FROM tab0 AS cor0 WHERE - col1 + + + CAST( - + 23 AS SIGNED ) NOT BETWEEN NULL AND col2 - 95
----
21

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + ( col1 ) FROM tab0 AS cor0 WHERE - col1 + + + CAST ( - + 23 AS INTEGER ) NOT BETWEEN NULL AND col2 - 95
----
21

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE + 33 + - col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 25 col1 FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL 30 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 49 col2 FROM tab1 WHERE NOT col0 IS NULL
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT ALL col1 * col1 * 23 * + + CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
2231
2263545
882441

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL col1 * col1 * 23 * + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
2231
2263545
882441

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT MAX( DISTINCT - + 92 ) + 89 AS col0, + COUNT( * ) col1 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7252
SELECT MAX ( DISTINCT - + 92 ) + 89 AS col0, + COUNT ( * ) col1 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT col0 * + - CAST( - - col1 AS SIGNED ) AS col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-7253
SELECT col0 * + - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - ( - col0 ) * - 21 FROM tab2
----
-1344
-1575
-966

onlyif mysql # DIV for integer division: 
query II rowsort label-7255
SELECT DISTINCT col2 DIV - + ( - - 25 ), + col2 AS col1 FROM tab0
----
-1
47
-3
99
0
10

skipif mysql # not compatible
query II rowsort label-7255
SELECT DISTINCT col2 / - + ( - - 25 ), + col2 AS col1 FROM tab0
----
-1
47
-3
99
0
10

query I rowsort
SELECT ALL + + col2 + - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT DISTINCT + 80 FROM tab2 WHERE CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT + 80 FROM tab2 WHERE CAST ( col2 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 49 < col1 * + col2 - 8 + + 77 * + col1 * + 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT - - COUNT( * ) AS col2 FROM tab2 WHERE - - col2 <> + col0 * - col0 + + - col1
----
3

skipif mysql # not compatible
query I rowsort label-7259
SELECT - - COUNT ( * ) AS col2 FROM tab2 WHERE - - col2 <> + col0 * - col0 + + - col1
----
3

query I rowsort
SELECT + + 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT - 61 - MIN( ALL + col2 ) FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT - 61 - MIN ( ALL + col2 ) FROM tab1 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT COUNT( * ) + - 46 col0 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7262
SELECT COUNT ( * ) + - 46 col0 FROM tab0 AS cor0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL + ( - - COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7263
SELECT ALL + ( - - COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7264
SELECT ALL 30 * col1 * - col0 + - - col2 + - - col1 DIV + col0 * - + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-12691
-128242
-21324

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL 30 * col1 * - col0 + - - col2 + - - col1 / + col0 * - + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-12691
-128242
-21324

query II rowsort
SELECT + ( - + col1 ), 96 + + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-6
-67
-38
-77
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - 1 + - - col0 AS col2 FROM tab0
----
14
86
96

query I rowsort
SELECT DISTINCT 52 - - 51 * 26 AS col1 FROM tab2
----
1378

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT ( + 79 ) * - col2 AS col0 FROM tab2
----
-1817
-3160
-4582

query I rowsort
SELECT - 97 * + - col1 AS col2 FROM tab0
----
2037
7857
97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 47 / - + 4, col1 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT DISTINCT - ( MAX( - 25 ) ) AS col0, COUNT( * ) AS col1 FROM tab0
----
25
3

skipif mysql # not compatible
query II rowsort label-7273
SELECT DISTINCT - ( MAX ( - 25 ) ) AS col0, COUNT ( * ) AS col1 FROM tab0
----
25
3

query II rowsort
SELECT DISTINCT + col0 AS col0, + col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab1 cor0
----
40

query I rowsort
SELECT DISTINCT + + 33 * + - col1 AS col2 FROM tab2 AS cor0
----
-1683
-2211
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT + 37 * + COUNT( * ) AS col0 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-7277
SELECT + 37 * + COUNT ( * ) AS col0 FROM tab2
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab2 WHERE + ( - 12 ) IS NULL
----

query I rowsort
SELECT ( - ( 73 ) ) FROM tab1
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + + 78 * - col0 * - 91 FROM tab0 AS cor0
----
106470
617526
688506

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT - - SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7281
SELECT - - SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-7282
SELECT ALL - 33, + ( - + COUNT( * ) ) AS col0 FROM tab2 cor0
----
-33
-3

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL - 33, + ( - + COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT - MAX( 82 ) AS col1 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7283
SELECT - MAX ( 82 ) AS col1 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + col1 > + col2 * - - col0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + + MAX( ALL + - 5 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7285
SELECT + + MAX ( ALL + - 5 ) AS col1 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT + COUNT( - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7286
SELECT + COUNT ( - col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 * col1 * + col0 AS col1 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT ALL + col0 FROM tab1 WHERE NOT + CAST( + + col2 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + col0 FROM tab1 WHERE NOT + CAST ( + + col2 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 20 * - + col0 FROM tab0
----
-1740
-1940
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT ALL CAST( + - 27 AS SIGNED ) + - col2 FROM tab1
----
-123
-86
-95

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL CAST ( + - 27 AS INTEGER ) + - col2 FROM tab1
----
-123
-86
-95

query I rowsort
SELECT DISTINCT 89 * col2 * + - col1 AS col0 FROM tab0
----
-18690
-338823
-8811

query III rowsort
SELECT * FROM tab0 WHERE + 58 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 + - - ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 70 ) AS col2 FROM tab2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7295
SELECT - - COUNT( * ) + - ( - - 35 ) DIV + 42 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7295
SELECT - - COUNT ( * ) + - ( - - 35 ) / + 42 FROM tab2 cor0
----
3

query II rowsort
SELECT - + 30 + - ( + col0 ), + col2 FROM tab0 AS cor0
----
-117
10
-127
99
-45
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) AS col1, 2 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query II rowsort label-7297
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) AS col1, 2 FROM tab1 AS cor0
----
0
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7298
SELECT + COUNT( * ), COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-7298
SELECT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + 8 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7300
SELECT ALL MAX( - 0 ) * + COUNT( * ), ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-7300
SELECT ALL MAX ( - 0 ) * + COUNT ( * ), ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
0
3

query I rowsort
SELECT - 33 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT ( - + col2 ) - CAST( + 86 AS SIGNED ) FROM tab0 cor0
----
-133
-185
-96

skipif mysql # not compatible
query I rowsort label-7302
SELECT ( - + col2 ) - CAST ( + 86 AS INTEGER ) FROM tab0 cor0
----
-133
-185
-96

query I rowsort
SELECT + col1 - - col0 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT - MIN( + - 77 ) + - MAX( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7304
SELECT - MIN ( + - 77 ) + - MAX ( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT MAX( 1 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7305
SELECT MAX ( 1 ) AS col0 FROM tab2
----
1

query II rowsort
SELECT ALL + 5 * + col0 AS col1, - 70 FROM tab1
----
255
-70
425
-70
455
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT ALL col2 DIV - col1 * - col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL col2 / - col1 * - col1 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7308
SELECT DISTINCT - 72 DIV COUNT( * ) AS col1 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - 72 / COUNT ( * ) AS col1 FROM tab1
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab2 WHERE - + col0 * + + col1 + - 28 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT - CAST( ( MIN( col2 ) ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-7310
SELECT - CAST ( ( MIN ( col2 ) ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
-23

query I rowsort
SELECT DISTINCT col0 - 57 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( - + col1 ) FROM tab1
----
14
47
5

query I rowsort
SELECT 47 FROM tab1 WHERE NOT + col2 - + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT + SUM( 9 ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7315
SELECT + SUM ( 9 ) AS col0 FROM tab1 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * + - ( - + 24 ) col0 FROM tab2 cor0 WHERE NOT ( NULL ) <> + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - ( - 4 ) AS col0 FROM tab1
----
51
4
85
4
91
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7318
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( + + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7318
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( + + col2 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT + col0, col0 + - - 43 FROM tab2
----
46
89
64
107
75
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT - MAX( DISTINCT - 60 ) AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT - MAX ( DISTINCT - 60 ) AS col2 FROM tab1
----
60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 1 BETWEEN NULL AND + + col2 * + 16 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT - + MAX( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7322
SELECT - + MAX ( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - + 71 AND NULL
----

query I rowsort
SELECT DISTINCT - + 21 + - + col2 AS col1 FROM tab1 AS cor0
----
-117
-80
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, + 97 + + + 45 FROM tab2
----
46
142
64
142
75
142

query I rowsort
SELECT 79 - - col2 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col0 * - - 51 FROM tab1
----
-2601
-4335
-4641

query I rowsort
SELECT ALL + 12 + - col0 - + + 14 + - 96 FROM tab1
----
-149
-183
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT - 86 * - + COUNT( * ) AS col2 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-7329
SELECT - 86 * - + COUNT ( * ) AS col2 FROM tab1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - ( + SUM( DISTINCT + + col1 ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7330
SELECT - ( + SUM ( DISTINCT + + col1 ) ) AS col0 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT CAST( NULL AS SIGNED ) * - 19 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT CAST ( NULL AS INTEGER ) * - 19 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE + 45 IS NULL
----

query II rowsort
SELECT ALL - 29 AS col0, col0 AS col2 FROM tab2 AS cor0
----
-29
46
-29
64
-29
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7334
SELECT ALL - 98 AS col1, ( + MAX( + - ( - col1 ) ) ) AS col0 FROM tab1 cor0
----
-98
47

skipif mysql # not compatible
query II rowsort label-7334
SELECT ALL - 98 AS col1, ( + MAX ( + - ( - col1 ) ) ) AS col0 FROM tab1 cor0
----
-98
47

query I rowsort
SELECT ALL + col2 + + col1 - 48 * ( + ( col0 ) ) AS col1 FROM tab1
----
-2338
-4016
-4253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT - col0 * - + 13 * - - 42 + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT - col0 * - + 13 * - - 42 + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col1 * - 96 AS col1, ( ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-4896
-51
-6432
-67
-7392
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT DISTINCT - ( - COUNT( * ) ) * - 12 col1 FROM tab0 cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7338
SELECT DISTINCT - ( - COUNT ( * ) ) * - 12 col1 FROM tab0 cor0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT - + 66 / + CAST( NULL AS SIGNED ) * - COUNT( * ) * - 94 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT - + 66 / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 94 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL - SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL - SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT ALL - 53 DIV - - 72 + + col1 - + - 4 FROM tab2 AS cor0
----
55
71
81

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL - 53 / - - 72 + + col1 - + - 4 FROM tab2 AS cor0
----
55
71
81

query I rowsort
SELECT ALL 76 * - col1 AS col2 FROM tab2 AS cor0
----
-3876
-5092
-5852

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + ( + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT + col0 * + 29 IN ( + + col0 + col0, - 65, + ( - 16 ) ) )
----

query II rowsort
SELECT col2 * + col2, - 82 * col0 AS col2 FROM tab1 AS cor0
----
3481
-6970
4624
-7462
9216
-4182

query I rowsort
SELECT DISTINCT - col0 * 1 * + 76 FROM tab1 AS cor0
----
-3876
-6460
-6916

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT + 39 DIV col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7347
SELECT + 39 / col2 col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT DISTINCT - col1 DIV - - col2 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT - col1 / - - col2 AS col2 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7349
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col0, col2 * + col2 / col0, + CAST( col0 AS SIGNED ), 7 + - 60 + + 84 - + col2, + + col2, + + col0 )
----

skipif mysql # not compatible
query III rowsort label-7349
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col0, col2 * + col2 / col0, + CAST ( col0 AS INTEGER ), 7 + - 60 + + 84 - + col2, + + col2, + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7350
SELECT - 5 DIV - COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7350
SELECT - 5 / - COUNT ( * ) AS col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 68 col0, col0 AS col2 FROM tab0
----
-68
15
-68
87
-68
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7352
SELECT DISTINCT - COUNT( * ), 93 AS col0 FROM tab1
----
-3
93

skipif mysql # not compatible
query II rowsort label-7352
SELECT DISTINCT - COUNT ( * ), 93 AS col0 FROM tab1
----
-3
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT + 23 DIV + COUNT( * ) AS col1 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7353
SELECT + 23 / + COUNT ( * ) AS col1 FROM tab1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT ALL 93 DIV - col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL 93 / - col0 FROM tab2
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + ( - 78 ) AS col2 FROM tab1
----
-78
-78
-78

query I rowsort
SELECT ALL 61 * + col1 + + + col2 + - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 54 - 39 col1 FROM tab1 AS cor0
----
231
2499
717

query II rowsort
SELECT ALL - 18 * 21 * + 93 AS col1, 23 FROM tab1 cor0
----
-35154
23
-35154
23
-35154
23

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 16 / col1 BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT - CAST( COUNT( + + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7361
SELECT - CAST ( COUNT ( + + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL + 40 + COUNT( * ) - + 98 AS col1 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + 40 + COUNT ( * ) - + 98 AS col1 FROM tab0 AS cor0
----
-55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7365
SELECT ALL col2 + - CAST( NULL AS SIGNED ) + - 30 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) + - 30 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 62 * - 43 AS col2 FROM tab0 cor0
----
-2666
-2666
-2666

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT - ( + ( + ( + COUNT( * ) ) ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7367
SELECT - ( + ( + ( + COUNT ( * ) ) ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query II rowsort
SELECT DISTINCT col0 * - + 98 / + - 76 + - - col2 AS col1, col0 AS col0 FROM tab2 cor0 WHERE - ( - 84 ) IS NULL
----

query I rowsort
SELECT - 96 - - - 14 AS col1 FROM tab1
----
-110
-110
-110

query I rowsort
SELECT - col0 + - + col0 AS col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT DISTINCT 96 - + col1 AS col2 FROM tab2
----
19
29
45

query I rowsort
SELECT + 98 + - col1 FROM tab2 AS cor0
----
21
31
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT ALL + - col0 DIV col2 + + col2 - col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + - col0 / col2 + + col2 - col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT 0 * COUNT( * ) col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7374
SELECT 0 * COUNT ( * ) col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT + ( col2 ) + - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT DISTINCT 82 + COUNT( * ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT 82 + COUNT ( * ) FROM tab2
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT col1 * + 85 * + col1 FROM tab2
----
221085
381565
503965

query I rowsort
SELECT DISTINCT + 66 * + + col2 FROM tab1 AS cor0
----
3894
4488
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT + 77 * col0 DIV + + col2 AS col2 FROM tab2 cor0
----
123
154
99

skipif mysql # not compatible
query I rowsort label-7380
SELECT + 77 * col0 / + + col2 AS col2 FROM tab2 cor0
----
123
154
99

query I rowsort
SELECT DISTINCT - - 48 * col1 + - col0 + - col2 FROM tab0 AS cor0
----
-148
3826
911

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 54 * + col2 AS col0 FROM tab2 AS cor0
----
1242
2160
3132

query II rowsort
SELECT DISTINCT + + col1 AS col2, ( + ( - col2 ) ) + col0 FROM tab1 AS cor0
----
14
-45
47
23
5
26

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <> - 29
----

query II rowsort
SELECT DISTINCT col0 * col1 AS col2, col0 FROM tab0
----
1215
15
1827
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT ALL + + col1 DIV + - col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL + + col1 / + - col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7388
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST( - col2 AS SIGNED ) AND - 64
----

skipif mysql # not compatible
query III rowsort label-7388
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST ( - col2 AS INTEGER ) AND - 64
----

query I rowsort
SELECT DISTINCT col1 + - col1 * - + col0 * 42 + + col0 FROM tab0 AS cor0
----
4172
51126
76842

query I rowsort
SELECT DISTINCT + col2 * 60 FROM tab0
----
2820
5940
600

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT - ( + - 38 ) FROM tab0
----
38
38
38

query I rowsort
SELECT + 72 + - col1 FROM tab2 AS cor0
----
-5
21
5

query I rowsort
SELECT + 39 + col1 FROM tab0 AS cor0
----
120
40
60

query I rowsort
SELECT DISTINCT - - col0 + + + col2 AS col1 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 8 - col1 + - col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL 24 + 52 + + + COUNT( * ) FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL 24 + 52 + + + COUNT ( * ) FROM tab0 cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 61 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT DISTINCT 93 - + + col0 FROM tab1
----
2
42
8

query I rowsort
SELECT + 95 * + - col2 AS col0 FROM tab2
----
-2185
-3800
-5510

query II rowsort
SELECT DISTINCT col2 - - col0 AS col2, col2 AS col2 FROM tab0
----
196
99
62
47
97
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT COUNT( * ) * + 25 AS col2 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-7403
SELECT COUNT ( * ) * + 25 AS col2 FROM tab1
----
75

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE - 73 - - + 63 * col1 BETWEEN col2 + - col2 AND NULL
----

query I rowsort
SELECT ALL + 67 - col1 * col0 FROM tab2
----
-2279
-4861
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT COUNT( * ) - 52 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7407
SELECT COUNT ( * ) - 52 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT ALL + - 90 AS col2 FROM tab0 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT col0 * 90 FROM tab0 AS cor0
----
1350
7830
8730

query I rowsort
SELECT + 66 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT 64 * - + col1 - col0 FROM tab0 AS cor0
----
-1431
-161
-5199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + 50 + + 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - SUM( DISTINCT + - 13 ) AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7413
SELECT - SUM ( DISTINCT + - 13 ) AS col1 FROM tab2 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 * + + col0 * + col0 col1 FROM tab1
----
171666
476850
546546

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL 84 * - ( COUNT( * ) ) * + - 17 AS col1 FROM tab0
----
4284

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL 84 * - ( COUNT ( * ) ) * + - 17 AS col1 FROM tab0
----
4284

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT col0 DIV - + col2 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7416
SELECT col0 / - + col2 AS col2 FROM tab1
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 75 * - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL - MAX( - 95 ) * 6 AS col1 FROM tab2
----
570

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - MAX ( - 95 ) * 6 AS col1 FROM tab2
----
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, - col1 + + 0 col0 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT DISTINCT + 34 * + + SUM( - col0 ) AS col2 FROM tab2
----
-6290

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT + 34 * + + SUM ( - col0 ) AS col2 FROM tab2
----
-6290

query I rowsort
SELECT ALL col1 * + - col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7423
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7423
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7424
SELECT DISTINCT + 94 DIV + - COUNT( * ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT + 94 / + - COUNT ( * ) FROM tab0 AS cor0
----
-31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND + + 42 + - - col0 + - 77
----

query I rowsort
SELECT + + 91 + 38 FROM tab2 AS cor0
----
129
129
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col0 col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT - col0 + - CAST( NULL AS SIGNED ) * - + 22 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT - col0 + - CAST ( NULL AS INTEGER ) * - + 22 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 51 * col2 AS col1 FROM tab2
----
1173
2040
2958

query I rowsort
SELECT DISTINCT + col1 + - 76 AS col1 FROM tab0
----
-55
-75
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT DISTINCT - COUNT( * ) * - 87 AS col2 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT - COUNT ( * ) * - 87 AS col2 FROM tab2 AS cor0
----
261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7432
SELECT - COUNT( * ) DIV - + MIN( ALL - 6 ) + + 53 AS col2 FROM tab2 cor0
----
53

skipif mysql # not compatible
query I rowsort label-7432
SELECT - COUNT ( * ) / - + MIN ( ALL - 6 ) + + 53 AS col2 FROM tab2 cor0
----
53

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + 43 IN ( + col1 - - 61 * + 71 * + - col1, - col0 * - 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT - MAX( + 97 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7434
SELECT - MAX ( + 97 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT 75 * col2 + - + 72 AS col1 FROM tab1 cor0
----
4353
5028
7128

query I rowsort
SELECT ALL 74 AS col1 FROM tab2 AS cor0 WHERE NOT + 27 <= NULL AND NOT NULL < NULL
----

query I rowsort
SELECT ALL 31 + + - 83 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7438
SELECT ( + CAST( - + col0 AS DECIMAL ) ) + + col1 * col1 FROM tab0 AS cor0 WHERE NULL <> CAST( - CAST( + 5 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7438
SELECT ( + CAST ( - + col0 AS REAL ) ) + + col1 * col1 FROM tab0 AS cor0 WHERE NULL <> CAST ( - CAST ( + 5 AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab0 WHERE + - ( + + col1 ) IN ( + col1 + + col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL ( - + COUNT( * ) ) + + 94 + - COUNT( * ) col2 FROM tab0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7440
SELECT ALL ( - + COUNT ( * ) ) + + 94 + - COUNT ( * ) col2 FROM tab0
----
88

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND ( ( - col0 ) / 13 + + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT DISTINCT - + COUNT( * ) - COUNT( ALL + col1 ) * 62 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT - + COUNT ( * ) - COUNT ( ALL + col1 ) * 62 FROM tab0 AS cor0
----
-189

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab2 AS cor0 WHERE 51 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT - - COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7444
SELECT - - COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7445
SELECT - + CAST( - + col2 AS SIGNED ) DIV col2 col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7445
SELECT - + CAST ( - + col2 AS INTEGER ) / col2 col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT + + MAX( - 80 ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7446
SELECT + + MAX ( - 80 ) FROM tab0 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT - - MAX( - + 91 ) AS col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7447
SELECT - - MAX ( - + 91 ) AS col1 FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL - ( - MAX( - ( - col2 ) ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL - ( - MAX ( - ( - col2 ) ) ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7449
SELECT DISTINCT - - COUNT( * ), + COUNT( ALL - 37 ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7449
SELECT DISTINCT - - COUNT ( * ), + COUNT ( ALL - 37 ) FROM tab0 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT DISTINCT COUNT( * ) - 94 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT COUNT ( * ) - 94 FROM tab2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT - SUM( DISTINCT - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7451
SELECT - SUM ( DISTINCT - col1 ) AS col0 FROM tab2
----
195

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT + MIN( DISTINCT + col2 ) - - 95 AS col0 FROM tab0 WHERE 8 * - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT + MIN ( DISTINCT + col2 ) - - 95 AS col0 FROM tab0 WHERE 8 * - col0 = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 30 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7455
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col1 / - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7455
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col1 / - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT DISTINCT 49 * 65 + COUNT( col2 ) col1 FROM tab0
----
3188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7456
SELECT DISTINCT 49 * 65 + COUNT ( col2 ) col1 FROM tab0
----
3188

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( + col0 + - 40 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7458
SELECT ALL - 47 - ( col2 + + 88 * - 45 ) DIV col2 AS col0 FROM tab0
----
-8
348
36

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - 47 - ( col2 + + 88 * - 45 ) / col2 AS col0 FROM tab0
----
-8
348
36

query III rowsort
SELECT ALL * FROM tab1 WHERE - 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 60 ) + - col1 AS col0 FROM tab0
----
-141
-61
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) < - col1 / col1
----

query III rowsort
SELECT * FROM tab0 WHERE col2 IN ( col0 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NULL BETWEEN ( - col1 ) AND col0 * col1 + - col1
----

query I rowsort
SELECT - col1 * + 18 + + col1 FROM tab2
----
-1139
-1309
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT MAX( DISTINCT 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7465
SELECT MAX ( DISTINCT 1 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT MIN( 53 ) col1 FROM tab0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7467
SELECT DISTINCT MIN ( 53 ) col1 FROM tab0
----
53

query I rowsort
SELECT ( col0 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL + col1 FROM tab0 WHERE col0 NOT BETWEEN - col0 + col2 * - 14 AND ( - CAST( col0 AS SIGNED ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + col1 FROM tab0 WHERE col0 NOT BETWEEN - col0 + col2 * - 14 AND ( - CAST ( col0 AS INTEGER ) )
----
1
21
81

query I rowsort
SELECT 7 * + 36 FROM tab1
----
252
252
252

query I rowsort
SELECT DISTINCT col1 * + 77 FROM tab1 WHERE + col2 IN ( 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7472
SELECT * FROM tab2 WHERE NOT + CAST( + CAST( col0 AS SIGNED ) AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-7472
SELECT * FROM tab2 WHERE NOT + CAST ( + CAST ( col0 AS INTEGER ) AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7473
SELECT DISTINCT * FROM tab0 WHERE NULL > - CAST( + col1 AS SIGNED ) * col1 + + col2 * col2
----

skipif mysql # not compatible
query III rowsort label-7473
SELECT DISTINCT * FROM tab0 WHERE NULL > - CAST ( + col1 AS INTEGER ) * col1 + + col2 * col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 50 * 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * + 78 col1 FROM tab1 AS cor0
----
-5928
-5928
-5928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col2 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE - 24 + - 2 <= col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE - 24 + - 2 <= col1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7478
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 * + CAST( + col0 AS SIGNED ) ) <= ( - 29 + col0 )
----

skipif mysql # not compatible
query III rowsort label-7478
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 * + CAST ( + col0 AS INTEGER ) ) <= ( - 29 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT - SUM( + 71 ) AS col0 FROM tab1 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7479
SELECT - SUM ( + 71 ) AS col0 FROM tab1 cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL COUNT( ALL + col0 ) + MIN( DISTINCT + 13 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL COUNT ( ALL + col0 ) + MIN ( DISTINCT + 13 ) FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7481
SELECT * FROM tab2 AS cor0 WHERE col0 >= col0 * + CAST( 28 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7481
SELECT * FROM tab2 AS cor0 WHERE col0 >= col0 * + CAST ( 28 AS INTEGER )
----

query I rowsort
SELECT ALL col1 * 85 + + 5 * - 1 FROM tab1
----
1185
3990
420

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL - SUM( col0 ) * COUNT( * ) FROM tab0 WHERE NOT + 67 * col2 BETWEEN col1 + + col1 AND ( + col2 * 47 )
----
-597

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - SUM ( col0 ) * COUNT ( * ) FROM tab0 WHERE NOT + 67 * col2 BETWEEN col1 + + col1 AND ( + col2 * 47 )
----
-597

query I rowsort
SELECT + 59 * 91 + - 28 AS col2 FROM tab0
----
5341
5341
5341

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 28 - 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( 62 ) * - 98 + + 12 * col1 AS col0 FROM tab2 AS cor0
----
-5152
-5272
-5464

query I rowsort
SELECT 18 * + col0 + + 42 FROM tab0 cor0
----
1608
1788
312

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 99 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT SUM( DISTINCT - col1 ) + - 95 FROM tab1 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-7490
SELECT SUM ( DISTINCT - col1 ) + - 95 FROM tab1 AS cor0
----
-161

query I rowsort
SELECT ALL - col1 + 89 AS col2 FROM tab1 cor0
----
42
75
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7492
SELECT DISTINCT CAST( NULL AS SIGNED ) + - MAX( ALL + 28 ) / - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( ALL + 28 ) / - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 74 * + col1 FROM tab1 cor0
----
1036
3478
370

query I rowsort
SELECT col2 + col1 / 6 FROM tab0 AS cor0 WHERE ( 67 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT - MAX( 56 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7495
SELECT - MAX ( 56 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - 94 + - col0 AS col1 FROM tab2
----
4748
6223
7174

query I rowsort
SELECT ALL + col2 * - col1 + - col2 AS col1 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab1 WHERE ( + col2 * 83 ) > ( col0 + - col1 / col1 )
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col0 FROM tab2 WHERE + col0 / 41 IS NULL
----

query I rowsort
SELECT ALL 86 - 58 AS col2 FROM tab0
----
28
28
28

query III rowsort
SELECT * FROM tab2 WHERE col1 / - 4 + + col1 IN ( col1 * + 20 + - col0 * + col2 )
----

query I rowsort
SELECT ALL 13 - + - col0 AS col2 FROM tab2
----
59
77
88

query I rowsort
SELECT - col2 - 89 + ( - 42 + 74 ) AS col2 FROM tab0
----
-104
-156
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT COUNT( * ) * + 92 AS col0 FROM tab1 WHERE NULL IS NULL
----
276

skipif mysql # not compatible
query I rowsort label-7504
SELECT COUNT ( * ) * + 92 AS col0 FROM tab1 WHERE NULL IS NULL
----
276

query I rowsort
SELECT DISTINCT col2 - + 51 + + col2 AS col2 FROM tab2
----
-5
29
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT SUM( ALL + col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7506
SELECT SUM ( ALL + col0 ) col0 FROM tab1
----
227

query I rowsort
SELECT + 32 * + col1 AS col2 FROM tab1
----
1504
160
448

query I rowsort
SELECT ALL + 32 AS col0 FROM tab1 cor0
----
32
32
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col1 / + col1 ) AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 7 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7511
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + COUNT( + 44 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT + CAST ( NULL AS REAL ) * + COUNT ( + 44 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT COUNT( * ) + 73 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
666

skipif mysql # not compatible
query I rowsort label-7512
SELECT COUNT ( * ) + 73 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
666

query I rowsort
SELECT ( 13 ) FROM tab0 cor0 WHERE NOT NULL > col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - - col1 / - 77 AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT ALL + - CAST( col1 AS SIGNED ) * col0 + 93 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL + - CAST ( col1 AS INTEGER ) * col0 + 93 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( ( - col2 ) * + 8 + - col2 * col1 )
----

query I rowsort
SELECT ( + - 34 ) FROM tab0 AS cor0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 25 + col2 ) IS NOT NULL
----

query I rowsort
SELECT - 85 FROM tab1 WHERE NOT - - 84 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 54 ) IS NULL AND NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT + col0 DIV - + col2 + - col0 FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-7521
SELECT + col0 / - + col2 + - col0 FROM tab1 AS cor0
----
-51
-86
-92

query I rowsort
SELECT + 16 AS col0 FROM tab2 AS cor0 WHERE col0 < - + col2
----

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-178882
-2090
-9702

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + 79 + - col1 - col2 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE 73 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL - SUM( + 99 ) FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - SUM ( + 99 ) FROM tab1 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7527
SELECT + CAST( NULL AS DECIMAL ) - col0 + + col1 + + CAST( NULL AS SIGNED ) / - col0 * + col0 + col2 / 74 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT + CAST ( NULL AS REAL ) - col0 + + col1 + + CAST ( NULL AS INTEGER ) / - col0 * + col0 + col2 / 74 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 69 * col2 FROM tab0 AS cor0
----
3243
6831
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 - - col1 col2 FROM tab1 AS cor0
----
37
46
79

query I rowsort
SELECT ALL + col1 * + - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - - col2 - + - 38 + + col1 FROM tab0 AS cor0
----
138
166
69

query I rowsort
SELECT DISTINCT col0 * + 1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT DISTINCT col2 * ( - col1 ) DIV - col1 + - - col2 + + col0 * - col2 FROM tab1 AS cor0
----
-4704
-4897
-6052

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT col2 * ( - col1 ) / - col1 + - - col2 + + col0 * - col2 FROM tab1 AS cor0
----
-4704
-4897
-6052

query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + MAX( - 55 ) AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + MAX ( - 55 ) AS col2 FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7536
SELECT 18, COUNT( * ) col2 FROM tab2
----
18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7536
SELECT 18, COUNT ( * ) col2 FROM tab2
----
18
3

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE col2 + - - col2 NOT BETWEEN + - 4 AND ( + col1 )
----
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT + COUNT( col1 ) * ( + - SUM( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7538
SELECT + COUNT ( col1 ) * ( + - SUM ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab0 cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT - COUNT( ALL + + 30 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT - COUNT ( ALL + + 30 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 23 * - 66 FROM tab2 AS cor0
----
1518
1518
1518

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT DISTINCT + + COUNT( * ) DIV + 31 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT + + COUNT ( * ) / + 31 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 88 * - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT DISTINCT - col2 DIV + 31 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT - col2 / + 31 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col1 + col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT MAX( + + 8 ) * - MAX( + col2 ) AS col2 FROM tab0
----
-792

skipif mysql # not compatible
query I rowsort label-7547
SELECT MAX ( + + 8 ) * - MAX ( + col2 ) AS col2 FROM tab0
----
-792

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL < ( + 81 * - - col1 + - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT col0 * - - CAST( NULL AS SIGNED ) * + ( - + 3 ) * - col0 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT col0 * - - CAST ( NULL AS INTEGER ) * + ( - + 3 ) * - col0 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT - ( - - 25 ) AS col1, + COUNT( * ) AS col0 FROM tab2 cor0
----
-25
3

skipif mysql # not compatible
query II rowsort label-7550
SELECT - ( - - 25 ) AS col1, + COUNT ( * ) AS col0 FROM tab2 cor0
----
-25
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7551
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( + CAST( NULL AS SIGNED ) / + col1 IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-7551
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( + CAST ( NULL AS INTEGER ) / + col1 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT - MAX( - 25 ) AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7552
SELECT - MAX ( - 25 ) AS col1 FROM tab2 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT - 48 + - CAST( - - col2 AS SIGNED ) - + CAST( - 80 AS SIGNED ) FROM tab1 AS cor0
----
-27
-36
-64

skipif mysql # not compatible
query I rowsort label-7553
SELECT - 48 + - CAST ( - - col2 AS INTEGER ) - + CAST ( - 80 AS INTEGER ) FROM tab1 AS cor0
----
-27
-36
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7554
SELECT + - COUNT( ALL + col1 ) + + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT + - COUNT ( ALL + col1 ) + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT - ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7555
SELECT - ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 - + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT ALL col2 + col1 * ( + 53 ) DIV - - col1 FROM tab2
----
111
76
93

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL col2 + col1 * ( + 53 ) / - - col1 FROM tab2
----
111
76
93

query III rowsort
SELECT * FROM tab1 WHERE - + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col0 >= - 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT - SUM( col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7560
SELECT - SUM ( col0 ) AS col2 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 90 col2, + 37 + - col0 FROM tab2
----
90
-27
90
-38
90
-9

query I rowsort
SELECT ALL 15 * - + col0 FROM tab2
----
-1125
-690
-960

query I rowsort
SELECT col2 * - + col2 * + col2 * + + col2 FROM tab0
----
-10000
-4879681
-96059601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT DISTINCT + + 14 AS col2 FROM tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT + - COUNT( + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7566
SELECT + - COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT col1 + + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-7567
SELECT col1 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + + 63 + - COUNT( * ) col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7569
SELECT + + 63 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + 47 col1 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0 WHERE + col0 IS NULL OR + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7572
SELECT CAST( NULL AS SIGNED ) AS col0, + 42 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
42
NULL
42
NULL
42

skipif mysql # not compatible
query II rowsort label-7572
SELECT CAST ( NULL AS INTEGER ) AS col0, + 42 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
42
NULL
42
NULL
42

query II rowsort
SELECT DISTINCT - col1 * + col1 AS col1, col0 FROM tab0 AS cor0
----
-1
97
-441
87
-6561
15

query I rowsort
SELECT - + 15 * + 2 FROM tab1 AS cor0
----
-30
-30
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - 46 ) / - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( 45 ) AS col1 FROM tab1 AS cor0
----
45

query I rowsort
SELECT + col1 * + + col2 AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT - MIN( + col0 ) * - + ( COUNT( * ) ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-7578
SELECT - MIN ( + col0 ) * - + ( COUNT ( * ) ) FROM tab1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7579
SELECT col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, 77 FROM tab0
----
1
77
21
77
81
77

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * col1 <> - col2 * + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col2 col1 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL 10 * - - col1 AS col0 FROM tab1 AS cor0
----
140
470
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + col2 IN ( - 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col0, 69 AS col2 FROM tab1 cor0
----
51
69
85
69
91
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col2 + - col0 * - col2 * - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL - MAX( - col2 ) FROM tab1 WHERE NOT + - ( - 49 ) NOT BETWEEN NULL AND col0 / 42 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - MAX ( - col2 ) FROM tab1 WHERE NOT + - ( - 49 ) NOT BETWEEN NULL AND col0 / 42 * + col2
----
NULL

query II rowsort
SELECT DISTINCT + 24, col0 AS col1 FROM tab1
----
24
51
24
85
24
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL + SUM( DISTINCT 47 ) AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + SUM ( DISTINCT 47 ) AS col0 FROM tab2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT 68 * - + 49 AS col2 FROM tab0 cor0 WHERE NOT col1 * ( - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-3332
-3332
-3332

skipif mysql # not compatible
query I rowsort label-7591
SELECT 68 * - + 49 AS col2 FROM tab0 cor0 WHERE NOT col1 * ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-3332
-3332
-3332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT CAST( - ( - col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 + - 46 NOT IN ( - col2 + - 10 )
----

skipif mysql # not compatible
query I rowsort label-7592
SELECT CAST ( - ( - col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 + - 46 NOT IN ( - col2 + - 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT DISTINCT 42 * - + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3402
42
882

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT 42 * - + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3402
42
882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - col1 col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 12 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT COUNT( ALL - col0 ) * - + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7596
SELECT COUNT ( ALL - col0 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT - - COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7597
SELECT - - COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7598
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7598
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT 11 + - COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT 11 + - COUNT ( * ) FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + MIN( DISTINCT + col2 ) FROM tab2 WHERE - + col1 + + col0 < + + 91 - col1
----
23

skipif mysql # not compatible
query I rowsort label-7600
SELECT + MIN ( DISTINCT + col2 ) FROM tab2 WHERE - + col1 + + col0 < + + 91 - col1
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + col0 col2, 75 FROM tab0
----
-2
75
-32
75
77
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7602
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + 85 + + ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7602
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + 85 + + ( CAST ( col0 AS INTEGER ) )
----

query II rowsort
SELECT ALL 79 * - + col1, - 90 AS col1 FROM tab1
----
-1106
-90
-3713
-90
-395
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT SUM( ALL col2 ) * - - COUNT( - col1 ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT SUM ( ALL col2 ) * - - COUNT ( - col1 ) FROM tab0
----
468

query II rowsort
SELECT 48 * - 37 AS col2, ( + col0 ) AS col0 FROM tab1 WHERE NULL = col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 + col1 <= ( + col2 * + 81 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col2 <= - 50
----
51
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT ( + col1 ) * + - 29 - CAST( - col0 AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
-1382
-1801
-2092

skipif mysql # not compatible
query I rowsort label-7608
SELECT ( + col1 ) * + - 29 - CAST ( - col0 AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
-1382
-1801
-2092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7609
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 18 >= + + 53 + + 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 8, + col0 FROM tab2
----
8
46
8
64
8
75

query I rowsort
SELECT - 68 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query II rowsort
SELECT col2 AS col0, - 41 FROM tab1 AS cor0
----
59
-41
68
-41
96
-41

query I rowsort
SELECT ALL - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 11 AS col2 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - col1 * - + 64 FROM tab2 AS cor0
----
3264
4288
4928

query II rowsort
SELECT DISTINCT + 72, col1 FROM tab1 AS cor0
----
72
14
72
47
72
5

query I rowsort
SELECT 1 + - - col0 + col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
142
143
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT - + COUNT( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7620
SELECT - + COUNT ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + 81 col0 FROM tab2 AS cor0 WHERE + col1 + col0 * + col2 NOT IN ( + col0, col1, + + col2 - - col1 * col0 )
----
2682
4570
6010

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT + 50 * - + COUNT( * ) FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-7622
SELECT + 50 * - + COUNT ( * ) FROM tab2
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + 55 ) col1 FROM tab2
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT col1 * - + CAST( 3 AS SIGNED ) FROM tab0
----
-243
-3
-63

skipif mysql # not compatible
query I rowsort label-7624
SELECT col1 * - + CAST ( 3 AS INTEGER ) FROM tab0
----
-243
-3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT ( + SUM( ALL - col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT ( + SUM ( ALL - col0 ) ) FROM tab1
----
-227

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 * - + col1 * - 20 FROM tab2
----
-2464000
-4507760
-539580

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT DISTINCT - - 87 * - + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT - - 87 * - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7629
SELECT ALL - CAST( NULL AS DECIMAL ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - CAST ( NULL AS REAL ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 38 * + - col1 * + - 37 FROM tab1 AS cor0
----
19684
66082
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7631
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT + col1 * 77 FROM tab2
----
3927
5159
5929

query I rowsort
SELECT + 8 * - - 4 AS col1 FROM tab2
----
32
32
32

query I rowsort
SELECT ALL + + col0 * + ( col0 ) FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT + col2 * - - col0 + + col1 + + col2 AS col0 FROM tab1 AS cor0
----
5006
5079
6303

query I rowsort
SELECT + + col2 + col2 * + ( - col2 ) FROM tab2 AS cor0
----
-1560
-3306
-506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT + 5 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT + 5 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col1 + + + ( + + 75 ) FROM tab2 AS cor0
----
-2
24
8

query I rowsort
SELECT DISTINCT + + col1 + - + 26 FROM tab1 AS cor0
----
-12
-21
21

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * + col2 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) * + 86 FROM tab0 WHERE NULL IS NULL
----
4042
8514
860

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) * + 86 FROM tab0 WHERE NULL IS NULL
----
4042
8514
860

query I rowsort
SELECT ALL 78 * 38 + + col1 FROM tab1
----
2969
2978
3011

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab0
----
-9

query II rowsort
SELECT 77 AS col1, + 88 * + 70 + + col2 + + ( 50 ) FROM tab1
----
77
6269
77
6278
77
6306

query III rowsort
SELECT * FROM tab2 WHERE - - 7 + - col0 >= + col2 * col0 * - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + + + col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 / - col0 + col0 / - ( + 78 ) + 75 BETWEEN - 7 AND NULL
----

query I rowsort
SELECT ALL 76 + + + col1 FROM tab0
----
157
77
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7650
SELECT DISTINCT col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * - - 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT COUNT( * ) * + 56 AS col2 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-7652
SELECT COUNT ( * ) * + 56 AS col2 FROM tab2
----
168

query I rowsort
SELECT col2 * + 7 + - 0 + + 1 + col0 AS col1 FROM tab1 WHERE - - 46 * - + 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT - + MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT - + MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL COUNT( * ) * 10 FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL COUNT ( * ) * 10 FROM tab1 cor0
----
30

query II rowsort
SELECT - 45 - col1, + col1 FROM tab2 AS cor0 WHERE NULL <> 10
----

query I rowsort
SELECT + col2 + - 47 AS col2 FROM tab2
----
-24
-7
11

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + col2 * col1 col2 FROM tab2
----
1127
3016
3811

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + - - 80 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL 7 AS col0 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 >= + col1
----
46
64

onlyif mysql # DIV for integer division: 
query II rowsort label-7664
SELECT - + 6 DIV + col0 AS col1, col0 + - col1 FROM tab2 AS cor0
----
0
-13
0
-5
0
8

skipif mysql # not compatible
query II rowsort label-7664
SELECT - + 6 / + col0 AS col1, col0 + - col1 FROM tab2 AS cor0
----
0
-13
0
-5
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + COUNT( col0 ) * + 66 FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7665
SELECT + COUNT ( col0 ) * + 66 FROM tab1 AS cor0
----
198

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 * col0 IS NOT NULL )
----

query I rowsort
SELECT col0 * + 6 AS col2 FROM tab1
----
306
510
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, 11 + + - 89 col1 FROM tab2
----
51
-78
67
-78
77
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7669
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7669
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7670
SELECT COUNT( * ) col1, 52 FROM tab1 AS cor0
----
3
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7670
SELECT COUNT ( * ) col1, 52 FROM tab1 AS cor0
----
3
52

query I rowsort
SELECT DISTINCT - col1 * - 70 AS col0 FROM tab1 AS cor0
----
3290
350
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + 5 + + col1 col2 FROM tab0 cor0 WHERE + 98 * - 63 / + col2 IS NOT NULL
----
-10
26
-47
86
-99
6

query I rowsort
SELECT - + col1 * - - col0 * - 50 AS col1 FROM tab1 cor0
----
21250
213850
35700

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < 65 / - - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 92 + - col2 <> - 5 + + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7676
SELECT - + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2, - ( 56 ) AS col2 FROM tab0 AS cor0
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-7676
SELECT - + COUNT ( * ) * CAST ( NULL AS REAL ) AS col2, - ( 56 ) AS col2 FROM tab0 AS cor0
----
NULL
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NULL <> + col0
----

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL - - CAST( NULL AS SIGNED ) + - 83 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 83 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 72 * + col2 + - 64 AS col0 FROM tab0 AS cor0
----
3320
656
7064

query I rowsort
SELECT 47 + + col1 AS col0 FROM tab0
----
128
48
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7681
SELECT ALL 44 DIV + + col1 + - + col2 col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7681
SELECT ALL 44 / + + col1 + - + col2 col0 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE ( + - col1 ) NOT BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - col2 ) + + - col0 * - col0 + - col0 + col2 * + 62 * + + 25 AS col1 FROM tab2
----
37697
65992
95392

query I rowsort
SELECT DISTINCT col0 - 78 * col0 AS col1 FROM tab1
----
-3927
-6545
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT col0 + + col1 / + CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT col0 + + col1 / + CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 69 * + col1 * - col0 + col2 AS col2 FROM tab1
----
-2492566
-2512470
-26855215

query I rowsort
SELECT ALL ( + col1 ) * + col0 FROM tab1 WHERE NULL NOT IN ( + - col1, col1 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7688
SELECT DISTINCT * FROM tab1 WHERE - + col1 < 43 + + - col2 * CAST( NULL AS SIGNED ) / + col0
----

skipif mysql # not compatible
query III rowsort label-7688
SELECT DISTINCT * FROM tab1 WHERE - + col1 < 43 + + - col2 * CAST ( NULL AS INTEGER ) / + col0
----

query I rowsort
SELECT - + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 25 - - col2 FROM tab0
----
124
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT - 91 + + COUNT( + - col2 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-7691
SELECT - 91 + + COUNT ( + - col2 ) FROM tab0
----
-88

query I rowsort
SELECT - + ( 87 ) * + - col1 AS col1 FROM tab2 cor0
----
4437
5829
6699

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL - COUNT( * ) - - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - COUNT ( * ) - - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT MIN( - - 96 ) col1 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7694
SELECT MIN ( - - 96 ) col1 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + + 32 FROM tab0 WHERE NOT NULL IS NOT NULL
----
32
32
32

query II rowsort
SELECT ALL 62 AS col0, col1 AS col0 FROM tab2 AS cor0
----
62
51
62
67
62
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + MAX( DISTINCT - - 7 ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7697
SELECT + MAX ( DISTINCT - - 7 ) FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL + MIN( ALL - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT + MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT + MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT ALL - - 89 DIV - - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL - - 89 / - - col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT col2 * + 53 + ( col2 ) FROM tab2 AS cor0
----
1242
2160
3132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col0 FROM tab1
----
75

query I rowsort
SELECT - col1 / - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * - 20 * + - col0 * 92 * + col1 AS col0 FROM tab0
----
105073200
17669520
33616800

query I rowsort
SELECT 65 * col0 AS col0 FROM tab0
----
5655
6305
975

query II rowsort
SELECT ( + + 58 ), - 68 AS col1 FROM tab0
----
58
-68
58
-68
58
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - + 59 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT + SUM( DISTINCT - 35 ) AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT + SUM ( DISTINCT - 35 ) AS col2 FROM tab1 AS cor0
----
-35

query II rowsort
SELECT DISTINCT + + col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT 69 + - 69 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0 + col2 * - 54 AS col2, 59 + 89 AS col0 FROM tab1 AS cor0
----
-3101
148
-3581
148
-5133
148

query II rowsort
SELECT DISTINCT + col0 + col1 + + + 66, col2 FROM tab1 AS cor0
----
131
96
156
59
204
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT - MAX( + CAST( + + 68 AS SIGNED ) ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-7713
SELECT - MAX ( + CAST ( + + 68 AS INTEGER ) ) FROM tab0
----
-68

query I rowsort
SELECT ALL col0 + - col0 - + 66 FROM tab0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT - SUM( + + 82 ) AS col1 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-7715
SELECT - SUM ( + + 82 ) AS col1 FROM tab0
----
-246

query II rowsort
SELECT DISTINCT col2 + - - col2 AS col0, + 34 FROM tab2
----
116
34
46
34
80
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT 67 - - MAX( ALL - col1 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT 67 - - MAX ( ALL - col1 ) FROM tab1
----
62

query I rowsort
SELECT DISTINCT + col1 - + col0 - - col2 FROM tab1
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT + 48 - - - COUNT( + 96 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7719
SELECT + 48 - - - COUNT ( + 96 ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT - ( CAST( - - 92 AS SIGNED ) ) AS col0 FROM tab2
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-7721
SELECT - ( CAST ( - - 92 AS INTEGER ) ) AS col0 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT ALL - col1 * - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - col1 * - 6 AS col2 FROM tab0 cor0
----
126
486
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT ALL 24 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL 24 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( - - 72 ) * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT COUNT( * ) * + 2 AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7726
SELECT COUNT ( * ) * + 2 AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - col2 * + 13 FROM tab1
----
-1248
-767
-884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col1 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT SUM( ALL col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7729
SELECT SUM ( ALL col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT DISTINCT 20 * - + col1 FROM tab0
----
-1620
-20
-420

query I rowsort
SELECT + col2 + - col2 FROM tab2 WHERE NOT NULL <> - + 22
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + col0 * - - ( + 75 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - 73
----

query I rowsort
SELECT DISTINCT col1 + + - col0 + - col0 FROM tab0 cor0
----
-153
-193
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT - CAST( NULL AS SIGNED ) * - - 59 * - + 71 * - + ( + - col0 ) * 94 / + - col2 + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT - CAST ( NULL AS INTEGER ) * - - 59 * - + 71 * - + ( + - col0 ) * 94 / + - col2 + + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 41 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ), - 91 col2 FROM tab2
----
-51
-91
-67
-91
-77
-91

query I rowsort
SELECT DISTINCT 80 - + col1 FROM tab1
----
33
66
75

query I rowsort
SELECT DISTINCT 41 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 * col1 col2, 17 + + + col2 * + - col1 FROM tab1 AS cor0
----
238
-1327
799
-3179
85
-278

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - COUNT( * ) - - 88 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7741
SELECT - COUNT ( * ) - - 88 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT + COUNT( * ) - - + COUNT( DISTINCT 54 ) * 94 AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7742
SELECT + COUNT ( * ) - - + COUNT ( DISTINCT 54 ) * 94 AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL - SUM( ALL col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - SUM ( ALL col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-202

query I rowsort
SELECT + - 98 - col2 AS col0 FROM tab0 cor0
----
-108
-145
-197

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 84 * + col1 ) IS NULL
----

query I rowsort
SELECT + col0 * + 64 + - 73 + - - col0 FROM tab2
----
2917
4087
4802

query I rowsort
SELECT + 27 + col0 AS col0 FROM tab1
----
112
118
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + MAX( col0 ) + - - 78 + 67 AS col0 FROM tab0
----
242

skipif mysql # not compatible
query I rowsort label-7748
SELECT + MAX ( col0 ) + - - 78 + 67 AS col0 FROM tab0
----
242

query II rowsort
SELECT DISTINCT + 32 + + 10 + - - 67 AS col0, 30 AS col1 FROM tab1
----
109
30

query II rowsort
SELECT 27, - col0 AS col0 FROM tab0
----
27
-15
27
-87
27
-97

query I rowsort
SELECT DISTINCT + col0 * - 60 AS col2 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT ALL + + col1 * col1 * 96 * CAST( NULL AS SIGNED ) * + col2 + - ( - col1 ) + + ( - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL + + col1 * col1 * 96 * CAST ( NULL AS INTEGER ) * + col2 + - ( - col1 ) + + ( - col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2, + 81 + + col1 FROM tab0 AS cor0
----
10
102
47
162
99
82

query I rowsort
SELECT col2 * + 45 AS col0 FROM tab2 AS cor0
----
1035
1800
2610

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col0 / col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7756
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 * + ( + col2 ) FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7758
SELECT 2 DIV - - ( - - col0 ) * col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT 2 / - - ( - - col0 ) * col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT SUM( DISTINCT 23 ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7759
SELECT SUM ( DISTINCT 23 ) FROM tab0 AS cor0
----
23

query II rowsort
SELECT DISTINCT 30 * - - 50 + + + col2 * - - 61, col2 AS col0 FROM tab2 AS cor0
----
2903
23
3940
40
5038
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7761
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 56 <> - - col2 + 70 + col1 + + + col2 + + col1 - - 82 + - col0 * col2 * 64 / + col2 - + 36 + - CAST( NULL AS SIGNED ) + + col2 * + - ( - - col2 ) * + + col0 + + col0
----

skipif mysql # not compatible
query III rowsort label-7761
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 56 <> - - col2 + 70 + col1 + + + col2 + + col1 - - 82 + - col0 * col2 * 64 / + col2 - + 36 + - CAST ( NULL AS INTEGER ) + + col2 * + - ( - - col2 ) * + + col0 + + col0
----

query I rowsort
SELECT ALL - - 21 * - col1 FROM tab1 AS cor0
----
-105
-294
-987

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT col1 * col0 * - + 14 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7764
SELECT ALL - MAX( - + 2 ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL - MAX ( - + 2 ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT - SUM( ALL + CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7765
SELECT - SUM ( ALL + CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - ( + 48 ) AS col1 FROM tab0 AS cor0
----
-48
-48
-48

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col1, - col0 )
----

query II rowsort
SELECT ALL - 24 + + col1 + + ( + - col0 ) AS col1, 10 + + + col2 AS col1 FROM tab0 AS cor0
----
-120
109
-90
20
42
57

query I rowsort
SELECT DISTINCT + col0 + + 80 FROM tab1 cor0
----
131
165
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT COUNT( * ) + + - MIN( ALL col2 ) FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT COUNT ( * ) + + - MIN ( ALL col2 ) FROM tab1
----
-56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - 72 * - COUNT( * ) AS col2 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-7772
SELECT - 72 * - COUNT ( * ) AS col2 FROM tab1
----
216

query I rowsort
SELECT + col1 * - 34 AS col2 FROM tab2
----
-1734
-2278
-2618

query I rowsort
SELECT DISTINCT col0 * col0 * + - 24 FROM tab2
----
-135000
-50784
-98304

query I rowsort
SELECT ALL + 97 * - + col2 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT DISTINCT col0 + + col2 * + col1 * + col0 * - 24 AS col2 FROM tab0 AS cor0
----
-1370505
-230375
-438393

query I rowsort
SELECT ALL 90 + - 12 FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + 36 + - COUNT( 63 ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7778
SELECT + 36 + - COUNT ( 63 ) FROM tab0
----
33

query I rowsort
SELECT col0 + - + 3 AS col1 FROM tab0
----
12
84
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT SUM( - - col2 ) + - - COUNT( * ) AS col2 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-7780
SELECT SUM ( - - col2 ) + - - COUNT ( * ) AS col2 FROM tab2
----
124

query I rowsort
SELECT ALL col1 - + 8 + + col0 + + 60 FROM tab2
----
149
193
194

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <> - 71 + - 91
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - - col2 ) * + - 96 * - col1 col1 FROM tab1 cor0
----
129024
28320
306816

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL + + SUM( + col1 ) + + MAX( + 75 ) FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL + + SUM ( + col1 ) + + MAX ( + 75 ) FROM tab1 cor0
----
141

query I rowsort
SELECT DISTINCT + ( + - 73 ) FROM tab1 cor0
----
-73

query I rowsort
SELECT DISTINCT + 71 + - - 29 FROM tab0 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT - ( - - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7788
SELECT - ( - - COUNT ( * ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 + - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT col1 DIV + 39 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7790
SELECT col1 / + 39 AS col0 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL SUM( + 11 ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL SUM ( + 11 ) FROM tab0
----
33

query I rowsort
SELECT DISTINCT + - col2 * - + col2 FROM tab2 cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT + COUNT( DISTINCT + 22 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT + COUNT ( DISTINCT + 22 ) FROM tab1
----
1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT + col1 DIV - + 94 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT + col1 / - + 94 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT - 7 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7796
SELECT - 7 / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 69 * + + 88 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + + col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query II rowsort
SELECT ALL - 32, 42 AS col1 FROM tab1 cor0
----
-32
42
-32
42
-32
42

query II rowsort
SELECT ALL - - col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT + - ( - col0 ) + 16 FROM tab0 AS cor0
----
103
113
31

query II rowsort
SELECT + col0, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT + 1 * + col2 * 2 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + 25 AND ( + - 13 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7805
SELECT + 27 * CAST( - 93 AS SIGNED ) + 98 col0, + CAST( NULL AS SIGNED ) * + + 43 / - - 77 * - - col1 FROM tab1
----
-2413
NULL
-2413
NULL
-2413
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7805
SELECT + 27 * CAST ( - 93 AS INTEGER ) + 98 col0, + CAST ( NULL AS INTEGER ) * + + 43 / - - 77 * - - col1 FROM tab1
----
-2413
NULL
-2413
NULL
-2413
NULL

query I rowsort
SELECT ALL + 64 * col0 FROM tab0
----
5568
6208
960

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT DISTINCT + 31 DIV - col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT + 31 / - col2 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - MIN( DISTINCT + + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - MIN ( DISTINCT + + col1 ) FROM tab1
----
-5

query I rowsort
SELECT + col2 * col2 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 17 * + col2 AS col2 FROM tab0 AS cor0
----
1683
170
799

query I rowsort
SELECT DISTINCT 91 * col2 - + col0 FROM tab1
----
5284
6097
8685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT DISTINCT CAST( + 6 AS SIGNED ) + + ( col2 ) FROM tab1
----
102
65
74

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT CAST ( + 6 AS INTEGER ) + + ( col2 ) FROM tab1
----
102
65
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT ALL 99 - - 52 DIV - COUNT( ALL - col1 ) AS col2 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL 99 - - 52 / - COUNT ( ALL - col1 ) AS col2 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT SUM( DISTINCT + 31 ) AS col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT SUM ( DISTINCT + 31 ) AS col0 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + ( - - 60 ) - MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7815
SELECT + ( - - 60 ) - MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - col0 - - 24 FROM tab1 AS cor0
----
-27
-61
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT ALL - ( col0 ) + + - col2 DIV 24 + + + 1 AS col1 FROM tab0 AS cor0
----
-100
-15
-86

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - ( col0 ) + + - col2 / 24 + + + 1 AS col1 FROM tab0 AS cor0
----
-100
-15
-86

query I rowsort
SELECT + + 89 * - 13 + + 0 * - col1 FROM tab2 cor0
----
-1157
-1157
-1157

query I rowsort
SELECT ALL + + col2 * 19 FROM tab2 AS cor0
----
1102
437
760

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 33 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT DISTINCT + ( + - CAST( col2 AS SIGNED ) ) AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT + ( + - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7822
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 66 + - col2 AS col1 FROM tab0
----
NULL
-33
NULL
19
NULL
56

skipif mysql # not compatible
query II rowsort label-7822
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 66 + - col2 AS col1 FROM tab0
----
NULL
-33
NULL
19
NULL
56

query II rowsort
SELECT ALL 53, ( + col0 ) FROM tab0
----
53
15
53
87
53
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( - + col2 + col1 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT - 58 DIV + - col1 FROM tab1
----
1
11
4

skipif mysql # not compatible
query I rowsort label-7825
SELECT - 58 / + - col1 FROM tab1
----
1
11
4

query I rowsort
SELECT - 21 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col2, col1, + col2 + - ( - 79 ) )
----

query II rowsort
SELECT col1, ( - col1 ) AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT - 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 42 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col1 FROM tab1 AS cor0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7832
SELECT DISTINCT + 99 + 16 DIV - col0 col2 FROM tab2 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7832
SELECT DISTINCT + 99 + 16 / - col0 col2 FROM tab2 cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT DISTINCT + 15 DIV + ( ( col0 ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + 15 / + ( ( col0 ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT - - COUNT( * ) * 10 + - - COUNT( - col2 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7834
SELECT - - COUNT ( * ) * 10 + - - COUNT ( - col2 ) FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT + - 79 * + + MAX( ALL + col1 ) FROM tab2 AS cor0
----
-6083

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT + - 79 * + + MAX ( ALL + col1 ) FROM tab2 AS cor0
----
-6083

query I rowsort
SELECT + 59 + + 88 AS col0 FROM tab1 AS cor0
----
147
147
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - - 41 - - col2 col0 FROM tab1 cor0
----
123
62
95

query I rowsort
SELECT ALL col2 * - + 80 * + col1 FROM tab0 AS cor0
----
-16800
-304560
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT + 97 + - + COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT + 97 + - + COUNT ( * ) FROM tab0
----
94

query I rowsort
SELECT 26 AS col0 FROM tab1 WHERE - col1 > - 80
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT ALL 45 + - - ( col1 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL 45 + - - ( col1 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + 6 AS col2 FROM tab2
----
52
70
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab1
----
16

query I rowsort
SELECT col0 * + + col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT 91 * - COUNT( DISTINCT col0 ) FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-7845
SELECT 91 * - COUNT ( DISTINCT col0 ) FROM tab2
----
-273

query II rowsort
SELECT ALL 6, - ( + col2 ) AS col1 FROM tab0
----
6
-10
6
-47
6
-99

query I rowsort
SELECT col2 * + 28 AS col1 FROM tab2
----
1120
1624
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT CAST( - col2 AS SIGNED ) + 81 + - + col1 FROM tab0 WHERE NULL IS NULL
----
-19
-47
50

skipif mysql # not compatible
query I rowsort label-7848
SELECT CAST ( - col2 AS INTEGER ) + 81 + - + col1 FROM tab0 WHERE NULL IS NULL
----
-19
-47
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT - 23 DIV - 46 * + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7849
SELECT - 23 / - 46 * + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 75 + - col0 - - col0 + + 25 * - col2 FROM tab0 AS cor0
----
-1100
-175
-2400

query II rowsort
SELECT DISTINCT - 66 + - 15 + col2 AS col0, - 0 + - col1 FROM tab2 AS cor0
----
-23
-67
-41
-77
-58
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT ALL + 5 * col2 DIV - 47 + - 54 FROM tab1 cor0
----
-60
-61
-64

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL + 5 * col2 / - 47 + - 54 FROM tab1 cor0
----
-60
-61
-64

query I rowsort
SELECT + 31 + + col1 * - ( 31 ) AS col0 FROM tab0
----
-2480
-620
0

query III rowsort
SELECT * FROM tab1 WHERE + 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 9 + col1 AS col0 FROM tab0
----
10
30
90

query I rowsort
SELECT ALL 97 - 54 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT 39 * - + 16 + - MAX( - col0 ) FROM tab1
----
-573

skipif mysql # not compatible
query I rowsort label-7857
SELECT 39 * - + 16 + - MAX ( - col0 ) FROM tab1
----
-573

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * col2 + + col0 + + - 84 AND col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL - + MAX( DISTINCT + 56 ) * ( - 51 ) AS col1 FROM tab1 cor0
----
2856

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - + MAX ( DISTINCT + 56 ) * ( - 51 ) AS col1 FROM tab1 cor0
----
2856

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7861
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * + - 99 / 94 + col0 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7861
SELECT DISTINCT - + CAST ( NULL AS REAL ) * + - 99 / 94 + col0 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7862
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - col2 > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7862
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / - col2 > CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT - col0 DIV col2 col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7863
SELECT - col0 / col2 col2 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT - col0 * + col0 AS col1 FROM tab2 WHERE NOT + 10 / - col1 * + 28 IS NOT NULL
----

query I rowsort
SELECT - col0 * + 50 FROM tab1
----
-2550
-4250
-4550

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + - + 98 = - - col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + 7 * COUNT( * ) FROM tab2 cor0
----
21

skipif mysql # not compatible
query I rowsort label-7867
SELECT + 7 * COUNT ( * ) FROM tab2 cor0
----
21

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 75 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7870
SELECT ALL COUNT( * ), 8 - + - 15 col0 FROM tab2
----
3
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7870
SELECT ALL COUNT ( * ), 8 - + - 15 col0 FROM tab2
----
3
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT - MAX( ALL - col0 ) col0 FROM tab2 WHERE NOT + 65 IS NULL
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7871
SELECT - MAX ( ALL - col0 ) col0 FROM tab2 WHERE NOT + 65 IS NULL
----
46

query I rowsort
SELECT + col1 + - - col0 * + col0 * - col2 AS col0 FROM tab1
----
-249682
-426270
-563061

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT 7 DIV + - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT 7 / + - col2 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( col0 ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7875
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 22 - CAST( NULL AS SIGNED ) AND + + col0
----
51
14
96

skipif mysql # not compatible
query III rowsort label-7875
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 22 - CAST ( NULL AS INTEGER ) AND + + col0
----
51
14
96

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT - COUNT( ALL col2 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7877
SELECT - COUNT ( ALL col2 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 * - 88 + - + col0 AS col0 FROM tab1 AS cor0
----
-5277
-6075
-8499

query II rowsort
SELECT + col0 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT - col2 * col2 + + 74 AS col1 FROM tab0
----
-2135
-26
-9727

query I rowsort
SELECT 68 * - - 49 + + 10 * + - 52 FROM tab2
----
2812
2812
2812

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT + col0 DIV 30 + + + col2 * - 90 AS col0 FROM tab2
----
-2069
-3598
-5218

skipif mysql # not compatible
query I rowsort label-7882
SELECT + col0 / 30 + + + col2 * - 90 AS col0 FROM tab2
----
-2069
-3598
-5218

query I rowsort
SELECT col2 + - - col1 * - 74 FROM tab1
----
-311
-3410
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT ALL + 70 DIV - ( col2 ) FROM tab0 WHERE NOT - col2 * - col0 + col1 IS NULL
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + 70 / - ( col2 ) FROM tab0 WHERE NOT - col2 * - col0 + col1 IS NULL
----
-1
-7
0

query I rowsort
SELECT ALL + 48 * - + ( + - ( + 75 ) ) AS col1 FROM tab1 AS cor0
----
3600
3600
3600

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col0 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT - + ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 * - 76 + - col0 FROM tab2 AS cor0
----
3830
5017
5788

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT COUNT( - 77 ) + - 8 * 44 FROM tab2
----
-349

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT COUNT ( - 77 ) + - 8 * 44 FROM tab2
----
-349

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT - MIN( + 33 ) * 12 AS col2 FROM tab2
----
-396

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - MIN ( + 33 ) * 12 AS col2 FROM tab2
----
-396

query II rowsort
SELECT DISTINCT + - 35 AS col1, 75 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-35
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 52 > + col0 + 90 + + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT MAX( DISTINCT 14 ) * + COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7895
SELECT MAX ( DISTINCT 14 ) * + COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT SUM( - 22 ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7896
SELECT SUM ( - 22 ) AS col2 FROM tab2 AS cor0
----
-66

query II rowsort
SELECT col2, 36 FROM tab0 cor0
----
10
36
47
36
99
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT COUNT( * ) * CAST( - - 8 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7898
SELECT COUNT ( * ) * CAST ( - - 8 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
24

query I rowsort
SELECT ALL - col1 * + 69 AS col1 FROM tab0 AS cor0
----
-1449
-5589
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col1 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 20 * - col1 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 < col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT DISTINCT - 20 DIV - 12 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - 20 / - 12 AS col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * - - col0 col0 FROM tab2 AS cor0
----
3680
5120
6000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 78 col0 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL + - ( 46 ) + + 70 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL + SUM( ALL + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL + SUM ( ALL + col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT + 18 + + - col1 FROM tab2
----
-33
-49
-59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 25 * + - col1 * + col0 * - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + - SUM( - 54 ) + - - ( - COUNT( * ) ) FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-7912
SELECT + - SUM ( - 54 ) + - - ( - COUNT ( * ) ) FROM tab0 cor0
----
159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 11 <= NULL
----

query I rowsort
SELECT 29 + - - 11 + + col0 FROM tab2 AS cor0
----
104
115
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT ALL CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT - - COUNT( * ) + - COUNT( * ) - MIN( - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7916
SELECT - - COUNT ( * ) + - COUNT ( * ) - MIN ( - col1 ) FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 cor0 WHERE - 6 * col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7919
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT ALL + col0 - col2 - - col1 DIV + ( + + 41 ) AS col2 FROM tab1
----
-45
24
26

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + col0 - col2 - - col1 / + ( + + 41 ) AS col2 FROM tab1
----
-45
24
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - SUM( + 91 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-7921
SELECT - SUM ( + 91 ) FROM tab1
----
-273

query II rowsort
SELECT col2 AS col0, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL + 62 * col1 - + col0 + col0 - + ( col1 ) * - + col0 * + 73 FROM tab0
----
134673
7143
93717

query II rowsort
SELECT + 39, 93 * - col0 * + col0 AS col2 FROM tab1
----
39
-241893
39
-671925
39
-770133

query I rowsort
SELECT DISTINCT + col1 + + - col1 * + col0 FROM tab1
----
-420
-4230
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT col2 - + col1 DIV 14 AS col2 FROM tab1
----
59
65
95

skipif mysql # not compatible
query I rowsort label-7926
SELECT col2 - + col1 / 14 AS col2 FROM tab1
----
59
65
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - COUNT( * ) - + 21 AS col1 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-7927
SELECT - COUNT ( * ) - + 21 AS col1 FROM tab0
----
-24

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab0 AS cor0 WHERE + 55 * col0 * + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( + col0 ) NOT BETWEEN + 92 * 58 * - col2 AND ( - col1 )
----
75
67
58

query I rowsort
SELECT ALL 24 FROM tab1 AS cor0 WHERE NOT 46 IS NULL
----
24
24
24

query I rowsort
SELECT ( - + 14 ) * + - col2 * + col0 FROM tab0
----
12180
134442
9870

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7932
SELECT + + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT - 76 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
-197676
-341164
-450604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT 53 + - CAST( col0 AS SIGNED ) + - + col2 - col1 * - + col1 * - col0 * 84 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7935
SELECT 53 + - CAST ( col0 AS INTEGER ) + - + col2 - col1 * - + col1 * - col0 * 84 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col2 * col2 AS col2, - ( - col1 ) FROM tab1 AS cor0
----
3481
5
4624
47
9216
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7937
SELECT + 55 DIV - - col0 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7937
SELECT + 55 / - - col0 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + ( - 98 ) FROM tab1
----
-98
-98
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT ALL MAX( - col0 ) FROM tab0 WHERE NOT - col1 * - 55 + - + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL MAX ( - col0 ) FROM tab0 WHERE NOT - col1 * - 55 + - + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + 86 * - col0 FROM tab0
----
-1290
-7482
-8342

query I rowsort
SELECT + 95 + + 8 FROM tab0 WHERE NOT col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL <> ( NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col0 FROM tab0
----
1215
1827
97

query II rowsort
SELECT 25, - col2 + 6 AS col0 FROM tab0
----
25
-4
25
-41
25
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 45 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7946
SELECT + col1 DIV 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT + col1 / 95 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT ALL + col2 DIV + 48 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL + col2 / + 48 FROM tab0 AS cor0
----
0
0
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( 41 ) <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 / col0 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + col2 * - col2, col2 col2 FROM tab2 AS cor0
----
-1560
40
-3306
58
-506
23

query I rowsort
SELECT + 53 + - col1 FROM tab2 AS cor0
----
-14
-24
2

query I rowsort
SELECT ( + col2 ) * 22 FROM tab0
----
1034
2178
220

query I rowsort
SELECT ALL 22 * col0 + 41 FROM tab2
----
1053
1449
1691

query I rowsort
SELECT DISTINCT col2 + 40 * + col1 FROM tab2
----
2063
2738
3120

query I rowsort
SELECT DISTINCT - col2 * 35 FROM tab1
----
-2065
-2380
-3360

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT 12 + 66 * - col2 AS col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) * + col2 - 90 IS NULL
----
-1506
-2628
-3816

skipif mysql # not compatible
query I rowsort label-7957
SELECT 12 + 66 * - col2 AS col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * + col2 - 90 IS NULL
----
-1506
-2628
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT ALL + MIN( ALL + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + MIN ( ALL + col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT 45 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab0
----
79
79
79

query I rowsort
SELECT 64 + 76 FROM tab1
----
140
140
140

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT - 78 DIV 40 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7962
SELECT - 78 / 40 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT col0 FROM tab2 WHERE NULL NOT BETWEEN col2 + - 88 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7964
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND ( col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 99 * - col1 FROM tab0
----
-2079
-8019
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * - 94 ) > ( + ( - col2 ) + 17 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT CAST( col0 AS SIGNED ) * - col2 AS col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-7968
SELECT CAST ( col0 AS INTEGER ) * - col2 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT COUNT( * ) * - COUNT( DISTINCT 65 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7969
SELECT COUNT ( * ) * - COUNT ( DISTINCT 65 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7970
SELECT ALL - CAST( + 85 AS SIGNED ) + + col2 FROM tab1 WHERE NOT ( + ( - col1 ) * col2 ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL - CAST ( + 85 AS INTEGER ) + + col2 FROM tab1 WHERE NOT ( + ( - col1 ) * col2 ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT DISTINCT col2 DIV 18 AS col1 FROM tab1
----
3
5

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT col2 / 18 AS col1 FROM tab1
----
3
5

query I rowsort
SELECT 11 * + col0 FROM tab0
----
1067
165
957

query I rowsort
SELECT ALL - 42 * - col2 FROM tab1
----
2478
2856
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-7974
SELECT ALL ( + col2 ) DIV - 47 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL ( + col2 ) / - 47 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + SUM( ALL 9 ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-7975
SELECT + SUM ( ALL 9 ) AS col1 FROM tab1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT CAST( MIN( col2 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-7976
SELECT CAST ( MIN ( col2 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7977
SELECT col1 DIV - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7977
SELECT col1 / - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL + MAX( + ( - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + MAX ( + ( - col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT 88 DIV + MIN( col0 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7979
SELECT 88 / + MIN ( col0 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT 75 AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT + MIN( ALL - 69 ) AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-7981
SELECT + MIN ( ALL - 69 ) AS col1 FROM tab2 AS cor0
----
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - + 80 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-7984
SELECT - + 80 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
240

query I rowsort
SELECT DISTINCT - 59 FROM tab1 cor0 WHERE NULL NOT IN ( - 94 + - col0 )
----

query I rowsort
SELECT - ( - 91 ) FROM tab2 cor0
----
91
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 17 + col1 ) <= ( - 13 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT + MIN( + - col2 ) + 90 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT + MIN ( + - col2 ) + 90 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT - ( - 90 ) AS col2 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT DISTINCT - ( COUNT( * ) ) FROM tab2 WHERE NOT - 81 * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab2 WHERE NOT - 81 * col0 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + 39
----

query I rowsort
SELECT ( + col2 ) FROM tab1 WHERE NOT NULL = - col2 / + 72
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT - SUM( 30 ) + CAST( NULL AS SIGNED ) / - 75 FROM tab0 WHERE NOT ( + ( col1 ) * col0 + 92 ) <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT - SUM ( 30 ) + CAST ( NULL AS INTEGER ) / - 75 FROM tab0 WHERE NOT ( + ( col1 ) * col0 + 92 ) <> col2
----
NULL

query I rowsort
SELECT ALL 76 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 53 * - col0 * col0 FROM tab1
----
-137853
-382925
-438893

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL 71 * - - 86 * COUNT( * ) col1 FROM tab1
----
18318

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7996
SELECT ALL 71 * - - 86 * COUNT ( * ) col1 FROM tab1
----
18318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT COUNT( * ) * - 93 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-7998
SELECT COUNT ( * ) * - 93 FROM tab1
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7999
SELECT DISTINCT + CAST( 7 AS SIGNED ) * col2 col2 FROM tab0
----
329
693
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7999
SELECT DISTINCT + CAST ( 7 AS INTEGER ) * col2 col2 FROM tab0
----
329
693
70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT BETWEEN col1 + col2 * - col2 AND + 3 * col2
----
15
81
47
97
1
99

query I rowsort
SELECT 23 * - + 14 FROM tab2
----
-322
-322
-322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 WHERE NOT - col2 + - col2 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT ALL - - CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + ( + 58 * 35 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT MAX( - - col1 ) + + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT MAX ( - - col1 ) + + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8006
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT ALL col1 FROM tab0 WHERE ( NOT NULL = - CAST( NULL AS SIGNED ) / col0 + + 65 * - 33 )
----

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL col1 FROM tab0 WHERE ( NOT NULL = - CAST ( NULL AS INTEGER ) / col0 + + 65 * - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT - COUNT( * ) + + 23 col2 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8008
SELECT - COUNT ( * ) + + 23 col2 FROM tab0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT ALL - CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT ALL - CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT ALL 52 AS col0, COUNT( DISTINCT + - col0 ) - MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
52
-43

skipif mysql # not compatible
query II rowsort label-8010
SELECT ALL 52 AS col0, COUNT ( DISTINCT + - col0 ) - MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
52
-43

query I rowsort
SELECT col2 * 39 - col0 + 2 + + col1 FROM tab2 AS cor0
----
1575
2256
904

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + col0 ) IN ( - 51 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 75 + + 87 FROM tab1 AS cor0
----
162
162
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT AVG ( DISTINCT col0 ) / - ( - SUM( ALL - col0 ) * + COUNT( * ) ) col2 FROM tab1 cor0 WHERE 24 <> ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8014
SELECT AVG ( DISTINCT col0 ) / - ( - SUM ( ALL - col0 ) * + COUNT ( * ) ) col2 FROM tab1 cor0 WHERE 24 <> ( NULL )
----
NULL

query II rowsort
SELECT ALL col2 AS col0, 4 AS col2 FROM tab1 AS cor0
----
59
4
68
4
96
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= ( + ( - col1 ) + + 28 * + 6 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE ( - + col1 ) > 69
----

query I rowsort
SELECT - col2 - + 48 FROM tab2 WHERE - col0 > + 73 * 97 + 66 / + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8019
SELECT + 43 * - 0, - CAST( NULL AS DECIMAL ) * + col2 col0 FROM tab0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8019
SELECT + 43 * - 0, - CAST ( NULL AS REAL ) * + col2 col0 FROM tab0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT ALL + col2 - col1 + - ( + + 44 ) AS col1 FROM tab2
----
-53
-72
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + - col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - AVG ( 79 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 49 FROM tab1 AS cor0 WHERE NOT 83 / + ( - + ( col2 ) ) / 48 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT + CAST( NULL AS SIGNED ) * 12 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT + CAST ( NULL AS INTEGER ) * 12 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 + + - col0 col2 FROM tab0
----
15
66
87
-66
97
-96

query I rowsort
SELECT col0 * - + 39 * - + col1 * + col1 FROM tab0
----
1496313
3783
3838185

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL COUNT( - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL COUNT ( - col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL - - COUNT( ALL - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - - COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < + col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab1 cor0
----
-227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 91 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ( ( COUNT( * ) ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8034
SELECT ( ( COUNT ( * ) ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + ( 1 ) * + col2 FROM tab1 AS cor0 WHERE col1 < - 86 * - col0 * - col0
----

query I rowsort
SELECT ALL + ( col2 ) + - col1 AS col0 FROM tab1
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 9 BETWEEN - 79 * + col2 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8038
SELECT MIN( ALL - col2 ), 63 AS col1 FROM tab1
----
-96
63

skipif mysql # not compatible
query II rowsort label-8038
SELECT MIN ( ALL - col2 ), 63 AS col1 FROM tab1
----
-96
63

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE 91 * col0 BETWEEN ( + - 10 ) AND ( - col0 * - 36 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NOT - 47 NOT IN ( - - 29 ) )
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab0 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT 89 + ( 56 ) * col2 AS col0 FROM tab1 AS cor0
----
3393
3897
5465

query I rowsort
SELECT + ( - 98 ) + 48 AS col0 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8045
SELECT + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE + + 77 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT + + CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE + + 77 IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 15 + - - 76 * - col0, col1 FROM tab1
----
-3861
14
-6445
5
-6901
47

query I rowsort
SELECT DISTINCT 66 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL + 8 * MAX( DISTINCT + + col2 ) FROM tab0 cor0
----
792

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL + 8 * MAX ( DISTINCT + + col2 ) FROM tab0 cor0
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT 12 + - 71 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-8049
SELECT 12 + - 71 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT + col0 + col2 + + + 51 * + - 26 AS col1 FROM tab0 cor0
----
-1130
-1229
-1264

query I rowsort
SELECT DISTINCT 30 * col0 AS col2 FROM tab1 AS cor0
----
1530
2550
2730

query I rowsort
SELECT ALL + + col0 + - + col1 + + col1 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT col1 * ( - - col1 ) FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL - col1 + - ( - col0 ) FROM tab1 WHERE NULL < ( + 70 )
----

query II rowsort
SELECT DISTINCT + 60 AS col0, - col2 * + 34 AS col0 FROM tab0
----
60
-1598
60
-3366
60
-340

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 1 / - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 33 AS col0, - 90 * col1 col0 FROM tab1
----
-33
-1260
-33
-4230
-33
-450

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT COUNT( DISTINCT - 42 ) * ( ( - SUM( + 53 ) ) ) AS col0 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-8059
SELECT COUNT ( DISTINCT - 42 ) * ( ( - SUM ( + 53 ) ) ) AS col0 FROM tab1 AS cor0
----
-159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= col1
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT ALL + col2 DIV - 91 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL + col2 / - 91 FROM tab1 AS cor0
----
-1
0
0

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL = - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT + MAX( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8063
SELECT + MAX ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT MAX( DISTINCT + - 9 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8064
SELECT MAX ( DISTINCT + - 9 ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + 42 col0 FROM tab2 AS cor0
----
-2142
-2814
-3234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + + + 76 col0 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8067
SELECT - CAST( + + 29 AS SIGNED ) + 57 * - 76, - col0 AS col2, - col0 - - ( 11 ) AS col0 FROM tab0 cor0
----
9 values hashing to a524772583e7a41ace5d0516a508a606

skipif mysql # not compatible
query III rowsort label-8067
SELECT - CAST ( + + 29 AS INTEGER ) + 57 * - 76, - col0 AS col2, - col0 - - ( 11 ) AS col0 FROM tab0 cor0
----
9 values hashing to a524772583e7a41ace5d0516a508a606

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 < + ( - + col2 ) + - 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + col0 ) + - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + col2 + - ( col1 ) FROM tab1 AS cor0
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - ( - + col2 ) AS col2, col2 col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - + ( - 81 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT + COUNT( * ) + - 54 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8073
SELECT + COUNT ( * ) + - 54 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - col0 + + - col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 82 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT + col2 * col1 DIV col1 * - col0 + - + col2 AS col1 FROM tab2 WHERE + - col2 IS NOT NULL
----
-1081
-2600
-4408

skipif mysql # not compatible
query I rowsort label-8077
SELECT + col2 * col1 / col1 * - col0 + - + col2 AS col1 FROM tab2 WHERE + - col2 IS NOT NULL
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + MAX( DISTINCT - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + MAX ( DISTINCT - col0 ) AS col2 FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= + + col1
----

query II rowsort
SELECT ALL 16 AS col2, - col0 AS col2 FROM tab0
----
16
-15
16
-87
16
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL COUNT( + - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL COUNT ( + - col1 ) FROM tab1
----
3

query I rowsort
SELECT ALL 59 * + col2 FROM tab1 WHERE NOT NULL = ( - + col2 * + ( + + 79 ) )
----

query I rowsort
SELECT DISTINCT col0 + + col1 * + 70 FROM tab2 cor0
----
3616
4765
5454

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL + 41 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + 41 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8085
SELECT ALL + 5 * + CAST( NULL AS SIGNED ) * - 63 * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 + + col0 >= - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL + 5 * + CAST ( NULL AS INTEGER ) * - 63 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 + + col0 >= - + col2
----
NULL

query I rowsort
SELECT - 52 FROM tab1 cor0 WHERE col2 + + 38 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT 46 * col2 * CAST( col1 AS SIGNED ) + + col0 + 13 * + col1 * ( - col1 ) FROM tab2
----
120474
20191
64667

skipif mysql # not compatible
query I rowsort label-8087
SELECT 46 * col2 * CAST ( col1 AS INTEGER ) + + col0 + 13 * + col1 * ( - col1 ) FROM tab2
----
120474
20191
64667

query I rowsort
SELECT 40 * - 74 * + + col0 + + col0 AS col0 FROM tab0
----
-257433
-287023
-44385

query I rowsort
SELECT - col2 + + - 7 FROM tab2
----
-30
-47
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-8090
SELECT ( - col1 ) * - col2 + col0 AS col1, - col1 DIV + col1 FROM tab0
----
196
-1
297
-1
3822
-1

skipif mysql # not compatible
query II rowsort label-8090
SELECT ( - col1 ) * - col2 + col0 AS col1, - col1 / + col1 FROM tab0
----
196
-1
297
-1
3822
-1

query I rowsort
SELECT + 63 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT - CAST( 47 AS SIGNED ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT - CAST ( 47 AS INTEGER ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT - col1, col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT + + col0 * - + col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT - - COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - - COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + + ( + + 73 ) + 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL SUM( + col0 ) col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8097
SELECT ALL SUM ( + col0 ) col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT COUNT( * ) * + 11 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8098
SELECT COUNT ( * ) * + 11 FROM tab2 AS cor0
----
33

query II rowsort
SELECT DISTINCT + col2 * col1 AS col0, - col2 FROM tab1
----
1344
-96
295
-59
3196
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8100
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) * + - col1 * - col1 ) < NULL
----

skipif mysql # not compatible
query III rowsort label-8100
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) * + - col1 * - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT + SUM( 64 ) col1 FROM tab2
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8101
SELECT + SUM ( 64 ) col1 FROM tab2
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT - - col1 - col2 + col1 DIV col2 AS col2 FROM tab0 WHERE NOT ( NOT col0 <= col0 )
----
-98
13
35

skipif mysql # not compatible
query I rowsort label-8102
SELECT - - col1 - col2 + col1 / col2 AS col2 FROM tab0 WHERE NOT ( NOT col0 <= col0 )
----
-98
13
35

query I rowsort
SELECT DISTINCT - col1 * - ( - 71 ) FROM tab0
----
-1491
-5751
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8104
SELECT MIN( + col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT 28 NOT IN ( 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT MIN ( + col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT 28 NOT IN ( 46 )
----
NULL

query I rowsort
SELECT col2 * - + 76 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT DISTINCT + COUNT( * ) * - - 2 - - 83 col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8106
SELECT DISTINCT + COUNT ( * ) * - - 2 - - 83 col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8107
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) NOT BETWEEN - + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8107
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT ( - + 4 ) * COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 WHERE 74 + - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT ( - + 4 ) * COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE 74 + - col0 <> NULL
----
0

query I rowsort
SELECT + 27 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
27
27
27

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT - + ( - col0 ) + - - 96 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col2 + + ( - - col0 ) AND ( NULL )
----

query I rowsort
SELECT ( - 70 ) FROM tab2 AS cor0
----
-70
-70
-70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN ( col1 * 62 + - + col1 + - + col1 + + 34 + + + col0 - - col0 + col2 + + 18 / - - col1 * 93 * 65 * col0 ) AND + col0 * col0
----

query I rowsort
SELECT ALL + ( - - 7 ) AS col2 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT ALL + 4 + - col1 AS col1 FROM tab1 cor0
----
-1
-10
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - COUNT( ALL + - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8116
SELECT - COUNT ( ALL + - col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + col2 / + 17 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT ALL + COUNT( * ) + - MIN( DISTINCT + col0 ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + COUNT ( * ) + - MIN ( DISTINCT + col0 ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT + - COUNT( DISTINCT + 94 ) AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8119
SELECT + - COUNT ( DISTINCT + 94 ) AS col1 FROM tab2 cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8120
SELECT DISTINCT - col0 + - 58 DIV + col2 FROM tab0
----
-16
-92
-97

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT - col0 + - 58 / + col2 FROM tab0
----
-16
-92
-97

query I rowsort
SELECT - col2 * - 11 + 64 * col0 FROM tab0
----
1477
5678
7297

query I rowsort
SELECT DISTINCT + + 22 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL COUNT( * ) col2 FROM tab1 WHERE NOT NULL <= + + ( + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8123
SELECT ALL COUNT ( * ) col2 FROM tab1 WHERE NOT NULL <= + + ( + col2 )
----
0

query I rowsort
SELECT ALL ( 67 ) + + 92 FROM tab2
----
159
159
159

query I rowsort
SELECT ALL - ( + 66 ) AS col0 FROM tab0
----
-66
-66
-66

query I rowsort
SELECT + col1 + + 32 FROM tab0
----
113
33
53

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2, col0 * + col2 )
----

query II rowsort
SELECT + + col0 + - col1, col0 AS col1 FROM tab2 AS cor0
----
-13
64
-5
46
8
75

query I rowsort
SELECT + + 4 * - + col0 FROM tab0 AS cor0
----
-348
-388
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + ( + MAX( + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8130
SELECT + ( + MAX ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 WHERE + 4 + - 73 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT - 21 + COUNT( * ), + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
-21
0

skipif mysql # not compatible
query II rowsort label-8132
SELECT - 21 + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
-21
0

query I rowsort
SELECT ALL - 23 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT col2 * ( - 4 ) + + col0 + col2 * - ( - col0 ) FROM tab2 AS cor0
----
1012
2464
4193

query I rowsort
SELECT DISTINCT + - col1 * 86 AS col1 FROM tab2 AS cor0
----
-4386
-5762
-6622

query I rowsort
SELECT ALL - - 18 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT - 98 * + + 51 * + 88 + + 79 AS col0 FROM tab2 AS cor0
----
-439745
-439745
-439745

query I rowsort
SELECT ALL + - 15 AS col1 FROM tab2 cor0 WHERE NOT col2 * + - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 69 AS col0, - col1 FROM tab1
----
69
-14
69
-47
69
-5

query I rowsort
SELECT + 40 * - 7 AS col2 FROM tab2
----
-280
-280
-280

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT SUM( - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8144
SELECT SUM ( - col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT - - ( 93 ) AS col1 FROM tab0 cor0
----
93
93
93

query II rowsort
SELECT DISTINCT - 58, + col1 FROM tab0 cor0
----
-58
1
-58
21
-58
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT - + MAX( col0 ) col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8147
SELECT - + MAX ( col0 ) col0 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT MAX( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT MAX ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

query II rowsort
SELECT + + col1 AS col0, + col1 * - col1 + 33 FROM tab0 cor0
----
1
32
21
-408
81
-6528

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8150
SELECT * FROM tab1 WHERE - 75 * + + 82 / ( col0 ) * + - 97 + col0 >= + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8150
SELECT * FROM tab1 WHERE - 75 * + + 82 / ( col0 ) * + - 97 + col0 >= + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT col2 + 59 + col1 * + 85 FROM tab2
----
4417
5812
6644

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT ALL COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT 87 + col1 + col1 * + col1 * - col2 FROM tab2
----
-236996
-260208
-59685

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - 95 + - COUNT( * ) * + 24 AS col2 FROM tab1
----
-167

skipif mysql # not compatible
query I rowsort label-8154
SELECT - 95 + - COUNT ( * ) * + 24 AS col2 FROM tab1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL = + col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = + col2 * col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 83 ) col2 FROM tab0 cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL - - 20 + COUNT( * ) col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8157
SELECT ALL - - 20 + COUNT ( * ) col0 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT ALL + - col2 + col1 DIV - 51 + + 24 * - 65 * 53 FROM tab1 AS cor0
----
-82739
-82748
-82776

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL + - col2 + col1 / - 51 + + 24 * - 65 * 53 FROM tab1 AS cor0
----
-82739
-82748
-82776

query I rowsort
SELECT DISTINCT - col0 / - - col2 + - 94 FROM tab0 WHERE 43 + + + col1 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT - MAX( + 49 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT - MAX ( + 49 ) FROM tab1
----
-49

query I rowsort
SELECT DISTINCT + - 91 * + + col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col1, - 2, + + col0 + + 14, - col2 )
----

query I rowsort
SELECT - col0 - + - col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8163
SELECT 1 + + + COUNT( col1 ) + + - MAX( - CAST( - col1 AS SIGNED ) ) + - COUNT( * ), - 23 * - MIN( DISTINCT - - col0 ) AS col1 FROM tab0
----
-80
345

skipif mysql # not compatible
query II rowsort label-8163
SELECT 1 + + + COUNT ( col1 ) + + - MAX ( - CAST ( - col1 AS INTEGER ) ) + - COUNT ( * ), - 23 * - MIN ( DISTINCT - - col0 ) AS col1 FROM tab0
----
-80
345

query I rowsort
SELECT - ( 61 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL = col2 + - - 58 + + + col2 )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 82 col2 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8167
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - + col2 >= - + CAST( NULL AS SIGNED ) + - 3
----

skipif mysql # not compatible
query III rowsort label-8167
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - + col2 >= - + CAST ( NULL AS INTEGER ) + - 3
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 1 = NULL
----

query II rowsort
SELECT col1, 97 FROM tab1
----
14
97
47
97
5
97

query I rowsort
SELECT + col0 * - col1 * - ( 53 ) AS col1 FROM tab0
----
5141
64395
96831

query I rowsort
SELECT + col1 * + + col2 AS col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL + MAX( + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + MAX ( + col0 ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8173
SELECT + col1 + ( + 14 ) AS col2, 45 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
35
NULL
95
NULL

skipif mysql # not compatible
query II rowsort label-8173
SELECT + col1 + ( + 14 ) AS col2, 45 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
35
NULL
95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT + + col0 + 11 DIV - 53 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8174
SELECT + + col0 + 11 / - 53 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT + col0 + + 17 + + col0 * - 36 + 97 DIV col1 FROM tab0 AS cor0
----
-3024
-3281
-507

skipif mysql # not compatible
query I rowsort label-8175
SELECT + col0 + + 17 + + col0 * - 36 + 97 / col1 FROM tab0 AS cor0
----
-3024
-3281
-507

query I rowsort
SELECT - 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT DISTINCT - 87 + + + MIN( - 98 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT - 87 + + + MIN ( - 98 ) FROM tab2
----
-185

query I rowsort
SELECT DISTINCT - - 4 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 35 - + col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - - col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

query II rowsort
SELECT + 44, col0 FROM tab2 AS cor0
----
44
46
44
64
44
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 = + col2 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 <> - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 - + 48 FROM tab1
----
11
20
48

query I rowsort
SELECT - 62 + - + 79 FROM tab0
----
-141
-141
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-8187
SELECT + COUNT( * ) + SUM( + col0 ) AS col0, - 40 * - COUNT( * ) FROM tab0
----
202
120

skipif mysql # not compatible
query II rowsort label-8187
SELECT + COUNT ( * ) + SUM ( + col0 ) AS col0, - 40 * - COUNT ( * ) FROM tab0
----
202
120

query I rowsort
SELECT 33 * + col2 FROM tab1 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 12 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 25 * ( - col2 ) AS col1, - 88 FROM tab2
----
-1000
-88
-1450
-88
-575
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * + - col2 * 2 col2 FROM tab0 cor0
----
1410
1740
19206

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 59 + 59 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT + + 87 + + 36 * - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-237

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT + + 87 + + 36 * - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-237

query II rowsort
SELECT + - col0, col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT col0 * - + col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + - COUNT( * ) * + COUNT( * ) * + 60 FROM tab0 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-8196
SELECT + - COUNT ( * ) * + COUNT ( * ) * + 60 FROM tab0 AS cor0
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8197
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 75 * CAST( - 53 AS SIGNED ) + + col0 * - - col1 + - CAST( - + col1 AS SIGNED ) NOT IN ( + - 10, + 39 * - - col0 )
----

skipif mysql # not compatible
query III rowsort label-8197
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 75 * CAST ( - 53 AS INTEGER ) + + col0 * - - col1 + - CAST ( - + col1 AS INTEGER ) NOT IN ( + - 10, + 39 * - - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 34 + col1 IN ( - ( 21 ), col0 * - + col1 * + - 78 + col0 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL CAST( 82 AS SIGNED ) FROM tab1
----
82
82
82

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL CAST ( 82 AS INTEGER ) FROM tab1
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8200
SELECT * FROM tab1 WHERE NOT ( NOT CAST( - 70 AS SIGNED ) = - ( 15 ) )
----

skipif mysql # not compatible
query III rowsort label-8200
SELECT * FROM tab1 WHERE NOT ( NOT CAST ( - 70 AS INTEGER ) = - ( 15 ) )
----

query I rowsort
SELECT - - 54 AS col0 FROM tab0 WHERE NOT ( - 27 ) IS NULL
----
54
54
54

query I rowsort
SELECT ALL - 39 * - - 28 FROM tab0, tab0 cor0
----
9 values hashing to 04c673185a9a5114af276b5ad32b8a1e

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT + 67 DIV + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8203
SELECT + 67 / + col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab2
----
83
83
83

query I rowsort
SELECT AVG ( + ( - + col1 ) ) FROM tab0 cor0 WHERE NULL NOT BETWEEN + col1 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 col2 FROM tab1
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT + 40 + + COUNT( * ) AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-8207
SELECT + 40 + + COUNT ( * ) AS col2 FROM tab0
----
43

query I rowsort
SELECT col0 + - - 4 + ( - 39 ) FROM tab2
----
11
29
40

query I rowsort
SELECT DISTINCT + col0 + - col0 * - col0 AS col0 FROM tab0
----
240
7656
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL - MAX( DISTINCT ( + col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - MAX ( DISTINCT ( + col2 ) ) FROM tab2
----
-58

query I rowsort
SELECT - - col1 + - col2 + col0 FROM tab0 cor0
----
-1
49
98

query I rowsort
SELECT ALL + 45 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT ALL - - col0 AS col0, col2 * - + 73 + - 67 AS col2 FROM tab0 AS cor0
----
15
-3498
87
-797
97
-7294

query I rowsort
SELECT ALL col1 + + col1 * + 32 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1683
2211
2541

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL > 53 + 76 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 - - - col1 col2 FROM tab2
----
-62
-78
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8217
SELECT + CAST( NULL AS SIGNED ), + MIN( + + col1 ) * - 52 + - 8 AS col2 FROM tab1
----
NULL
-268

skipif mysql # not compatible
query II rowsort label-8217
SELECT + CAST ( NULL AS INTEGER ), + MIN ( + + col1 ) * - 52 + - 8 AS col2 FROM tab1
----
NULL
-268

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT - COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8218
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab0
----
-3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8219
SELECT ALL 7 + + COUNT( * ) AS col0, COUNT( DISTINCT ( col1 ) ) AS col0 FROM tab2
----
10
3

skipif mysql # not compatible
query II rowsort label-8219
SELECT ALL 7 + + COUNT ( * ) AS col0, COUNT ( DISTINCT ( col1 ) ) AS col0 FROM tab2
----
10
3

query I rowsort
SELECT - 60 - - col2 AS col0 FROM tab1
----
-1
36
8

query III rowsort
SELECT * FROM tab1 WHERE 30 * - + col1 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8222
SELECT CAST( + col2 AS SIGNED ) - - + col1 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-8222
SELECT CAST ( + col2 AS INTEGER ) - - + col1 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * + col2 + + col1 col1 FROM tab2
----
2236
3877
5577

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8224
SELECT ALL - 33 AS col2, - 88 / - col1 * - col2 * - ( + - col1 ), CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8224
SELECT ALL - 33 AS col2, - 88 / - col1 * - col2 * - ( + - col1 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT DISTINCT - 16 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - 16 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * + col0 col1 FROM tab2 AS cor0
----
1702
2368
2775

query I rowsort
SELECT ALL - - ( col0 ) * - 9 FROM tab1 AS cor0
----
-459
-765
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 88 / - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8228
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 88 / - + col1 )
----
0

query I rowsort
SELECT DISTINCT + - col2 * - 97 FROM tab2 cor0
----
2231
3880
5626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT ALL + COUNT( * ) DIV - + 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL + COUNT ( * ) / - + 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT - MAX( - col2 ) AS col2, MAX( 58 ) col0 FROM tab1
----
59
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8231
SELECT - MAX ( - col2 ) AS col2, MAX ( 58 ) col0 FROM tab1
----
59
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 85 + col0 IS NOT NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 21 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= col1 + 0
----
15
81
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 45 + 96 NOT BETWEEN + col0 AND + 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT ALL + 33 * + - col0 + + col2 + - - col1 DIV 24 + - 60 * + col0 FROM tab2 AS cor0
----
-4253
-5909
-6915

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL + 33 * + - col0 + + col2 + - - col1 / 24 + - 60 * + col0 FROM tab2 AS cor0
----
-4253
-5909
-6915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab2 AS cor0 WHERE NOT + col1 * col2 <= + - col2 / - col0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8238
SELECT - 99 AS col1, - col0 + 9 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
-99
-37
-99
-55
-99
-66

skipif mysql # not compatible
query II rowsort label-8238
SELECT - 99 AS col1, - col0 + 9 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-99
-37
-99
-55
-99
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 22 col0 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT - col2 + col2 * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN + col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT MAX( ALL - col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8241
SELECT MAX ( ALL - col0 ) col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT + COUNT( * ) * + 78 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-8242
SELECT + COUNT ( * ) * + 78 FROM tab1
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT + col1 DIV - col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8243
SELECT + col1 / - col2 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT 51 + - + COUNT( * ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT 51 + - + COUNT ( * ) AS col1 FROM tab1
----
48

query II rowsort
SELECT DISTINCT - 36 AS col1, 87 * - - col2 FROM tab0
----
-36
4089
-36
8613
-36
870

query I rowsort
SELECT col1 + - + col1 - - 38 FROM tab2
----
38
38
38

onlyif mysql # DIV for integer division: 
query II rowsort label-8247
SELECT ALL - 77 AS col1, - col1 DIV + + 54 AS col1 FROM tab2
----
-77
-1
-77
-1
-77
0

skipif mysql # not compatible
query II rowsort label-8247
SELECT ALL - 77 AS col1, - col1 / + + 54 AS col1 FROM tab2
----
-77
-1
-77
-1
-77
0

query II rowsort
SELECT DISTINCT - col0 AS col2, 43 FROM tab1 AS cor0
----
-51
43
-85
43
-91
43

query I rowsort
SELECT ALL col1 * + col1 * + + col0 + 80 AS col0 FROM tab1 AS cor0
----
10076
201099
2205

query I rowsort
SELECT - 21 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 95 AND + - col2 / - - col0 + - 99
----

query I rowsort
SELECT 97 - + col1 AS col2 FROM tab1 AS cor0
----
50
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + COUNT( * ) * - 43 - - + 1 AS col2 FROM tab0 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-8253
SELECT + COUNT ( * ) * - 43 - - + 1 AS col2 FROM tab0 AS cor0
----
-128

query I rowsort
SELECT DISTINCT + 60 + - col2 FROM tab0 AS cor0
----
-39
13
50

query I rowsort
SELECT + 15 - + 0 * ( col1 ) AS col2 FROM tab1 cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL ( + MAX( + col2 ) ) + 97 col0 FROM tab2 AS cor0
----
155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8256
SELECT ALL ( + MAX ( + col2 ) ) + 97 col0 FROM tab2 AS cor0
----
155

query I rowsort
SELECT + col0 + + - col1 + - - col2 * col0 AS col1 FROM tab0 AS cor0
----
639
936
9699

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL COUNT( * ) * 22 AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL COUNT ( * ) * 22 AS col1 FROM tab2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT ALL col0 * - - col2 * + - 74 + + col0 DIV - 72 FROM tab1
----
-362304
-371111
-457913

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL col0 * - - col2 * + - 74 + + col0 / - 72 FROM tab1
----
-362304
-371111
-457913

query I rowsort
SELECT col2 + + col1 * + 51 AS col0 FROM tab1
----
2465
314
810

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + - col2 NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 34 * 86 * - col0 col1, col1 AS col0 FROM tab0 AS cor0
----
254388
21
283628
1
43860
81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ( COUNT( * ) ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8265
SELECT ( COUNT ( * ) ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 3 * + 95 AS col1 FROM tab2
----
285

query I rowsort
SELECT DISTINCT - + 60 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col2 FROM tab2 cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - col0 + - ( + - col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT - 49 * + 74 * + 25 + 43 + - col2 AS col0 FROM tab1 AS cor0
----
-90666
-90675
-90703

query I rowsort
SELECT 92 + + + col1 AS col0 FROM tab2 cor0
----
143
159
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 + + col0 col1 FROM tab1 AS cor0
----
45
79
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8275
SELECT 14, + CAST( NULL AS SIGNED ) + - 82 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8275
SELECT 14, + CAST ( NULL AS INTEGER ) + - 82 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - ( col0 ) AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN - 50 + - + 31 AND ( - 23 + + col1 )
----

query I rowsort
SELECT DISTINCT col1 * + ( col0 ) FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT DISTINCT - 55 * + 35, - COUNT( * ) col1 FROM tab1
----
-1925
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8278
SELECT DISTINCT - 55 * + 35, - COUNT ( * ) col1 FROM tab1
----
-1925
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8279
SELECT DISTINCT - 50 DIV - + 96 * COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT - 50 / - + 96 * COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT - 73 * - + COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN ( - col0 - col1 * 93 + - ( - + 6 ) ) AND + col2 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT - 73 * - + COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN ( - col0 - col1 * 93 + - ( - + 6 ) ) AND + col2 * + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8281
SELECT - + 41 DIV - col2 * - 9 + - 11 * + col1 + - - col0 AS col2 FROM tab1 AS cor0
----
-103
-426
30

skipif mysql # not compatible
query I rowsort label-8281
SELECT - + 41 / - col2 * - 9 + - 11 * + col1 + - - col0 AS col2 FROM tab1 AS cor0
----
-103
-426
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT + - 72 DIV - + ( + col2 ) FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8282
SELECT + - 72 / - + ( + col2 ) FROM tab2 AS cor0
----
1
1
3

query III rowsort
SELECT * FROM tab2 WHERE - col0 < - 2 - - - 92
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 - - + 50 col1 FROM tab2
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT - - COUNT( * ) + + 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
71

skipif mysql # not compatible
query I rowsort label-8285
SELECT - - COUNT ( * ) + + 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 87 / col2 + - col2 IN ( + col1 * ( + - ( col2 ) ), + col2 / - col0 + - - col2 - - + 43 * - 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT - SUM( col2 ) * + 10 FROM tab2 AS cor0
----
-1210

skipif mysql # not compatible
query I rowsort label-8287
SELECT - SUM ( col2 ) * + 10 FROM tab2 AS cor0
----
-1210

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - + COUNT( + 72 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8288
SELECT - + COUNT ( + 72 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 28 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col0 FROM tab2
----
94
94
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 >= NULL
----

query I rowsort
SELECT DISTINCT + 89 * - 59 FROM tab0
----
-5251

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL + 95 * MAX( 94 ) * + 4 FROM tab2
----
35720

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL + 95 * MAX ( 94 ) * + 4 FROM tab2
----
35720

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT - 42, COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-42
0

skipif mysql # not compatible
query II rowsort label-8294
SELECT - 42, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
-42
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 91 + + col0 col0 FROM tab2 AS cor0 WHERE NOT + 22 * + col2 < ( - col1 )
----
-2047
-3576
-5203

query I rowsort
SELECT + col2 * - + col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 62 NOT BETWEEN + col2 AND + - col0
----

query I rowsort
SELECT DISTINCT + col1 * 81 AS col1 FROM tab0
----
1701
6561
81

query I rowsort
SELECT + 5 * - col0 AS col2 FROM tab1
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - - COUNT( * ) - - - 24 FROM tab1 WHERE NOT - + 73 / + - col0 IS NULL
----
-21

skipif mysql # not compatible
query I rowsort label-8300
SELECT - - COUNT ( * ) - - - 24 FROM tab1 WHERE NOT - + 73 / + - col0 IS NULL
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT DISTINCT 7 DIV col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT 7 / col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 74 + - col0 FROM tab1 cor0
----
-11
-17
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT DISTINCT 78 * ( + col1 ) + + 50 * - col1 + + col0 + - ( + + col2 ) * - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT 78 * ( + col1 ) + + 50 * - col1 + + col0 + - ( + + col2 ) * - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 9 NOT IN ( 70, col1 + + 58 + + col0 + - - col1 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) * + 72 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 55 + + col0 * + 63 FROM tab2 AS cor0
----
2953
4087
4780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL + col1 * - 48 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + col1 * - 48 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 * + - 83 col2 FROM tab1
----
6889

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT COUNT( * ) + - 32 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-8309
SELECT COUNT ( * ) + - 32 FROM tab2
----
-29

query I rowsort
SELECT DISTINCT 57 + + 57 * col2 FROM tab0
----
2736
5700
627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT - CAST( NULL AS SIGNED ) + - 85 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT - CAST ( NULL AS INTEGER ) + - 85 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT ALL 47 AS col1, COUNT( - col0 ) AS col2 FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-8312
SELECT ALL 47 AS col1, COUNT ( - col0 ) AS col2 FROM tab1
----
47
3

query I rowsort
SELECT ALL + col1 * - col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8314
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 = 22 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8314
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 = 22 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = col0
----

query I rowsort
SELECT ( - ( - col2 ) ) * - col2 FROM tab1 cor0
----
-3481
-4624
-9216

query II rowsort
SELECT ALL + col0 - ( + col2 ), col2 FROM tab2
----
17
58
23
23
24
40

query II rowsort
SELECT + col0 + - col2 + + 89 * + 68 * - + 84 AS col0, - col1 * - 75 * - col1 FROM tab1 cor0
----
-508342
-1875
-508345
-165675
-508413
-14700

query I rowsort
SELECT 34 * col2 AS col2 FROM tab2 AS cor0
----
1360
1972
782

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8320
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + 14 * + - col0 + - - col2 + - 87 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < - col1 + 6 * - 48
----

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col0 + + 20
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT - 60 * - ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8323
SELECT - 60 * - ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
180

query I rowsort
SELECT + ( - 76 ) FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + MAX( + - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8325
SELECT + MAX ( + - col1 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN col0 AND NULL
----
87
21
10

query II rowsort
SELECT DISTINCT + + col1 AS col2, + ( - 31 ) AS col2 FROM tab0 AS cor0
----
1
-31
21
-31
81
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL + + MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + + MAX ( col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT col2 + - col1 + col0 AS col0 FROM tab2
----
18
27
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - + 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8331
SELECT + - 74 / + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT + - 74 / + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 81 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 81 IS NULL
----
3

query I rowsort
SELECT ALL + 38 + - 36 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + + 73 + + 2 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8335
SELECT DISTINCT 37 + 51 AS col0, MIN( ALL + + col2 ) FROM tab0 AS cor0
----
88
10

skipif mysql # not compatible
query II rowsort label-8335
SELECT DISTINCT 37 + 51 AS col0, MIN ( ALL + + col2 ) FROM tab0 AS cor0
----
88
10

query I rowsort
SELECT ALL - col0 + + + col1 AS col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT - SUM( ALL col2 ) + + 90 FROM tab1
----
-133

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT - SUM ( ALL col2 ) + + 90 FROM tab1
----
-133

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 52 / + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT + CAST( NULL AS SIGNED ) * - - 3 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT + CAST ( NULL AS INTEGER ) * - - 3 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 57 AS col2, + col1 - + ( - 64 ) AS col0 FROM tab2
----
-57
115
-57
131
-57
141

query I rowsort
SELECT DISTINCT col1 * + 98 - - + col2 AS col2 FROM tab0
----
197
2068
7985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 78 ) col0 FROM tab2
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8343
SELECT CAST( + 79 AS SIGNED ) * - + col2 - col2 FROM tab0 AS cor0
----
-3760
-7920
-800

skipif mysql # not compatible
query I rowsort label-8343
SELECT CAST ( + 79 AS INTEGER ) * - + col2 - col2 FROM tab0 AS cor0
----
-3760
-7920
-800

query I rowsort
SELECT + ( - col0 ) - - 86 AS col2 FROM tab2 AS cor0
----
11
22
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT ALL - 88 DIV + + col0 + + 8 AS col1 FROM tab0 AS cor0 WHERE NOT ( + ( - col1 ) = + 35 + - 70 DIV + - col2 )
----
3
7
8

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL - 88 / + + col0 + + 8 AS col1 FROM tab0 AS cor0 WHERE NOT ( + ( - col1 ) = + 35 + - 70 / + - col2 )
----
3
7
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + col2 IS NOT NULL )
----

query I rowsort
SELECT 53 - col1 FROM tab1 AS cor0
----
39
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8348
SELECT col1, CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0 FROM tab2 WHERE - ( - 20 ) NOT IN ( - 92 )
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8348
SELECT col1, CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0 FROM tab2 WHERE - ( - 20 ) NOT IN ( - 92 )
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT 14 * + 50 * - 75 * - 97 + + MIN( DISTINCT - col1 ) FROM tab0
----
5092419

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT 14 * + 50 * - 75 * - 97 + + MIN ( DISTINCT - col1 ) FROM tab0
----
5092419

query I rowsort
SELECT ALL + - 43 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT ALL - + ( - MIN( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL - + ( - MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT ALL - MIN( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL - MIN ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * + - col2 * - col0 FROM tab1 cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT ALL + col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - 21 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL + - SUM( col0 ) * COUNT( * ) * + ( - 67 ) AS col1 FROM tab0 AS cor0
----
39999

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + - SUM ( col0 ) * COUNT ( * ) * + ( - 67 ) AS col1 FROM tab0 AS cor0
----
39999

query II rowsort
SELECT ALL - col0 AS col1, - col0 * 12 FROM tab1 cor0
----
-51
-612
-85
-1020
-91
-1092

query II rowsort
SELECT col0 * col2 * + + col0 AS col1, + col0 * + + col2 * + col0 * col2 FROM tab2
----
163840
6553600
326250
18922500
48668
1119364

query I rowsort
SELECT ALL - col1 * col1 FROM tab0 WHERE NOT ( ( NULL ) IN ( - col2 + + - col1, col2 * ( + - col1 ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + - 16 * + col0 * col0 - + 42 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT ( 41 ) * + COUNT( * ) col1 FROM tab1
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8362
SELECT DISTINCT ( 41 ) * + COUNT ( * ) col1 FROM tab1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT ( + - MIN( ALL + + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT ( + - MIN ( ALL + + col1 ) ) FROM tab1
----
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col0
----

query I rowsort
SELECT - 56 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-56
-56
-56

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT DISTINCT - 57 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

query I rowsort
SELECT + 96 FROM tab2 AS cor0 WHERE ( + col1 ) * - col1 NOT IN ( + + 38, 89 + + + 76, + col0 )
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL 24 + - COUNT( * ) col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8369
SELECT ALL 24 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
21

query I rowsort
SELECT + + col0 * - col2 + + - 30 FROM tab2 AS cor0
----
-1088
-2590
-4380

query I rowsort
SELECT - 64 + col2 * + 84 FROM tab0
----
3884
776
8252

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= - - col0 + - ( 26 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8373
SELECT ALL col2 + col2, ( + + col2 ) DIV - col2 AS col1 FROM tab2
----
116
-1
46
-1
80
-1

skipif mysql # not compatible
query II rowsort label-8373
SELECT ALL col2 + col2, ( + + col2 ) / - col2 AS col1 FROM tab2
----
116
-1
46
-1
80
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL COUNT( * ) * - 6 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL COUNT ( * ) * - 6 FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT - ( - + COUNT( * ) ) * - 87 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT - ( - + COUNT ( * ) ) * - 87 FROM tab1 AS cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + 65 * - + COUNT( * ) col0 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8376
SELECT + 65 * - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT - col2 * + CAST( NULL AS SIGNED ) * + 24 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT - col2 * + CAST ( NULL AS INTEGER ) * + 24 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT SUM( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8379
SELECT SUM ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab0 AS cor0 WHERE 5 / - + 40 IS NOT NULL
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT DISTINCT - + col2 DIV + col0 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT - + col2 / + col0 + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + + 67 * - 19 AS col1 FROM tab2 cor0 WHERE - ( + - 16 ) + + - col0 NOT BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL COUNT( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8383
SELECT ALL COUNT ( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT + - COUNT( * ) AS col0, ( - + 84 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 77 IS NULL
----
-3
-84

skipif mysql # not compatible
query II rowsort label-8384
SELECT + - COUNT ( * ) AS col0, ( - + 84 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 77 IS NULL
----
-3
-84

query I rowsort
SELECT ALL col1 * + - col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + col0 / - 18 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query II rowsort
SELECT ALL + 32 AS col1, - 71 * - + col0 FROM tab2
----
32
3266
32
4544
32
5325

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 31 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, col0 * + - col0 col0 FROM tab2 cor0
----
51
-2116
67
-5625
77
-4096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 85 col1 FROM tab2 AS cor0
----
85
85
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 * + + col2 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - - 5 AS col2 FROM tab0 cor0 WHERE ( NULL IS NULL )
----
5
5
5

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - 98 + + 14 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT + - col0 + - + col0 AS col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT + col1 + col1 * + 65 AS col0 FROM tab2 AS cor0
----
3366
4422
5082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 cor0 WHERE ( + 62 + + + 35 ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - 34 * + col1 AS col1 FROM tab1 AS cor0
----
-1598
-170
-476

query I rowsort
SELECT - col2 + + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-21
-54
-82

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 IS NULL )
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE 44 + - 64 / + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 col2 FROM tab0
----
0

query II rowsort
SELECT - col0 AS col1, 5 AS col1 FROM tab2
----
-46
5
-64
5
-75
5

query I rowsort
SELECT col2 - + - 36 FROM tab1
----
104
132
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 - ( + 61 ), col1 col2 FROM tab2
----
-21
77
-3
67
-38
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * 86 > - col0 * + - 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 28 + + col1 FROM tab1 AS cor0
----
33
42
75

query I rowsort
SELECT DISTINCT + - 62 AS col1 FROM tab2 cor0
----
-62

query I rowsort
SELECT ALL 99 * col0 FROM tab2 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT MAX( - 52 ) + - 2 * 38 AS col1 FROM tab1
----
-128

skipif mysql # not compatible
query I rowsort label-8410
SELECT MAX ( - 52 ) + - 2 * 38 AS col1 FROM tab1
----
-128

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT MAX( DISTINCT 68 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT MAX ( DISTINCT 68 ) FROM tab2
----
68

query I rowsort
SELECT + 27 + + col0 * col2 AS col1 FROM tab1
----
4923
5042
6215

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < 20 + + col0
----

query I rowsort
SELECT 39 FROM tab2 WHERE col0 * 88 + 12 <= + 66 - - col0
----

query I rowsort
SELECT - col0 - + col1 FROM tab2 WHERE NULL BETWEEN + 36 AND - 61
----

query I rowsort
SELECT + col1 + - ( - 12 ) * - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + col1
----

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( - 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( ( - 95 ) ) AS col2 FROM tab1
----
-95
-95
-95

query I rowsort
SELECT + col0 + ( col1 ) FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8422
SELECT 79 DIV CAST( col0 AS SIGNED ) + 8 AS col0 FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-8422
SELECT 79 / CAST ( col0 AS INTEGER ) + 8 AS col0 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL 39 + col0 * 93 AS col2 FROM tab0
----
1434
8130
9060

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col0 FROM tab1
----
85

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT COUNT( + 31 ) + + 81 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-8428
SELECT COUNT ( + 31 ) + + 81 FROM tab1
----
84

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 * col2 + - col1 * - 12 ) >= NULL
----

query I rowsort
SELECT 82 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 80 + col1 AS col2 FROM tab2
----
131
147
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 21 + - col0 AS col2 FROM tab1
----
-30
-64
-70

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN col1 - 4 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT DISTINCT - ( COUNT( * ) ) + 29 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT - ( COUNT ( * ) ) + 29 FROM tab0
----
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( col2 ) FROM tab2 WHERE col0 - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <= col2
----
87
21
10

query I rowsort
SELECT DISTINCT + - ( 72 ) AS col2 FROM tab1 AS cor0
----
-72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 14 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL - ( MAX( - 61 ) ) * - 83 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) + - col2 * + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - ( MAX ( - 61 ) ) * - 83 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) + - col2 * + col0 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL - + MIN( ALL 87 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL - + MIN ( ALL 87 ) FROM tab2 AS cor0
----
-87

query I rowsort
SELECT 21 - col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-19
-2
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col2 FROM tab1 cor0 WHERE NOT 72 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT - + col1 * - 76 - - 59 FROM tab2 AS cor0
----
3935
5151
5911

query I rowsort
SELECT col1 + - col1 + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL ( + 17 ) + + col2 FROM tab0
----
116
27
64

query I rowsort
SELECT 11 + - col0 + col2 * 19 AS col2 FROM tab1
----
1047
1212
1784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - col2 col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - 9 * col1 + col2 * - col0 FROM tab2
----
-1517
-3253
-4953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - ( + col0 ) col2 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8453
SELECT * FROM tab1 WHERE CAST( + 20 AS SIGNED ) BETWEEN - 5 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8453
SELECT * FROM tab1 WHERE CAST ( + 20 AS INTEGER ) BETWEEN - 5 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL MIN( col0 ) + COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL MIN ( col0 ) + COUNT ( * ) FROM tab1
----
54

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT SUM( ALL + ( - ( ( - 32 ) ) ) ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-8456
SELECT SUM ( ALL + ( - ( ( - 32 ) ) ) ) FROM tab0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col1 AND col0 + col0
----

query II rowsort
SELECT - col2, col0 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8461
SELECT + 12 col2, + COUNT( * ) col2 FROM tab2 AS cor0
----
12
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8461
SELECT + 12 col2, + COUNT ( * ) col2 FROM tab2 AS cor0
----
12
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 / col2 AND ( col2 )
----

query II rowsort
SELECT - - 88, col2 FROM tab1 AS cor0
----
88
59
88
68
88
96

query I rowsort
SELECT ALL ( - 63 ) * col0 * + ( col2 ) + 35 * 89 + col0 FROM tab0 AS cor0
----
-41285
-51608
-601777

query I rowsort
SELECT ALL - ( - col1 ) * + - col2 + - - col1 AS col0 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT DISTINCT - col2 * + col2 + 38 FROM tab2
----
-1562
-3326
-491

onlyif mysql # DIV for integer division: 
query II rowsort label-8467
SELECT + 29 DIV + col2, + 93 AS col1 FROM tab2
----
0
93
0
93
1
93

skipif mysql # not compatible
query II rowsort label-8467
SELECT + 29 / + col2, + 93 AS col1 FROM tab2
----
0
93
0
93
1
93

query I rowsort
SELECT ALL - col0 * + + 53 FROM tab2
----
-2438
-3392
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT + COUNT( * ) * - 96 FROM tab1 WHERE NULL NOT IN ( - - 32 )
----
0

skipif mysql # not compatible
query I rowsort label-8469
SELECT + COUNT ( * ) * - 96 FROM tab1 WHERE NULL NOT IN ( - - 32 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8470
SELECT COUNT( * ) * + 83 FROM tab0 WHERE CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) / + 42 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT COUNT ( * ) * + 83 FROM tab0 WHERE CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) / + 42 IS NOT NULL
----
0

query I rowsort
SELECT + col0 * 85 AS col0 FROM tab1
----
4335
7225
7735

query I rowsort
SELECT DISTINCT 40 + 9 AS col1 FROM tab0 AS cor0 WHERE ( ( + col2 ) ) NOT IN ( + 15 + - 66 * 41 )
----
49

query I rowsort
SELECT - + col2 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) < col0
----
0

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) < col0
----
0

query I rowsort
SELECT DISTINCT + col2 * + + 66 + + col1 + - col1 FROM tab0 cor0
----
3102
6534
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 82 ) col1 FROM tab1 WHERE + col1 + + col2 = + col0 + - col0
----

query I rowsort
SELECT DISTINCT + col1 + + - 60 + - - 67 * col1 + 16 - + col0 AS col2 FROM tab0
----
-73
1297
5449

query I rowsort
SELECT ALL + 92 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( 28 ) * 21 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL NOT BETWEEN + col1 + 30 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8481
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + - col1 - 31 FROM tab1 cor0 WHERE NOT col1 * - 62 BETWEEN - 31 AND NULL
----
-36
-45
-78

query I rowsort
SELECT ALL + col1 + + col1 + + col1 FROM tab2 cor0
----
153
201
231

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - 92 + 98 + + col0 + + col2 <> + col2 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 * - 39 AS col0 FROM tab1 AS cor0
----
2301
2652
3744

query I rowsort
SELECT ALL + 35 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 28 + + col1 * col0 / - col2 * 63 - + 95 * 73 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + + + col0 - 32 * + - col0 FROM tab1
----
1587
2746
2935

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + + 18 * col0 + col0 - + 75 )
----

query I rowsort
SELECT DISTINCT col2 - 26 AS col1 FROM tab0
----
-16
21
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT COUNT( * ) * + 45 AS col1 FROM tab2, tab0 AS cor0
----
405

skipif mysql # not compatible
query I rowsort label-8491
SELECT COUNT ( * ) * + 45 AS col1 FROM tab2, tab0 AS cor0
----
405

query I rowsort
SELECT DISTINCT col1 + + 36 + col2 - col0 FROM tab1
----
15
60
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
3

query II rowsort
SELECT - col2 - + 73, + col0 AS col2 FROM tab2
----
-113
64
-131
75
-96
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + 0 - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + 16 NOT IN ( - - 16 )
----
51
85
91

query II rowsort
SELECT + 84, - col0 AS col0 FROM tab1
----
84
-51
84
-85
84
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8499
SELECT ALL - - 8, COUNT( * ) AS col0 FROM tab0 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-8499
SELECT ALL - - 8, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > + col0 + col2
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > + col0 + col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) <= col0 * - - 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
55

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE NOT + 84 + + 99 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col0
----

query I rowsort
SELECT - - col2 * + + col0 - + 82 + - 47 * - 1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT ALL - + col2 * col0 DIV - col0 - + col1 + + 83 * + col1 + - col2 + + 53 AS col0 FROM tab2 AS cor0
----
4235
5547
6367

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - + col2 * col0 / - col0 - + col1 + + 83 * + col1 + - col2 + + 53 AS col0 FROM tab2 AS cor0
----
4235
5547
6367

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + + col2 AND + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8508
SELECT ALL - 31 + 6, - COUNT( * ) + - 0 col1 FROM tab2 AS cor0
----
-25
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8508
SELECT ALL - 31 + 6, - COUNT ( * ) + - 0 col1 FROM tab2 AS cor0
----
-25
-3

query II rowsort
SELECT ALL - col1 + - 34 AS col1, col1 FROM tab1 AS cor0
----
-39
5
-48
14
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT 82 + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 91 - - - col2 * - - 10 < - - col0 * col0
----

skipif mysql # not compatible
query I rowsort label-8510
SELECT 82 + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 91 - - - col2 * - - 10 < - - col0 * col0
----

query I rowsort
SELECT ALL - 7 * + col0 FROM tab0
----
-105
-609
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT MAX( ALL + col0 ) col1 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8512
SELECT MAX ( ALL + col0 ) col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col1 col1 FROM tab1
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 21 * + 46 col2 FROM tab2
----
22218
38640
56028

query I rowsort
SELECT + col1 + + 99 AS col0 FROM tab0
----
100
120
180

query II rowsort
SELECT ALL + 94 AS col0, col0 FROM tab1
----
94
51
94
85
94
91

query I rowsort
SELECT ALL - col1 * col2 AS col2 FROM tab0 WHERE NOT + 88 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 16 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - col1 ) * col2 > - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT DISTINCT - ( MAX( ALL + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT - ( MAX ( ALL + col1 ) ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + 10 AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT DISTINCT - MIN( ALL CAST( col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - MIN ( ALL CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + - 16 + + ( - - col1 ) FROM tab0 AS cor0
----
-15
5
65

query II rowsort
SELECT col1 AS col2, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + col2 * - + col0 - + col0 AS col2 FROM tab0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL COUNT( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL COUNT ( * ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query II rowsort
SELECT DISTINCT - ( col0 ), - 39 AS col1 FROM tab0 AS cor0
----
-15
-39
-87
-39
-97
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
3

query II rowsort
SELECT DISTINCT - 90 + - col2 AS col2, - 52 + 49 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 53 AND NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 79 ) = + col0 * col0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT DISTINCT + ( - COUNT( DISTINCT col2 ) ) * - - 41 * + + 28 AS col0 FROM tab1 AS cor0
----
-3444

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT + ( - COUNT ( DISTINCT col2 ) ) * - - 41 * + + 28 AS col0 FROM tab1 AS cor0
----
-3444

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT ALL - - 77 * - COUNT( * ) + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL - - 77 * - COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT 6 DIV - col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8533
SELECT 6 / - col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NULL <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NULL <> + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL + SUM( - - 3 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + SUM ( - - 3 ) AS col2 FROM tab2
----
9

query I rowsort
SELECT ALL + + col0 * 11 FROM tab1 WHERE - col1 > + + col0
----

query I rowsort
SELECT ALL + 67 AS col0 FROM tab1
----
67
67
67

query I rowsort
SELECT + - ( - col1 ) * - col2 + 10 FROM tab2 WHERE NOT - - 97 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8539
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - - CAST( NULL AS SIGNED ) * - - col2 + col2 - + + col1 + - - 45 * + CAST( NULL AS SIGNED ) - - 1 + - col0 / - col2 )
----

skipif mysql # not compatible
query III rowsort label-8539
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - - CAST ( NULL AS INTEGER ) * - - col2 + col2 - + + col1 + - - 45 * + CAST ( NULL AS INTEGER ) - - 1 + - col0 / - col2 )
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col1 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8542
SELECT DISTINCT 25 AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
25
-3

skipif mysql # not compatible
query II rowsort label-8542
SELECT DISTINCT 25 AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
25
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT DISTINCT - - SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT - - SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE NOT 19 NOT BETWEEN 74 AND NULL
----

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8547
SELECT ALL 75 DIV - + COUNT( * ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL 75 / - + COUNT ( * ) FROM tab1 AS cor0
----
-25

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
26

query I rowsort
SELECT + ( - + 18 ) FROM tab1 WHERE NOT - col2 * - ( col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL - COUNT( * ) * 92 col1 FROM tab2
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8550
SELECT ALL - COUNT ( * ) * 92 col1 FROM tab2
----
-276

query I rowsort
SELECT + 32 + + - 79 AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + col2 + + col1 + + col1 + + - col0 FROM tab2 AS cor0
----
117
130
79

query I rowsort
SELECT 34 + + + 79 AS col2 FROM tab0 AS cor0
----
113
113
113

query I rowsort
SELECT DISTINCT col0 * - - ( + col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT 35 + col0 AS col1 FROM tab2 AS cor0
----
110
81
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <= - col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT + 20 + + + COUNT( * ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8557
SELECT + 20 + + + COUNT ( * ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8559
SELECT DISTINCT + col2 + col2 - + - col1 - - col2 / + - 43 * + + CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + col2 + col2 - + - col1 - - col2 / + - 43 * + + CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8560
SELECT ALL COUNT( - col1 ) * + CAST( - 93 AS SIGNED ) + - 22 + MAX( DISTINCT + 95 ) * + 18 * + COUNT( ALL + + col0 ) DIV + COUNT( * ) FROM tab1
----
1409

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL COUNT ( - col1 ) * + CAST ( - 93 AS INTEGER ) + - 22 + MAX ( DISTINCT + 95 ) * + 18 * + COUNT ( ALL + + col0 ) / + COUNT ( * ) FROM tab1
----
1409

query I rowsort
SELECT - 36 * - - col1 * col2 FROM tab0 WHERE - col1 + - - 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8562
SELECT - CAST( + - 58 AS SIGNED ) DIV - 15 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8562
SELECT - CAST ( + - 58 AS INTEGER ) / - 15 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT DISTINCT col0 - col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col1 < 49
----
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT 99 * + - COUNT( * ) FROM tab0 AS cor0 WHERE + 79 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT 99 * + - COUNT ( * ) FROM tab0 AS cor0 WHERE + 79 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT DISTINCT + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + - - 71 col2 FROM tab0 cor0
----
151
151
151

query I rowsort
SELECT DISTINCT + col0 - + + 15 AS col1 FROM tab1 AS cor0
----
36
70
76

query II rowsort
SELECT - - 60 AS col1, + 54 FROM tab2 AS cor0
----
60
54
60
54
60
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 cor0 WHERE + col2 + 87 + + col1 * - 62 NOT BETWEEN + col0 / + col1 AND NULL
----
21
81

query I rowsort
SELECT ALL + 83 * + + col0 FROM tab1 AS cor0 WHERE NOT ( + col0 - 61 ) IS NOT NULL
----

query I rowsort
SELECT - 90 * - + col1 AS col0 FROM tab0 AS cor0
----
1890
7290
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8574
SELECT ALL + ( - col2 ) DIV + col0 AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL + ( - col2 ) / + col0 AS col1 FROM tab1 cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * ( col2 ) IS NOT NULL
----

query II rowsort
SELECT - - col2, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT + 41 * 18 FROM tab2
----
738
738
738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col2 FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT SUM( + 90 ) col1 FROM tab2
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8579
SELECT SUM ( + 90 ) col1 FROM tab2
----
270

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT - 3 IS NOT NULL ) ) OR NOT ( ( ( + col1 ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT DISTINCT col2 * - col1 DIV - col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT col2 * - col1 / - col1 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + 71 * - - col0 col1, - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 * + + 33 AS col0 FROM tab1 AS cor0
----
1947
2244
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - 74 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - 74 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - col0 * + 5 * + 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND + - col2 + col2
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE 57 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL col2 * - 26 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT 74 * + - 44 FROM tab1
----
-3256
-3256
-3256

query I rowsort
SELECT DISTINCT col0 * + 36 AS col1 FROM tab1
----
1836
3060
3276

query I rowsort
SELECT + - col2 * - 91 AS col2 FROM tab0 AS cor0
----
4277
9009
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8593
SELECT - CAST( ( + + COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8593
SELECT - CAST ( ( + + COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 27 + + 25 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8595
SELECT + COUNT( * ) AS col0, ( MIN( - 36 ) ) AS col0 FROM tab1 cor0
----
3
-36

skipif mysql # not compatible
query II rowsort label-8595
SELECT + COUNT ( * ) AS col0, ( MIN ( - 36 ) ) AS col0 FROM tab1 cor0
----
3
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + col2 - + 64 + 18 + - - ( - 61 ) * + - col0 FROM tab0 AS cor0
----
-3732
164
4391

query II rowsort
SELECT ALL + 27 AS col1, + 43 FROM tab1
----
27
43
27
43
27
43

query I rowsort
SELECT 56 * 65 + + col2 AS col2 FROM tab1
----
3699
3708
3736

query I rowsort
SELECT - col2 + - + 79 AS col1 FROM tab0
----
-126
-178
-89

query II rowsort
SELECT DISTINCT + 68 AS col2, col0 AS col2 FROM tab0
----
68
15
68
87
68
97

query I rowsort
SELECT col1 + + - 46 AS col0 FROM tab1
----
-32
-41
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 97 / - 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT MAX( - col2 ) * + + 80 FROM tab2 AS cor0
----
-1840

skipif mysql # not compatible
query I rowsort label-8604
SELECT MAX ( - col2 ) * + + 80 FROM tab2 AS cor0
----
-1840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT ALL - 81 + - col2 + + + CAST( CAST( NULL AS SIGNED ) 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-8605
SELECT ALL - 81 + - col2 + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1, + col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT col0, col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL - COUNT( * ) * 84 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - COUNT ( * ) * 84 FROM tab2 AS cor0
----
-252

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 cor0 WHERE col0 * - col0 * + + 8 / - ( - - col1 ) * col0 * + col2 >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - ( 86 ) * - col2 + 18 AS col0 FROM tab1 AS cor0
----
-421038
-431272
-532150

query I rowsort
SELECT ALL + 49 AS col1 FROM tab1 AS cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 BETWEEN NULL AND ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8613
SELECT + + col1 DIV 9, col0 FROM tab2 AS cor0
----
5
46
7
75
8
64

skipif mysql # not compatible
query II rowsort label-8613
SELECT + + col1 / 9, col0 FROM tab2 AS cor0
----
5
46
7
75
8
64

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8615
SELECT 33 * + + MAX( + 57 ) col1, 91 AS col1 FROM tab1
----
1881
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8615
SELECT 33 * + + MAX ( + 57 ) col1, 91 AS col1 FROM tab1
----
1881
91

query I rowsort
SELECT ALL + col2 * - 52 AS col2 FROM tab2
----
-1196
-2080
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT - MIN( DISTINCT - col0 ) - - AVG ( + ( col1 ) ) AS col1 FROM tab0 WHERE NOT - ( - - col1 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT - MIN ( DISTINCT - col0 ) - - AVG ( + ( col1 ) ) AS col1 FROM tab0 WHERE NOT - ( - - col1 ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8618
SELECT col0, CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8618
SELECT col0, CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT 65 AS col1, - col2 FROM tab2
----
65
-23
65
-40
65
-58

query I rowsort
SELECT - 21 * 64 AS col0 FROM tab1 AS cor0
----
-1344
-1344
-1344

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT + - ( - ( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT + - ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 85 * - col0 FROM tab0 AS cor0
----
-1275
-7395
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - 90 + + - COUNT( * ) AS col0 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-8624
SELECT - 90 + + - COUNT ( * ) AS col0 FROM tab0
----
-93

query II rowsort
SELECT + col0 + + + 90 AS col0, - col2 + - + col0 * + - 92 + + 85 FROM tab2
----
136
4294
154
5933
165
6927

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT + MAX( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT + MAX ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT col1 + + 16 AS col2 FROM tab0 AS cor0
----
17
37
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8628
SELECT + CAST( NULL AS DECIMAL ) + + col1 - + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8628
SELECT + CAST ( NULL AS REAL ) + + col1 - + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8629
SELECT + + CAST( + 26 AS SIGNED ) AS col1, - 23 + - col0 FROM tab0 AS cor0
----
26
-110
26
-120
26
-38

skipif mysql # not compatible
query II rowsort label-8629
SELECT + + CAST ( + 26 AS INTEGER ) AS col1, - 23 + - col0 FROM tab0 AS cor0
----
26
-110
26
-120
26
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT ALL CAST( - col1 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL CAST ( - col1 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE ( NULL >= - col2 )
----

query I rowsort
SELECT + + ( + 53 ) FROM tab1 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + 81
----

query I rowsort
SELECT ALL 34 * + + col2 + col0 FROM tab1
----
2091
2403
3315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) + - col0 col2 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8636
SELECT COUNT( ALL + + ( - + CAST( NULL AS SIGNED ) ) ) AS col2, COUNT( * ) * COUNT( * ) * + 56 FROM tab1
----
0
504

skipif mysql # not compatible
query II rowsort label-8636
SELECT COUNT ( ALL + + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2, COUNT ( * ) * COUNT ( * ) * + 56 FROM tab1
----
0
504

query I rowsort
SELECT DISTINCT - col1 + + + col2 AS col1 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT col0 AS col2, + col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8639
SELECT DISTINCT CAST( NULL AS SIGNED ) / CAST( + col1 AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT CAST ( NULL AS INTEGER ) / CAST ( + col1 AS REAL ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 24 - - 88 * + col1 AS col2 FROM tab0
----
112
1872
7152

query II rowsort
SELECT ALL + col1 AS col2, - col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT 60 - col0 AS col0 FROM tab2 AS cor0
----
-15
-4
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 - - col2 col2 FROM tab2 cor0
----
26
44
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT 61 * - - 4 - - COUNT( DISTINCT 86 ) + + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
265

skipif mysql # not compatible
query I rowsort label-8644
SELECT 61 * - - 4 - - COUNT ( DISTINCT 86 ) + + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT SUM( DISTINCT ( + col0 ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8645
SELECT SUM ( DISTINCT ( + col0 ) ) AS col1 FROM tab1
----
227

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + ( - 46 )
----

query I rowsort
SELECT DISTINCT ( - 43 ) FROM tab0 AS cor0
----
-43

query I rowsort
SELECT col1 + + col2 FROM tab2 AS cor0 WHERE NOT - col0 - - 81 IS NULL
----
117
125
74

query II rowsort
SELECT ALL + col2 AS col1, col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT 62 * + - col1 FROM tab1
----
-2914
-310
-868

query II rowsort
SELECT col0 * + - col1, 39 AS col2 FROM tab1
----
-425
39
-4277
39
-714
39

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 51 * col1 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT COUNT( * ) * 54 * + 18 AS col2 FROM tab2
----
2916

skipif mysql # not compatible
query I rowsort label-8653
SELECT COUNT ( * ) * 54 * + 18 AS col2 FROM tab2
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT + MAX( DISTINCT col2 ) * + + SUM( + + ( + ( + - 84 ) ) ) FROM tab1
----
-24192

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT + MAX ( DISTINCT col2 ) * + + SUM ( + + ( + ( + - 84 ) ) ) FROM tab1
----
-24192

query I rowsort
SELECT col1 * + col0 * 57 FROM tab1
----
24225
243789
40698

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + col2 - - 79 * + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT COUNT( DISTINCT + ( - col0 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8657
SELECT COUNT ( DISTINCT + ( - col0 ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + SUM( 89 ) AS col0 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-8658
SELECT + SUM ( 89 ) AS col0 FROM tab0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT - col2 DIV 55 * + col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8659
SELECT - col2 / 55 * + col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 90 + - col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT - + MIN( col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - + MIN ( col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT DISTINCT col2 * + - ( + col0 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT col2 * + - ( + col0 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * - + col2 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - - ( + ( + ( + 32 ) ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - ( col1 ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT col2 + + col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + MIN( - - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8667
SELECT + MIN ( - - col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT 27 - 1 FROM tab0 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + SUM( ALL col0 ) + ( 65 ) AS col0 FROM tab1 AS cor0
----
292

skipif mysql # not compatible
query I rowsort label-8669
SELECT + SUM ( ALL col0 ) + ( 65 ) AS col0 FROM tab1 AS cor0
----
292

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8670
SELECT DISTINCT - + ( + col0 ) DIV - CAST( - + ( ( 65 ) ) AS SIGNED ) + - - col0 AS col2 FROM tab2 AS cor0
----
46
64
74

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - + ( + col0 ) / - CAST ( - + ( ( 65 ) ) AS INTEGER ) + - - col0 AS col2 FROM tab2 AS cor0
----
46
64
74

query I rowsort
SELECT - 35 + 6 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + 34 + col1 * - col1 FROM tab0
----
-407
-6527
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + 36 col2 FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT COUNT( * ) col2, MAX( - 53 ) FROM tab2, tab1 AS cor0
----
9
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8674
SELECT COUNT ( * ) col2, MAX ( - 53 ) FROM tab2, tab1 AS cor0
----
9
-53

query I rowsort
SELECT DISTINCT + col0 * - 16 * - col2 - - + col0 AS col0 FROM tab2
----
16974
41024
69675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col2 FROM tab1 WHERE 8 + + ( - col2 ) + - + col2 * + 38 + col1 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - + col2 + - 79 - 58 * - ( + 86 ) * - col2 FROM tab2
----
-114775
-199562
-289374

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8678
SELECT CAST( + col2 AS SIGNED ) DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8678
SELECT CAST ( + col2 AS INTEGER ) / - + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT + MAX( 73 ) AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + MAX ( 73 ) AS col2 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT SUM( - + 54 ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT SUM ( - + 54 ) FROM tab1 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-8681
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8681
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL + 43 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 8 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 < + + 43 * + col1 * col1
----

query I rowsort
SELECT - - 49 * + + col2 AS col1 FROM tab0 AS cor0
----
2303
4851
490

query I rowsort
SELECT DISTINCT + + 25 AS col1 FROM tab2 AS cor0
----
25

query I rowsort
SELECT DISTINCT col0 * col2 * + col0 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + COUNT( col0 ) FROM tab2 WHERE NOT - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT + COUNT ( col0 ) FROM tab2 WHERE NOT - - col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + col0 * - 93 - 11 + col1 FROM tab0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT ALL col2 AS col1, col2 * - 16 AS col1 FROM tab1
----
59
-944
68
-1088
96
-1536

query I rowsort
SELECT 28 * + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-2436
-2716
-420

query I rowsort
SELECT DISTINCT col1 + + + col1 - 92 * - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-2014
-3526
-5202

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8693
SELECT + CAST( - 92 AS SIGNED ) DIV col1 * - + col2 + + col2 + + + col0 - col2 * + 1, 72 + + - col1 col1 FROM tab1 cor0
----
1147
67
159
25
627
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8693
SELECT + CAST ( - 92 AS INTEGER ) / col1 * - + col2 + + col2 + + + col0 - col2 * + 1, 72 + + - col1 col1 FROM tab1 cor0
----
1147
67
159
25
627
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT ( + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-8694
SELECT ( + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT + ( - COUNT( DISTINCT - + 82 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + ( - COUNT ( DISTINCT - + 82 ) ) FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col0 FROM tab0 WHERE col1 IS NOT NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT COUNT( - - col0 ) + COUNT( * ) + - - 70 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT COUNT ( - - col0 ) + COUNT ( * ) + - - 70 FROM tab2
----
76

query I rowsort
SELECT ALL 97 + - 78 AS col0 FROM tab1
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 79 ) - - col1 col1 FROM tab1
----
126
84
93

query I rowsort
SELECT - col1 * + + 0 - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT DISTINCT col0 DIV ( + col1 ) * + + col2 + ( + - col0 ) - - 86 FROM tab0
----
39
71
9592

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT col0 / ( + col1 ) * + + col2 + ( + - col0 ) - - 86 FROM tab0
----
39
71
9592

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - 85 - - COUNT( + col0 ) AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-8702
SELECT - 85 - - COUNT ( + col0 ) AS col1 FROM tab0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT 69 * COUNT( * ) AS col1 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT 69 * COUNT ( * ) AS col1 FROM tab1
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT MIN( - 83 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8704
SELECT MIN ( - 83 ) FROM tab2 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT DISTINCT + col2 DIV - - 77 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + col2 / - - 77 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - + 8 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT MIN( ALL 40 ) FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-8707
SELECT MIN ( ALL 40 ) FROM tab2 cor0
----
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 86 BETWEEN col2 AND + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8709
SELECT - + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8710
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( + col1 AS SIGNED ) IN ( + col1, 18 )
----

skipif mysql # not compatible
query III rowsort label-8710
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( + col1 AS INTEGER ) IN ( + col1, 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8711
SELECT DISTINCT - 73 + + 56 DIV - col2 * 24 AS col0 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT - 73 + + 56 / - col2 * 24 AS col0 FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT + COUNT( * ), - 36 AS col1 FROM tab2
----
3
-36

skipif mysql # not compatible
query II rowsort label-8712
SELECT + COUNT ( * ), - 36 AS col1 FROM tab2
----
3
-36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL COUNT( ALL + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL COUNT ( ALL + col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + 23 * - - 7 FROM tab1
----
161
161
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 19 col0 FROM tab2
----
-1102
-437
-760

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT MAX( ALL 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT MAX ( ALL 70 ) FROM tab0
----
70

query III rowsort
SELECT * FROM tab2 WHERE ( + 60 ) + + col1 * - col2 NOT BETWEEN col0 * - 45 + + 81 * - ( + col2 ) * - + col0 + + col1 + + 65 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * col1 IS NULL
----

query I rowsort
SELECT ALL + - col1 * 34 + 81 FROM tab0 AS cor0
----
-2673
-633
47

query II rowsort
SELECT DISTINCT - col1, - col1 AS col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT + - ( col0 ) - col1 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + col1 + + - 81 AS col1 FROM tab0 AS cor0
----
-60
-80
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT ALL ( - + COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL ( - + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 84 * - 78 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + 63 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * - 10 * col0 BETWEEN - 22 AND + col2 * - + col1 + + 53 + 31
----
3

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * - 10 * col0 BETWEEN - 22 AND + col2 * - + col1 + + 53 + 31
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8728
SELECT col2 * + + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT col2 * + + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 45 ) + + 8 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT - col0 + + - col2 * - - 56 * - - col0 AS col0 FROM tab2
----
-143424
-243675
-59294

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - 89 * - COUNT( * ) + - 26 * COUNT( * ) AS col0 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-8731
SELECT - 89 * - COUNT ( * ) + - 26 * COUNT ( * ) AS col0 FROM tab2
----
189

query I rowsort
SELECT ALL + col1 + 94 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - 50 * + 34 FROM tab1
----
-100300
-115600
-163200

query II rowsort
SELECT DISTINCT + + ( + 70 ) AS col1, col0 FROM tab1 AS cor0
----
70
51
70
85
70
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT COUNT( * ) * + - COUNT( ALL 45 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT COUNT ( * ) * + - COUNT ( ALL 45 ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ( col0 ) * 36 * col2 AS col0 FROM tab2 cor0
----
156600
38088
92160

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT DISTINCT + 68 * - COUNT( * ) + + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT + 68 * - COUNT ( * ) + + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT - - ( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT - - ( + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT + COUNT( * ) * + 33 AS col0 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8739
SELECT + COUNT ( * ) * + 33 AS col0 FROM tab2 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 22 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT ALL + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 96 AS col1 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT + col2 * - + col0 * + col2 + 16 FROM tab1 AS cor0
----
-295869
-420768
-470000

query I rowsort
SELECT - 95 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-95
-95
-95

query I rowsort
SELECT DISTINCT - col1 + ( + - col1 ) + 11 FROM tab1 AS cor0
----
-17
-83
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT DISTINCT SUM( ALL col2 ) + - MAX( DISTINCT - col2 ) - - 30 * + COUNT( DISTINCT + - col1 ) * 46 + + MIN( + CAST( col1 AS SIGNED ) ) FROM tab0
----
4307

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT SUM ( ALL col2 ) + - MAX ( DISTINCT - col2 ) - - 30 * + COUNT ( DISTINCT + - col1 ) * 46 + + MIN ( + CAST ( col1 AS INTEGER ) ) FROM tab0
----
4307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col2 col2 FROM tab2
----
104
133
69

query I rowsort
SELECT col2 * + + ( - col1 ) AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - 71 * - col2 * - 35 AS col1 FROM tab2
----
-144130
-57155
-99400

query I rowsort
SELECT 56 * - col1 FROM tab0
----
-1176
-4536
-56

query I rowsort
SELECT - 38 * + 28 FROM tab2
----
-1064
-1064
-1064

query I rowsort
SELECT DISTINCT - 11 * - col1 AS col0 FROM tab0
----
11
231
891

onlyif mysql # DIV for integer division: 
query II rowsort label-8754
SELECT 71 DIV + - 3 AS col0, - 71 AS col2 FROM tab2
----
-23
-71
-23
-71
-23
-71

skipif mysql # not compatible
query II rowsort label-8754
SELECT 71 / + - 3 AS col0, - 71 AS col2 FROM tab2
----
-23
-71
-23
-71
-23
-71

query I rowsort
SELECT ALL ( + 11 ) * - 47 FROM tab2 AS cor0
----
-517
-517
-517

query I rowsort
SELECT + 48 * 38 AS col1 FROM tab2 AS cor0
----
1824
1824
1824

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT DISTINCT - 64 DIV - 63 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT - 64 / - 63 AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8758
SELECT col2 DIV + col0 AS col0, col0 AS col0 FROM tab0 AS cor0
----
0
87
1
97
3
15

skipif mysql # not compatible
query II rowsort label-8758
SELECT col2 / + col0 AS col0, col0 AS col0 FROM tab0 AS cor0
----
0
87
1
97
3
15

query I rowsort
SELECT DISTINCT ( 1 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + - 33 AS col1 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + col2 + + + ( - col2 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 FROM tab0 WHERE - 28 <= + 2 + col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT + - MIN( col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT + - MIN ( col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + col1 * + col1 + - - col2 * + + col0 * + col2 FROM tab0 AS cor0
----
39696
9141
950698

onlyif mysql # DIV for integer division: 
query II rowsort label-8765
SELECT DISTINCT - 96 AS col1, + col1 DIV col1 FROM tab2
----
-96
1

skipif mysql # not compatible
query II rowsort label-8765
SELECT DISTINCT - 96 AS col1, + col1 / col1 FROM tab2
----
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT MIN( + 42 ) col2 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8766
SELECT DISTINCT MIN ( + 42 ) col2 FROM tab1
----
42

query II rowsort
SELECT ALL col0 AS col0, - col0 AS col1 FROM tab2
----
46
-46
64
-64
75
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT DISTINCT + col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT col0 AS col1, - col0 + - 85 AS col1 FROM tab0
----
15
-100
87
-172
97
-182

query II rowsort
SELECT 60 AS col2, - 65 * 65 FROM tab2
----
60
-4225
60
-4225
60
-4225

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 70 IS NOT NULL )
----

query I rowsort
SELECT ALL + + ( col2 ) * + + col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT ALL + 1 * + col2 AS col0, - 5 AS col0 FROM tab1
----
59
-5
68
-5
96
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT + col2 DIV col1 + - col2 FROM tab1 AS cor0
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-8775
SELECT + col2 / col1 + - col2 FROM tab1 AS cor0
----
-48
-67
-90

query III rowsort
SELECT DISTINCT + - 37 * + col2 AS col0, - 83, + col2 FROM tab1 AS cor0
----
9 values hashing to 8f4ce8c943075922985908205d4a016e

query II rowsort
SELECT - col0, col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL + - MAX( DISTINCT - 95 ) + + 49 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL + - MAX ( DISTINCT - 95 ) + + 49 FROM tab2 AS cor0
----
144

query I rowsort
SELECT col2 * - - 30 * + col1 FROM tab0 AS cor0
----
114210
2970
6300

query I rowsort
SELECT + ( - + col2 ) + + 27 FROM tab2
----
-13
-31
4

query I rowsort
SELECT col0 + col2 + - 48 AS col1 FROM tab0
----
14
148
49

query I rowsort
SELECT col1 + + - col1 * col1 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT ( - - 39 ) + - col0 - col2 FROM tab0
----
-157
-23
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8784
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= - - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8784
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= - - CAST ( - col2 AS INTEGER )
----

query II rowsort
SELECT - + col2, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + col0 + + 84 FROM tab2
----
130
148
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL SUM( - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL SUM ( - col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT ALL + - 20 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

query II rowsort
SELECT - - col0 * - col2 AS col1, - 81 * col1 * + col1 FROM tab1 AS cor0
----
-4896
-15876
-5015
-2025
-6188
-178929

query I rowsort
SELECT - - 28 * - - col1 FROM tab1 AS cor0
----
1316
140
392

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 72 >= + col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT + COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8795
SELECT + COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - - ( + - 64 ) AS col1, col2 FROM tab0 AS cor0
----
-64
10
-64
47
-64
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8797
SELECT 51 DIV col2, - 42 + + + col1 AS col0 FROM tab2 AS cor0
----
0
25
1
35
2
9

skipif mysql # not compatible
query II rowsort label-8797
SELECT 51 / col2, - 42 + + + col1 AS col0 FROM tab2 AS cor0
----
0
25
1
35
2
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - - 37 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT ALL ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT DISTINCT - ( - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT - ( - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT - MAX( col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8801
SELECT - MAX ( col2 ) col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - col0 * - 29 - - 66 FROM tab2 AS cor0
----
1400
1922
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT - - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8803
SELECT - - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8804
SELECT ALL + COUNT( + - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + COUNT ( + - CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 + col2 + - 26 * + 40 FROM tab2 AS cor0
----
-1057
-1063
-1064

query II rowsort
SELECT DISTINCT - col2 + col1 AS col2, col2 FROM tab1 AS cor0
----
-21
68
-54
59
-82
96

query II rowsort
SELECT DISTINCT + col2, 27 FROM tab2 cor0
----
23
27
40
27
58
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT CAST( NULL AS SIGNED ) + - - 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT CAST ( NULL AS INTEGER ) + - - 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 70 + + 49 FROM tab1 AS cor0
----
119
119
119

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL - + SUM( ALL + + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - + SUM ( ALL + + col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <> NULL
----

query I rowsort
SELECT col2 * + 53 * - col1 AS col2 FROM tab2
----
-163240
-205958
-62169

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE - 93 IN ( - col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + COUNT( 8 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8815
SELECT + COUNT ( 8 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > 83 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + 90 col0, - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
149
-59
158
-68
186
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 45 + col0 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, + col1 + - ( col1 ) + + ( + col2 ) FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT - 33 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
2871
3201
495

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - col0 * - 27 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * - col1 col1 FROM tab0 AS cor0
----
-1539
-19
-399

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 87 ) IS NOT NULL
----

query II rowsort
SELECT + col2 AS col2, 13 FROM tab1 AS cor0
----
59
13
68
13
96
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL + MIN( + col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + MIN ( + col1 ) FROM tab1 cor0
----
5

query II rowsort
SELECT - + col1 AS col1, - 42 + - col2 + col0 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( - + col1 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT + CAST( - COUNT( * ) AS SIGNED ) - - - 81 FROM tab1 AS cor0 WHERE NOT - 11 >= - col2
----
-81

skipif mysql # not compatible
query I rowsort label-8827
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - - - 81 FROM tab1 AS cor0 WHERE NOT - 11 >= - col2
----
-81

query I rowsort
SELECT ALL + ( 8 ) FROM tab1 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT ALL + SUM( - col1 ) AS col1, COUNT( * ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8829
SELECT ALL + SUM ( - col1 ) AS col1, COUNT ( * ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT + col0 DIV 81 * col1 * - 26 FROM tab0
----
-26
-546
0

skipif mysql # not compatible
query I rowsort label-8830
SELECT + col0 / 81 * col1 * - 26 FROM tab0
----
-26
-546
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8831
SELECT ( + 99 ) DIV 33 * + + 68 AS col0, - col1 AS col2 FROM tab2
----
204
-51
204
-67
204
-77

skipif mysql # not compatible
query II rowsort label-8831
SELECT ( + 99 ) / 33 * + + 68 AS col0, - col1 AS col2 FROM tab2
----
204
-51
204
-67
204
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT - col0 * + 44 * col0 AS col1 FROM tab1
----
-114444
-317900
-364364

query I rowsort
SELECT - col0 + - col1 * - 45 FROM tab0 AS cor0
----
-52
3630
858

query I rowsort
SELECT - 70 * + 11 AS col2 FROM tab0
----
-770
-770
-770

query III rowsort
SELECT * FROM tab1 WHERE - 71 IS NULL
----

query II rowsort
SELECT DISTINCT col1, + 90 * - 83 + + 23 FROM tab1 AS cor0
----
14
-7447
47
-7447
5
-7447

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < - col1
----

query I rowsort
SELECT - 40 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-40
-40
-40

query I rowsort
SELECT DISTINCT 29 + + col0 FROM tab1 AS cor0
----
114
120
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT 18 + - 58 DIV - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8841
SELECT 18 + - 58 / - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab2 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 / + - 17 NOT IN ( + 1, + 82 * col1, - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 / + - 17 NOT IN ( + 1, + 82 * col1, - col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - 0 + + + ( + + MAX( ALL + col1 ) ) AS col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-8844
SELECT - 0 + + + ( + + MAX ( ALL + col1 ) ) AS col0 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL + 9 + 82 * + COUNT( * ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + 9 + 82 * + COUNT ( * ) FROM tab0 AS cor0
----
255

query I rowsort
SELECT + 49 + col2 FROM tab2
----
107
72
89

query II rowsort
SELECT + 68 + + col0 AS col1, col0 + - col0 FROM tab1
----
119
0
153
0
159
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT - MIN( DISTINCT 71 ) + - - COUNT( * ) + - + 62 FROM tab1
----
-130

skipif mysql # not compatible
query I rowsort label-8848
SELECT - MIN ( DISTINCT 71 ) + - - COUNT ( * ) + - + 62 FROM tab1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT - MAX( DISTINCT - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT - MAX ( DISTINCT - col0 ) FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 34 col1 FROM tab2
----
-109
-80
-98

query I rowsort
SELECT DISTINCT + col0 - + 84 FROM tab0
----
-69
13
3

query II rowsort
SELECT ALL - 35 AS col2, 78 AS col0 FROM tab1 AS cor0
----
-35
78
-35
78
-35
78

query I rowsort
SELECT DISTINCT - ( - 10 ) FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL + 68 * - MAX( ALL + col1 ) col1 FROM tab1 AS cor0
----
-3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8854
SELECT ALL + 68 * - MAX ( ALL + col1 ) col1 FROM tab1 AS cor0
----
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 34 * - 49 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8856
SELECT DISTINCT + - COUNT( DISTINCT - - 61 ) * + 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-8856
SELECT DISTINCT + - COUNT ( DISTINCT - - 61 ) * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 42 + + - col0 >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT DISTINCT - col2 * CAST( + col2 AS SIGNED ) FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT - col2 * CAST ( + col2 AS INTEGER ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + ( + 84 ) AS col2 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 * + 29 * 6 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 * + 29 * 6 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8865
SELECT DISTINCT - + 11 * + 57 DIV + + COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
-209

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT - + 11 * + 57 / + + COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
-209

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT DISTINCT - col0 DIV + col1 col1 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8867
SELECT DISTINCT - col0 / + col1 col1 FROM tab2
----
-1
0

query II rowsort
SELECT ALL col0 AS col1, + 32 FROM tab1
----
51
32
85
32
91
32

query I rowsort
SELECT ALL col0 + - 0 AS col0 FROM tab1 WHERE NOT 8 * + col2 / + col0 NOT IN ( - - col0 )
----

query I rowsort
SELECT + ( + + 66 ) AS col2 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT + - MAX( DISTINCT 13 ) col2 FROM tab0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8871
SELECT + - MAX ( DISTINCT 13 ) col2 FROM tab0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT - COUNT( DISTINCT - col2 ) * - 91 col0 FROM tab2
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8872
SELECT - COUNT ( DISTINCT - col2 ) * - 91 col0 FROM tab2
----
273

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 52 * - - col2 FROM tab1 AS cor0
----
3068
3536
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT SUM( ALL col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8875
SELECT SUM ( ALL col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - col0 * ( + 31 * + 31 ) - - 71 FROM tab0
----
-14344
-83536
-93146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col1 FROM tab0 WHERE + col0 NOT IN ( 71 )
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT + col1 + - CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT + col1 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col0 + col1 / + col2 )
----

query I rowsort
SELECT - 14 * + col2 FROM tab1
----
-1344
-826
-952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NULL ) NOT BETWEEN + col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8881
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NULL ) NOT BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT - col1 + 53 FROM tab2
----
-14
-24
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - 87 + COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-8883
SELECT - 87 + COUNT ( * ) FROM tab0
----
-84

query I rowsort
SELECT + 4 * 7 FROM tab1
----
28
28
28

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + ( + col0 ) * col2 ) >= + col0 * + col0
----
51
14
96

query I rowsort
SELECT + col1 + 88 * col0 AS col0 FROM tab2
----
4099
5709
6667

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 40 * col1 - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col0 - - col0 / col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT col1 DIV col1 + - 98 * - col0 col2 FROM tab0
----
1471
8527
9507

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8889
SELECT col1 / col1 + - 98 * - col0 col2 FROM tab0
----
1471
8527
9507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT ALL col1 FROM tab2 WHERE ( col0 - - CAST( col2 AS SIGNED ) ) NOT IN ( + 90 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL col1 FROM tab2 WHERE ( col0 - - CAST ( col2 AS INTEGER ) ) NOT IN ( + 90 )
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT col2 * 76 NOT IN ( + col0 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - 93 * COUNT( * ) + 71 AS col2 FROM tab1
----
-208

skipif mysql # not compatible
query I rowsort label-8892
SELECT - 93 * COUNT ( * ) + 71 AS col2 FROM tab1
----
-208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col1 FROM tab2
----
50
50
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8894
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 68 col1 FROM tab1 WHERE NOT ( - col0 + col2 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8894
SELECT DISTINCT CAST ( NULL AS REAL ) * 68 col1 FROM tab1 WHERE NOT ( - col0 + col2 ) IS NOT NULL
----

query I rowsort
SELECT + ( + 45 ) FROM tab1 WHERE NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT DISTINCT + 96 * - CAST( + 52 * col1 AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) <> 38
----

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT + 96 * - CAST ( + 52 * col1 AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) <> 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT MAX( ( col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8897
SELECT MAX ( ( col0 ) ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL - 0 * - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL - 0 * - COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT - col2 + CAST( + 85 + 93 AS SIGNED ) * 59 FROM tab1
----
10406
10434
10443

skipif mysql # not compatible
query I rowsort label-8899
SELECT - col2 + CAST ( + 85 + 93 AS INTEGER ) * 59 FROM tab1
----
10406
10434
10443

query I rowsort
SELECT DISTINCT + 64 * col2 AS col1 FROM tab1
----
3776
4352
6144

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) < NULL
----

query I rowsort
SELECT DISTINCT col0 - - 59 FROM tab2
----
105
123
134

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT - col1 DIV 92 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT - col1 / 92 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - 44 * 82 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * - col1 + col1 AS col1 FROM tab1
----
210
2256
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8906
SELECT - CAST( + col2 AS SIGNED ) DIV col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8906
SELECT - CAST ( + col2 AS INTEGER ) / col2 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + 85 * - 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 84 + col1 AS col2 FROM tab2
----
135
151
161

query I rowsort
SELECT + col2 + col2 FROM tab0 WHERE 47 IS NOT NULL
----
198
20
94

query I rowsort
SELECT 59 AS col2 FROM tab1 cor0 WHERE ( - col1 / col1 ) NOT IN ( - 78 )
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT SUM( ALL col2 ) + MAX( - col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8911
SELECT SUM ( ALL col2 ) + MAX ( - col0 ) FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT + CAST( NULL AS SIGNED ) + + ( col1 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8912
SELECT + CAST ( NULL AS INTEGER ) + + ( col1 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT ALL 37 * + col1 + 91 FROM tab1 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) - 77 * col1 BETWEEN - col0 + + 16 AND + 54
----
1830
276
609

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL 37 * + col1 + 91 FROM tab1 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) - 77 * col1 BETWEEN - col0 + + 16 AND + 54
----
1830
276
609

query I rowsort
SELECT DISTINCT - 41 - + 96 FROM tab0 AS cor0 WHERE NOT ( ( - col2 ) * 75 + col0 / - col1 ) NOT BETWEEN col2 AND col0 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( col1 ) * 41 FROM tab1
----
1927
205
574

query I rowsort
SELECT - 61 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT SUM( ALL col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8918
SELECT SUM ( ALL col1 ) col0 FROM tab2
----
195

query I rowsort
SELECT + col0 * + 69 AS col1 FROM tab0 cor0
----
1035
6003
6693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT ALL + SUM( + col1 ) DIV + 30 AS col0 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + SUM ( + col1 ) / + 30 AS col0 FROM tab1 cor0
----
2

query I rowsort
SELECT DISTINCT - + 70 * ( + 60 ) AS col1 FROM tab1 AS cor0
----
-4200

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( col2 ) * - col1 >= NULL
----

query I rowsort
SELECT DISTINCT - - 36 * - 82 FROM tab2 cor0
----
-2952

onlyif mysql # DIV for integer division: 
query I rowsort label-8924
SELECT ALL - ( + 61 ) DIV + col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - ( + 61 ) / + col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT ALL col0 - 85 AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) <= ( + 33 )
----

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL col0 - 85 AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= ( + 33 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( ( col2 ) ) NOT BETWEEN col2 * 90 AND ( NULL )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT MAX( 69 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT MAX ( 69 ) FROM tab0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT - col2 DIV + col1 * - ( col1 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT - col2 / + col1 * - ( col1 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL OR NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 * 33 * col0 FROM tab1
----
161568
165495
204204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT 86 * - col2 - col0 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT 86 * - col2 - col0 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT SUM( + + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT SUM ( + + col0 ) AS col0 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT + 70 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT + 70 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 75 FROM tab1 WHERE NOT - col1 + + 53 * + col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col0 < NULL
----

query I rowsort
SELECT DISTINCT + 22 FROM tab0 WHERE NULL <= ( - col0 )
----

query I rowsort
SELECT + col1 + col2 * col2 AS col1 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT DISTINCT - col1 * - 83 AS col0 FROM tab0
----
1743
6723
83

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN NULL AND ( - 60 * 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 38 + - col0 FROM tab0 cor0
----
-125
-135
-53

query I rowsort
SELECT + 6 + - col2 + - col2 FROM tab2 cor0
----
-110
-40
-74

query I rowsort
SELECT ALL - + col1 + + 44 FROM tab2 AS cor0
----
-23
-33
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT DISTINCT 60 * 51 AS col2 FROM tab2 AS cor0 WHERE + ( - col1 ) NOT IN ( + CAST( NULL AS SIGNED ) * - ( col2 ) )
----

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT 60 * 51 AS col2 FROM tab2 AS cor0 WHERE + ( - col1 ) NOT IN ( + CAST ( NULL AS INTEGER ) * - ( col2 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL - SUM( 88 ) FROM tab1 WHERE ( 22 ) IN ( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL - SUM ( 88 ) FROM tab1 WHERE ( 22 ) IN ( 33 )
----
NULL

query I rowsort
SELECT 29 AS col2 FROM tab0 WHERE ( NOT + 84 * 71 IS NULL )
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL SUM( DISTINCT 32 ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL SUM ( DISTINCT 32 ) AS col1 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL COUNT( * ) * COUNT( - 82 ) AS col0 FROM tab2 WHERE NULL BETWEEN ( col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL COUNT ( * ) * COUNT ( - 82 ) AS col0 FROM tab2 WHERE NULL BETWEEN ( col0 ) AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT DISTINCT + 25 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - col1 - 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 42 col2, - 18 AS col1 FROM tab2 AS cor0
----
42
-18
42
-18
42
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT DISTINCT + - col2 * - 69 + col2 - col2 FROM tab0 AS cor0
----
3243
6831
690

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + - + col0 * col2 <> 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL COUNT( - 35 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8956
SELECT ALL COUNT ( - 35 ) col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 63 + col0 * + 41 + 90 * + 99 AS col2 FROM tab2
----
10859
11597
12048

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8958
SELECT ALL col1 DIV + + 55 - - 11 + 77 - col1 * - CAST( + col2 AS SIGNED ) FROM tab1
----
1432
3284
383

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL col1 / + + 55 - - 11 + 77 - col1 * - CAST ( + col2 AS INTEGER ) FROM tab1
----
1432
3284
383

query I rowsort
SELECT ALL 81 + + 66 AS col0 FROM tab2
----
147
147
147

query I rowsort
SELECT + col0 + - col0 + - - col0 FROM tab1
----
51
85
91

query I rowsort
SELECT 0 FROM tab2 WHERE ( + col2 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 63 / + 61 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - col2 ) AS col2 FROM tab2 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL - ( + 72 ) AS col0 FROM tab2
----
-72
-72
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT - MAX( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL < NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT - MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL < NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - SUM( DISTINCT - + 88 ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8967
SELECT - SUM ( DISTINCT - + 88 ) FROM tab0 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + COUNT( + + col1 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + COUNT ( + + col1 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 48 FROM tab0 cor0 WHERE NOT - 5 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8970
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + + + 0 + + + CAST( NULL AS SIGNED ) / ( + col2 + col0 ) / - 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8970
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + + + 0 + + + CAST ( NULL AS INTEGER ) / ( + col2 + col0 ) / - 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * 15 ) BETWEEN + ( col0 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + MAX( - 13 ) AS col2 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8973
SELECT + MAX ( - 13 ) AS col2 FROM tab2 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8974
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 6 + + - col0 >= + CAST( - 42 AS SIGNED )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-8974
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 6 + + - col0 >= + CAST ( - 42 AS INTEGER )
----
46
51
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) > ( ( - - col1 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 76 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 * 65 * - 74 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-110630
46
-192400
64
-278980
75

query I rowsort
SELECT + 51 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
51
51

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 * col2 ) NOT IN ( + 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 48 + - ( - + col0 ) AS col1 FROM tab1 cor0
----
3
37
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT COUNT( * ) * + + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8981
SELECT COUNT ( * ) * + + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - - 61 + + ( + 54 ) AS col2 FROM tab1 AS cor0
----
115
115
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL - SUM( - col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + col0 + col0 * 64 AND 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL - SUM ( - col2 ) FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + col0 + col0 * 64 AND 61
----
NULL

query I rowsort
SELECT 94 FROM tab1 WHERE NOT - - col0 = + ( + ( + - ( - 10 ) ) )
----
94
94
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( ( 43 ) + - col2 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL ( + - 95 ) - - ( - COUNT( * ) ) col0 FROM tab1 WHERE NOT + col1 IS NULL
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8986
SELECT ALL ( + - 95 ) - - ( - COUNT ( * ) ) col0 FROM tab1 WHERE NOT + col1 IS NULL
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT COUNT( * ) DIV 9 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8987
SELECT COUNT ( * ) / 9 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( NULL <= + 64 )
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT ( - col2 * + - ( - + ( + + col2 ) ) ) IN ( + col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL + MIN( DISTINCT - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + MIN ( DISTINCT - col0 ) FROM tab1
----
-91

query II rowsort
SELECT - col1 AS col1, col2 + - 97 FROM tab1
----
-14
-1
-47
-29
-5
-38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + ( col0 ) )
----

query I rowsort
SELECT + + 72 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - 7 * + col1 * + 4 NOT BETWEEN + 6 AND ( 70 ) )
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - - COUNT( * ) * 60 AS col0 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8997
SELECT - - COUNT ( * ) * 60 AS col0 FROM tab0 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + - SUM( 84 ) * + - MIN( - + col0 ) AS col2 FROM tab0 AS cor0
----
-24444

skipif mysql # not compatible
query I rowsort label-8998
SELECT + - SUM ( 84 ) * + - MIN ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-24444

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT DISTINCT - col2 * - - col0 DIV col0 * + col0 col1 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8999
SELECT DISTINCT - col2 * - - col0 / col0 * + col0 col1 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 28 NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9002
SELECT + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9004
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
-3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9005
SELECT ALL - COUNT( * ), - ( - COUNT( * ) ) AS col0 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-9005
SELECT ALL - COUNT ( * ), - ( - COUNT ( * ) ) AS col0 FROM tab2
----
-3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 + col2 ) IS NOT NULL
----

query I rowsort
SELECT col2 - - 24 / + 43 AS col0 FROM tab0 AS cor0 WHERE NOT 27 >= - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - - COUNT( * ) * 54 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9008
SELECT - - COUNT ( * ) * 54 FROM tab2 AS cor0
----
162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9009
SELECT + CAST( NULL AS DECIMAL ) * + 58 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT + CAST ( NULL AS REAL ) * + 58 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT COUNT( - + 78 ) col0 FROM tab1 AS cor0 WHERE NOT + 12 <> + + 87
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9012
SELECT COUNT ( - + 78 ) col0 FROM tab1 AS cor0 WHERE NOT + 12 <> + + 87
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + col2
----

query I rowsort
SELECT - - col0 * + + col2 * - 4 * + 53 FROM tab2 AS cor0
----
-224296
-542720
-922200

query I rowsort
SELECT ALL + col0 + 90 + 58 AS col0 FROM tab0 AS cor0
----
163
235
245

query I rowsort
SELECT ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - ( + 97 ) + - col2 * 81 AS col1 FROM tab2
----
-10709
-11197
-6810

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT IN ( - 3 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT COUNT( * ) + - 32 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-9020
SELECT COUNT ( * ) + - 32 FROM tab0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT col2 + + col0 - - - ( + CAST( + col2 AS SIGNED ) ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9021
SELECT col2 + + col0 - - - ( + CAST ( + col2 AS INTEGER ) ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT DISTINCT + 70 * - COUNT( * ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT + 70 * - COUNT ( * ) FROM tab0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL - SUM( ALL 91 ) AS col2 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - SUM ( ALL 91 ) AS col2 FROM tab0 AS cor0
----
-273

query I rowsort
SELECT ALL col0 + - - ( - col2 ) AS col2 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT COUNT( * ) * COUNT( * ) - 84 * + - 49 + + 73 FROM tab2
----
4198

skipif mysql # not compatible
query I rowsort label-9026
SELECT COUNT ( * ) * COUNT ( * ) - 84 * + - 49 + + 73 FROM tab2
----
4198

query I rowsort
SELECT ALL - 88 - + col0 AS col0 FROM tab0 AS cor0
----
-103
-175
-185

onlyif mysql # DIV for integer division: 
query II rowsort label-9028
SELECT DISTINCT + + col1 AS col0, - 0 + + col1 DIV + 76 FROM tab2 AS cor0
----
51
0
67
0
77
1

skipif mysql # not compatible
query II rowsort label-9028
SELECT DISTINCT + + col1 AS col0, - 0 + + col1 / + 76 FROM tab2 AS cor0
----
51
0
67
0
77
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9029
SELECT + - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) + + - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT + - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) + + - COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * col0 + 23 AS col2 FROM tab0 cor0
----
-1192
-1804
-74

query II rowsort
SELECT ALL 29, + 16 + - col1 AS col0 FROM tab2 AS cor0
----
29
-35
29
-51
29
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT ALL - col1 * - col1 + - col0 * + col2 + - col2 DIV - col2 FROM tab2 AS cor0
----
140
1544
3370

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - col1 * - col1 + - col0 * + col2 + - col2 / - col2 FROM tab2 AS cor0
----
140
1544
3370

query I rowsort
SELECT ALL - col0 * col0 * 96 FROM tab2 cor0
----
-203136
-393216
-540000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9034
SELECT 51 * - - CAST( NULL AS SIGNED ) * - + MAX( DISTINCT 65 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT 51 * - - CAST ( NULL AS INTEGER ) * - + MAX ( DISTINCT 65 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT - + MIN( DISTINCT ( - col1 ) ) FROM tab0 WHERE NOT ( ( NULL ) NOT BETWEEN + ( - + col1 ) AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT - + MIN ( DISTINCT ( - col1 ) ) FROM tab0 WHERE NOT ( ( NULL ) NOT BETWEEN + ( - + col1 ) AND NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT DISTINCT 83 DIV 29 AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT 83 / 29 AS col1 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT + MIN( 32 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9037
SELECT + MIN ( 32 ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT 58 * + col0 FROM tab1 AS cor0
----
2958
4930
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT - MAX( 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9039
SELECT - MAX ( 66 ) FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT - col1 + - - col1 DIV - 69 + + col0 + ( col2 ) FROM tab2 AS cor0
----
18
26
66

skipif mysql # not compatible
query I rowsort label-9040
SELECT - col1 + - - col1 / - 69 + + col0 + ( col2 ) FROM tab2 AS cor0
----
18
26
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL SUM( - + 2 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL SUM ( - + 2 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - col2 + + ( col2 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + col1 * + + 20
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT + col0 DIV - ( - + col2 ) AS col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9044
SELECT + col0 / - ( - + col2 ) AS col1 FROM tab0
----
0
0
8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - col2 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - col0 + - col0 + + col1 + - col0 < 99
----

query I rowsort
SELECT - 7 * 15 AS col1 FROM tab0
----
-105
-105
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT - MAX( col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9048
SELECT - MAX ( col0 ) FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9049
SELECT + COUNT( * ) * CAST( + + 86 AS SIGNED ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-9049
SELECT + COUNT ( * ) * CAST ( + + 86 AS INTEGER ) AS col2 FROM tab2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT MAX( ALL - 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT MAX ( ALL - 4 ) FROM tab0
----
-4

query III rowsort
SELECT * FROM tab0 WHERE + 55 + - 19 > + - 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT - - COUNT( DISTINCT - 40 ) * 5 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9052
SELECT - - COUNT ( DISTINCT - 40 ) * 5 FROM tab0 AS cor0
----
5

query I rowsort
SELECT + + col2 - + col2 * + col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 - + - col1 col1, col2 FROM tab0 AS cor0
----
100
99
128
47
31
10

query I rowsort
SELECT + + 16 - + col2 FROM tab2 AS cor0
----
-24
-42
-7

query I rowsort
SELECT ALL - 61 + + + ( - 79 ) AS col0 FROM tab1 AS cor0
----
-140
-140
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT COUNT( * ) + - 87 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT COUNT ( * ) + - 87 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + 71 + 52 - - col2 * - col2 - 6 / col2 + - ( - col0 ) + - + col0 BETWEEN - col0 * col1 + - col2 AND - ( col2 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT + COUNT( * ) col2 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-9059
SELECT + COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL 8 * - COUNT( * ) col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9060
SELECT ALL 8 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT MAX( - - col1 ) FROM tab1 AS cor0 WHERE NOT + col1 * + col2 BETWEEN + col2 * - col2 * 25 - 26 + + - 70 + - 28 AND ( + col2 + - + 24 * - 46 )
----
47

skipif mysql # not compatible
query I rowsort label-9061
SELECT MAX ( - - col1 ) FROM tab1 AS cor0 WHERE NOT + col1 * + col2 BETWEEN + col2 * - col2 * 25 - 26 + + - 70 + - 28 AND ( + col2 + - + 24 * - 46 )
----
47

query I rowsort
SELECT ALL + 20 + - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT ALL + - 66 DIV - - col0 AS col1 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + - 66 / - - col0 AS col1 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT ALL col0 * - 0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9065
SELECT ALL + 3 DIV - col2 AS col0, + ( col1 ) AS col1 FROM tab0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-9065
SELECT ALL + 3 / - col2 AS col0, + ( col1 ) AS col1 FROM tab0
----
0
1
0
21
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - + 5 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - + col1 IS NOT NULL
----

query I rowsort
SELECT 20 * + col1 AS col2 FROM tab2
----
1020
1340
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL MIN( - 28 ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL MIN ( - 28 ) FROM tab2
----
-28

query I rowsort
SELECT ALL + col2 * + + col1 * col1 FROM tab0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT - COUNT( * ) + + ( + + 88 ) FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
88

skipif mysql # not compatible
query I rowsort label-9071
SELECT - COUNT ( * ) + + ( + + 88 ) FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT ALL + CAST( - 9 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL + CAST ( - 9 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 93 / + - col0 * - col2
----

query I rowsort
SELECT ALL + 86 - + col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - col1 * - ( col2 ), 29 * + + 51 * - + col1, + + 52 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - MIN( ALL - col0 ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9076
SELECT - MIN ( ALL - col0 ) AS col1 FROM tab2 cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 * - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT ALL - col1 + + - ( - + col1 ) DIV + + col0 + - col1 + - col1 - + 41 - - + 2 AS col2 FROM tab1 cor0
----
-180
-54
-81

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL - col1 + + - ( - + col1 ) / + + col0 + - col1 + - col1 - + 41 - - + 2 AS col2 FROM tab1 cor0
----
-180
-54
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col2, + col1 + - col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - COUNT( * ) FROM tab0 WHERE col1 + ( 22 ) / + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9080
SELECT - COUNT ( * ) FROM tab0 WHERE col1 + ( 22 ) / + - col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col1 + - 77 + ( - col1 ) + + - 97 FROM tab2
----
-174
-174
-174

query I rowsort
SELECT ( - col0 ) * 6 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + 22 + - + col2 AS col1 FROM tab2
----
22

query II rowsort
SELECT DISTINCT 56 - + - 29 + col1 + - col1 * col1 + - col1, col2 * col2 + - col0 AS col0 FROM tab1
----
-111
9165
-2124
4533
60
3396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL col1 - + + 91 - - CAST( NULL AS SIGNED ) + 70 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL col1 - + + 91 - - CAST ( NULL AS INTEGER ) + 70 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT MIN( + + 7 ) AS col1 FROM tab0 WHERE NULL BETWEEN + col2 AND col2 + - 26 * + 76 * - - 73 + col2 + - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT MIN ( + + 7 ) AS col1 FROM tab0 WHERE NULL BETWEEN + col2 AND col2 + - 26 * + 76 * - - 73 + col2 + - - col1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9088
SELECT - col0 * col1 DIV - + col1 AS col0, 23 AS col0 FROM tab0 AS cor0
----
15
23
87
23
97
23

skipif mysql # not compatible
query II rowsort label-9088
SELECT - col0 * col1 / - + col1 AS col0, 23 AS col0 FROM tab0 AS cor0
----
15
23
87
23
97
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * 56 col0 FROM tab2 AS cor0
----
1288
2240
3248

query I rowsort
SELECT + + 16 - col2 FROM tab1 cor0
----
-43
-52
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT ALL + ( col2 ) FROM tab0 WHERE NOT - 73 BETWEEN CAST( - 95 AS SIGNED ) AND - col0 AND NULL IS NULL
----
10
99

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL + ( col2 ) FROM tab0 WHERE NOT - 73 BETWEEN CAST ( - 95 AS INTEGER ) AND - col0 AND NULL IS NULL
----
10
99

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 63 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT + 4 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT ALL - col0 DIV + + col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - col0 / + + col0 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( 23 * + col2, - 45 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT + 59, COUNT( - col2 ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9097
SELECT + 59, COUNT ( - col2 ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9098
SELECT - COUNT( * ) DIV + 30 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9098
SELECT - COUNT ( * ) / + 30 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query II rowsort
SELECT - 70 * + col0, ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-3220
23
-4480
40
-5250
58

query I rowsort
SELECT ALL + 54 * - col0 AS col0 FROM tab0
----
-4698
-5238
-810

query I rowsort
SELECT DISTINCT - col0 * - 52 * + 31 FROM tab0
----
140244
156364
24180

query I rowsort
SELECT ALL + - col1 / 24 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT ALL + CAST( NULL AS SIGNED ) / + - 76 + - + col0 + - 58 AS col2 FROM tab2 WHERE NOT - ( 24 ) NOT IN ( - + col1 )
----

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + CAST ( NULL AS INTEGER ) / + - 76 + - + col0 + - 58 AS col2 FROM tab2 WHERE NOT - ( 24 ) NOT IN ( - + col1 )
----

query II rowsort
SELECT ALL col1 AS col1, col0 * col1 FROM tab2
----
51
2346
67
5025
77
4928

query II rowsort
SELECT DISTINCT col0, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT 64 * + col1 AS col1 FROM tab1
----
3008
320
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT col0 + - col1 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - col2 * + - col0 - - - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9108
SELECT col0 + - col1 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - col2 * + - col0 - - - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND + 11 + + col2 + + 11
----

query II rowsort
SELECT 44 AS col2, + col1 AS col0 FROM tab0
----
44
1
44
21
44
81

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 41 * - ( ( - col2 ) ) + - + col2 + 57 + - + 84 NOT IN ( + col0, col1, - + col0 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + 55 * + col1 FROM tab0 AS cor0
----
-24255
-360855
-55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 >= - col2 * + 62 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT MAX( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT ALL col2, + 72 AS col1 FROM tab1
----
59
72
68
72
96
72

query I rowsort
SELECT ALL 96 * - col0 * - 26 FROM tab0
----
217152
242112
37440

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9117
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > ( col0 ) + - - CAST( - 95 AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-9117
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > ( col0 ) + - - CAST ( - 95 AS INTEGER ) + + col1
----

query I rowsort
SELECT + 67 + col2 + + 58 AS col0 FROM tab1 AS cor0
----
184
193
221

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT DISTINCT COUNT( * ) + - SUM( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - col2 / col0 AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT COUNT ( * ) + - SUM ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - col2 / col0 AND - col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 38 <> + 5
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT + - ( + col1 ) + - col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - + col2 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT DISTINCT col1 DIV - - 42 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT col1 / - - 42 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT col2 - 88 AS col1 FROM tab1
----
-20
-29
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT COUNT( * ) - - 33 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9127
SELECT COUNT ( * ) - - 33 FROM tab1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9128
SELECT - MAX( ALL - CAST( - 49 AS SIGNED ) ) - - + 60 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-9128
SELECT - MAX ( ALL - CAST ( - 49 AS INTEGER ) ) - - + 60 FROM tab2
----
11

query I rowsort
SELECT col2 - + - col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT ALL + 19 * 3 - ( + + COUNT( ALL - 66 ) ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + 19 * 3 - ( + + COUNT ( ALL - 66 ) ) AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL + col1 * - - col1 * - + col1 * col2 FROM tab2
----
-17444254
-18261320
-3050973

onlyif mysql # DIV for integer division: 
query I rowsort label-9132
SELECT DISTINCT + 71 * + col2 * - + col0 DIV col0 FROM tab1
----
-4189
-4828
-6816

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT + 71 * + col2 * - + col0 / col0 FROM tab1
----
-4189
-4828
-6816

query II rowsort
SELECT ALL 78, - 64 AS col1 FROM tab1
----
78
-64
78
-64
78
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT ALL col2 / + + col0 + + 21 - - - CAST( + - col1 AS SIGNED ) + - col1 + + col2 * + - 4 * - - col2 * col0 + - ( + 88 ) AS col2 FROM tab0 AS cor0 WHERE + col0 * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL col2 / + + col0 + + 21 - - - CAST ( + - col1 AS INTEGER ) + - col1 + + col2 * + - 4 * - - col2 * col0 + - ( + 88 ) AS col2 FROM tab0 AS cor0 WHERE + col0 * - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9135
SELECT + 57 AS col1, + col1 + 40 + - CAST( NULL AS DECIMAL ) + + 91 / col0 FROM tab1 AS cor0
----
57
NULL
57
NULL
57
NULL

skipif mysql # not compatible
query II rowsort label-9135
SELECT + 57 AS col1, + col1 + 40 + - CAST ( NULL AS REAL ) + + 91 / col0 FROM tab1 AS cor0
----
57
NULL
57
NULL
57
NULL

query II rowsort
SELECT DISTINCT - col1, - col0 AS col1 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT + col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9138
SELECT - COUNT( * ), - 56 AS col1 FROM tab2 AS cor0
----
-3
-56

skipif mysql # not compatible
query II rowsort label-9138
SELECT - COUNT ( * ), - 56 AS col1 FROM tab2 AS cor0
----
-3
-56

query II rowsort
SELECT DISTINCT - - col0, col1 + - + 36 * - + 98 AS col0 FROM tab2 AS cor0
----
46
3579
64
3605
75
3595

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + COUNT( * ) + + SUM( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
106

skipif mysql # not compatible
query I rowsort label-9140
SELECT + COUNT ( * ) + + SUM ( col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
106

query II rowsort
SELECT DISTINCT col2, col1 + + 65 FROM tab1 AS cor0
----
59
70
68
112
96
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT + SUM( - + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + SUM ( - + col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - - col2 * + - 56 * - col0 FROM tab2 AS cor0
----
143360
243600
59248

query I rowsort
SELECT + 39 * - col2 - + + col2 FROM tab0 AS cor0
----
-1880
-3960
-400

query I rowsort
SELECT + col0 * - - col1 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - 62 - + col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-113
-129
-139

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9147
SELECT - CAST( + 42 AS SIGNED ) * - col1 * + 30 col2, CAST( 31 AS SIGNED ) * - - col2 AS col1, + col1 * - - CAST( - col1 AS SIGNED ) * - col0 + + - ( 58 ) * - col2 AS col1 FROM tab2
----
9 values hashing to bbe90c507ac52db1065091020c6a86aa

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9147
SELECT - CAST ( + 42 AS INTEGER ) * - col1 * + 30 col2, CAST ( 31 AS INTEGER ) * - - col2 AS col1, + col1 * - - CAST ( - col1 AS INTEGER ) * - col0 + + - ( 58 ) * - col2 AS col1 FROM tab2
----
9 values hashing to bbe90c507ac52db1065091020c6a86aa

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN + col2 * + + 3 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + ( - MIN( ALL col1 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-9149
SELECT + ( - MIN ( ALL col1 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 95 col1 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT - 73 * - 13 FROM tab1
----
949
949
949

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT DISTINCT COUNT( - col0 ) AS col2 FROM tab0 WHERE NOT - 58 + + - col0 * 86 + + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT COUNT ( - col0 ) AS col2 FROM tab0 WHERE NOT - 58 + + - col0 * 86 + + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL + MAX( ALL - + ( - col2 ) ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + MAX ( ALL - + ( - col2 ) ) AS col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT COUNT( * ) + + + COUNT( * ) DIV - 17 AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9154
SELECT COUNT ( * ) + + + COUNT ( * ) / - 17 AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT MIN( 73 ) AS col0, MIN( ( - 39 ) ) FROM tab1 cor0
----
73
-39

skipif mysql # not compatible
query II rowsort label-9155
SELECT MIN ( 73 ) AS col0, MIN ( ( - 39 ) ) FROM tab1 cor0
----
73
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + - - 67, col0 col0 FROM tab1 AS cor0
----
126
85
135
91
163
51

query I rowsort
SELECT - + 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT DISTINCT 78 DIV - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT 78 / - col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - 27 * - MIN( DISTINCT - 34 ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-909

skipif mysql # not compatible
query I rowsort label-9159
SELECT - 27 * - MIN ( DISTINCT - 34 ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-909

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, - col2, - col1 )
----

query I rowsort
SELECT DISTINCT + col0 + col1 + - + col2 AS col0 FROM tab2 AS cor0
----
101
74
84

query I rowsort
SELECT ALL + 80 + + col2 AS col0 FROM tab2 AS cor0
----
103
120
138

query I rowsort
SELECT 43 + + + col2 + col2 FROM tab1 AS cor0
----
161
179
235

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 > 63
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - MIN( - col1 ) + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9165
SELECT - MIN ( - col1 ) + COUNT ( * ) FROM tab0
----
84

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - - col1
----

query I rowsort
SELECT col0 + - ( + ( - col1 ) ) FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9168
SELECT DISTINCT + col1 + - col0 * + 59 + + col2 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-5102
NULL
-5623
NULL
-757
NULL

skipif mysql # not compatible
query II rowsort label-9168
SELECT DISTINCT + col1 + - col0 * + 59 + + col2 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-5102
NULL
-5623
NULL
-757
NULL

query I rowsort
SELECT DISTINCT - - col2 * - 18 AS col1 FROM tab0 AS cor0
----
-1782
-180
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT - ( - - MIN( - + col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9170
SELECT - ( - - MIN ( - + col1 ) ) AS col2 FROM tab2 AS cor0
----
77

query II rowsort
SELECT DISTINCT + ( + - col0 ), + col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT DISTINCT + ( - + ( - col2 ) ) FROM tab1
----
59
68
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + col2 - - - ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT - + COUNT( ALL + ( + ( + col1 ) ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT - + COUNT ( ALL + ( + ( + col1 ) ) ) FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9176
SELECT 87 * + + col2 col1, - col2 DIV - + col0 col0 FROM tab1 AS cor0
----
5133
0
5916
0
8352
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9176
SELECT 87 * + + col2 col1, - col2 / - + col0 col0 FROM tab1 AS cor0
----
5133
0
5916
0
8352
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 col0 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT 22 * + col1 + - + 12 FROM tab1 AS cor0
----
1022
296
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col2 FROM tab2 AS cor0 WHERE NULL <= + col2 - 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT ALL - col0 * + - col0 + + 86 * CAST( NULL AS SIGNED ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL - col0 * + - col0 + + 86 * CAST ( NULL AS INTEGER ) / - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9181
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9181
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL 70 + + + col2 + + - col0 + + - CAST( NULL AS SIGNED ) * - col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL 70 + + + col2 + + - col0 + + - CAST ( NULL AS INTEGER ) * - col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 <= - col0 - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + 8 + 86 col2 FROM tab2
----
46
94
64
94
75
94

onlyif mysql # DIV for integer division: 
query II rowsort label-9186
SELECT - - col2 col2, + 56 DIV 51 AS col0 FROM tab2 AS cor0
----
23
1
40
1
58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9186
SELECT - - col2 col2, + 56 / 51 AS col0 FROM tab2 AS cor0
----
23
1
40
1
58
1

query II rowsort
SELECT + - 44, + ( col2 ) FROM tab1 AS cor0
----
-44
59
-44
68
-44
96

query I rowsort
SELECT ALL ( ( + + col1 ) ) AS col2 FROM tab0 cor0 WHERE ( NOT - 4 BETWEEN - col2 + col0 AND NULL )
----
1
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + col0 * 23 * + col0 * - 97 + 62 + - 49 * + 19 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + COUNT( * ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9191
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL - COUNT( * ) + + + ( + 13 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL - COUNT ( * ) + + + ( + 13 ) AS col1 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT + col1 DIV - 93 + + col2 + + - col1 * - - col2 FROM tab2
----
-1150
-3040
-3828

skipif mysql # not compatible
query I rowsort label-9193
SELECT + col1 / - 93 + + col2 + + - col1 * - - col2 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT - MAX( col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT - MAX ( col2 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9195
SELECT - + ( + ( - COUNT( * ) ) ) * + 13, 25 AS col0 FROM tab1 AS cor0
----
39
25

skipif mysql # not compatible
query II rowsort label-9195
SELECT - + ( + ( - COUNT ( * ) ) ) * + 13, 25 AS col0 FROM tab1 AS cor0
----
39
25

query I rowsort
SELECT + 4 * + 17 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT - MAX( + - col1 ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
5
-3

skipif mysql # not compatible
query II rowsort label-9197
SELECT - MAX ( + - col1 ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
5
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 * + 57 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( 56 ) * - 10 FROM tab2 AS cor0
----
-560
-560
-560

query I rowsort
SELECT + 9 AS col1 FROM tab0 AS cor0 WHERE col1 + col1 < + col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9201
SELECT DISTINCT - CAST( 25 AS SIGNED ) * + - col2 + - 89 * + col1, + col1 FROM tab1 AS cor0
----
-2483
47
1030
5
1154
14

skipif mysql # not compatible
query II rowsort label-9201
SELECT DISTINCT - CAST ( 25 AS INTEGER ) * + - col2 + - 89 * + col1, + col1 FROM tab1 AS cor0
----
-2483
47
1030
5
1154
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9202
SELECT DISTINCT 84 + col0 + - 62 DIV + 63 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + col0 + + col2 DIV col0 * col1 IS NULL
----
135
169
175

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT 84 + col0 + - 62 / + 63 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + col0 + + col2 / col0 * col1 IS NULL
----
135
169
175

query I rowsort
SELECT ALL 98 + + col1 + - col2 + - 73 FROM tab0 AS cor0
----
-73
36
59

query I rowsort
SELECT DISTINCT col1 * - + 41 + + col2 AS col0 FROM tab0 AS cor0
----
-3274
-851
58

query I rowsort
SELECT DISTINCT 7 - - col1 * + col0 + + - col0 AS col0 FROM tab1
----
347
4193
670

query I rowsort
SELECT ALL + 32 - - col2 + + col2 + + col2 AS col0 FROM tab0
----
173
329
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 - - col2 col2 FROM tab1
----
153
162
190

query I rowsort
SELECT DISTINCT - 99 - + + col1 FROM tab2
----
-150
-166
-176

query I rowsort
SELECT ALL col1 * - ( - - 56 ) FROM tab2
----
-2856
-3752
-4312

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 5 * - col1 ) IS NULL
----

query I rowsort
SELECT + col1 * + col1 + + + 40 AS col2 FROM tab2 AS cor0
----
2641
4529
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL - COUNT( * ) * 63 FROM tab2 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - COUNT ( * ) * 63 FROM tab2 cor0
----
-189

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT 48 DIV + + col0 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9214
SELECT 48 / + + col0 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - 53 * - col1 FROM tab0
----
1113
4293
53

query II rowsort
SELECT ALL + 20 * - - col1, + 82 * + 69 - 62 * col0 * 0 AS col1 FROM tab0
----
1620
5658
20
5658
420
5658

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9219
SELECT + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 11 AS col0, 60 * + - col2 col2 FROM tab1 AS cor0
----
-11
-3540
-11
-4080
-11
-5760

query II rowsort
SELECT + - col0, + col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL - 4 + + - col1 AS col1 FROM tab0
----
-25
-5
-85

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT col2 * + 77 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9225
SELECT * FROM tab2 AS cor0 WHERE + col1 / - - 16 * + CAST( NULL AS SIGNED ) - + col0 <= + 12
----

skipif mysql # not compatible
query III rowsort label-9225
SELECT * FROM tab2 AS cor0 WHERE + col1 / - - 16 * + CAST ( NULL AS INTEGER ) - + col0 <= + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9226
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= col2 + - col1 + col0 * 52 / - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9226
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= col2 + - col1 + col0 * 52 / - CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + 11 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT ALL CAST( 55 AS SIGNED ) - - ( + 32 ) FROM tab0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL CAST ( 55 AS INTEGER ) - - ( + 32 ) FROM tab0
----
87
87
87

query I rowsort
SELECT + - ( - + 77 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT col2 + 11 - - CAST( NULL AS SIGNED ) / + - col2 / + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT col2 + 11 - - CAST ( NULL AS INTEGER ) / + - col2 / + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - - col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9232
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 cor0 WHERE ( - CAST( NULL AS SIGNED ) ) + + 25 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) + + 25 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL - MIN( DISTINCT - col1 ) + - - 43 FROM tab0 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL - MIN ( DISTINCT - col1 ) + - - 43 FROM tab0 AS cor0
----
124

query I rowsort
SELECT - col0 * - 26 AS col0 FROM tab2
----
1196
1664
1950

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9235
SELECT * FROM tab0 WHERE NOT - + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9235
SELECT * FROM tab0 WHERE NOT - + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - 6 ) * - col2 AS col2 FROM tab1
----
354
408
576

query I rowsort
SELECT ALL col2 * - + 1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9238
SELECT AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9238
SELECT AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + - 82 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT - - col0 * - - col1 + - 93 + + col1 FROM tab2 AS cor0
----
2304
4912
4999

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL - + SUM( + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL - + SUM ( + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL - col2 * - - 53 AS col1 FROM tab2 AS cor0
----
-1219
-2120
-3074

query I rowsort
SELECT ALL + - col2 + - 42 * + col2 AS col1 FROM tab1 AS cor0
----
-2537
-2924
-4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * + 8 col2 FROM tab0 AS cor0
----
496
496
496

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 1 IS NULL
----

query I rowsort
SELECT - col0 * col0 + - + col1 FROM tab1 AS cor0
----
-2615
-7230
-8328

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL + MAX( + col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + MAX ( + col0 ) AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT DISTINCT 72 + - - col0 FROM tab0 cor0
----
159
169
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - 22 col2 FROM tab2
----
1
18
36

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 * - col2 col1 FROM tab0
----
-3290
-6930
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT ALL + 64 DIV + 18 AS col0 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + 64 / + 18 AS col0 FROM tab2
----
3
3
3

query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT DISTINCT - 36 * - + col1 DIV - col1 AS col1 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT - 36 * - + col1 / - col1 AS col1 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT SUM( - - 3 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9257
SELECT SUM ( - - 3 ) FROM tab2
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 88 + - + 40 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * - 26 col1 FROM tab2 AS cor0
----
572
572
572

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT - 29 + + - COUNT( * ) * + SUM( + - 75 ) * - 67 FROM tab2 AS cor0
----
-45254

skipif mysql # not compatible
query I rowsort label-9260
SELECT - 29 + + - COUNT ( * ) * + SUM ( + - 75 ) * - 67 FROM tab2 AS cor0
----
-45254

query I rowsort
SELECT DISTINCT + 32 * 53 * + col0 + + col2 + 66 AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 8 + - 47 FROM tab2 cor0
----
-39

query I rowsort
SELECT ALL col1 * - + col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT 34 * + 64 + col2 + + + ( 22 ) FROM tab2 AS cor0
----
2221
2238
2256

query I rowsort
SELECT col2 * - - col2 - ( col1 ) FROM tab0 AS cor0
----
2128
79
9800

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL BETWEEN - - col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query II rowsort
SELECT - col0, - col0 AS col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT DISTINCT - 21 AS col2, - ( col0 ) FROM tab1
----
-21
-51
-21
-85
-21
-91

query I rowsort
SELECT ( + - 28 ) FROM tab1
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - 54 * col0 AS col2 FROM tab1
----
-2754
-4590
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9272
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT + 26 * + COUNT( * ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + 26 * + COUNT ( * ) AS col2 FROM tab1
----
78

query I rowsort
SELECT DISTINCT + - 82 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT DISTINCT - SUM( ALL - - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT - SUM ( ALL - - col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ( + col2 ) FROM tab0 cor0 WHERE NOT - col0 * + + ( + 12 ) + - ( - - col1 ) + + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT 42 + - + COUNT( + col1 ) col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9279
SELECT DISTINCT 42 + - + COUNT ( + col1 ) col0 FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 * col2 + col1 + + col2 + 74 + col1 + col0 col1 FROM tab1 AS cor0
----
3119
3659
4953

onlyif mysql # DIV for integer division: 
query II rowsort label-9281
SELECT DISTINCT + + col0 * - col1 + + 20 DIV - 50 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
-2346
-51
-4928
-77
-5025
-67

skipif mysql # not compatible
query II rowsort label-9281
SELECT DISTINCT + + col0 * - col1 + + 20 / - 50 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
-2346
-51
-4928
-77
-5025
-67

query I rowsort
SELECT DISTINCT col2 + + + ( col0 ) FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + - 41 * - COUNT( * ) FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-9283
SELECT + - 41 * - COUNT ( * ) FROM tab1 cor0
----
123

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= ( + + col2 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL CAST( - + 89 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL CAST ( - + 89 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL col1 + CAST( NULL AS SIGNED ) * - - col1 - col1 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * - - col1 - col1 * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND NOT NULL NOT BETWEEN + - 93 AND NULL
----

query I rowsort
SELECT col2 + + col0 * - col2 AS col2 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT - col0 + - 20 * + - 25 FROM tab0
----
403
413
485

query I rowsort
SELECT DISTINCT 72 + + ( + col2 ) + + col1 FROM tab0
----
103
172
200

query I rowsort
SELECT - col2 + - - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 + - - 95 FROM tab1
----
10
4
44

query I rowsort
SELECT - 19 + 37 * - col0 FROM tab1
----
-1906
-3164
-3386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9294
SELECT DISTINCT ( ( - - COUNT( * ) ) ) DIV SUM( - col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT ( ( - - COUNT ( * ) ) ) / SUM ( - col0 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab2 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT - + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT - + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ( + 11 ) AS col0 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL 81 + - + 86 * + COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL 81 + - + 86 * + COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT + COUNT( * ) / + 42 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT + COUNT ( * ) / + 42 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT + 27 + COUNT( * ) + - - 67 * 0 AS col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + 27 + COUNT ( * ) + - - 67 * 0 AS col1 FROM tab1 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT CAST( + + col0 AS SIGNED ) - - 47 FROM tab1
----
132
138
98

skipif mysql # not compatible
query I rowsort label-9301
SELECT CAST ( + + col0 AS INTEGER ) - - 47 FROM tab1
----
132
138
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT COUNT( * ) - - SUM( - - col0 ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-9302
SELECT COUNT ( * ) - - SUM ( - - col0 ) FROM tab2
----
188

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query II rowsort
SELECT + col0, ( col1 ) FROM tab0 AS cor0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col2 col2 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <= - 14
----

query I rowsort
SELECT 58 * col2 FROM tab0 AS cor0
----
2726
5742
580

query II rowsort
SELECT DISTINCT 6 AS col2, - col1 FROM tab1 AS cor0
----
6
-14
6
-47
6
-5

query I rowsort
SELECT + col0 * - + col0 + - col1 FROM tab0 AS cor0
----
-306
-7590
-9410

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT - COUNT( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - COUNT ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col1 AS col0, + ( ( 41 ) ) FROM tab0 AS cor0
----
1
41
21
41
81
41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( - col1 ) ) = - 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9313
SELECT + + col0 DIV + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9313
SELECT + + col0 / + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
0
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 54 <> - - col2
----

query I rowsort
SELECT ALL + - 31 FROM tab0 AS cor0 WHERE NOT 6 < - 30
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT + MIN( + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT + MIN ( + + col1 ) FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - col1, 2 * - + 46 col0 FROM tab0
----
1215
-92
1827
-92
97
-92

query I rowsort
SELECT + 65 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT + 68 * - col0 - - + col0 + + - col1 FROM tab0 AS cor0
----
-1086
-5850
-6500

query I rowsort
SELECT ALL 82 + - col2 AS col0 FROM tab2 AS cor0
----
24
42
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT DISTINCT + 70 * + COUNT( * ) FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT + 70 * + COUNT ( * ) FROM tab0
----
210

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 42 + + col2 FROM tab0 AS cor0
----
141
52
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < col0 * - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + 13 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + 13 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT - - COUNT( - - 5 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9327
SELECT - - COUNT ( - - 5 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NOT - + col2 IS NULL )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9329
SELECT + + 54, ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
54
-3

skipif mysql # not compatible
query II rowsort label-9329
SELECT + + 54, ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
54
-3

query I rowsort
SELECT ALL + 19 + + col1 AS col1 FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT ALL col2 + - - col0 FROM tab2
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT DISTINCT col0 DIV col2 + - - 68 AS col2 FROM tab1
----
68
69

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT col0 / col2 + - - 68 AS col2 FROM tab1
----
68
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT + - SUM( DISTINCT - + 98 ) * - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0 WHERE + ( - - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT + - SUM ( DISTINCT - + 98 ) * - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0 WHERE + ( - - col2 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9334
SELECT col0 DIV - col0 + 66 AS col0 FROM tab0 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-9334
SELECT col0 / - col0 + 66 AS col0 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT col2 + ( - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + - col0 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT 3 DIV + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT 3 / + col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - SUM( DISTINCT + - 26 ) AS col0 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-9339
SELECT - SUM ( DISTINCT + - 26 ) AS col0 FROM tab1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9340
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - - col2 + + col1 + + col1 * - 15 * + + CAST( NULL AS SIGNED ) + + - col2 / col1
----

skipif mysql # not compatible
query III rowsort label-9340
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - - col2 + + col1 + + col1 * - 15 * + + CAST ( NULL AS INTEGER ) + + - col2 / col1
----

query I rowsort
SELECT ALL + 85 * - - 47 * - + col0 * - col0 + - col1 AS col2 FROM tab2 cor0
----
16363443
22471808
8453369

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + col2 <= ( + - ( - + 69 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 10 AS col0, 79 * col0 FROM tab1
----
10
4029
10
6715
10
7189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 12 = NULL
----

query I rowsort
SELECT col2 / 95 * + 86 - - col2 FROM tab2 WHERE NOT 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT - MAX( + 52 ) AS col0 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-9346
SELECT - MAX ( + 52 ) AS col0 FROM tab1
----
-52

query II rowsort
SELECT ALL col1 AS col0, - ( 69 ) AS col1 FROM tab2
----
51
-69
67
-69
77
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-9348
SELECT ALL col2, col1 DIV - col0 AS col1 FROM tab1
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-9348
SELECT ALL col2, col1 / - col0 AS col1 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9349
SELECT + 7 DIV + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9349
SELECT + 7 / + col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * 58 / - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col1 FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT + + ( - ( - 90 ) ) FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL + SUM( ALL + + 78 ) + 4 AS col0 FROM tab2 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + SUM ( ALL + + 78 ) + 4 AS col0 FROM tab2 AS cor0
----
238

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9354
SELECT ALL col1 + col0 + + - col2 - + ( - 40 ), + 10 AS col0 FROM tab1 AS cor0 WHERE NOT 18 + - CAST( 28 AS SIGNED ) BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query II rowsort label-9354
SELECT ALL col1 + col0 + + - col2 - + ( - 40 ), + 10 AS col0 FROM tab1 AS cor0 WHERE NOT 18 + - CAST ( 28 AS INTEGER ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT 5 * - MAX( 62 ) + 43 + + 15 * - 79 AS col2 FROM tab2 AS cor0
----
-1452

skipif mysql # not compatible
query I rowsort label-9355
SELECT 5 * - MAX ( 62 ) + 43 + + 15 * - 79 AS col2 FROM tab2 AS cor0
----
-1452

query II rowsort
SELECT - col1 + 69 AS col1, - 75 * col2 FROM tab0 cor0
----
-12
-3525
48
-750
68
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL + + 23 + - MAX( ALL col1 ) FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL + + 23 + - MAX ( ALL col1 ) FROM tab1 cor0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-9358
SELECT + 1 + + col2 AS col2, - col1 * + + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
60
5
69
47
97
14

skipif mysql # not compatible
query II rowsort label-9358
SELECT + 1 + + col2 AS col2, - col1 * + + col0 / - col0 AS col1 FROM tab1 AS cor0
----
60
5
69
47
97
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9359
SELECT DISTINCT - col1 AS col0, 83 * + 17 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + + 67 AND - col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-9359
SELECT DISTINCT - col1 AS col0, 83 * + 17 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + + 67 AND - col1 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( - - 98 ) + - col2 - + ( + + col1 ) + ( + col1 ) + + - col2 + + col1 AS col1 FROM tab2
----
103
49
95

query I rowsort
SELECT ALL 77 FROM tab2, tab2 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT + col1 + + - col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL + col1 - - - ( - - col0 ) FROM tab2
----
-8
13
5

query II rowsort
SELECT + col2 * + + 28 + - - col0, col0 AS col2 FROM tab0
----
1331
15
2869
97
367
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9365
SELECT ALL CAST( + col0 AS SIGNED ) DIV + col0 + + col2 col0 FROM tab1
----
60
69
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9365
SELECT ALL CAST ( + col0 AS INTEGER ) / + col0 + + col2 col0 FROM tab1
----
60
69
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 8, + col1 col1 FROM tab1
----
8
14
8
47
8
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + 38 - ( COUNT( * ) ) * - 34 FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-9367
SELECT + 38 - ( COUNT ( * ) ) * - 34 FROM tab1 AS cor0
----
140

query I rowsort
SELECT - + 42 - - 77 FROM tab2 AS cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9369
SELECT + col2 DIV - + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9369
SELECT + col2 / - + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 * + + 49 FROM tab2 AS cor0
----
1127
1960
2842

query I rowsort
SELECT ALL 35 AS col2 FROM tab0 WHERE - col1 <> + col1
----
35
35
35

query I rowsort
SELECT + 65 * - col2 FROM tab1 WHERE NOT col1 * + 29 >= ( 27 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL + 95 + MAX( col2 ) col2 FROM tab0
----
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9373
SELECT ALL + 95 + MAX ( col2 ) col2 FROM tab0
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL + COUNT( * ) FROM tab2 WHERE ( 64 ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL + COUNT ( * ) FROM tab2 WHERE ( 64 ) < ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT + 91 + 24 * CAST( + COUNT( * ) + + 27 AS SIGNED ) FROM tab1
----
811

skipif mysql # not compatible
query I rowsort label-9375
SELECT + 91 + 24 * CAST ( + COUNT ( * ) + + 27 AS INTEGER ) FROM tab1
----
811

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col0 + col0 NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - ( - 20 ) FROM tab1
----
20

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT ( + 68 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT ( + 68 ) IS NOT NULL
----
0

query I rowsort
SELECT col1 + col1 * - 39 FROM tab0
----
-3078
-38
-798

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - col2 + col1 FROM tab2
----
-1122
-3003
-3819

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 41 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9384
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9384
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - SUM( ALL - col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9385
SELECT - SUM ( ALL - col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT DISTINCT ( col2 ) + - ( col2 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col1 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab0 WHERE - col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT ALL + CAST( - ( - col2 ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL + CAST ( - ( - col2 ) AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( ( col0 ) ) IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT col1 * - ( 52 DIV col1 ) FROM tab1 cor0
----
-42
-47
-50

skipif mysql # not compatible
query I rowsort label-9391
SELECT col1 * - ( 52 / col1 ) FROM tab1 cor0
----
-42
-47
-50

query I rowsort
SELECT - 52 FROM tab0 AS cor0 WHERE - 56 + + col2 <> NULL
----

query I rowsort
SELECT col2 + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
128
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * 46 ) IN ( - 3 )
----

query I rowsort
SELECT DISTINCT - col0 * + col1 + 45 * + col0 FROM tab2 AS cor0
----
-1650
-2048
-276

query I rowsort
SELECT ALL - col2 + 22 * 6 AS col2 FROM tab1 cor0
----
36
64
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( col1 ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL - MAX( DISTINCT + 83 ) + - 47 FROM tab0
----
-130

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL - MAX ( DISTINCT + 83 ) + - 47 FROM tab0
----
-130

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 6 * + 64 > col1 * + 70
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT 53 * + CAST( + col2 AS SIGNED ) - + col2 FROM tab2
----
1196
2080
3016

skipif mysql # not compatible
query I rowsort label-9400
SELECT 53 * + CAST ( + col2 AS INTEGER ) - + col2 FROM tab2
----
1196
2080
3016

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL COUNT( ALL + 93 ) - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL COUNT ( ALL + 93 ) - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col2 + + - col1 + col0 FROM tab2
----
-28
-50
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT COUNT( * ) - + MIN( ALL col0 ) AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9404
SELECT COUNT ( * ) - + MIN ( ALL col0 ) AS col2 FROM tab0
----
-12

query I rowsort
SELECT 59 * col0 - col2 * + col2 AS col1 FROM tab2
----
1061
2176
2185

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - COUNT( * ) + - ( ( - 7 ) ) AS col0 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-9406
SELECT - COUNT ( * ) + - ( ( - 7 ) ) AS col0 FROM tab2
----
4

query I rowsort
SELECT DISTINCT col2 - - 88 AS col1 FROM tab1
----
147
156
184

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 4 < + ( - col1 ) - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 55 + + 28 FROM tab0
----
83
83
83

query I rowsort
SELECT ALL - col0 - - + col1 AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT - col2 + - + col1 AS col1 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL CAST( NULL AS SIGNED ) * 61 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL CAST ( NULL AS INTEGER ) * 61 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 48 * + col2 + 86 FROM tab1 AS cor0
----
2918
3350
4694

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT ALL 77 * + col0 FROM tab0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT + SUM( col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9416
SELECT + SUM ( col2 ) AS col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9417
SELECT ALL * FROM tab1 WHERE NOT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - col1 * col0 < 81 * - col2 + 91
----

skipif mysql # not compatible
query III rowsort label-9417
SELECT ALL * FROM tab1 WHERE NOT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col1 * col0 < 81 * - col2 + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT SUM( DISTINCT - col1 ) * COUNT( * ) AS col2 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT SUM ( DISTINCT - col1 ) * COUNT ( * ) AS col2 FROM tab2
----
-585

query I rowsort
SELECT DISTINCT + 0 * - 26 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 * + 26 AS col2 FROM tab1 AS cor0 WHERE 74 NOT IN ( + - 67 )
----
1222
130
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 67 + - col2 col0 FROM tab2 AS cor0
----
46
44
64
27
75
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9422
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 20 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9424
SELECT ALL * FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9424
SELECT ALL * FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 55 * col1 AS col2 FROM tab2 cor0
----
2805
3685
4235

query I rowsort
SELECT ALL - 22 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + col0 + 59 * + ( 10 ) BETWEEN col0 AND NULL
----

query II rowsort
SELECT - 75 AS col0, - ( + col0 ) FROM tab2 AS cor0
----
-75
-46
-75
-64
-75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT ALL ( - 27 ) + - - col1 - - - col0 DIV + col2 AS col1 FROM tab1
----
-13
-23
19

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL ( - 27 ) + - - col1 - - - col0 / + col2 AS col1 FROM tab1
----
-13
-23
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 82 + 89 col1, - col2 col1 FROM tab0
----
171
-10
171
-47
171
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + ( - COUNT( * ) ) * + + 17 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9430
SELECT + ( - COUNT ( * ) ) * + + 17 FROM tab2
----
-51

query I rowsort
SELECT col2 * + + 80 AS col0 FROM tab2
----
1840
3200
4640

query I rowsort
SELECT - ( - col2 ) + + - col0 AS col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL - col2 * + - col0 * + - col2 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT + + 97 ) AS col2 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT + + 97 ) AS col2 FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT + - COUNT( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT + - COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9436
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > - ( + + col1 ) - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9436
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 > - ( + + col1 ) - + CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - 58 ) col0 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT + - CAST( NULL AS SIGNED ) * - + col2 * - + ( 78 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT + - CAST ( NULL AS INTEGER ) * - + col2 * - + ( 78 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE - col2 + - 61 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - col2 + + - 49 AS col0 FROM tab0
----
-148
-59
-96

query I rowsort
SELECT + 1 * + - col1 AS col2 FROM tab1
----
-14
-47
-5

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 29 < ( NULL )
----

query I rowsort
SELECT col1 * 94 AS col0 FROM tab1 AS cor0 WHERE col1 / - col2 * - col1 NOT BETWEEN 3 AND ( - 20 )
----
1316
4418
470

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL SUM( + 7 ) AS col1 FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL SUM ( + 7 ) AS col1 FROM tab0 cor0
----
21

query I rowsort
SELECT ALL col2 + - 18 AS col2 FROM tab1 AS cor0
----
41
50
78

query I rowsort
SELECT 50 + col1 FROM tab2 AS cor0
----
101
117
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT - - COUNT( * ) + - - 89 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9447
SELECT - - COUNT ( * ) + - - 89 FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT - 47 + 44 + + + 47 AS col1 FROM tab1 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * + + col0 col1 FROM tab0 AS cor0
----
720
957
9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col2 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT 1 + + col1 AS col1 FROM tab0 AS cor0
----
2
22
82

query II rowsort
SELECT ALL ( + + 30 ) + + col1 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
111
-81
31
-1
51
-21

query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 FROM tab2 AS cor0 WHERE ( - col0 ) NOT BETWEEN NULL AND - col2 * col2
----
2369
4968
5083

query I rowsort
SELECT DISTINCT - 84 - 11 AS col0 FROM tab1
----
-95

query III rowsort
SELECT * FROM tab0 WHERE + + 45 * 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 23, + col0 AS col0 FROM tab2
----
23
46
23
64
23
75

query III rowsort
SELECT * FROM tab1 WHERE 99 BETWEEN ( - col1 ) AND ( + - col2 * 50 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT DISTINCT + COUNT( * ) AS col0, 88 + + 70 AS col2 FROM tab2
----
3
158

skipif mysql # not compatible
query II rowsort label-9458
SELECT DISTINCT + COUNT ( * ) AS col0, 88 + + 70 AS col2 FROM tab2
----
3
158

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col2 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT - col1 * + col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 * - + col2 * + - CAST( 82 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9460
SELECT - col1 * + col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 * - + col2 * + - CAST ( 82 AS INTEGER ) )
----

query I rowsort
SELECT - col0 * + col2 + + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT 44 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT - ( + 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-9463
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + - ( - - col0 ) - + col1
----

query I rowsort
SELECT DISTINCT 39 + + + 71 FROM tab1 AS cor0
----
110

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9466
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> CAST( NULL AS DECIMAL ) * + col2
----

skipif mysql # not compatible
query III rowsort label-9466
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> CAST ( NULL AS REAL ) * + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9467
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9467
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 + - - 79 BETWEEN - col0 + + - col0 + + col2 * col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL - + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL - + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9470
SELECT ALL col1 + + col2 FROM tab2 AS cor0 WHERE NOT CAST( + + col0 AS DECIMAL ) / col1 * - col1 + + - col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL col1 + + col2 FROM tab2 AS cor0 WHERE NOT CAST ( + + col0 AS REAL ) / col1 * - col1 + + - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT SUM( + + ( + + col1 ) ) * + - MIN( + + col0 ) FROM tab2 AS cor0
----
-8970

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT SUM ( + + ( + + col1 ) ) * + - MIN ( + + col0 ) FROM tab2 AS cor0
----
-8970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 81 col2 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT - 4 + - + col2 FROM tab1 AS cor0
----
-100
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT + ( + - COUNT( * ) ) * COUNT( * ) col2 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9474
SELECT DISTINCT + ( + - COUNT ( * ) ) * COUNT ( * ) col2 FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9476
SELECT DISTINCT SUM( DISTINCT ( ( 14 ) ) ) * COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * - + ( 65 ) FROM tab0
----
NULL
-195

skipif mysql # not compatible
query II rowsort label-9476
SELECT DISTINCT SUM ( DISTINCT ( ( 14 ) ) ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * - + ( 65 ) FROM tab0
----
NULL
-195

query I rowsort
SELECT ALL - ( + + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN NULL AND - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 87 AS col1, + col1 col1 FROM tab2
----
-87
51
-87
67
-87
77

query I rowsort
SELECT ALL - col1 * - col2 * - - col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT ALL + ( - - col1 ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9482
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND CAST( NULL AS DECIMAL ) <> - 80
----

skipif mysql # not compatible
query III rowsort label-9482
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND CAST ( NULL AS REAL ) <> - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL + COUNT( * ) - - - COUNT( * ) + + 10 col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9483
SELECT ALL + COUNT ( * ) - - - COUNT ( * ) + + 10 col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT - ( + ( + - MAX( DISTINCT - 58 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

skipif mysql # not compatible
query I rowsort label-9484
SELECT - ( + ( + - MAX ( DISTINCT - 58 ) ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-58

query I rowsort
SELECT + - col1 * + 79 * - 29 AS col1 FROM tab1 AS cor0
----
107677
11455
32074

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE col1 + - - ( + col2 ) IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT - + MIN( DISTINCT 91 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - + MIN ( DISTINCT 91 ) FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 65 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT DISTINCT - SUM( DISTINCT col2 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT - SUM ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9491
SELECT * FROM tab0 WHERE NOT + col2 * - + col0 * CAST( NULL AS SIGNED ) NOT IN ( + + col2, - col1, - col1 )
----

skipif mysql # not compatible
query III rowsort label-9491
SELECT * FROM tab0 WHERE NOT + col2 * - + col0 * CAST ( NULL AS INTEGER ) NOT IN ( + + col2, - col1, - col1 )
----

query II rowsort
SELECT col0, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query II rowsort label-9493
SELECT ALL col1, col1 DIV - col2 AS col0 FROM tab0
----
1
0
21
-2
81
-1

skipif mysql # not compatible
query II rowsort label-9493
SELECT ALL col1, col1 / - col2 AS col0 FROM tab0
----
1
0
21
-2
81
-1

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9495
SELECT ALL 16 FROM tab0 WHERE + CAST( - + 15 AS SIGNED ) IS NOT NULL
----
16
16
16

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL 16 FROM tab0 WHERE + CAST ( - + 15 AS INTEGER ) IS NOT NULL
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT ALL CAST( - col2 AS SIGNED ) * 49 + + 40 AS col2 FROM tab0
----
-2263
-450
-4811

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL CAST ( - col2 AS INTEGER ) * 49 + + 40 AS col2 FROM tab0
----
-2263
-450
-4811

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT COUNT( + - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9497
SELECT COUNT ( + - col2 ) AS col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col0 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT + ( - SUM( DISTINCT - col2 ) ) FROM tab1 AS cor0 WHERE NOT 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT + ( - SUM ( DISTINCT - col2 ) ) FROM tab1 AS cor0 WHERE NOT 82 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 47 col0 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL + CAST( - 19 AS SIGNED ) FROM tab1 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + CAST ( - 19 AS INTEGER ) FROM tab1 AS cor0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 + - + ( + - col1 ), 68, - + 95 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN NULL AND + 4 + - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT ALL + - CAST( NULL AS SIGNED ) + + 88 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 88 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 * + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT DISTINCT + col1 + col0 + - ( col2 ) + - ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + col1 + col0 + - ( col2 ) + - ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 53 + - col2 AS col1 FROM tab0 cor0
----
-100
-152
-63

query II rowsort
SELECT + - 54, + col1 AS col0 FROM tab1 AS cor0
----
-54
14
-54
47
-54
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 > + - col0 + + col1
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9510
SELECT ALL CAST( NULL AS SIGNED ) * - 84 + - + 12 + + + col2 AS col2, 18 + col2 DIV ( - col0 ) AS col0 FROM tab1 AS cor0
----
NULL
17
NULL
18
NULL
18

skipif mysql # not compatible
query II rowsort label-9510
SELECT ALL CAST ( NULL AS INTEGER ) * - 84 + - + 12 + + + col2 AS col2, 18 + col2 / ( - col0 ) AS col0 FROM tab1 AS cor0
----
NULL
17
NULL
18
NULL
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT ALL ( - col2 ) + + - 87 DIV + col0 AS col1 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL ( - col2 ) + + - 87 / + col0 AS col1 FROM tab2
----
-24
-41
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT - 87 + 69 + - 41 DIV - + 36 FROM tab0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-9512
SELECT - 87 + 69 + - 41 / - + 36 FROM tab0
----
-17
-17
-17

query I rowsort
SELECT col1 + + - 38 FROM tab2
----
13
29
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT ALL col2 + + col2 DIV + col1 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL col2 + + col2 / + col1 AS col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + col2 col1 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT 43 + + ( + + 68 ) + - COUNT( * ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-9516
SELECT 43 + + ( + + 68 ) + - COUNT ( * ) FROM tab2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL + SUM( ALL 12 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + SUM ( ALL 12 ) FROM tab0
----
36

query I rowsort
SELECT ALL - 28 * + col2 FROM tab0
----
-1316
-2772
-280

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col2 * + 70 IS NULL )
----

query I rowsort
SELECT col2 + 8 FROM tab2
----
31
48
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT DISTINCT - 95 DIV col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT - 95 / col0 FROM tab0
----
-1
-6
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9522
SELECT * FROM tab2 WHERE - col0 IN ( + col2, - CAST( NULL AS SIGNED ), 75 * col0 * col0, - + 87 )
----

skipif mysql # not compatible
query III rowsort label-9522
SELECT * FROM tab2 WHERE - col0 IN ( + col2, - CAST ( NULL AS INTEGER ), 75 * col0 * col0, - + 87 )
----

query I rowsort
SELECT 39 * col0 + 65 AS col1 FROM tab0
----
3458
3848
650

query II rowsort
SELECT col1 AS col2, col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL COUNT( * ) + - 47 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL COUNT ( * ) + - 47 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT ALL + 17 - + col0 FROM tab2
----
-29
-47
-58

query I rowsort
SELECT DISTINCT 60 - - + col0 FROM tab1
----
111
145
151

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT DISTINCT - COUNT( * ) AS col0, + 95 AS col0 FROM tab2 WHERE - col2 IS NULL AND ( + ( col2 ) ) IS NULL
----
0
95

skipif mysql # not compatible
query II rowsort label-9528
SELECT DISTINCT - COUNT ( * ) AS col0, + 95 AS col0 FROM tab2 WHERE - col2 IS NULL AND ( + ( col2 ) ) IS NULL
----
0
95

query I rowsort
SELECT col0 - + - col1 - - - col1 + + col0 AS col1 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9530
SELECT ALL COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - + 7 AS col0, 60 AS col2 FROM tab2 cor0
----
-7
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT + - 97 + CAST( + - 70 AS SIGNED ) - + COUNT( * ) FROM tab2 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-9532
SELECT + - 97 + CAST ( + - 70 AS INTEGER ) - + COUNT ( * ) FROM tab2 AS cor0
----
-170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col0 * + col2 + - + col2 + col1 / 6 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 93 * - col1 AS col0 FROM tab2 AS cor0
----
4743
6231
7161

query I rowsort
SELECT DISTINCT - 28 * + + col1 AS col0 FROM tab2 AS cor0
----
-1428
-1876
-2156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT 64 * col1 < ( + ( + - col2 ) * - 38 + - col2 * - + col0 ) ) )
----
75
67
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + + col1 )
----

query I rowsort
SELECT - 78 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - MAX( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9539
SELECT - MAX ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col2 FROM tab1 cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT MIN( ALL + col0 ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9541
SELECT MIN ( ALL + col0 ) AS col2 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT - SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9542
SELECT - SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT 11 * - - 36 FROM tab0
----
396
396
396

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL - SUM( 81 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - SUM ( 81 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-729

onlyif mysql # DIV for integer division: 
query I rowsort label-9545
SELECT + 64 DIV + col0 + + + col2 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-9545
SELECT + 64 / + col0 + + + col2 FROM tab1 AS cor0
----
59
68
97

query I rowsort
SELECT DISTINCT ( - 64 ) FROM tab0 AS cor0
----
-64

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ( COUNT( * ) ) + + + MAX( ALL + - 47 ) AS col2 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9549
SELECT ( COUNT ( * ) ) + + + MAX ( ALL + - 47 ) AS col2 FROM tab1 AS cor0
----
-44

query II rowsort
SELECT ALL + - col0 + + 90 + 57 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
101
-23
72
-58
83
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9551
SELECT DISTINCT + 69 DIV + COUNT( * ) + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT + 69 / + COUNT ( * ) + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - ( - 2 ) FROM tab1 AS cor0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - + 69 * + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 57 ) col1 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - col2
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE + - col0 / - - col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 col0 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT + MIN( + ( - col1 ) ) - + 54 AS col1 FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-9559
SELECT + MIN ( + ( - col1 ) ) - + 54 AS col1 FROM tab1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT + 25 + + SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9560
SELECT + 25 + + SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + + 22 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT - + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9562
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col0 - + - 55 FROM tab0
----
142
152
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + + col2 - + col2 col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9565
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 8, 60 * - + col1, col2 + - CAST( - col2 AS SIGNED ) - + + 51 )
----

skipif mysql # not compatible
query III rowsort label-9565
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 8, 60 * - + col1, col2 + - CAST ( - col2 AS INTEGER ) - + + 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT DISTINCT - ( + col2 ) * - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT - ( + col2 ) * - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( ( - + col2 ), - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT DISTINCT - + 98 DIV + 35 - - 69 + 10 AS col0 FROM tab0 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT - + 98 / + 35 - - 69 + 10 AS col0 FROM tab0 cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= + ( - 99 )
----

query I rowsort
SELECT - col1 * + + col1 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT + col2, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9573
SELECT - 33 col2, MAX( 44 ) FROM tab2
----
-33
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9573
SELECT - 33 col2, MAX ( 44 ) FROM tab2
----
-33
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT COUNT( DISTINCT + + ( - 85 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT COUNT ( DISTINCT + + ( - 85 ) ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT ALL - 77 DIV - 29 AS col1 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - 77 / - 29 AS col1 FROM tab1
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9576
SELECT ALL col2, - col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query II rowsort label-9576
SELECT ALL col2, - col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + - 90 - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9579
SELECT DISTINCT + 15 + - + col1 DIV + + 36 FROM tab1 AS cor0 WHERE NOT ( NOT - 5 DIV + ( + CAST( NULL AS SIGNED ) ) + + col2 IS NOT NULL ) OR NOT - - col0 IN ( + + col2 )
----
14
15

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + 15 + - + col1 / + + 36 FROM tab1 AS cor0 WHERE NOT ( NOT - 5 / + ( + CAST ( NULL AS INTEGER ) ) + + col2 IS NOT NULL ) OR NOT - - col0 IN ( + + col2 )
----
14
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9580
SELECT * FROM tab2 WHERE NOT - CAST( + 38 AS SIGNED ) * - + col1 / 18 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9580
SELECT * FROM tab2 WHERE NOT - CAST ( + 38 AS INTEGER ) * - + col1 / 18 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT ALL + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL - 32 * + 77 AS col1, col1 + - col2 FROM tab0 AS cor0 WHERE - 11 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT ALL - - CAST( + 40 AS SIGNED ) FROM tab1 AS cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - - CAST ( + 40 AS INTEGER ) FROM tab1 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT ALL - MIN( col1 ) + + ( + CAST( - ( + 13 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL - MIN ( col1 ) + + ( + CAST ( - ( + 13 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT 30 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9586
SELECT + CAST( - - 16 AS SIGNED ) * + col0 + - + col2 + - + col1 + + - 32, + col1 AS col1 FROM tab1
----
1264
5
1309
47
674
14

skipif mysql # not compatible
query II rowsort label-9586
SELECT + CAST ( - - 16 AS INTEGER ) * + col0 + - + col2 + - + col1 + + - 32, + col1 AS col1 FROM tab1
----
1264
5
1309
47
674
14

query II rowsort
SELECT - col1 + + + 21 * - - col1 AS col0, + 18 FROM tab2
----
1020
18
1340
18
1540
18

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT - SUM( - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - SUM ( - col1 ) FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - ( + 75 ) + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL + COUNT( * ) + + COUNT( * ) col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9591
SELECT ALL + COUNT ( * ) + + COUNT ( * ) col1 FROM tab1 cor0
----
6

query I rowsort
SELECT - + 33 - - 56 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT + 12 - - - col2 AS col2 FROM tab0 AS cor0
----
-35
-87
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL MIN( + 71 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL MIN ( + 71 ) FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + - 92 + - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - MAX( - col0 ) FROM tab2 AS cor0 WHERE NOT ( - 93 ) IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-9597
SELECT - MAX ( - col0 ) FROM tab2 AS cor0 WHERE NOT ( - 93 ) IS NULL
----
46

query I rowsort
SELECT 38 * + 43 FROM tab0 AS cor0
----
1634
1634
1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9599
SELECT 72 * + ( + COUNT( * ) ) * + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT 72 * + ( + COUNT ( * ) ) * + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 28 * col1 FROM tab0 AS cor0
----
2268
28
588

query I rowsort
SELECT DISTINCT - col1 * col0 * - + ( col2 ) FROM tab2 AS cor0
----
197120
291450
53958

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 66 + - 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ( - COUNT( col1 ) ) * + 91 FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-9603
SELECT ( - COUNT ( col1 ) ) * + 91 FROM tab0 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT DISTINCT 15 * + COUNT( * ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT 15 * + COUNT ( * ) AS col0 FROM tab0
----
45

query I rowsort
SELECT - 77 FROM tab1 WHERE col2 IS NOT NULL AND - col0 IS NOT NULL
----
-77
-77
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT COUNT( ALL 97 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9608
SELECT COUNT ( ALL 97 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 35 ) - + col1 col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 89 * - col1 FROM tab0
----
-1869
-7209
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT + 61 * - - col2 + - col0 AS col1 FROM tab2 WHERE + 48 < + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9613
SELECT + 61 * - - col2 + - col0 AS col1 FROM tab2 WHERE + 48 < + CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( - 47 ) AS col2 FROM tab0
----
47

query I rowsort
SELECT DISTINCT 86 * - - 80 * + + col1 AS col0 FROM tab2
----
350880
460960
529760

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT ALL + 96 * + 79 + + COUNT( * ) AS col2, + COUNT( * ) FROM tab0
----
7587
3

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL + 96 * + 79 + + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0
----
7587
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ( COUNT( * ) ) + + MIN( + - col2 ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9617
SELECT ( COUNT ( * ) ) + + MIN ( + - col2 ) FROM tab2 AS cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - 79 * - - col1 col0 FROM tab2 AS cor0 WHERE ( 13 ) IS NOT NULL
----
-15572480
-23024550
-4262682

query II rowsort
SELECT - + 82, col0 FROM tab2 AS cor0
----
-82
46
-82
64
-82
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT 28 DIV - - 83 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9620
SELECT 28 / - - 83 AS col0 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT + - 17, + col2 AS col1 FROM tab2 AS cor0
----
-17
23
-17
40
-17
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col1 + + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-10
129
-47
177
-99
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 80 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 97 col1 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL + col0 + + col2 * + + col2 * + 80 FROM tab1 AS cor0
----
278565
370011
737331

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9626
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE 46 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 WHERE 46 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 60 + - - 55 FROM tab0 AS cor0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 46 / - col2 * + 32 * - + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT 16 - - + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= + col2
----
16

skipif mysql # not compatible
query I rowsort label-9629
SELECT 16 - - + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= + col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9630
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9630
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9631
SELECT ALL + col0 * - - col2 * col0 + - + 83 DIV + col1, 60 col0 FROM tab2
----
163839
60
326249
60
48667
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9631
SELECT ALL + col0 * - - col2 * col0 + - + 83 / + col1, 60 col0 FROM tab2
----
163839
60
326249
60
48667
60

query I rowsort
SELECT - 91 - - col1 AS col1 FROM tab2
----
-14
-24
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT 5 - - + ( COUNT( * ) ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9633
SELECT 5 - - + ( COUNT ( * ) ) AS col2 FROM tab2
----
8

query I rowsort
SELECT ALL + 0 * + 56 - + col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9635
SELECT DISTINCT MIN( ALL - 98 ) AS col2, - 93 * + 8 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
NULL
-744

skipif mysql # not compatible
query II rowsort label-9635
SELECT DISTINCT MIN ( ALL - 98 ) AS col2, - 93 * + 8 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
NULL
-744

query I rowsort
SELECT - + col0 FROM tab2 cor0 WHERE + 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 - + + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 - + + col0 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT - col1 DIV col0 + + 35 AS col2 FROM tab1 WHERE NOT - + ( + + 74 ) BETWEEN - - col1 AND 88
----
35
35
35

skipif mysql # not compatible
query I rowsort label-9638
SELECT - col1 / col0 + + 35 AS col2 FROM tab1 WHERE NOT - + ( + + 74 ) BETWEEN - - col1 AND 88
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 4 col1, 7 FROM tab2
----
4
7
4
7
4
7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND NULL >= col0
----

query I rowsort
SELECT DISTINCT + ( + 10 ) FROM tab0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND + CAST( + - col2 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col2 AND + CAST ( + - col2 AS INTEGER )
----
0

query I rowsort
SELECT ALL + + col0 * + 18 FROM tab2 cor0
----
1152
1350
828

query I rowsort
SELECT 61 * - 2 FROM tab0 AS cor0
----
-122
-122
-122

onlyif mysql # DIV for integer division: 
query II rowsort label-9645
SELECT DISTINCT 86 AS col2, + 19 + col0 - + + 93 + col2 DIV + col0 * - - 10 * + 88 FROM tab2 AS cor0
----
86
-10
86
-28
86
1

skipif mysql # not compatible
query II rowsort label-9645
SELECT DISTINCT 86 AS col2, + 19 + col0 - + + 93 + col2 / + col0 * - - 10 * + 88 FROM tab2 AS cor0
----
86
-10
86
-28
86
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9646
SELECT ALL COUNT( * ) AS col1, + 46 col2 FROM tab0
----
3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9646
SELECT ALL COUNT ( * ) AS col1, + 46 col2 FROM tab0
----
3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT SUM( + ( - col0 ) ) * + 74 AS col2 FROM tab2
----
-13690

skipif mysql # not compatible
query I rowsort label-9647
SELECT SUM ( + ( - col0 ) ) * + 74 AS col2 FROM tab2
----
-13690

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT DISTINCT COUNT( * ) AS col2, 68 FROM tab1
----
3
68

skipif mysql # not compatible
query II rowsort label-9648
SELECT DISTINCT COUNT ( * ) AS col2, 68 FROM tab1
----
3
68

query I rowsort
SELECT + 62 + col1 AS col0 FROM tab0
----
143
63
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT DISTINCT 86 DIV - + col1 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT 86 / - + col1 FROM tab1 AS cor0
----
-1
-17
-6

query I rowsort
SELECT DISTINCT - - col0 * - - col0 * - col0 + + + col0 AS col2 FROM tab0 AS cor0
----
-3360
-658416
-912576

onlyif mysql # DIV for integer division: 
query II rowsort label-9652
SELECT DISTINCT - 46 DIV + col2 * - + col0 AS col2, - col1 FROM tab1
----
0
-14
0
-47
0
-5

skipif mysql # not compatible
query II rowsort label-9652
SELECT DISTINCT - 46 / + col2 * - + col0 AS col2, - col1 FROM tab1
----
0
-14
0
-47
0
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT DISTINCT col2 DIV + - col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT col2 / + - col0 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT 17 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT 17 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL - + SUM( - 37 ) + 61 FROM tab1 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL - + SUM ( - 37 ) + 61 FROM tab1 AS cor0
----
172

query I rowsort
SELECT DISTINCT + 31 FROM tab0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 + col1 * + - col1 col2 FROM tab1
----
-157
-2170
14

query I rowsort
SELECT ALL + 23 - col0 + + - col1 FROM tab2
----
-118
-119
-74

query I rowsort
SELECT + 85 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
85
85
85

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL 63 * - - col0 AS col0 FROM tab1 AS cor0
----
3213
5355
5733

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL = ( 77 + - 85 )
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - col0 * col0 * - - 16 + 24 FROM tab0 WHERE NOT NULL NOT BETWEEN 21 + 58 AND - ( - - col1 ) / col0
----

query I rowsort
SELECT + col2 * - - 20 FROM tab1 AS cor0
----
1180
1360
1920

query I rowsort
SELECT + col0 * col1 - + + 78 FROM tab2 AS cor0
----
2268
4850
4947

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + - col1 >= + - col1
----

query I rowsort
SELECT - + 60 * + - col1 AS col0 FROM tab0 AS cor0
----
1260
4860
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9671
SELECT col1 + + col1 AS col2, col1 - col2 FROM tab1 WHERE NOT ( ( col0 ) + CAST( + col1 AS DECIMAL ) + + - col1 IS NULL )
----
10
-54
28
-82
94
-21

skipif mysql # not compatible
query II rowsort label-9671
SELECT col1 + + col1 AS col2, col1 - col2 FROM tab1 WHERE NOT ( ( col0 ) + CAST ( + col1 AS REAL ) + + - col1 IS NULL )
----
10
-54
28
-82
94
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9672
SELECT - COUNT( * ) DIV 28 AS col2 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9672
SELECT - COUNT ( * ) / 28 AS col2 FROM tab2 WHERE NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT - col0 AS col2, + col1 AS col2 FROM tab0 WHERE NOT - + 50 * - col1 IS NOT NULL
----

query II rowsort
SELECT - col1, col0 + + ( col1 ) * col2 AS col2 FROM tab2
----
-51
1219
-67
3961
-77
3144

query II rowsort
SELECT ALL col2, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT + 34 + COUNT( * ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT + 34 + COUNT ( * ) FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + 40 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9677
SELECT + 40 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND - col2 + + col1 + + col2 * col1
----

query II rowsort
SELECT col0 * - - col0 AS col1, + col2 * + col2 * - + col1 FROM tab2
----
2116
-26979
4096
-123200
5625
-225388

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT SUM( ALL col0 ) * 68 FROM tab2 AS cor0
----
12580

skipif mysql # not compatible
query I rowsort label-9680
SELECT SUM ( ALL col0 ) * 68 FROM tab2 AS cor0
----
12580

query I rowsort
SELECT DISTINCT col1 * - 53 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + - col1 IS NULL )
----

query I rowsort
SELECT col0 * - - col1 + + - col0 FROM tab0 cor0
----
0
1200
1740

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 51 + - 60 IS NULL
----
-59
-68
-96

query II rowsort
SELECT ALL - col1 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 45, - col2 )
----

query I rowsort
SELECT DISTINCT + ( + col2 ) * - - col1 + - - col0 FROM tab0 AS cor0
----
196
297
3822

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE + 30 > ( - - 46 / 12 )
----
-51
-85
-91

query I rowsort
SELECT + 56 FROM tab1 WHERE + - col1 NOT BETWEEN ( - col2 ) AND ( NULL )
----

query I rowsort
SELECT 96 + - col0 FROM tab0 WHERE NULL IS NULL
----
-1
81
9

query I rowsort
SELECT DISTINCT 98 + + 18 FROM tab1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT - SUM( ALL 51 ) + - 51 + + 65 * - - 22 FROM tab2
----
1226

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - SUM ( ALL 51 ) + - 51 + + 65 * - - 22 FROM tab2
----
1226

query II rowsort
SELECT col0 * + 74, col1 AS col1 FROM tab0
----
1110
81
6438
21
7178
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab1
----
91

query I rowsort
SELECT ALL + 27 + + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
32
41
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9695
SELECT col2 * + - col1 + + + CAST( col0 AS SIGNED ) DIV + 23 FROM tab0 cor0
----
-207
-3807
-95

skipif mysql # not compatible
query I rowsort label-9695
SELECT col2 * + - col1 + + + CAST ( col0 AS INTEGER ) / + 23 FROM tab0 cor0
----
-207
-3807
-95

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 44 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - - col2 / col1 * - 49 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9698
SELECT + - CAST( + 55 AS SIGNED ) + 70 * - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5615

skipif mysql # not compatible
query I rowsort label-9698
SELECT + - CAST ( + 55 AS INTEGER ) + 70 * - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
5615

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT - 84 DIV + col1 FROM tab0
----
-1
-4
-84

skipif mysql # not compatible
query I rowsort label-9699
SELECT - 84 / + col1 FROM tab0
----
-1
-4
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-9700
SELECT col1 AS col2, + 81 DIV + 68 FROM tab1
----
14
1
47
1
5
1

skipif mysql # not compatible
query II rowsort label-9700
SELECT col1 AS col2, + 81 / + 68 FROM tab1
----
14
1
47
1
5
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9701
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * - + 60 FROM tab2, tab1 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * - + 60 FROM tab2, tab1 AS cor0
----
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 + - col1 col2 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN 96 * 30 * - 68 AND + col0
----

query I rowsort
SELECT DISTINCT + - ( - col0 ) * + - col0 * - + col0 * 41 FROM tab0 AS cor0 WHERE 15 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= col1 * + - col0 + + - 18
----

query I rowsort
SELECT - - col2 * - + 59 AS col1 FROM tab0 AS cor0
----
-2773
-5841
-590

query I rowsort
SELECT - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 / - col0 IS NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * + - 11 / - + col2 < 12 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT 19 + - - COUNT( * ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-9710
SELECT 19 + - - COUNT ( * ) FROM tab0
----
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9711
SELECT - col0 DIV - ( - col1 ) + - CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-9711
SELECT - col0 / - ( - col1 ) + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
-14
-196
-47

query I rowsort
SELECT - 40 * - col2 + + + col1 AS col1 FROM tab1
----
2365
2767
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT MAX( DISTINCT + - col1 ) + + + 55 + + - ( ( + MIN( col1 ) ) ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-9713
SELECT MAX ( DISTINCT + - col1 ) + + + 55 + + - ( ( + MIN ( col1 ) ) ) FROM tab0
----
53

query I rowsort
SELECT ALL - - 17 FROM tab0 WHERE - col0 = + + 76
----

query I rowsort
SELECT + col0 + + - col2 FROM tab0
----
-2
-32
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * + col1 BETWEEN col0 AND - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - 89 * COUNT( * ) FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-9717
SELECT - 89 * COUNT ( * ) FROM tab1
----
-267

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9718
SELECT - CAST( NULL AS DECIMAL ) + + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT - CAST ( NULL AS REAL ) + + + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 30 FROM tab0 cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT + - col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT + - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 91 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 91 * - col1 IS NOT NULL
----
0

query I rowsort
SELECT - 58 + + - 6 FROM tab0 cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT 45 + COUNT( - - col0 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9723
SELECT 45 + COUNT ( - - col0 ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT - ( - 68 ) FROM tab1 AS cor0 WHERE NOT - col2 > NULL
----

query II rowsort
SELECT ALL col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - MIN( ALL - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9726
SELECT - MIN ( ALL - col2 ) AS col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT - + 72 * - - ( + + COUNT( * ) ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT - + 72 * - - ( + + COUNT ( * ) ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9728
SELECT col2 DIV 75 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9728
SELECT col2 / 75 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT DISTINCT - COUNT( * ) AS col2, + 0 * - COUNT( * ) FROM tab0, tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-9
0

skipif mysql # not compatible
query II rowsort label-9729
SELECT DISTINCT - COUNT ( * ) AS col2, + 0 * - COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-9
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col1 FROM tab0
----
-7

query III rowsort
SELECT * FROM tab2 WHERE NOT + 35 >= - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9732
SELECT ALL - CAST( NULL AS DECIMAL ) * - - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - CAST ( NULL AS REAL ) * - - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 0 * + - 60 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT - + MAX( - + ( + 8 ) ) * - - 93 AS col0 FROM tab2 cor0
----
744

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT - + MAX ( - + ( + 8 ) ) * - - 93 AS col0 FROM tab2 cor0
----
744

query I rowsort
SELECT 19 + + col2 AS col0 FROM tab1 AS cor0
----
115
78
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT col2 + + 77 IS NOT NULL )
----

query I rowsort
SELECT + 40 + - + col0 FROM tab2 cor0
----
-24
-35
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9738
SELECT DISTINCT - MIN( ALL 23 ) DIV - - MIN( + - 55 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - MIN ( ALL 23 ) / - - MIN ( + - 55 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + 9 + + 39 + - + ( - + col2 ) FROM tab2 AS cor0
----
53
70
88

query I rowsort
SELECT DISTINCT - col1 + 33 AS col2 FROM tab1 AS cor0
----
-14
19
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL + MAX( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL + MAX ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( - col1, + 51 * + col0, - + 9, + col1 / + 7 - - 51 * + - col2 )
----

query I rowsort
SELECT 31 * col1 AS col2 FROM tab0
----
2511
31
651

query I rowsort
SELECT ALL col2 + + + col1 * - - col2 AS col1 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT DISTINCT - - ( + 60 ) AS col0 FROM tab1 WHERE NOT + 88 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL + ( + + COUNT( * ) ) AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + ( + + COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT col0 * - ( + col2 ) + + 4 FROM tab1
----
-4892
-5011
-6184

query II rowsort
SELECT DISTINCT ( + + 1 ) * - col2 * 12 AS col2, ( + + col2 ) + col0 FROM tab0
----
-1188
196
-120
97
-564
62

query I rowsort
SELECT col0 * - + 22 AS col0 FROM tab2
----
-1012
-1408
-1650

query I rowsort
SELECT DISTINCT - col1 + - 81 AS col2 FROM tab0
----
-102
-162
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9752
SELECT 55 AS col0, + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1
----
55
NULL
55
NULL
55
NULL

skipif mysql # not compatible
query II rowsort label-9752
SELECT 55 AS col0, + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1
----
55
NULL
55
NULL
55
NULL

query I rowsort
SELECT 18 - + - 93 + 61 * + ( 3 ) AS col2 FROM tab1
----
294
294
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT - 59 * - - 40 - - col0 + col2 * - + 48 * + CAST( NULL AS SIGNED ) + + - col0 * col2 / + 10 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-9754
SELECT - 59 * - - 40 - - col0 + col2 * - + 48 * + CAST ( NULL AS INTEGER ) + + - col0 * col2 / + 10 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col0 + - col0 * - col1 FROM tab1 AS cor0
----
12558
3315
7650

query I rowsort
SELECT + - col1 * - + col0 * - + ( + 57 ) + + col1 FROM tab0 AS cor0
----
-104118
-5528
-69174

query I rowsort
SELECT ALL col0 + + + col0 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 + - 14 < ( + col1 / col0 )
----

query II rowsort
SELECT - col2 + + col1 + + + col1 * + col2 AS col1, + col2 * 92 + + col2 AS col2 FROM tab1
----
1262
8928
241
5487
3175
6324

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - - col1 - col0
----

query I rowsort
SELECT DISTINCT col2 + 15 * + - col0 FROM tab1
----
-1216
-1297
-669

query I rowsort
SELECT DISTINCT + + AVG ( + col0 ) AS col1 FROM tab2 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9763
SELECT * FROM tab1 AS cor0 WHERE - col2 / 60 BETWEEN ( + - col1 ) AND - CAST( NULL AS SIGNED ) * 72 + + col2
----

skipif mysql # not compatible
query III rowsort label-9763
SELECT * FROM tab1 AS cor0 WHERE - col2 / 60 BETWEEN ( + - col1 ) AND - CAST ( NULL AS INTEGER ) * 72 + + col2
----

query I rowsort
SELECT DISTINCT - + 51 AS col2 FROM tab0 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL COUNT( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL COUNT ( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + ( - - 6 ) * - col2 + 61 - - + col1 + + 8 FROM tab0 AS cor0
----
-132
-524
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT DISTINCT - + COUNT( * ) * - 84 FROM tab0 WHERE NULL IS NULL
----
252

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT - + COUNT ( * ) * - 84 FROM tab0 WHERE NULL IS NULL
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9768
SELECT col1 / col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT col1 / col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT MAX( ALL + col2 ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9769
SELECT MAX ( ALL + col2 ) col1 FROM tab1
----
96

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - col1 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9771
SELECT SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 * 73 col1 FROM tab0 AS cor0
----
-32193
-478953
-73

query II rowsort
SELECT ALL + col0, col2 + + 69 FROM tab1 AS cor0
----
51
165
85
128
91
137

onlyif mysql # DIV for integer division: 
query I rowsort label-9774
SELECT ALL + ( 0 ) * - 47 DIV + 18 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + ( 0 ) * - 47 / + 18 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL ( + - col0 ) * + + 6 - + col2 AS col1 FROM tab1 AS cor0
----
-402
-569
-614

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL > + col0 * - - 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT + ( - ( - col1 ) ) DIV - + col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT + ( - ( - col1 ) ) / - + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 37 * + 49 AS col2 FROM tab1 cor0
----
1813

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT ALL - 22 DIV - - col2 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - 22 / - - col2 FROM tab0 cor0
----
-2
0
0

query II rowsort
SELECT - - col0 AS col2, - 31 AS col0 FROM tab2 AS cor0
----
46
-31
64
-31
75
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT - + MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - + MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT 49 + 89 FROM tab1 AS cor0
----
138
138
138

query I rowsort
SELECT DISTINCT + col2 + + + 56 - - col0 FROM tab0 AS cor0
----
118
153
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 + col1 * + + col2 - + col1 col2 FROM tab0
----
122
31
3659

onlyif mysql # aggregate syntax: 
query II rowsort label-9785
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2, + 72 FROM tab1
----
9
72

skipif mysql # not compatible
query II rowsort label-9785
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2, + 72 FROM tab1
----
9
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT 1 + + + 77 + COUNT( DISTINCT + 99 ) AS col0 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-9786
SELECT 1 + + + 77 + COUNT ( DISTINCT + 99 ) AS col0 FROM tab1
----
79

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE col0 = col0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT ALL - col0 DIV - ( - 75 ) AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - col0 / - ( - 75 ) AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT col1 + - CAST( + 35 AS SIGNED ) FROM tab2 cor0 WHERE ( 37 ) IS NOT NULL
----
16
32
42

skipif mysql # not compatible
query I rowsort label-9789
SELECT col1 + - CAST ( + 35 AS INTEGER ) FROM tab2 cor0 WHERE ( 37 ) IS NOT NULL
----
16
32
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9790
SELECT - CAST( 38 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-9790
SELECT - CAST ( 38 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT - 98 * 70 - col0 FROM tab1
----
-6911
-6945
-6951

query I rowsort
SELECT + 63 - + + col2 + + + col0 + - - 27 - + 92 FROM tab0
----
-34
-4
75

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab1 WHERE + - 74 BETWEEN + col2 AND 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT - + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + + col2 * - 23 FROM tab1 AS cor0
----
-1357
-1564
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT DISTINCT MAX( + 35 ) col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9796
SELECT DISTINCT MAX ( + 35 ) col2 FROM tab0 AS cor0
----
35

query I rowsort
SELECT - - 13 * + + col1 + - ( col2 ) FROM tab1 AS cor0
----
543
6
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9798
SELECT - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT ALL - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 39 NOT IN ( - col1 + - - col1, - 46 / - col2 + + - col1 + + - 79, - col2, col2, + 13 + - 6, - ( col1 ), - 56, - 21, col1 * - + 46 + + CAST( + + ( + - col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT 39 NOT IN ( - col1 + - - col1, - 46 / - col2 + + - col1 + + - 79, - col2, col2, + 13 + - 6, - ( col1 ), - 56, - 21, col1 * - + 46 + + CAST ( + + ( + - col1 ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT - MIN( DISTINCT + 1 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9800
SELECT - MIN ( DISTINCT + 1 ) AS col2 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT 92 * + col2 + - col0, col0 * 63 - - col1 AS col2 FROM tab2 cor0
----
2070
2949
3616
4109
5261
4792

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT DISTINCT - + SUM( - 5 ) AS col0 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - + SUM ( - 5 ) AS col0 FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - + col1 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9804
SELECT ( - 69 ) DIV + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT ( - 69 ) / + col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL - col2 * + 19 FROM tab0
----
-1881
-190
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT + MAX( + 69 ) * - COUNT( col1 ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + MAX ( + 69 ) * - COUNT ( col1 ) FROM tab2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT DISTINCT + ( - - MAX( - - col2 ) ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT + ( - - MAX ( - - col2 ) ) AS col0 FROM tab1
----
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col1, ( - col0 ) * 34, + col2 + - 96, + col1 )
----

query I rowsort
SELECT ALL 69 * col0 AS col1 FROM tab2
----
3174
4416
5175

query II rowsort
SELECT 96 * col0, + 78 AS col0 FROM tab2
----
4416
78
6144
78
7200
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 col0 FROM tab0 cor0
----
79
79
79

query I rowsort
SELECT DISTINCT - - col0 * + + 36 * + col0 - - 26 + + col0 AS col0 FROM tab2 AS cor0
----
147546
202601
76248

query I rowsort
SELECT ALL col1 * 86 AS col2 FROM tab0 AS cor0
----
1806
6966
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT DISTINCT - AVG ( ALL + + col1 ) * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - AVG ( ALL + + col1 ) * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 68 + - ( + 73 ) AS col2 FROM tab1
----
-5
-5
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 IS NOT NULL )
----

query I rowsort
SELECT col2 * 5 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
115
200
290

query I rowsort
SELECT ALL - ( 86 ) + + col1 FROM tab0 AS cor0
----
-5
-65
-85

query I rowsort
SELECT + - ( col1 ) * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT 18 * + col2 + - + col2 AS col1, 92 AS col1 FROM tab1 cor0
----
1003
92
1156
92
1632
92

query I rowsort
SELECT ALL + + col1 + - 75 FROM tab0 AS cor0
----
-54
-74
6

query I rowsort
SELECT ALL col2 + + - col1 AS col2 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9823
SELECT COUNT( * ) * 86 - - + CAST( - 77 AS SIGNED ) AS col1 FROM tab2
----
181

skipif mysql # not compatible
query I rowsort label-9823
SELECT COUNT ( * ) * 86 - - + CAST ( - 77 AS INTEGER ) AS col1 FROM tab2
----
181

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + - col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT - 31 + - ( + + 4 ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9825
SELECT - 31 + - ( + + 4 ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
-38

query III rowsort
SELECT ALL + col2 AS col0, + 79 AS col2, + 79 + + ( + 5 ) AS col0 FROM tab2 AS cor0
----
9 values hashing to 256a5d01659c13778208a2ccefa08e89

query I rowsort
SELECT DISTINCT - col2 + - - col1 * + col1 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( + + 67 ) < NULL
----

query I rowsort
SELECT - 80 * + col0 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9829
SELECT ALL 47 DIV + - 64 * - + COUNT( * ) * - SUM( - col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL 47 / + - 64 * - + COUNT ( * ) * - SUM ( - col1 ) FROM tab1
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT MIN( ALL - 37 ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-9831
SELECT MIN ( ALL - 37 ) FROM tab2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9832
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col0 NOT BETWEEN + - col1 + - col2 AND col1 * + CAST( NULL AS SIGNED ) / + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9832
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col0 NOT BETWEEN + - col1 + - col2 AND col1 * + CAST ( NULL AS INTEGER ) / + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT DISTINCT - - 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-9833
SELECT DISTINCT - - MIN ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT 85 * - col1 FROM tab2 AS cor0
----
-4335
-5695
-6545

query I rowsort
SELECT DISTINCT - + 90 AS col0 FROM tab1 AS cor0
----
-90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col2 FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT - MIN( DISTINCT col1 ) col0 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9839
SELECT DISTINCT - MIN ( DISTINCT col1 ) col0 FROM tab2
----
-51

query II rowsort
SELECT ALL + col2 AS col0, - ( + 79 ) FROM tab2
----
23
-79
40
-79
58
-79

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9842
SELECT col1 AS col0, CAST( + col0 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-9842
SELECT col1 AS col0, CAST ( + col0 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
46
67
75
77
64

query I rowsort
SELECT ALL - col0 + + + ( - 55 ) FROM tab0 AS cor0
----
-142
-152
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT + ( - - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9844
SELECT + ( - - COUNT ( * ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 35 BETWEEN + 79 * + - 17 / col1 AND - col0 * + col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 72 * + - col0 + col2 AS col2, - col2 * col0 * + col1 * + col1 FROM tab2 cor0
----
-3289
-2751858
-4568
-15178240
-5342
-19527150

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT + + COUNT( * ) * MAX( - - col1 ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9847
SELECT + + COUNT ( * ) * MAX ( - - col1 ) FROM tab0 AS cor0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + col2 + col2 col1 FROM tab1 AS cor0
----
59
118
68
136
96
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT DISTINCT + ( - + COUNT( * ) ) col2 FROM tab1 AS cor0 WHERE NOT 21 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9849
SELECT DISTINCT + ( - + COUNT ( * ) ) col2 FROM tab1 AS cor0 WHERE NOT 21 >= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT ALL COUNT( * ) * COUNT( DISTINCT - 93 DIV col2 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT - 93 / col2 ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9851
SELECT 14 DIV 20 + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9851
SELECT 14 / 20 + COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9852
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT - col2 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9852
SELECT - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT - col2 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col0 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + MIN( + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9855
SELECT + MIN ( + col0 ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + MAX( DISTINCT - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + MAX ( DISTINCT - col2 ) FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9857
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - CAST( NULL AS SIGNED ) + + 29
----

skipif mysql # not compatible
query III rowsort label-9857
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - CAST ( NULL AS INTEGER ) + + 29
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT 3 * 8 FROM tab2
----
24
24
24

query I rowsort
SELECT + ( - col2 ) * + col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT 20 * - 83 AS col1 FROM tab1
----
-1660
-1660
-1660

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT col0 DIV col0 + col0 * 64 FROM tab2
----
2945
4097
4801

skipif mysql # not compatible
query I rowsort label-9862
SELECT col0 / col0 + col0 * 64 FROM tab2
----
2945
4097
4801

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + 62 * col0 < NULL
----

query I rowsort
SELECT col0 * + 16 FROM tab0
----
1392
1552
240

query III rowsort
SELECT * FROM tab2 WHERE 71 > ( NULL )
----

query I rowsort
SELECT DISTINCT + 26 * col2 AS col2 FROM tab0
----
1222
2574
260

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 BETWEEN col1 AND - col0 + 35
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT ALL 99 DIV 49 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL 99 / 49 AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT ( + col2 ) - - 29 * - col0 FROM tab0
----
-2513
-2714
-388

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + + col0 BETWEEN ( ( col0 ) + - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT DISTINCT COUNT( * ) * + 80 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT COUNT ( * ) * + 80 FROM tab1
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT + col2 DIV col1 AS col2 FROM tab2 WHERE NOT + ( col1 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT + col2 / col1 AS col2 FROM tab2 WHERE NOT + ( col1 ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT 25 + - COUNT( * ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-9873
SELECT 25 + - COUNT ( * ) FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL MAX( DISTINCT - 95 ) * - 68 AS col0 FROM tab0
----
6460

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL MAX ( DISTINCT - 95 ) * - 68 AS col0 FROM tab0
----
6460

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + - 43 AS col0 FROM tab2
----
24
34
8

query I rowsort
SELECT ALL col0 * - col0 FROM tab2 WHERE NOT NULL < - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT MIN( - 31 ) AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT MIN ( - 31 ) AS col1 FROM tab1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT + col0 - + 25 DIV - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9879
SELECT + col0 - + 25 / - col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9880
SELECT * FROM tab1 cor0 WHERE col1 * col1 + - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9880
SELECT * FROM tab1 cor0 WHERE col1 * col1 + - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL + COUNT( * ) * 27 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + COUNT ( * ) * 27 FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + col2 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9883
SELECT DISTINCT MAX( col0 ) * - COUNT( col2 * - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT MAX ( col0 ) * - COUNT ( col2 * - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT + MIN( + col1 ) * 1 AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT + MIN ( + col1 ) * 1 AS col2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 30 )
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT col2 - + 9 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9887
SELECT * FROM tab2 WHERE NOT col1 * CAST( NULL AS SIGNED ) IN ( - 19 - 58 )
----

skipif mysql # not compatible
query III rowsort label-9887
SELECT * FROM tab2 WHERE NOT col1 * CAST ( NULL AS INTEGER ) IN ( - 19 - 58 )
----

query I rowsort
SELECT col1 * - 79 FROM tab0 AS cor0
----
-1659
-6399
-79

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 24 AND ( - 18 ) * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9890
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - CAST( 61 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9890
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - CAST ( 61 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT ALL - + 46 DIV col0 AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL - + 46 / col0 AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col1 FROM tab1 cor0
----
2601
7225
8281

query I rowsort
SELECT + 30 AS col0 FROM tab2 AS cor0 WHERE NOT 48 >= col2
----
30

query I rowsort
SELECT DISTINCT + 42 * col0 + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1983
2765
3217

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT - ( - col1 ) DIV col0 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9895
SELECT - ( - col1 ) / col0 AS col1 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * 80 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * 37 FROM tab2
----
-1480
-2146
-851

query I rowsort
SELECT ALL + 35 * - AVG ( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NULL <> + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col1 FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT - ( - MAX( col0 ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9901
SELECT - ( - MAX ( col0 ) ) AS col0 FROM tab2
----
75

query I rowsort
SELECT + col2 * + col0 * - col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT ALL - ( col2 ) + - 13 FROM tab1 AS cor0
----
-109
-72
-81

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT IN ( + 72 )
----

query I rowsort
SELECT ALL 71 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # DIV for integer division: 
query II rowsort label-9906
SELECT - col0 AS col2, + col1 DIV - col0 col2 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9906
SELECT - col0 AS col2, + col1 / - col0 col2 FROM tab1
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - 95 * COUNT( * ) AS col2 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-9907
SELECT - 95 * COUNT ( * ) AS col2 FROM tab0
----
-285

query I rowsort
SELECT + - col0 * col0 + + 43 FROM tab2 AS cor0
----
-2073
-4053
-5582

query II rowsort
SELECT col2 AS col0, 63 * col1 AS col2 FROM tab0 cor0
----
10
1323
47
5103
99
63

query II rowsort
SELECT col1, - col0 AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - + ( - 14 ) * + COUNT( * ) AS col0 FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9911
SELECT - + ( - 14 ) * + COUNT ( * ) AS col0 FROM tab0 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT DISTINCT - + 6 + - 91 - - MIN( DISTINCT 29 ) FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT - + 6 + - 91 - - MIN ( DISTINCT 29 ) FROM tab2 AS cor0
----
-68

query I rowsort
SELECT - col2 * - col0 * col2 AS col1 FROM tab1 AS cor0
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT ALL - 11 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-11
3

skipif mysql # not compatible
query II rowsort label-9914
SELECT ALL - 11 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-11
3

query I rowsort
SELECT ALL col0 + - 82 AS col0 FROM tab2 cor0
----
-18
-36
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9916
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col1 AND + CAST( 1 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9916
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + col1 AND + CAST ( 1 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9917
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE CAST( - col2 AS SIGNED ) * col2 NOT BETWEEN + 5 AND ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE CAST ( - col2 AS INTEGER ) * col2 NOT BETWEEN + 5 AND ( col1 )
----
NULL

query I rowsort
SELECT DISTINCT - 27 + + col0 FROM tab2 AS cor0
----
19
37
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9919
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2 AS cor0 WHERE NOT col1 + - col2 / + 82 IS NOT NULL
----

query I rowsort
SELECT + col0 * 23 AS col1 FROM tab1 AS cor0
----
1173
1955
2093

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9922
SELECT * FROM tab0 cor0 WHERE CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9922
SELECT * FROM tab0 cor0 WHERE CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT ALL - col1 + + + col0 * + col0 + + col1 - - col0 DIV - 99 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL - col1 + + + col0 * + col0 + + col1 - - col0 / - 99 FROM tab2
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-9924
SELECT col2 + - col2 DIV - 40 FROM tab0
----
10
101
48

skipif mysql # not compatible
query I rowsort label-9924
SELECT col2 + - col2 / - 40 FROM tab0
----
10
101
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT ALL ( + col2 ) * + - 37 + - col2 - + col0 DIV - 28 col1 FROM tab1
----
-2239
-2581
-3647

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9925
SELECT ALL ( + col2 ) * + - 37 + - col2 - + col0 / - 28 col1 FROM tab1
----
-2239
-2581
-3647

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT col0 DIV col0 DIV + - col0 + + col0 col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9926
SELECT DISTINCT col0 / col0 / + - col0 + + col0 col1 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col2 * 22 FROM tab0
----
1034
2178
220

query I rowsort
SELECT ALL + col0 - + col1 - - 88 FROM tab1
----
125
132
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT DISTINCT 14 * + ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT 14 * + ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT + CAST( NULL AS SIGNED ) * 7 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9930
SELECT + CAST ( NULL AS INTEGER ) * 7 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 6 ) < col1 + + - col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9932
SELECT DISTINCT + CAST( + col1 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9933
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 38 * - 83 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9933
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 38 * - 83 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9934
SELECT CAST( - + col0 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-9934
SELECT CAST ( - + col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - ( - 88 ) FROM tab0
----
88
88
88

query I rowsort
SELECT + 63 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL - + col1 * + 5 FROM tab0 AS cor0
----
-105
-405
-5

query II rowsort
SELECT 90 AS col2, col1 FROM tab0 AS cor0
----
90
1
90
21
90
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT DISTINCT - col0 * + col2 - - - ( 92 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-711
-871
-9603

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT - col0 * + col2 - - - ( 92 ) / col0 AS col2 FROM tab0 AS cor0
----
-711
-871
-9603

query I rowsort
SELECT DISTINCT + ( + 6 ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN + + 75 AND ( - 32 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 84 AS col2 FROM tab0 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 * - 33 AS col1 FROM tab0
----
-1551
-3267
-330

query II rowsort
SELECT 25, + col1 FROM tab0
----
25
1
25
21
25
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + + - col1 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 72 + col0 FROM tab2
----
118
136
147

query I rowsort
SELECT ALL ( - col0 ) * + 65 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT ALL - col2 * + + 56 FROM tab0
----
-2632
-5544
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT 9 DIV - 55 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9950
SELECT 9 / - 55 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - col0 * + 64 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9952
SELECT - col2 DIV - - ( CAST( col1 AS SIGNED ) ) + - 73 + - col0 + - col2 AS col2 FROM tab1
----
-226
-228
-233

skipif mysql # not compatible
query I rowsort label-9952
SELECT - col2 / - - ( CAST ( col1 AS INTEGER ) ) + - 73 + - col0 + - col2 AS col2 FROM tab1
----
-226
-228
-233

query I rowsort
SELECT - 5 + - col2 FROM tab0
----
-104
-15
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + COUNT( DISTINCT + col0 ) FROM tab2 WHERE + + col1 + - col1 BETWEEN ( + 37 ) AND + 74
----
0

skipif mysql # not compatible
query I rowsort label-9954
SELECT + COUNT ( DISTINCT + col0 ) FROM tab2 WHERE + + col1 + - col1 BETWEEN ( + 37 ) AND + 74
----
0

query I rowsort
SELECT - ( + + col2 ) + + col0 + - + col2 + - 33 FROM tab0
----
-112
-134
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - 74 AND + 32
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - COUNT( * ) + - - MIN( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9959
SELECT - COUNT ( * ) + - - MIN ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 AND NULL )
----

query I rowsort
SELECT ( - 65 ) - + col1 AS col0 FROM tab1 cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9962
SELECT + col1 / - - col2 + CAST( + col1 AS DECIMAL ) + col1 FROM tab0 cor0 WHERE - col1 * + - 47 + - 41 + + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9962
SELECT + col1 / - - col2 + CAST ( + col1 AS REAL ) + col1 FROM tab0 cor0 WHERE - col1 * + - 47 + - 41 + + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9963
SELECT + 37 * + + 86 - - col1 * + 32 * - col0 * - CAST( + col2 AS SIGNED ) * 62 + ( + col1 ) * col0 + col0 AS col1 FROM tab1 AS cor0
----
135995243
49752492
577026174

skipif mysql # not compatible
query I rowsort label-9963
SELECT + 37 * + + 86 - - col1 * + 32 * - col0 * - CAST ( + col2 AS INTEGER ) * 62 + ( + col1 ) * col0 + col0 AS col1 FROM tab1 AS cor0
----
135995243
49752492
577026174

query I rowsort
SELECT ALL + - 40 + - + ( + 64 ) + 62 AS col1 FROM tab0 cor0
----
-42
-42
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9965
SELECT col0 + 69 DIV col2 DIV - 73 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9965
SELECT col0 + 69 / col2 / - 73 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + + ( - + COUNT( + 27 ) ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9966
SELECT + + ( - + COUNT ( + 27 ) ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 26 AS col0 FROM tab0 AS cor0 WHERE - ( col2 ) IS NULL
----

query I rowsort
SELECT ALL 24 - + col1 FROM tab0
----
-57
23
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT + 55, - COUNT( * ) AS col0 FROM tab0
----
55
-3

skipif mysql # not compatible
query II rowsort label-9969
SELECT + 55, - COUNT ( * ) AS col0 FROM tab0
----
55
-3

query III rowsort
SELECT * FROM tab2 WHERE - - col0 > ( - - 57 )
----
64
77
40
75
67
58

query I rowsort
SELECT + ( - + col0 ) * col0 + - - 43 AS col2 FROM tab0
----
-182
-7526
-9366

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9972
SELECT DISTINCT * FROM tab2 WHERE + 43 + + - CAST( NULL AS SIGNED ) + col0 <> - - col1
----

skipif mysql # not compatible
query III rowsort label-9972
SELECT DISTINCT * FROM tab2 WHERE + 43 + + - CAST ( NULL AS INTEGER ) + col0 <> - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - col2 * col1 AS col1 FROM tab1
----
14
-1344
47
-3196
5
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT - COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9974
SELECT - COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + - COUNT( * ) * 73 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-9975
SELECT + - COUNT ( * ) * 73 FROM tab1 AS cor0
----
-219

query I rowsort
SELECT ALL + ( 4 ) FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT - col2 * + 20 FROM tab2
----
-1160
-460
-800

query I rowsort
SELECT + 44 * col0 FROM tab2
----
2024
2816
3300

query I rowsort
SELECT ALL - col2 * + 34 AS col0 FROM tab2
----
-1360
-1972
-782

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 44 IS NOT NULL
----

query I rowsort
SELECT - col0 * + - 77 * + col1 AS col0 FROM tab0 AS cor0
----
140679
7469
93555

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 + - 48 AND + 92 + + 37
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 27 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( + - ( - col1 ) ) * - + 25 AS col2 FROM tab0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL + 19 * + MAX( - col1 ) FROM tab2
----
-969

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + 19 * + MAX ( - col1 ) FROM tab2
----
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT ALL + col0 DIV - + 18 AS col1 FROM tab1
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + col0 / - + 18 AS col1 FROM tab1
----
-2
-4
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT col0 DIV - + col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9988
SELECT col0 / - + col0 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - col2
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT + 50 NOT BETWEEN ( 96 * col1 * - col0 / - col2 * 1 * - col0 - + col2 ) AND ( ( - col2 ) * ( - col1 ) )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT 15 * COUNT( ALL + 95 ) AS col1 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT 15 * COUNT ( ALL + 95 ) AS col1 FROM tab2
----
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL - col0 + + col0 - - - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT - col0 * CAST( NULL AS SIGNED ) + + - col0 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT - col0 * CAST ( NULL AS INTEGER ) + + - col0 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 47 FROM tab2 cor0
----
-1
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - COUNT( * ) + + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9997
SELECT - COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT ALL 54 - + - 31 + + + col0 AS col0 FROM tab0
----
100
172
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col1 col0 FROM tab0
----
1
1
21
21
81
81

