sqllogictest
Artifact Content
Not logged in

Artifact e0ba8691dfbf71a7b97129f8c1649d7bd76fff7b:


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 la