sqllogictest
Artifact Content
Not logged in

Artifact c2f3672d27c41140af34f19bc9f1b0dfd1773df8:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-0
SELECT ALL - col0 * + ( + - 55 ) * - col2 + + col0 * - CAST( col1 AS SIGNED ) FROM tab1 cor0
----
-269994
-276250
-344617

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - col0 * + ( + - 55 ) * - col2 + + col0 * - CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
-269994
-276250
-344617

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT - ( - col2 ) DIV 73 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1
SELECT - ( - col2 ) / 73 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col0 * - 84 + 36 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 - + col2 NOT IN ( + col2 + + col1 )
----

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

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT - ( + - col0 ) FROM tab2
----
46
64
75

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

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

query I rowsort
SELECT ALL + ( + col2 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8
SELECT ALL * FROM tab1 WHERE NOT CAST( col2 AS SIGNED ) / col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8
SELECT ALL * FROM tab1 WHERE NOT CAST ( col2 AS INTEGER ) / col1 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( - - col1 * col2 ) >= - 41
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-13
SELECT * FROM tab1 cor0 WHERE NOT + ( + + 21 ) NOT IN ( - - CAST( NULL AS SIGNED ) * 2 )
----

skipif mysql # not compatible
query III rowsort label-13
SELECT * FROM tab1 cor0 WHERE NOT + ( + + 21 ) NOT IN ( - - CAST ( NULL AS INTEGER ) * 2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-14
SELECT ALL - MIN( DISTINCT + col1 ) DIV SUM( + 69 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL - MIN ( DISTINCT + col1 ) / SUM ( + 69 ) FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> - + col0
----
0

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <> - + col0
----
0

query I rowsort
SELECT ALL 46 * col0 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 / + - col0 NOT BETWEEN ( col2 - 53 ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL + MAX( ALL col2 ) FROM tab1 WHERE NOT ( - 27 ) <= ( + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + MAX ( ALL col2 ) FROM tab1 WHERE NOT ( - 27 ) <= ( + 28 )
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 47 FROM tab1
----
38
4
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT DISTINCT COUNT( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT + ( + 43 ) * + col2 < col2 - - ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT COUNT ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT + ( + 43 ) * + col2 < col2 - - ( col0 )
----
3

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT DISTINCT + 12 * + COUNT( * ) + - 99, + 57 AS col0 FROM tab2 AS cor0
----
-63
57

skipif mysql # not compatible
query II rowsort label-27
SELECT DISTINCT + 12 * + COUNT ( * ) + - 99, + 57 AS col0 FROM tab2 AS cor0
----
-63
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 99 * - col2 IN ( - - col2 )
----

query I rowsort
SELECT DISTINCT - col1 + + - 68 * - col2 * - col0 FROM tab1 AS cor0
----
-332942
-341025
-420831

query I rowsort
SELECT DISTINCT + - col0 + + - col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-31
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT DISTINCT - col2 * - col2 + - + 3 FROM tab2 WHERE NOT 42 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-35
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-35
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
3
3

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN + 6 / + + ( 50 ) AND ( NULL ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65 col0, - 9 + col2 + + 78 AS col0 FROM tab1 cor0
----
65
128
65
137
65
165

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 / - col2 * 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-40
SELECT ALL - col0 * + col1 + col2 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) * - col0 + - 61 + + - CAST( NULL AS SIGNED ) IS NULL
----
-1168
-1817
2

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - col0 * + col1 + col2 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) * - col0 + - 61 + + - CAST ( NULL AS INTEGER ) IS NULL
----
-1168
-1817
2

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 - + - col0 + - - 45 * - + 73 IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT SUM( 37 ) * + COUNT( * ) - 62 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
2944

skipif mysql # not compatible
query I rowsort label-43
SELECT SUM ( 37 ) * + COUNT ( * ) - 62 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
2944

query I rowsort
SELECT ALL - col1 * col2 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col0 * - col2 + - - ( col2 ) FROM tab2 AS cor0
----
-1035
-2520
-4292

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

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

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

query I rowsort
SELECT + col0 * 32 * + - 45 AS col1 FROM tab0 AS cor0
----
-125280
-139680
-21600

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT DISTINCT 78 DIV 20 * - 85 FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT 78 / 20 * - 85 FROM tab1 AS cor0
----
-255

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

skipif mysql # not compatible
query I rowsort label-53
SELECT - 53 / col0 AS col0 FROM tab0 AS cor0
----
-3
0
0

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

query II rowsort
SELECT DISTINCT col2, + col2 * - 76 FROM tab1
----
59
-4484
68
-5168
96
-7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24, + 92 col2 FROM tab2
----
24
92
24
92
24
92

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

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

query I rowsort
SELECT col1 * 19 AS col2 FROM tab1
----
266
893
95

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 * + - col0 <> ( - 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT - - CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-60
SELECT - - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col0 BETWEEN ( + col2 - 89 - - col2 + col0 * col0 * + - col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col0 BETWEEN ( + col2 - 89 - - col2 + col0 * col0 * + - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT + CAST( 83 AS SIGNED ) FROM tab2 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-62
SELECT + CAST ( 83 AS INTEGER ) FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT + COUNT( * ) + + 66 * - - COUNT( * ) AS col2 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-63
SELECT + COUNT ( * ) + + 66 * - - COUNT ( * ) AS col2 FROM tab0
----
201

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

query I rowsort
SELECT - col1 + - + ( - 91 ) FROM tab0 AS cor0
----
10
70
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-66
SELECT DISTINCT CAST( + 2 AS SIGNED ) + + 54 DIV + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-47
-65
-74

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT CAST ( + 2 AS INTEGER ) + + 54 / + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-47
-65
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT - 55 * + COUNT( * ) + + 14 AS col1 FROM tab2 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - 55 * + COUNT ( * ) + + 14 AS col1 FROM tab2 AS cor0
----
-151

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

query I rowsort
SELECT - - 96 FROM tab0 AS cor0 WHERE ( NULL ) <> - col0
----

query I rowsort
SELECT DISTINCT - 12 + + ( col2 ) FROM tab0 cor0
----
-2
35
87

query I rowsort
SELECT DISTINCT + col0 - + + col1 AS col0 FROM tab1
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col1 * + col0 col1 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-74
SELECT ALL 96 - - COUNT( * ) + 39 AS col0, + 40 col0 FROM tab0
----
138
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-74
SELECT ALL 96 - - COUNT ( * ) + 39 AS col0, + 40 col0 FROM tab0
----
138
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-75
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV + col0 + - 43 AS col2 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / + col0 + - 43 AS col2 FROM tab1
----
-43

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41, col1 * col2 col2 FROM tab0
----
41
210
41
3807
41
99

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

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

query I rowsort
SELECT ALL + - 54 AS col2 FROM tab0 AS cor0 WHERE NOT 58 + - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col1 / + + col0, + 24 )
----

query I rowsort
SELECT ALL - 95 AS col2 FROM tab2 AS cor0 WHERE NOT 30 IS NOT NULL
----

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

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

query I rowsort
SELECT + + ( ( - + col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

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

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

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

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * + ( CAST ( 60 AS INTEGER ) ) FROM tab2
----
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * + ( - col1 ) col1 FROM tab1
----
-3149
-335
-938

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab2 WHERE ( ( + col2 ) ) IS NULL
----

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

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

query I rowsort
SELECT + col2 * ( + 50 ) + - - 46 FROM tab1 cor0
----
2996
3446
4846

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN 22 AND + 11 * col1 * - ( - col2 ) * col2
----

query I rowsort
SELECT ALL col0 * + 97 AS col2 FROM tab1
----
4947
8245
8827

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-96
SELECT ALL + 71 * - col2 * CAST( NULL AS DECIMAL ), col2 col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-96
SELECT ALL + 71 * - col2 * CAST ( NULL AS REAL ), col2 col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE - 34 BETWEEN col0 - - + col2 - + - col1 + + 43 * + + 56 / - col1 AND 37
----
1

skipif mysql # not compatible
query I rowsort label-97
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE - 34 BETWEEN col0 - - + col2 - + - col1 + + 43 * + + 56 / - col1 AND 37
----
1

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - 8 ) * + col0 + + col2 > + - 14
----

query I rowsort
SELECT ALL + + 36 + - col0 FROM tab2 AS cor0
----
-10
-28
-39

query I rowsort
SELECT ALL - ( 51 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT 59 + + col0 * ( - col2 ) FROM tab1 cor0
----
-4837
-4956
-6129

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-105
SELECT ALL col1 / CAST( NULL AS DECIMAL ) + + col0 AS col2, col2 + - col2 * - - 43 FROM tab1 AS cor0
----
NULL
-2478
NULL
-2856
NULL
-4032

skipif mysql # not compatible
query II rowsort label-105
SELECT ALL col1 / CAST ( NULL AS REAL ) + + col0 AS col2, col2 + - col2 * - - 43 FROM tab1 AS cor0
----
NULL
-2478
NULL
-2856
NULL
-4032

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE 94 IS NULL
----

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

query I rowsort
SELECT 60 + + 33 * col2 FROM tab0
----
1611
3327
390

query I rowsort
SELECT + 34 FROM tab0 WHERE ( col2 ) NOT IN ( col1 * 43, col0 )
----
34
34
34

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 + + 57 * + - 41 / col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL COUNT( ALL + col2 ) * + - 22 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL COUNT ( ALL + col2 ) * + - 22 FROM tab0
----
-66

query I rowsort
SELECT DISTINCT - 65 + 89 * 74 + + + 3 * col1 FROM tab2
----
6674
6722
6752

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT + MIN( - 6 ) * - COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-114
SELECT + MIN ( - 6 ) * - COUNT ( * ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT DISTINCT - SUM( ALL - 45 ) AS col2 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT - SUM ( ALL - 45 ) AS col2 FROM tab1 AS cor0
----
135

query I rowsort
SELECT ALL col1 - - 54 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-118
SELECT - col1 AS col0, col0 * col0 DIV + + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
41
-67
83
-77
53

skipif mysql # not compatible
query II rowsort label-118
SELECT - col1 AS col0, col0 * col0 / + + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
41
-67
83
-77
53

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

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT SUM ( col1 ) AS col1 FROM tab2
----
195

query I rowsort
SELECT - + col2 * + 19 FROM tab2 AS cor0
----
-1102
-437
-760

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-126
SELECT + col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-127
SELECT - CAST( + SUM( - col1 ) AS SIGNED ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-127
SELECT - CAST ( + SUM ( - col1 ) AS INTEGER ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ALL + MAX( - 59 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + MAX ( - 59 ) FROM tab1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-129
SELECT - 13 AS col0, MIN( ALL CAST( - 41 AS SIGNED ) ) FROM tab2
----
-13
-41

skipif mysql # not compatible
query II rowsort label-129
SELECT - 13 AS col0, MIN ( ALL CAST ( - 41 AS INTEGER ) ) FROM tab2
----
-13
-41

query III rowsort
SELECT ALL * FROM tab2 WHERE - 85 / - 27 IS NULL
----

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

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

query I rowsort
SELECT 64 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

query I rowsort
SELECT ALL col0 + + - col0 + - col0 FROM tab1
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT + MAX( DISTINCT + 17 ) * - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-137
SELECT + MAX ( DISTINCT + 17 ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL + SUM( DISTINCT - + 50 ) * - 39 + - SUM( ALL + 22 ) * ( - COUNT( * ) ) * + 96 * + + 51 FROM tab1 AS cor0
----
971358

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL + SUM ( DISTINCT - + 50 ) * - 39 + - SUM ( ALL + 22 ) * ( - COUNT ( * ) ) * + 96 * + + 51 FROM tab1 AS cor0
----
971358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 30 ) col1 FROM tab2 AS cor0 WHERE - col0 < + - 13 + + col2
----
30
30
30

query I rowsort
SELECT DISTINCT + 58 + - - 13 AS col0 FROM tab1 cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL - SUM( - + 72 ) AS col0 FROM tab1 AS cor0 WHERE col1 + col2 * + col1 IS NOT NULL
----
216

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL - SUM ( - + 72 ) AS col0 FROM tab1 AS cor0 WHERE col1 + col2 * + col1 IS NOT NULL
----
216

query I rowsort
SELECT - col0 - - + col2 + - + col2 + 35 + - - col0 * 38 FROM tab2
----
1737
2403
2810

query I rowsort
SELECT + col1 - - 3 AS col0 FROM tab0
----
24
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT DISTINCT col0 - 21 * - CAST( + ( + 77 ) AS SIGNED ) + + 97 FROM tab2
----
1760
1778
1789

skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT col0 - 21 * - CAST ( + ( + 77 ) AS INTEGER ) + + 97 FROM tab2
----
1760
1778
1789

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE + + 40 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-147
SELECT DISTINCT + 88 AS col1, - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-147
SELECT DISTINCT + 88 AS col1, - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
88
NULL

query I rowsort
SELECT col1 * - + 14 FROM tab1
----
-196
-658
-70

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

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT SUM ( ALL + - col2 ) FROM tab0
----
-156

query I rowsort
SELECT DISTINCT - col0 * - 33 AS col0 FROM tab2
----
1518
2112
2475

query I rowsort
SELECT DISTINCT col0 * + 38 AS col2 FROM tab2 AS cor0
----
1748
2432
2850

query II rowsort
SELECT ALL col2 AS col2, 44 + + + col2 FROM tab1 AS cor0
----
59
103
68
112
96
140

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab0 WHERE + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab0 WHERE + - col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 68 col1 FROM tab0 AS cor0 WHERE NOT ( NULL IN ( - col2, 5, - col2 / + - ( + + col1 ) ) )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT - ( col1 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-157
SELECT - ( col1 ) / - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT ALL - - MIN( DISTINCT + col0 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - - MIN ( DISTINCT + col0 ) / - COUNT ( * ) FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-159
SELECT MAX( DISTINCT - + col0 ) DIV 13 + - 5 + - + MIN( ALL col2 ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-159
SELECT MAX ( DISTINCT - + col0 ) / 13 + - 5 + - + MIN ( ALL col2 ) FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT DISTINCT MIN( col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT MIN ( col0 ) FROM tab2
----
46

query I rowsort
SELECT - col2 * - + col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT + 87 * + + col1 FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT - COUNT( DISTINCT - 34 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-163
SELECT - COUNT ( DISTINCT - 34 ) FROM tab1
----
-1

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

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

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

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

query I rowsort
SELECT 53 + - - col1 AS col2 FROM tab0
----
134
54
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 + - 27 col2 FROM tab2
----
34
34
34

query I rowsort
SELECT - 39 + - 86 * 40 * - col0 FROM tab0 AS cor0
----
299241
333641
51561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-170
SELECT DISTINCT - 60 * COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT - 60 * COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-183

query I rowsort
SELECT - - 7 / col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 - 10
----

query I rowsort
SELECT DISTINCT - 0 + + col2 * - 2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ( - 38 ) FROM tab0 AS cor0
----
-38
-38
-38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-176
SELECT DISTINCT - - 87 col1, COUNT( DISTINCT + col0 ) DIV - COUNT( * ) - 46 col0 FROM tab0 cor0
----
87
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-176
SELECT DISTINCT - - 87 col1, COUNT ( DISTINCT + col0 ) / - COUNT ( * ) - 46 col0 FROM tab0 cor0
----
87
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + MIN( ALL - col0 ) + + 78 AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-177
SELECT + MIN ( ALL - col0 ) + + 78 AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 + - - 4 * + col0 FROM tab2 AS cor0
----
133
179
233

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

query I rowsort
SELECT ALL + 40 + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
3521
4664
9256

onlyif mysql # DIV for integer division: 
query II rowsort label-181
SELECT ALL + 1 + - 22 AS col1, 13 DIV + col0 FROM tab2 AS cor0
----
-21
0
-21
0
-21
0

skipif mysql # not compatible
query II rowsort label-181
SELECT ALL + 1 + - 22 AS col1, 13 / + col0 FROM tab2 AS cor0
----
-21
0
-21
0
-21
0

query I rowsort
SELECT 61 + + + 55 * + 31 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - 80 AND - col1
----

query I rowsort
SELECT + + 21 + 92 + col0 + - - 55 FROM tab0 AS cor0
----
183
255
265

query I rowsort
SELECT DISTINCT ( + - ( + - 44 ) ) - + col1 FROM tab1
----
-3
30
39

onlyif mysql # aggregate syntax: 
query II rowsort label-185
SELECT ALL 13 - - - COUNT( * ), ( + - 36 ) AS col0 FROM tab1
----
10
-36

skipif mysql # not compatible
query II rowsort label-185
SELECT ALL 13 - - - COUNT ( * ), ( + - 36 ) AS col0 FROM tab1
----
10
-36

query II rowsort
SELECT ALL col1, col1 FROM tab0 WHERE NOT - col0 <> + + 29
----

query I rowsort
SELECT ALL col0 * + - 92 * + col2 AS col1 FROM tab1
----
-450432
-461380
-569296

query I rowsort
SELECT DISTINCT + 6 * + + 32 FROM tab1 AS cor0
----
192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 68 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-190
SELECT DISTINCT + col1 AS col2, CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-190
SELECT DISTINCT + col1 AS col2, CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL - 91 * 70 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ae6091eedeeb4aa4d1b699764131849c

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT DISTINCT - 5 + col2 + + col1 + + col2 DIV - - 97 * - col0 AS col1 FROM tab1 AS cor0
----
105
110
59

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - 5 + col2 + + col1 + + col2 / - - 97 * - col0 AS col1 FROM tab1 AS cor0
----
105
110
59

query II rowsort
SELECT - col0 + 15 + - col1, col1 AS col0 FROM tab0 cor0
----
-81
81
-83
1
-93
21

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT ALL - COUNT( * ) AS col0, 4 FROM tab2 AS cor0
----
-3
4

skipif mysql # not compatible
query II rowsort label-194
SELECT ALL - COUNT ( * ) AS col0, 4 FROM tab2 AS cor0
----
-3
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> - + col1 + + 84
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < ( + ( - - 46 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= - col0 * - + ( col2 ) + - - col2
----

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

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

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

query I rowsort
SELECT 15 * - - col2 * - 94 * - + col1 AS col2 FROM tab0
----
139590
296100
5367870

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL SUM( ALL 78 ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL SUM ( ALL 78 ) FROM tab2
----
234

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE + - col2 BETWEEN - col0 AND - + col2 + col2
----
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT DISTINCT col1 + + CAST( - - 90 AS SIGNED ) * - col2 col1 FROM tab0
----
-4149
-879
-8909

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-203
SELECT DISTINCT col1 + + CAST ( - - 90 AS INTEGER ) * - col2 col1 FROM tab0
----
-4149
-879
-8909

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT ALL COUNT( * ), COUNT( + + col0 ) + - COUNT( * ) AS col0 FROM tab1 WHERE NOT + 46 <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-204
SELECT ALL COUNT ( * ), COUNT ( + + col0 ) + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 46 <> NULL
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT ALL CAST( NULL AS SIGNED ) * - 26 + - - 96 / - 67 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL CAST ( NULL AS INTEGER ) * - 26 + - - 96 / - 67 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

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

query I rowsort
SELECT DISTINCT 61 * - - col1 + col0 AS col2 FROM tab0 cor0
----
1368
158
4956

onlyif mysql # DIV for integer division: 
query I rowsort label-210
SELECT DISTINCT - col1 DIV + col1 + 56 AS col0 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT - col1 / + col1 + 56 AS col0 FROM tab2 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT ALL - col0 DIV - - col1 + - - 40 + + col2 AS col1 FROM tab2 AS cor0
----
63
80
97

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - col0 / - - col1 + - - 40 + + col2 AS col1 FROM tab2 AS cor0
----
63
80
97

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

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN + 36 / - col1 + + col1 AND 64 )
----

query II rowsort
SELECT - 42 - + 67 * - col0 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
3040
-46
4246
-64
4983
-75

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

query I rowsort
SELECT DISTINCT 29 FROM tab1 AS cor0 WHERE NULL < 15
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-219
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 44 FROM tab0 WHERE NULL IS NULL
----
44
44
44

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

query I rowsort
SELECT ALL col0 * - - col2 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT DISTINCT + 28 * + - COUNT( * ) * + + 32 AS col1 FROM tab1
----
-2688

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + 28 * + - COUNT ( * ) * + + 32 AS col1 FROM tab1
----
-2688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-224
SELECT DISTINCT + CAST( NULL AS SIGNED ), - col1 - + 15 * + col0 AS col2 FROM tab1
----
NULL
-1280
NULL
-1412
NULL
-779

skipif mysql # not compatible
query II rowsort label-224
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - col1 - + 15 * + col0 AS col2 FROM tab1
----
NULL
-1280
NULL
-1412
NULL
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL COUNT( * ) * - - 17 col0 FROM tab0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-225
SELECT ALL COUNT ( * ) * - - 17 col0 FROM tab0
----
51

query II rowsort
SELECT col0 AS col2, + 18 FROM tab0
----
15
18
87
18
97
18

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

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

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

query II rowsort
SELECT + col1, - ( 59 ) * + - col1 AS col2 FROM tab1 AS cor0
----
14
826
47
2773
5
295

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT COUNT( - - 0 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-231
SELECT DISTINCT COUNT ( - - 0 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL + COUNT( * ) * + COUNT( * ) * MIN( + col1 ) AS col2 FROM tab2
----
459

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * MIN ( + col1 ) AS col2 FROM tab2
----
459

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

query I rowsort
SELECT - 10 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT - - col1 + + 71 AS col2 FROM tab0 AS cor0
----
152
72
92

query I rowsort
SELECT DISTINCT - col1 * + 45 AS col1 FROM tab1
----
-2115
-225
-630

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

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

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE - + 67 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-244
SELECT ALL - SUM( DISTINCT col1 ) * + + CAST( NULL AS SIGNED ) / 4 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - SUM ( DISTINCT col1 ) * + + CAST ( NULL AS INTEGER ) / 4 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-245
SELECT * FROM tab1 WHERE + col0 * CAST( + 48 AS SIGNED ) BETWEEN NULL AND 43
----

skipif mysql # not compatible
query III rowsort label-245
SELECT * FROM tab1 WHERE + col0 * CAST ( + 48 AS INTEGER ) BETWEEN NULL AND 43
----

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

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

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

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

query I rowsort
SELECT ALL + + 34 + + 20 AS col1 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT ALL + + col1 - col0 + - + 26 * - + 30 FROM tab1 AS cor0
----
700
736
743

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - 53 <> - col0 + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-251
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - 53 <> - col0 + - col2
----
-3

query I rowsort
SELECT - 75 FROM tab1 WHERE ( 57 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-253
SELECT * FROM tab0 WHERE NULL IN ( - col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-253
SELECT * FROM tab0 WHERE NULL IN ( - col2, - CAST ( NULL AS INTEGER ) )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT 41 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-256
SELECT 41 / + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 > + 26
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-259
SELECT ALL - ( + + CAST( NULL AS SIGNED ) ) AS col0, - 84 * 82 * COUNT( * ) FROM tab0 AS cor0
----
NULL
-20664

skipif mysql # not compatible
query II rowsort label-259
SELECT ALL - ( + + CAST ( NULL AS INTEGER ) ) AS col0, - 84 * 82 * COUNT ( * ) FROM tab0 AS cor0
----
NULL
-20664

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL + 1 * + MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL + 1 * + MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 39 / + col1 >= - + 26
----

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

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

query I rowsort
SELECT DISTINCT + col0 * + 29 * - col0 + - + col2 FROM tab0 AS cor0
----
-219511
-272960
-6572

query I rowsort
SELECT ALL - ( + - col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT - MAX( ALL - col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT - MAX ( ALL - col2 ) FROM tab0 cor0
----
10

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

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

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - ( + 9 ) + col1 - + - col2 >= ( col0 )
----

query I rowsort
SELECT - 75 AS col2 FROM tab1 WHERE NOT 95 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 43 * + 30 + - 92 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-271
SELECT DISTINCT 14 AS col0 FROM tab0 AS cor0 WHERE NULL < CAST( NULL AS SIGNED ) + + + 45
----

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT 14 AS col0 FROM tab0 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER ) + + + 45
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + col1 <> + col0 * - 23 * - ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 95, - 2 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-95
-2
-95
-2
-95
-2

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

query I rowsort
SELECT 74 * - col0 AS col2 FROM tab2
----
-3404
-4736
-5550

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

query I rowsort
SELECT DISTINCT col1 * - col1 * - col1 - col1 + + + 68 * col0 AS col0 FROM tab0
----
15156
532380
6596

query I rowsort
SELECT - col2 * col0 / - col0 FROM tab2 WHERE NOT ( NULL ) IS NULL OR NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT 81 * - - MAX( ALL - - col2 ) * - 98 AS col2 FROM tab0
----
-785862

skipif mysql # not compatible
query I rowsort label-280
SELECT 81 * - - MAX ( ALL - - col2 ) * - 98 AS col2 FROM tab0
----
-785862

onlyif mysql # DIV for integer division: 
query II rowsort label-281
SELECT ALL 63 * col1 col2, col0 DIV - + 75 FROM tab2
----
3213
0
4221
-1
4851
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-281
SELECT ALL 63 * col1 col2, col0 / - + 75 FROM tab2
----
3213
0
4221
-1
4851
0

query I rowsort
SELECT col1 * 25 AS col0 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT DISTINCT + 66 * + + 43 FROM tab1
----
2838

query I rowsort
SELECT col0 * 84 * - - 36 FROM tab2
----
139104
193536
226800

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

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

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

query I rowsort
SELECT ALL + col2 + - + 92 AS col2 FROM tab2
----
-34
-52
-69

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab2
----
19

query I rowsort
SELECT DISTINCT - ( - + 68 ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL col2 - - + col0 + - col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-291
SELECT ALL - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-291
SELECT ALL - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + - 86 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT DISTINCT col2 DIV col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT col2 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
1

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 80 >= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL + MIN( col0 ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + MIN ( col0 ) AS col2 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT MIN( ALL + + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-299
SELECT MIN ( ALL + + col0 ) AS col2 FROM tab0
----
15

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

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

query I rowsort
SELECT ALL 93 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT ALL + col1 * + + col2 * + col2 + CAST( - ( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
179010
2121
9802

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL + col1 * + + col2 * + col2 + CAST ( - ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
179010
2121
9802

query I rowsort
SELECT + - 65 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
-28665
-426465
-65

query I rowsort
SELECT DISTINCT + 74 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 / - col2 * 56 * + - 74 + col1 BETWEEN NULL AND - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT + - MAX( + col1 ) * + 56 FROM tab1 cor0
----
-2632

skipif mysql # not compatible
query I rowsort label-305
SELECT + - MAX ( + col1 ) * + 56 FROM tab1 cor0
----
-2632

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT MIN( + col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-306
SELECT DISTINCT MIN ( + col2 ) col1 FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL - col0 * + col2 * - CAST( - 23 AS SIGNED ) * - col2 AS col1 FROM tab2
----
2355200
559682
5802900

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - col0 * + col2 * - CAST ( - 23 AS INTEGER ) * - col2 AS col1 FROM tab2
----
2355200
559682
5802900

query I rowsort
SELECT - + 22 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT + - 71 * - - 63 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-4473

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col2, - 98 * + + col1, + 0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-312
SELECT DISTINCT + CAST( + MAX( ALL - col2 ) AS SIGNED ) * - + COUNT( * ) + - 2 * + + MAX( col2 ) FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT + CAST ( + MAX ( ALL - col2 ) AS INTEGER ) * - + COUNT ( * ) + - 2 * + + MAX ( col2 ) FROM tab0 AS cor0
----
-168

query I rowsort
SELECT DISTINCT + 34 * - 94 + + + 1 * - col2 AS col0 FROM tab0 AS cor0
----
-3206
-3243
-3295

query II rowsort
SELECT ALL + col0 * + col1 + col2, + col0 AS col0 FROM tab2 AS cor0
----
2369
46
4968
64
5083
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / col2 + + - ( + - 15 ) < - col0 + col0 + - - ( - col2 )
----

query I rowsort
SELECT ( + ( - col0 ) ) + + col1 FROM tab1
----
-37
-44
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT ( - 36 ) * + COUNT( * ) + COUNT( * ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT ( - 36 ) * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
-105

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab1, tab2 AS cor0
----
26

query III rowsort
SELECT * FROM tab2 WHERE ( 99 + - col0 IS NULL )
----

query I rowsort
SELECT 57 AS col2 FROM tab2 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT - col0 - + - 78 DIV col1 AS col1 FROM tab0 AS cor0
----
-15
-19
-84

skipif mysql # not compatible
query I rowsort label-322
SELECT - col0 - + - 78 / col1 AS col1 FROM tab0 AS cor0
----
-15
-19
-84

query I rowsort
SELECT col0 - 57 FROM tab2 AS cor0
----
-11
18
7

query I rowsort
SELECT DISTINCT - col2 + + - col0 + 33 AS col0 FROM tab0 cor0
----
-163
-29
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-325
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 4 >= - CAST( + col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-325
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 4 >= - CAST ( + col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 4 NOT BETWEEN + + col2 AND + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-329
SELECT - SUM ( + CAST ( col0 AS INTEGER ) ) * SUM ( - col0 ) FROM tab1 AS cor0
----
51529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-330
SELECT - + COUNT( * ) DIV SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-330
SELECT - + COUNT ( * ) / SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT MIN( - ( - 68 ) ) col2 FROM tab2 AS cor0
----
68

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 61 * + 46 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-334
SELECT + ( + CAST( 82 AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-334
SELECT + ( + CAST ( 82 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

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

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

query II rowsort
SELECT DISTINCT 24, 80 * 90 - col1 AS col0 FROM tab1
----
24
7153
24
7186
24
7195

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

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + CAST ( - 68 AS INTEGER ) AS col0 FROM tab0
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-338
SELECT CAST( 46 AS SIGNED ) FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-338
SELECT CAST ( 46 AS INTEGER ) FROM tab0
----
46
46
46

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

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

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT - 0 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT ALL - col1 DIV - col2 + - - ( col1 ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL - col1 / - col2 + - - ( col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 - - + 74 AS col2 FROM tab1 AS cor0
----
133
142
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT + COUNT( - CAST( + 53 AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-344
SELECT + COUNT ( - CAST ( + 53 AS INTEGER ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 67 + + col0 + - col0 FROM tab0 cor0
----
-67

query I rowsort
SELECT + col1 - - 65 FROM tab1
----
112
70
79

query I rowsort
SELECT + ( + + col0 ) * - - col0 - col1 + - ( - col2 ) AS col2 FROM tab1
----
2683
7279
8302

query I rowsort
SELECT DISTINCT + 23 + - 24 AS col0 FROM tab2
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + - SUM( + col0 ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-350
SELECT + - SUM ( + col0 ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT ALL + SUM( - 35 ) AS col2 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + SUM ( - 35 ) AS col2 FROM tab1
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT ALL col2 DIV 74 + col1 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL col2 / 74 + col1 FROM tab2 cor0
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT - col0 / - + col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-354
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-354
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query II rowsort
SELECT ALL + 58 AS col1, - 6 FROM tab2 AS cor0
----
58
-6
58
-6
58
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT + COUNT( * ) * SUM( + + col2 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-357
SELECT + COUNT ( * ) * SUM ( + + col2 ) FROM tab0 AS cor0
----
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + ( + 57 ) ) + - - 17 col1 FROM tab1 AS cor0 WHERE NOT col0 * - + col0 * + col1 IS NOT NULL
----

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

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

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

query II rowsort
SELECT col1 * 10 AS col0, - col2 FROM tab1
----
140
-96
470
-68
50
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT DISTINCT 3 * - 89, COUNT( * ) AS col2 FROM tab2
----
-267
3

skipif mysql # not compatible
query II rowsort label-362
SELECT DISTINCT 3 * - 89, COUNT ( * ) AS col2 FROM tab2
----
-267
3

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( DISTINCT 8 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( DISTINCT 8 ) AS col2 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT ALL - 56 DIV + + 81 + + 9 FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - 56 / + + 81 + + 9 FROM tab2
----
9
9
9

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

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

query I rowsort
SELECT ALL + 91 * - col2 AS col1 FROM tab0 WHERE ( NOT + 40 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT 77 * col1 FROM tab0
----
1617
6237
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * + + col2 * 39 + - col0 + col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - - col0 ) * + 52 - + col1 AS col0 FROM tab0 cor0
----
-4545
-5045
-861

query I rowsort
SELECT ALL + 56 + + 77 FROM tab0 AS cor0
----
133
133
133

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

query II rowsort
SELECT col2 AS col0, + 31 * - 11 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query II rowsort
SELECT - + ( - col0 ) + 16, 35 AS col0 FROM tab0 AS cor0
----
103
35
113
35
31
35

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

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

query I rowsort
SELECT DISTINCT - - col2 - - - col0 AS col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT - col1 - - col1 + col1 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT col2 * + - 28 AS col2 FROM tab1
----
-1652
-1904
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL - + ( MAX( ALL ( + 20 ) ) ) AS col2 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - + ( MAX ( ALL ( + 20 ) ) ) AS col2 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT + ( - - 3 ) * - - col1 AS col1 FROM tab1 AS cor0
----
141
15
42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 38 + - col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT - SUM( - + 74 ) FROM tab1 cor0
----
222

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT - SUM ( - + 74 ) FROM tab1 cor0
----
222

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

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

query I rowsort
SELECT ALL - 1 FROM tab0 cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT 0 * 8 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 + - 25 FROM tab0
----
-15
22
74

query II rowsort
SELECT col2, col2 - + col2 FROM tab2
----
23
0
40
0
58
0

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

query I rowsort
SELECT 13 * - col1 AS col2 FROM tab0
----
-1053
-13
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 36, - 13 col0 FROM tab1
----
36
-13
36
-13
36
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL + 73 * CAST( - 51 AS SIGNED ) + + + SUM( DISTINCT - 94 ) AS col1 FROM tab1
----
-3817

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL + 73 * CAST ( - 51 AS INTEGER ) + + + SUM ( DISTINCT - 94 ) AS col1 FROM tab1
----
-3817

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT 5 + + + MAX( col0 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT 5 + + + MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT + col1 DIV ( col0 ) + - 35 FROM tab2 AS cor0
----
-34
-34
-35

skipif mysql # not compatible
query I rowsort label-397
SELECT + col1 / ( col0 ) + - 35 FROM tab2 AS cor0
----
-34
-34
-35

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

query I rowsort
SELECT ALL + col0 + + 50 * + + col0 AS col2 FROM tab1 cor0
----
2601
4335
4641

query I rowsort
SELECT DISTINCT - - 6 + - - 64 FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT + - 35 - + MAX( ALL + col2 ) col2 FROM tab0 AS cor0
----
-134

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-401
SELECT + - 35 - + MAX ( ALL + col2 ) col2 FROM tab0 AS cor0
----
-134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + 87 col0, - ( - col1 ) FROM tab2 cor0
----
133
51
151
77
162
67

query I rowsort
SELECT ALL col0 - + col0 * - 69 FROM tab1
----
3570
5950
6370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-404
SELECT ALL col0 AS col2, + CAST( + - col1 AS SIGNED ) col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

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

query I rowsort
SELECT 48 * - 0 * - - 14 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT DISTINCT 5 DIV - + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT 5 / - + col0 FROM tab0
----
0

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( col1 + - 8 )
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( 10 ) IN ( - 9 )
----

query I rowsort
SELECT ALL 65 + col1 * col2 FROM tab2 WHERE NOT ( col1 ) <> - col0
----

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

query I rowsort
SELECT ALL + 44 * 8 FROM tab2
----
352
352
352

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT ALL SUM( + 91 ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL SUM ( + 91 ) AS col1 FROM tab1
----
273

query I rowsort
SELECT DISTINCT - 95 - - 97 FROM tab0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT + ( + COUNT( * ) ) * ( - 32 + + ( + 53 ) * 99 ) FROM tab0
----
15645

skipif mysql # not compatible
query I rowsort label-424
SELECT + ( + COUNT ( * ) ) * ( - 32 + + ( + 53 ) * 99 ) FROM tab0
----
15645

query I rowsort
SELECT + 65 * + col2 FROM tab1
----
3835
4420
6240

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-426
SELECT * FROM tab0 WHERE NOT + col2 - + col1 / CAST( NULL AS SIGNED ) > 47 + 68
----

skipif mysql # not compatible
query III rowsort label-426
SELECT * FROM tab0 WHERE NOT + col2 - + col1 / CAST ( NULL AS INTEGER ) > 47 + 68
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT - COUNT( * ) * + 91 AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-428
SELECT - COUNT ( * ) * + 91 AS col0 FROM tab1
----
-273

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE 24 * + 65 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-430
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE 24 * + 65 >= NULL
----
0

query I rowsort
SELECT DISTINCT col0 * 56 + + 57 FROM tab0 AS cor0
----
4929
5489
897

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

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

query I rowsort
SELECT ALL - col2 * + 54 + 62 FROM tab2 AS cor0
----
-1180
-2098
-3070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * 81 col1 FROM tab0
----
3822
8116
897

query I rowsort
SELECT - - col0 * - 80 + - ( col2 + - 52 ) AS col0 FROM tab1 AS cor0
----
-4124
-6807
-7296

query I rowsort
SELECT DISTINCT col0 * 28 + + 10 AS col1 FROM tab2 AS cor0
----
1298
1802
2110

query I rowsort
SELECT + + col0 * + 0 + + 38 AS col0 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT + 34 FROM tab1 AS cor0 WHERE NULL >= + 45 * + col1
----

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

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

query I rowsort
SELECT DISTINCT - 82 + - 52 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT + + 42 * - COUNT( * ) + 56 * - 40 AS col0 FROM tab1 AS cor0
----
-2366

skipif mysql # not compatible
query I rowsort label-441
SELECT + + 42 * - COUNT ( * ) + 56 * - 40 AS col0 FROM tab1 AS cor0
----
-2366

query I rowsort
SELECT + col1 + + 3 AS col1 FROM tab0 cor0
----
24
4
84

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT - 76 DIV - col1 col0 FROM tab0 AS cor0
----
0
3
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-443
SELECT - 76 / - col1 col0 FROM tab0 AS cor0
----
0
3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT MIN( DISTINCT 43 ) FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-444
SELECT MIN ( DISTINCT 43 ) FROM tab1 cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-445
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN CAST( 17 AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-445
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN CAST ( 17 AS INTEGER ) AND col1
----

query I rowsort
SELECT - col0 * + 39 AS col2 FROM tab2 cor0
----
-1794
-2496
-2925

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

query I rowsort
SELECT ALL - ( + col2 ) FROM tab0 AS cor0 WHERE ( ( + 6 ) + - col2 ) = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 90 <> ( 98 )
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT + 69 * col2 + col0 IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( col0 / - col2 + - 60 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT DISTINCT - 0 DIV 52 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT - 0 / 52 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT ALL ( ( AVG ( 62 ) ) ) * MIN( DISTINCT col2 ) FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND 50
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL ( ( AVG ( 62 ) ) ) * MIN ( DISTINCT col2 ) FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND 50
----
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - 34 FROM tab0 WHERE col0 IS NOT NULL
----
-1598
-3366
-340

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab0
----
91

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab0 WHERE ( - col0 ) BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col0 / 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT - + col0 DIV + col2 + + 43 FROM tab1 AS cor0
----
42
42
43

skipif mysql # not compatible
query I rowsort label-459
SELECT - + col0 / + col2 + + 43 FROM tab1 AS cor0
----
42
42
43

query I rowsort
SELECT ALL + - 84 * col0 + - 44 * 10 FROM tab0 AS cor0
----
-1700
-7748
-8588

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-461
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST( col0 AS DECIMAL ) ) BETWEEN ( + 90 * - col1 ) AND ( - 22 )
----

skipif mysql # not compatible
query III rowsort label-461
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( CAST ( col0 AS REAL ) ) BETWEEN ( + 90 * - col1 ) AND ( - 22 )
----

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-465
SELECT + 31 * + 49 + + col0 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1536
1542
1543

skipif mysql # not compatible
query I rowsort label-465
SELECT + 31 * + 49 + + col0 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1536
1542
1543

query I rowsort
SELECT + 95 + - 32 AS col2 FROM tab1 AS cor0
----
63
63
63

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 18 <= + + ( col0 ) + - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 18 ) FROM tab1 WHERE + 24 NOT IN ( col2 )
----
18
18
18

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col1 ) col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT DISTINCT MIN( + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT MIN ( + - col1 ) FROM tab0
----
-81

query I rowsort
SELECT + 59 * - 51 * 54 AS col1 FROM tab2
----
-162486
-162486
-162486

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-478
SELECT col0 * - CAST ( NULL AS INTEGER ) * - 50 - + col2 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - - + 60 FROM tab2
----
2
20
37

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

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

query I rowsort
SELECT DISTINCT - 83 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-83

query I rowsort
SELECT ALL + 29 * 7 AS col2 FROM tab1 AS cor0
----
203
203
203

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-484
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST( - 93 AS SIGNED ) + ( + 62 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-484
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST ( - 93 AS INTEGER ) + ( + 62 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT 63 DIV - col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - ( + - col1 ) )
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-485
SELECT 63 / - col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - ( + - col1 ) )
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT ALL + - ( col1 ) DIV 88 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + - ( col1 ) / 88 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 85 * col0 AS col1 FROM tab0 AS cor0
----
-1275
-7395
-8245

query I rowsort
SELECT ALL 85 FROM tab0 AS cor0 WHERE ( + col1 - + 86 * + 66 ) IS NOT NULL
----
85
85
85

query I rowsort
SELECT col2 + 47 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN ( col2 ) AND ( 45 )
----
70
87

query I rowsort
SELECT - col2 * - + col0 * - + col0 + col2 + col1 AS col0 FROM tab0 AS cor0
----
-10447
-75659
-931391

query II rowsort
SELECT DISTINCT + col1, - ( - 41 ) FROM tab0
----
1
41
21
41
81
41

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL SUM( col0 ) * COUNT( * ) AS col2 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL SUM ( col0 ) * COUNT ( * ) AS col2 FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL + 95 * ( + MIN( - + col0 ) ) * COUNT( ALL + 68 ) AS col2 FROM tab2 cor0
----
-21375

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + 95 * ( + MIN ( - + col0 ) ) * COUNT ( ALL + 68 ) AS col2 FROM tab2 cor0
----
-21375

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-494
SELECT - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
121

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

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

query I rowsort
SELECT DISTINCT 91 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
91

query I rowsort
SELECT DISTINCT - 61 * + col1 * - 3 * col2 + - 83 FROM tab1
----
245869
53902
584785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-498
SELECT ALL - ( - COUNT( * ) ) + + + CAST( + 82 AS SIGNED ) + - - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
94

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL - ( - COUNT ( * ) ) + + + CAST ( + 82 AS INTEGER ) + - - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
94

query III rowsort
SELECT ALL - col1 * + col0 + - col1 AS col0, + col0 * - - col0 AS col2, + - 63 * 74 FROM tab0 AS cor0
----
9 values hashing to 94f4195ace837747187651eaf9db92a3

query II rowsort
SELECT DISTINCT + col1 + - col0 AS col0, 58 + + - col0 AS col2 FROM tab2 AS cor0
----
-8
-17
13
-6
5
12

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL - MIN( ( - 2 ) ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - MIN ( ( - 2 ) ) AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT ALL col1 * ( + + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2601
4489
5929

query I rowsort
SELECT col2 + col0 * + - col2 FROM tab0 AS cor0
----
-658
-860
-9504

query II rowsort
SELECT col2 + col1 AS col2, + col1 FROM tab0 AS cor0
----
100
1
128
81
31
21

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

skipif mysql # not compatible
query I rowsort label-505
SELECT - COUNT ( * ) + 41 / 76 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 74 IS NULL
----

query II rowsort
SELECT ALL col1, col1 + - + col1 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT - col0 * col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN ( + - 70 + + + 5 * + 79 ) AND + 11
----

query I rowsort
SELECT + 72 AS col0 FROM tab1 WHERE - + col2 < + col1
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT - + 90 * 27 - COUNT( 66 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-2433

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - + 90 * 27 - COUNT ( 66 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-2433

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

query I rowsort
SELECT DISTINCT - 52 + - col2 FROM tab0 AS cor0
----
-151
-62
-99

query I rowsort
SELECT ALL + + 75 + + - 63 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT col1 - - 20 AS col0 FROM tab1
----
25
34
67

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

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

query I rowsort
SELECT + 68 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT - 64 * + 68 + - SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
-4286

skipif mysql # not compatible
query I rowsort label-517
SELECT - 64 * + 68 + - SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
-4286

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT DISTINCT COUNT( * ) * + - MIN( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT COUNT ( * ) * + - MIN ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
174

query I rowsort
SELECT DISTINCT + 80 / 93 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 92
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-522
SELECT - + col1 / - - col2 FROM tab1 AS cor0
----
0
0
0

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

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

query II rowsort
SELECT + ( col0 ) * + col0, col2 + col0 AS col2 FROM tab1
----
2601
147
7225
144
8281
159

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 14 col2 FROM tab1 AS cor0
----
1344
826
952

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT MAX( DISTINCT - 78 ) + - AVG ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT MAX ( DISTINCT - 78 ) + - AVG ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-528
SELECT 92 / + col1 FROM tab1 AS cor0
----
1
18
6

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL - MAX( 8 ) AS col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL - MAX ( 8 ) AS col0 FROM tab0 AS cor0
----
-8

query II rowsort
SELECT + - 78, 1 + col1 + - col0 * - + col1 AS col0 FROM tab0 AS cor0
----
-78
1297
-78
1849
-78
99

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

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

query I rowsort
SELECT ALL - col2 + - 13 * + col0 AS col2 FROM tab0 cor0
----
-1141
-1360
-242

query I rowsort
SELECT DISTINCT - ( - + 5 ) * - - col0 + - + 44 + + - ( + + col2 ) * - col0 FROM tab2 AS cor0
----
1244
2836
4681

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

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

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

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL + COUNT ( * ) + + MIN ( ALL 93 ) AS col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT DISTINCT + col1 * + - 89 AS col1 FROM tab1 AS cor0
----
-1246
-4183
-445

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 85 >= + 71
----

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

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

query I rowsort
SELECT 38 - col2 * - col1 * 42 AS col2 FROM tab2
----
129398
163250
49304

query I rowsort
SELECT + 54 - + col2 FROM tab2
----
-4
14
31

query I rowsort
SELECT ALL - col2 + col0 FROM tab2 WHERE NOT NULL <> + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + 58 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 39 * + 31 AS col0, - col0 col0 FROM tab2
----
1209
-46
1209
-64
1209
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-545
SELECT * FROM tab2 WHERE ( ( ( NOT NULL NOT IN ( + col0 + + col2 * + + CAST( NULL AS DECIMAL ) * col2, ( 19 ) ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-545
SELECT * FROM tab2 WHERE ( ( ( NOT NULL NOT IN ( + col0 + + col2 * + + CAST ( NULL AS REAL ) * col2, ( 19 ) ) ) ) )
----

query I rowsort
SELECT 87 + - col0 * - ( - col0 ) AS col1 FROM tab0
----
-138
-7482
-9322

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

skipif mysql # not compatible
query II rowsort label-547
SELECT ALL - - 99 - + - COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
102
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + 96 AND + + col0 + - col0 + + col0 + - col2
----

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

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

query I rowsort
SELECT ALL - col1 + + + col2 + - ( + col0 ) * - ( 12 ) * - + 89 * 58 + 27 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2849425
-3964426
-4645782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-551
SELECT col0 AS col0, CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-551
SELECT col0 AS col0, CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
46
51
64
77
75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 82 col0, + 84 col0 FROM tab1 AS cor0
----
-82
84
-82
84
-82
84

query I rowsort
SELECT DISTINCT col0 * col0 + - 18 AS col0 FROM tab0 AS cor0
----
207
7551
9391

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL IS NULL OR NOT col2 BETWEEN ( NULL ) AND + 28
----
-23
-40
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-556
SELECT DISTINCT - 2 DIV + 47 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT - 2 / + 47 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT - - COUNT( * ) + + 41 AS col0 FROM tab0 WHERE col2 >= col1 * col2 * - col0 * col2
----
44

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT - - COUNT ( * ) + + 41 AS col0 FROM tab0 WHERE col2 >= col1 * col2 * - col0 * col2
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT 87 + MAX( ALL - col2 ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-559
SELECT 87 + MAX ( ALL - col2 ) FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL - + COUNT( * ) + + + MIN( DISTINCT 41 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - + COUNT ( * ) + + + MIN ( DISTINCT 41 ) FROM tab2 AS cor0
----
38

query I rowsort
SELECT + col0 * col0 - + col2 + + + col0 AS col0 FROM tab2 AS cor0
----
2139
4120
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL + MAX( 69 ) - 7 * + COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL + MAX ( 69 ) - 7 * + COUNT ( * ) FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT DISTINCT + - 90 AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-90
3

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT + - 90 AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-90
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-564
SELECT - COUNT( ALL + col1 ) + COUNT( * ) DIV - 49 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-564
SELECT - COUNT ( ALL + col1 ) + COUNT ( * ) / - 49 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT 50 DIV 91 * col0 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-565
SELECT 50 / 91 * col0 + + col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-566
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + 58 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + 58 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col2 * - col2 IN ( col0, + 19, - - 56 + - col2 )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + col2 / col0 + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL SUM( - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL SUM ( - col1 ) FROM tab2
----
-195

query I rowsort
SELECT + ( - col0 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-572
SELECT ( + CAST( - AVG ( ALL + 78 ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-572
SELECT ( + CAST ( - AVG ( ALL + 78 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-78

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

skipif mysql # not compatible
query II rowsort label-573
SELECT DISTINCT col1, + col1 * + ( + 13 ) / + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL + MAX( ALL + 70 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + MAX ( ALL + 70 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ( SUM( - 80 ) ) col0 FROM tab1
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-575
SELECT ( SUM ( - 80 ) ) col0 FROM tab1
----
-240

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

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

query I rowsort
SELECT ( + + 79 ) * + 80 * 18 AS col1 FROM tab0
----
113760
113760
113760

query I rowsort
SELECT ALL + 15 AS col0 FROM tab1 AS cor0 WHERE NOT + 82 IS NULL
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-579
SELECT DISTINCT col2 * 13 AS col2, + CAST( NULL AS SIGNED ) + + - col1 + - + 29 FROM tab2 WHERE - + col2 * - col1 NOT BETWEEN col2 * - + col1 * 25 AND NULL
----

skipif mysql # not compatible
query II rowsort label-579
SELECT DISTINCT col2 * 13 AS col2, + CAST ( NULL AS INTEGER ) + + - col1 + - + 29 FROM tab2 WHERE - + col2 * - col1 NOT BETWEEN col2 * - + col1 * 25 AND NULL
----

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

query I rowsort
SELECT - col2 + 59 AS col0 FROM tab0 cor0
----
-40
12
49

query II rowsort
SELECT ALL - - 45 * + 38 * col2 AS col2, col0 AS col2 FROM tab2 AS cor0
----
39330
46
68400
64
99180
75

query I rowsort
SELECT + + col1 / - + ( + 70 ) + + 22 - 18 + - 31 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - 25 AND - col0
----

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - col0 + - col1 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-586
SELECT ALL AVG ( + col2 ) + + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ), 97 AS col2 FROM tab2
----
NULL
97

skipif mysql # not compatible
query II rowsort label-586
SELECT ALL AVG ( + col2 ) + + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ), 97 AS col2 FROM tab2
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - ( + SUM( DISTINCT + - col1 ) ) + + + 69 + - SUM( DISTINCT 31 ) AS col2 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - ( + SUM ( DISTINCT + - col1 ) ) + + + 69 + - SUM ( DISTINCT 31 ) AS col2 FROM tab0 AS cor0
----
141

query I rowsort
SELECT ALL 40 + - + 5 FROM tab1 cor0 WHERE NOT col0 NOT IN ( + ( - 36 ) + - 23, - 28, + col2 + 42 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 3 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL - SUM( + - col2 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) >= + - 23
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-590
SELECT ALL - SUM ( + - col2 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) >= + - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT DISTINCT + + 46 - - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT + + 46 - - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
49

query I rowsort
SELECT - col0 - - - col0 * - col0 AS col2 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT DISTINCT col0 - + col1 AS col2 FROM tab0
----
-66
66
96

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

query I rowsort
SELECT - col2 - - 93 AS col0 FROM tab2
----
35
53
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 - - col2 * + ( - col0 ) + col1 AS col2, + ( - col1 ) * + col0 col2 FROM tab2
----
-1000
-2346
-2476
-4928
-4276
-5025

query I rowsort
SELECT DISTINCT + col0 - + + col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT + MAX( ( + 13 ) ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-598
SELECT + MAX ( ( + 13 ) ) AS col1 FROM tab2
----
13

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

query I rowsort
SELECT DISTINCT - 45 * - col0 AS col0 FROM tab1 AS cor0
----
2295
3825
4095

query I rowsort
SELECT ALL - 86 * - 75 AS col2 FROM tab0 AS cor0
----
6450
6450
6450

query I rowsort
SELECT + 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

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

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ( COUNT( * ) ) AS col2 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-604
SELECT ( COUNT ( * ) ) AS col2 FROM tab0, tab2 AS cor0
----
9

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

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

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

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

skipif mysql # not compatible
query I rowsort label-607
SELECT + 83 / col1 FROM tab1 AS cor0
----
1
16
5

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT + col2 DIV col0 + - ( + + col0 ) FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-608
SELECT + col2 / col0 + - ( + + col0 ) FROM tab1 AS cor0
----
-50
-85
-91

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

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

query I rowsort
SELECT 7 * col0 FROM tab1 AS cor0
----
357
595
637

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL SUM( ALL - + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL SUM ( ALL - + col1 ) FROM tab1
----
-66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT + COUNT( ALL - col1 ) + 75 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-613
SELECT + COUNT ( ALL - col1 ) + 75 FROM tab2
----
78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-615
SELECT - col1 * + CAST( - - col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

skipif mysql # not compatible
query I rowsort label-615
SELECT - col1 * + CAST ( - - col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL - 44 + + 71 * - COUNT( - + 6 ) AS col1 FROM tab1 AS cor0
----
-257

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - 44 + + 71 * - COUNT ( - + 6 ) AS col1 FROM tab1 AS cor0
----
-257

query II rowsort
SELECT DISTINCT + col0, - col2 * col1 FROM tab1
----
51
-1344
85
-295
91
-3196

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col2 + + + 16 * + + ( col0 ) col2 FROM tab1 AS cor0
----
1414
1477
898

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - 48 <= NULL
----

query I rowsort
SELECT - col0 + - + 17 FROM tab2 AS cor0
----
-63
-81
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - + col2 col0 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL + 98 + - - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL + 98 + - - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT - 21 * - 87 + COUNT( + col2 ) FROM tab1 AS cor0
----
1830

skipif mysql # not compatible
query I rowsort label-626
SELECT - 21 * - 87 + COUNT ( + col2 ) FROM tab1 AS cor0
----
1830

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL - COUNT( * ) + 88 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL - COUNT ( * ) + 88 FROM tab2 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 59 - + col2 col1 FROM tab1 AS cor0
----
-37
-9
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-631
SELECT * FROM tab1 WHERE NOT col0 + + col0 * col2 - + ( - 13 ) >= + CAST( NULL AS SIGNED ) + + - 76
----

skipif mysql # not compatible
query III rowsort label-631
SELECT * FROM tab1 WHERE NOT col0 + + col0 * col2 - + ( - 13 ) >= + CAST ( NULL AS INTEGER ) + + - 76
----

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

query I rowsort
SELECT ALL col0 * - 43 AS col0 FROM tab1
----
-2193
-3655
-3913

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

skipif mysql # not compatible
query I rowsort label-634
SELECT - MIN ( 72 ) AS col1 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-637
SELECT - - 17 DIV - 53 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-637
SELECT - - 17 / - 53 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

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

query I rowsort
SELECT ALL 66 + 16 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT + col2 * col2 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 97 * - CAST( - col2 AS SIGNED ) < + col1
----
1560
3306
506

skipif mysql # not compatible
query I rowsort label-642
SELECT + col2 * col2 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 97 * - CAST ( - col2 AS INTEGER ) < + col1
----
1560
3306
506

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 AS col0 FROM tab0 AS cor0 WHERE + 46 NOT BETWEEN 60 AND 99
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-644
SELECT 41 + - - MAX( 31 ) FROM tab0 AS cor0 WHERE NOT ( col0 * + CAST( NULL AS SIGNED ) + 72 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT 41 + - - MAX ( 31 ) FROM tab0 AS cor0 WHERE NOT ( col0 * + CAST ( NULL AS INTEGER ) + 72 IS NULL )
----
NULL

query I rowsort
SELECT - 50 * + 90 AS col2 FROM tab1 AS cor0
----
-4500
-4500
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT COUNT( * ) + COUNT( ALL col2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL col2 ) FROM tab2 AS cor0
----
6

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

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

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL MAX ( + + col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-649
SELECT + COUNT( * ), SUM( 68 ) AS col1 FROM tab2
----
3
204

skipif mysql # not compatible
query II rowsort label-649
SELECT + COUNT ( * ), SUM ( 68 ) AS col1 FROM tab2
----
3
204

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - ( - COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-652
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT + 75 DIV col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-653
SELECT + 75 / col1 FROM tab1
----
1
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT SUM( ALL + + 95 ) FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-654
SELECT SUM ( ALL + + 95 ) FROM tab0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT COUNT( * ) + + + 99 AS col0 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-655
SELECT COUNT ( * ) + + + 99 AS col0 FROM tab2
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

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

query I rowsort
SELECT col1 * - - 0 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col0 * + - col0, + col0 FROM tab0 cor0
----
-225
15
-7569
87
-9409
97

query I rowsort
SELECT 33 + - col2 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-25
-7
10

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

query I rowsort
SELECT 92 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
92
92
92

query II rowsort
SELECT ALL + 84, - 44 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN - col1 + col2 AND + col2
----

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab2 AS cor0
----
35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-666
SELECT - ( CAST( + + col2 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-666
SELECT - ( CAST ( + + col2 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-667
SELECT - + COUNT ( - + col1 ) / + 12 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( - 65 ) FROM tab2
----
65
65
65

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

query I rowsort
SELECT DISTINCT + + col2 / - + col2 FROM tab0 WHERE NULL > + col0 + + col0
----

query I rowsort
SELECT col1 * + + 13 AS col2 FROM tab2
----
1001
663
871

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT DISTINCT - MAX( ALL - 22 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT - MAX ( ALL - 22 ) FROM tab0
----
22

query II rowsort
SELECT ALL - 51 AS col1, + col0 * - + 35 FROM tab2
----
-51
-1610
-51
-2240
-51
-2625

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + ( - - col0 ) col2, + col2 * + col2 * col0 FROM tab2 AS cor0 WHERE NOT + col0 + 55 + + col1 + + 1 IS NULL
----
128
102400
150
252300
92
24334

query II rowsort
SELECT ALL - 57 * + col2 AS col2, + col1 * - + col1 FROM tab2
----
-1311
-2601
-2280
-5929
-3306
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT DISTINCT - MIN( ALL + ( col0 ) ) * MAX( col2 ) FROM tab1
----
-4896

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT - MIN ( ALL + ( col0 ) ) * MAX ( col2 ) FROM tab1
----
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * - col0 col2 FROM tab1
----
-25075
-290836
-68544

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

query I rowsort
SELECT ALL col2 + + 92 FROM tab2 AS cor0
----
115
132
150

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

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

query I rowsort
SELECT DISTINCT ( - col0 ) - - col1 FROM tab1 AS cor0 WHERE 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT DISTINCT - 37 + - SUM( + col0 ) - + 66 AS col0 FROM tab1 AS cor0
----
-330

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT - 37 + - SUM ( + col0 ) - + 66 AS col0 FROM tab1 AS cor0
----
-330

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-686
SELECT + CAST( NULL AS DECIMAL ) * - - 53 + col2, 92 * + col0 AS col0 FROM tab1 AS cor0 WHERE col0 + - - CAST( NULL AS SIGNED ) * + - 70 + - col0 / + 49 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-686
SELECT + CAST ( NULL AS REAL ) * - - 53 + col2, 92 * + col0 AS col0 FROM tab1 AS cor0 WHERE col0 + - - CAST ( NULL AS INTEGER ) * + - 70 + - col0 / + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT ALL COUNT( DISTINCT - + 32 ), - MIN( ALL - col2 ) AS col0 FROM tab2 cor0
----
1
58

skipif mysql # not compatible
query II rowsort label-687
SELECT ALL COUNT ( DISTINCT - + 32 ), - MIN ( ALL - col2 ) AS col0 FROM tab2 cor0
----
1
58

query I rowsort
SELECT - - 18 + - 26 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL + + 12 + - + col0 AS col0 FROM tab2 AS cor0
----
-34
-52
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT col1 DIV col0 * col2 AS col1 FROM tab1 WHERE + 60 > ( + col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-690
SELECT col1 / col0 * col2 AS col1 FROM tab1 WHERE + 60 > ( + col1 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL <= 45 )
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( ( col2 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-693
SELECT DISTINCT 75 + - 96 + + ( 44 ) DIV - 45 - + SUM( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT 75 + - 96 + + ( 44 ) / - 45 - + SUM ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-220

query I rowsort
SELECT DISTINCT + col2 - + 81 AS col1 FROM tab0 AS cor0
----
-34
-71
18

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT COUNT( * ) - + + MAX( - col2 ) * - COUNT( * ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT COUNT ( * ) - + + MAX ( - col2 ) * - COUNT ( * ) FROM tab2
----
-66

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 34 NOT BETWEEN + col2 * - - 89 * - 4 AND ( NULL )
----

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

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

query I rowsort
SELECT ALL + + col1 * - + 17 FROM tab0 AS cor0 WHERE - col2 * - 95 + + 35 IS NULL
----

query I rowsort
SELECT + 31 * - col1 + - + 34 FROM tab2 cor0
----
-1615
-2111
-2421

query II rowsort
SELECT - - col2, ( col0 ) AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # DIV for integer division: 
query II rowsort label-702
SELECT + - col1 col0, col1 + + ( - - col2 ) DIV col1 DIV - + 86 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-702
SELECT + - col1 col0, col1 + + ( - - col2 ) / col1 / - + 86 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

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

query II rowsort
SELECT + - 90 AS col1, ( - + 19 ) * ( - col0 ) + + ( 71 ) FROM tab0 AS cor0
----
-90
1724
-90
1914
-90
356

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - 12 AND + col2 + - + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT - 23 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-706
SELECT - 23 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-707
SELECT * FROM tab0 WHERE NOT + col1 - - - col0 / col1 <= + + CAST( + - 58 AS SIGNED )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-707
SELECT * FROM tab0 WHERE NOT + col1 - - - col0 / col1 <= + + CAST ( + - 58 AS INTEGER )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-708
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab2 WHERE - 22 + 32 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-708
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab2 WHERE - 22 + 32 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-710
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 15 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT CAST ( NULL AS REAL ) * - 15 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * + 57 FROM tab1 AS cor0
----
-2907
-4845
-5187

query I rowsort
SELECT ALL + 47 FROM tab2 AS cor0 WHERE NULL IS NULL
----
47
47
47

query I rowsort
SELECT + + 13 AS col0 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT ALL 51 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 79 * + 11 + - col0 * - ( - ( 61 ) ) col0 FROM tab2
----
17181
30856
45827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 48 col1 FROM tab0
----
-1
-38
51

query I rowsort
SELECT + col2 + - - col0 + - 48 + + col1 FROM tab0 AS cor0
----
149
70
95

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT + + col2 DIV - col0 - 18 + + col2 FROM tab1 AS cor0
----
41
50
77

skipif mysql # not compatible
query I rowsort label-718
SELECT + + col2 / - col0 - 18 + + col2 FROM tab1 AS cor0
----
41
50
77

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT + - COUNT( + + 36 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-719
SELECT + - COUNT ( + + 36 ) AS col2 FROM tab2 AS cor0
----
-3

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

query I rowsort
SELECT DISTINCT - - col0 + 3 AS col2 FROM tab0 AS cor0
----
100
18
90

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

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

query II rowsort
SELECT - col0 * + col0 AS col0, col2 AS col1 FROM tab1
----
-2601
96
-7225
59
-8281
68

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT MIN( - 57 ) * + + COUNT( * ) AS col1 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-725
SELECT MIN ( - 57 ) * + + COUNT ( * ) AS col1 FROM tab2
----
-171

query I rowsort
SELECT + 22 * + col0 AS col2 FROM tab0
----
1914
2134
330

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN col1 AND 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-728
SELECT - col2 - + + ( - col2 ) * - CAST( NULL AS SIGNED ) + 7 AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ( - - 58 ) * + SUM( ( + col0 ) ) + + COUNT( * ) AS col2 FROM tab2
----
10733

skipif mysql # not compatible
query I rowsort label-729
SELECT ( - - 58 ) * + SUM ( ( + col0 ) ) + + COUNT ( * ) AS col2 FROM tab2
----
10733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 + - + col2 col0 FROM tab1
----
-34
100
2141

query I rowsort
SELECT 21 + + 34 AS col0 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT + ( + 22 ) * col0 + + - col1 * - + col1 AS col1 FROM tab2
----
3613
6139
7337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT - - CAST( 95 AS SIGNED ) * col0 * + 89 FROM tab0 AS cor0
----
126825
735585
820135

skipif mysql # not compatible
query I rowsort label-733
SELECT - - CAST ( 95 AS INTEGER ) * col0 * + 89 FROM tab0 AS cor0
----
126825
735585
820135

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL SUM( col2 ) FROM tab2 AS cor0 WHERE NOT + 20 >= + col1
----
121

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL SUM ( col2 ) FROM tab2 AS cor0 WHERE NOT + 20 >= + col1
----
121

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 60 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT MIN( + - 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-737
SELECT MIN ( + - 74 ) FROM tab1 AS cor0
----
-74

query II rowsort
SELECT ALL - - col0, col0 * + col0 AS col2 FROM tab0 AS cor0
----
15
225
87
7569
97
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-739
SELECT ALL col0 * CAST( + 78 AS SIGNED ) AS col2 FROM tab1 WHERE + + 52 + col2 / + col1 BETWEEN NULL AND 93
----

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL col0 * CAST ( + 78 AS INTEGER ) AS col2 FROM tab1 WHERE + + 52 + col2 / + col1 BETWEEN NULL AND 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT + SUM( + 8 ) + COUNT( * ) AS col0 FROM tab1 WHERE + col2 * + 27 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT + SUM ( + 8 ) + COUNT ( * ) AS col0 FROM tab1 WHERE + col2 * + 27 IS NULL
----
NULL

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

query II rowsort
SELECT ALL 19, col0 + - col2 AS col2 FROM tab0
----
19
-2
19
-32
19
77

onlyif mysql # DIV for integer division: 
query II rowsort label-743
SELECT + col0 AS col2, 11 DIV col2 AS col1 FROM tab0
----
15
0
87
1
97
0

skipif mysql # not compatible
query II rowsort label-743
SELECT + col0 AS col2, 11 / col2 AS col1 FROM tab0
----
15
0
87
1
97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-744
SELECT ALL + 94 col2, COUNT( * ) FROM tab2
----
94
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-744
SELECT ALL + 94 col2, COUNT ( * ) FROM tab2
----
94
3

query II rowsort
SELECT ALL col2, 42 + - col2 + col0 FROM tab1
----
59
68
68
65
96
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-746
SELECT - - col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - col0 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-746
SELECT - - col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - col0 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 62 col2 FROM tab1 WHERE - + col2 IS NULL
----

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

query I rowsort
SELECT ALL + + 43 AS col1 FROM tab0 cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT COUNT( * ) * COUNT( * ) * + 46 AS col0 FROM tab2 AS cor0
----
414

skipif mysql # not compatible
query I rowsort label-750
SELECT COUNT ( * ) * COUNT ( * ) * + 46 AS col0 FROM tab2 AS cor0
----
414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-751
SELECT + col2 * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-751
SELECT + col2 * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query II rowsort label-752
SELECT + 42 DIV - col2 AS col1, 76 * - ( col1 ) FROM tab2 AS cor0
----
-1
-3876
-1
-5852
0
-5092

skipif mysql # not compatible
query II rowsort label-752
SELECT + 42 / - col2 AS col1, 76 * - ( col1 ) FROM tab2 AS cor0
----
-1
-3876
-1
-5852
0
-5092

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 > + + 28 + - - col0 * col0
----

query I rowsort
SELECT DISTINCT 94 + 8 * + col0 + col0 AS col1 FROM tab0
----
229
877
967

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

query I rowsort
SELECT DISTINCT col0 + + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL 79 + - 32 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT COUNT( * ) * - + 98 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-759
SELECT COUNT ( * ) * - + 98 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + col0 + - + 23 + + col1 + 72 FROM tab0 AS cor0
----
145
147
157

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-761
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / - col1 - - col0 * col1 + - - 68 IN ( - - col1 + + ( - - 21 ) * + col1 + CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-761
SELECT ALL * FROM tab2 AS cor0 WHERE col2 / - col1 - - col0 * col1 + - - 68 IN ( - - col1 + + ( - - 21 ) * + col1 + CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT ALL - ( - col0 ) - - col1 * 2 + - col2 * col1 DIV col0 + - 47 FROM tab1 AS cor0
----
103
45
6

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL - ( - col0 ) - - col1 * 2 + - col2 * col1 / col0 + - 47 FROM tab1 AS cor0
----
103
45
6

query II rowsort
SELECT ALL + - col0 + + - col1, + col2 + col2 + - - col0 AS col1 FROM tab1 AS cor0
----
-138
227
-65
243
-90
203

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-764
SELECT DISTINCT - 98 DIV + COUNT( * ) - 54 AS col2 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT - 98 / + COUNT ( * ) - 54 AS col2 FROM tab0
----
-86

query I rowsort
SELECT col0 * 48 FROM tab1
----
2448
4080
4368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-766
SELECT CAST( NULL AS DECIMAL ) FROM tab0 WHERE - - ( - - col0 ) * + + 41 / - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-766
SELECT CAST ( NULL AS REAL ) FROM tab0 WHERE - - ( - - col0 ) * + + 41 / - + col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT COUNT ( - - col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT ALL - 79 + - + MIN( - col0 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-768
SELECT ALL - 79 + - + MIN ( - col0 ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT col1 <> 8
----

query I rowsort
SELECT ALL - 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

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

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT - 61 * + + COUNT( - 96 ) AS col0 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-772
SELECT - 61 * + + COUNT ( - 96 ) AS col0 FROM tab1 AS cor0
----
-183

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 < - + col2 - - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT ALL + 85 * - + 14 + - + 5 + col0 + - - col2 DIV - + col1 AS col0 FROM tab1 AS cor0
----
-1105
-1121
-1150

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + 85 * - + 14 + - + 5 + col0 + - - col2 / - + col1 AS col0 FROM tab1 AS cor0
----
-1105
-1121
-1150

onlyif mysql # DIV for integer division: 
query I rowsort label-775
SELECT DISTINCT + + ( + 13 ) DIV 32 * + 70 + - col0 * + - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT + + ( + 13 ) / 32 * + 70 + - col0 * + - col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT ALL + col1 AS col1, 37 + + col1 FROM tab0
----
1
38
21
58
81
118

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

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

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

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL SUM ( - col2 ) AS col1 FROM tab1
----
-223

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 86 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( - - 19 ) FROM tab0
----
-19
-19
-19

query I rowsort
SELECT + + col2 * col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab0 WHERE + 34 IS NULL
----

query I rowsort
SELECT ALL + col1 + 21 + - col2 AS col1 FROM tab2
----
30
49
58

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * + 45 col1 FROM tab2 AS cor0 WHERE NOT ( + 88 <= NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-787
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, - col0 + - 75 DIV col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-787
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, - col0 + - 75 / col2 / + col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL + 15 + + - 49 AS col2 FROM tab2 AS cor0
----
-34
-34
-34

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

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

query I rowsort
SELECT ALL - 91 - - 14 + - + col2 FROM tab0 AS cor0
----
-124
-176
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT + COUNT( * ) - + 58 - - COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT + COUNT ( * ) - + 58 - - COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-794
SELECT + 1 DIV + col0 - + - 84 AS col0, col2 FROM tab1
----
84
59
84
68
84
96

skipif mysql # not compatible
query II rowsort label-794
SELECT + 1 / + col0 - + - 84 AS col0, col2 FROM tab1
----
84
59
84
68
84
96

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 BETWEEN + 4 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + 79 + - + ( + 23 ) + - - col2 FROM tab0
----
-100
-179
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-799
SELECT DISTINCT + COUNT( * ) - 79, + 92 AS col1 FROM tab2
----
-76
92

skipif mysql # not compatible
query II rowsort label-799
SELECT DISTINCT + COUNT ( * ) - 79, + 92 AS col1 FROM tab2
----
-76
92

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

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT + col0 + + 97 * 58 = - ( col0 ) * - col1
----
1
21
81

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 * + 16 col1 FROM tab0
----
1520
1520
1520

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

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

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

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

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab1 cor0
----
-5

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT ALL col0 * + 55 FROM tab0 AS cor0
----
4785
5335
825

query II rowsort
SELECT col1, + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

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

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

query II rowsort
SELECT ALL - col2 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( - col2 ) = + 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 86 + - 12 AS col1 FROM tab2 AS cor0
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-819
SELECT - col1 AS col2, col1 DIV - 75 AS col2 FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-819
SELECT - col1 AS col2, col1 / - 75 AS col2 FROM tab1
----
-14
0
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT + 67 * - ( + + COUNT( * ) ) * - 14 AS col0 FROM tab0
----
2814

skipif mysql # not compatible
query I rowsort label-820
SELECT + 67 * - ( + + COUNT ( * ) ) * - 14 AS col0 FROM tab0
----
2814

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 79 > NULL
----

query I rowsort
SELECT - - 49 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 36 * col2 col0 FROM tab1 cor0
----
2124
2448
3456

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL 16 + - + SUM( ALL col0 ) FROM tab2 AS cor0
----
-169

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL 16 + - + SUM ( ALL col0 ) FROM tab2 AS cor0
----
-169

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

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

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

query I rowsort
SELECT + + ( 14 ) FROM tab1 cor0
----
14
14
14

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

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

query I rowsort
SELECT DISTINCT - 21 - col0 * + 68 FROM tab2
----
-3149
-4373
-5121

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + col1 * - col1 AS col0 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT + 84 * col0 FROM tab0 AS cor0
----
1260
7308
8148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-836
SELECT ALL 85 * CAST( COUNT( * ) AS SIGNED ) + - + SUM( ALL 79 ) / + 68 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL 85 * CAST ( COUNT ( * ) AS INTEGER ) + - + SUM ( ALL 79 ) / + 68 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < - col0 * + col1
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT - 1 * + 73 - + col2 NOT BETWEEN col0 + + + col2 * col1 AND + 29
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-841
SELECT 26 * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT 26 * - - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-842
SELECT DISTINCT - COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-842
SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 37 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT DISTINCT + 47 - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + 47 - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 27, - col1 AS col0 FROM tab2
----
27
-51
27
-67
27
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + + + 87 + - + col2 col0, col2 AS col1 FROM tab2
----
-29
58
41
23
7
40

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

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE 88 * + 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT ALL ( col2 ) DIV col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL ( col2 ) / col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE + 6 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-850
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE + 6 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * + col1 + - 86 - + col0 FROM tab1
----
-1481
-3373
-466

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * + col1 + - 86 - + col0 FROM tab1
----
-1481
-3373
-466

query I rowsort
SELECT ALL col0 + - 60 AS col2 FROM tab2 AS cor0
----
-14
15
4

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT 48 + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-853
SELECT 48 + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
57

query I rowsort
SELECT 54 * col2 FROM tab0
----
2538
5346
540

query I rowsort
SELECT 23 * - col1 FROM tab0
----
-1863
-23
-483

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-856
SELECT DISTINCT - col0 + - CAST( NULL AS DECIMAL ) / - 6 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT - col0 + - CAST ( NULL AS REAL ) / - 6 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ( - 8 ) * + COUNT( * ) col2 FROM tab1
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-857
SELECT ( - 8 ) * + COUNT ( * ) col2 FROM tab1
----
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - 86 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-861
SELECT - COUNT ( DISTINCT col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT ALL - MIN( DISTINCT + col1 ) * ( - COUNT( * ) + 28 ) FROM tab2
----
-1275

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - MIN ( DISTINCT + col1 ) * ( - COUNT ( * ) + 28 ) FROM tab2
----
-1275

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL ( ( 73 ) ) + COUNT( * ) FROM tab1 WHERE NOT - 17 IS NULL
----
76

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL ( ( 73 ) ) + COUNT ( * ) FROM tab1 WHERE NOT - 17 IS NULL
----
76

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-865
SELECT * FROM tab2 WHERE ( NULL ) <= + col0 + 71 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-865
SELECT * FROM tab2 WHERE ( NULL ) <= + col0 + 71 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + 32
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT - 38 DIV + COUNT( * ) col0 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-867
SELECT - 38 / + COUNT ( * ) col0 FROM tab0
----
-12

query III rowsort
SELECT * FROM tab1 WHERE - col0 <= NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 NOT BETWEEN ( - 90 ) AND col0 + col2
----

query I rowsort
SELECT DISTINCT + 88 + + 58 AS col2 FROM tab1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL - SUM( DISTINCT 21 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL - SUM ( DISTINCT 21 ) FROM tab2
----
-21

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-873
SELECT MIN ( col0 ) col2 FROM tab1
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > + 18
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-876
SELECT ALL + CAST( col2 AS SIGNED ) * - col2 col1 FROM tab0 WHERE ( - col1 ) >= - ( col2 ) * + col1
----
-100
-2209
-9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-876
SELECT ALL + CAST ( col2 AS INTEGER ) * - col2 col1 FROM tab0 WHERE ( - col1 ) >= - ( col2 ) * + col1
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-877
SELECT ALL + col0 * + CAST( col1 AS SIGNED ) + col0 * ( 55 ) AS col1 FROM tab0 WHERE ( col2 + col0 * col1 ) < NULL
----

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + col0 * + CAST ( col1 AS INTEGER ) + col0 * ( 55 ) AS col1 FROM tab0 WHERE ( col2 + col0 * col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT + 9 + + AVG ( DISTINCT ( col2 ) ) * - COUNT( * ) AS col1 FROM tab2 WHERE NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + 9 + + AVG ( DISTINCT ( col2 ) ) * - COUNT ( * ) AS col1 FROM tab2 WHERE NULL < col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT DISTINCT CAST( + 55 AS SIGNED ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT CAST ( + 55 AS INTEGER ) FROM tab1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT col1 DIV - col1 + col1 AS col0 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-880
SELECT col1 / - col1 + col1 AS col0 FROM tab0
----
0
20
80

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

query I rowsort
SELECT DISTINCT + col1 + + 54 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT MIN( + ( - col0 ) ) * + 38 FROM tab1 AS cor0
----
-3458

skipif mysql # not compatible
query I rowsort label-883
SELECT MIN ( + ( - col0 ) ) * + 38 FROM tab1 AS cor0
----
-3458

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 18 NOT BETWEEN + 60 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * 89 AS col2 FROM tab0
----
1335
7743
8633

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

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT + COUNT( * ) + + 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
13

skipif mysql # not compatible
query I rowsort label-887
SELECT + COUNT ( * ) + + 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT + + MAX( - col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT + + MAX ( - col0 ) AS col2 FROM tab1 cor0
----
-51

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

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

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT 47 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col2 * 27 + + 6 FROM tab1 AS cor0
----
1599
1842
2598

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 85 * + col0 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-894
SELECT col2 DIV + col0 + col0 AS col2 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-894
SELECT col2 / + col0 + col0 AS col2 FROM tab1 AS cor0
----
52
85
91

query I rowsort
SELECT + col1 FROM tab1 WHERE 2 < ( NULL )
----

query I rowsort
SELECT 87 + - + col2 * col2 FROM tab2
----
-1513
-3277
-442

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

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

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL ( + col2 ) * + 34 AS col0 FROM tab2
----
1360
1972
782

query I rowsort
SELECT DISTINCT col0 * - 17 AS col2 FROM tab1
----
-1445
-1547
-867

query I rowsort
SELECT DISTINCT + 58 * + col1 AS col0 FROM tab2
----
2958
3886
4466

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

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

query I rowsort
SELECT ALL - col0 * 73 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT + col1 + + col2 + - col2 DIV - ( + col1 * - col1 ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-904
SELECT + col1 + + col2 + - col2 / - ( + col1 * - col1 ) FROM tab2
----
117
125
74

query I rowsort
SELECT col1 FROM tab0 WHERE ( + col0 * - 76 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT col2 DIV + col1 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-906
SELECT col2 / + col1 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT ALL - 32 DIV 30 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - 32 / 30 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT + 17 * MIN( col0 * 64 ) AS col2 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT + 17 * MIN ( col0 * 64 ) AS col2 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 > NULL AND NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT ALL + 10 DIV + 78 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL + 10 / + 78 FROM tab1 AS cor0
----
0
0
0

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

query III rowsort
SELECT * FROM tab2 WHERE + - col1 NOT BETWEEN - col0 AND 99
----
46
51
23
64
77
40

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

query I rowsort
SELECT + 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( 39 ) col2 FROM tab1 WHERE NOT NULL NOT IN ( + - 8 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-918
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( - CAST( + 49 AS SIGNED ) AS DECIMAL ) >= col1 + - col0 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-918
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( - CAST ( + 49 AS INTEGER ) AS REAL ) >= col1 + - col0 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT DISTINCT MIN( DISTINCT + 12 ) + + 49 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT MIN ( DISTINCT + 12 ) + + 49 FROM tab2 AS cor0
----
61

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-920
SELECT DISTINCT + 73 * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + ( col2 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT + 91 * col2 + + + CAST( col1 AS SIGNED ) * - 94 AS col2 FROM tab1 AS cor0
----
1770
4899
7420

skipif mysql # not compatible
query I rowsort label-921
SELECT + 91 * col2 + + + CAST ( col1 AS INTEGER ) * - 94 AS col2 FROM tab1 AS cor0
----
1770
4899
7420

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

query I rowsort
SELECT ALL 54 FROM tab1 AS cor0 WHERE NULL IS NULL
----
54
54
54

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

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

query I rowsort
SELECT + - ( - col0 ) * + - 1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-926
SELECT + - 76 AS col0, - 63 + - - col2 + - CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
-76
NULL
-76
NULL
-76
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-926
SELECT + - 76 AS col0, - 63 + - - col2 + - CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
-76
NULL
-76
NULL
-76
NULL

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

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

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL <> + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + col2 * + 37 NOT IN ( + 97 * col1 ) AND NOT col1 * - col1 + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-931
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + col2 * + 37 NOT IN ( + 97 * col1 ) AND NOT col1 * - col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + + col2 / 40 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT - col2 DIV + 29 col0 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-933
SELECT - col2 / + 29 col0 FROM tab2 cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 * + col0 col2 FROM tab1 AS cor0
----
2091
3485
3731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 24 * - col2 col0, col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-1215
-2376
-97
-240
-1827

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 + + col1 * - 26 AND - col0 / - col2
----

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

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

query I rowsort
SELECT 8 * + + 20 + + col0 AS col1 FROM tab2
----
206
224
235

query I rowsort
SELECT ( 83 ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT - COUNT( * ) * COUNT( * ) + + 83, - 31 AS col1 FROM tab2 AS cor0
----
74
-31

skipif mysql # not compatible
query II rowsort label-941
SELECT - COUNT ( * ) * COUNT ( * ) + + 83, - 31 AS col1 FROM tab2 AS cor0
----
74
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IN ( 5 )
----
-3

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IN ( 5 )
----
-3

query I rowsort
SELECT DISTINCT col0 * - 97 AS col2 FROM tab1
----
-4947
-8245
-8827

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ( - 56 ) * COUNT( * ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
-168

skipif mysql # not compatible
query I rowsort label-946
SELECT ( - 56 ) * COUNT ( * ) FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT DISTINCT + MIN( 42 ) col1 FROM tab1
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-947
SELECT DISTINCT + MIN ( 42 ) col1 FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT - MAX( DISTINCT - col1 ) - + 49 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-948
SELECT - MAX ( DISTINCT - col1 ) - + 49 FROM tab2
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-949
SELECT - col0 + + CAST( 83 AS SIGNED ) DIV - + 46 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-949
SELECT - col0 + + CAST ( 83 AS INTEGER ) / - + 46 FROM tab0
----
-16
-88
-98

query I rowsort
SELECT ALL - 74 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-74
-74
-74

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

query I rowsort
SELECT DISTINCT 85 * col2 FROM tab0 AS cor0 WHERE 22 IN ( - + col2 + - ( + 31 ) )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( - col0 ) * - col2 + + - 57 BETWEEN ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-954
SELECT ALL CAST( ( - COUNT( * ) ) AS SIGNED ) AS col0, - 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-92

skipif mysql # not compatible
query II rowsort label-954
SELECT ALL CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col0, - 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
-92

query I rowsort
SELECT DISTINCT + - col0 * - ( - 68 ) FROM tab1 AS cor0
----
-3468
-5780
-6188

query I rowsort
SELECT + col2 * + 47 FROM tab2 AS cor0
----
1081
1880
2726

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 82 / + col2 BETWEEN - - col0 AND + - col2
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT MAX( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT MAX ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT DISTINCT + + CAST( - col0 AS SIGNED ) * + col2 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-959
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) * + col2 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - 49 * - 74 - - col2 AS col1 FROM tab2 AS cor0
----
3649
3666
3684

query I rowsort
SELECT ALL - 78 * + col1 * + 9 * col2 FROM tab1 AS cor0
----
-207090
-2243592
-943488

query I rowsort
SELECT col1 + + col1 FROM tab1 AS cor0 WHERE NOT - 99 IS NULL
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT DISTINCT ( - + 26 ) DIV - + ( + - col0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT ( - + 26 ) / - + ( + - col0 ) AS col0 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT + 48 * + col1 + + col0 FROM tab0 AS cor0 WHERE - col2 BETWEEN - 63 * - + 60 AND ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT DISTINCT - 65 DIV - 61 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT - 65 / - 61 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT DISTINCT + MAX( ALL + 95 ) AS col2 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + MAX ( ALL + 95 ) AS col2 FROM tab2
----
95

query II rowsort
SELECT - col2 AS col2, col2 + - - col2 FROM tab0
----
-10
20
-47
94
-99
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT - 4 AS col1 FROM tab2 WHERE NOT NULL < 57 - - + 48 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-969
SELECT - 4 AS col1 FROM tab2 WHERE NOT NULL < 57 - - + 48 * + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT + col1 * - 13 * - 50 AS col1, - col1 + 2 FROM tab0
----
13650
-19
52650
-79
650
1

query I rowsort
SELECT DISTINCT + 8 * + + col1 * + col2 * - 30 FROM tab2
----
-281520
-739200
-932640

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

query II rowsort
SELECT DISTINCT + col0, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL - 64 * - 31 AS col0 FROM tab2
----
1984
1984
1984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 col2, col0 + - col0 AS col2 FROM tab0 cor0
----
12
0
12
0
12
0

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT - 4 DIV + 93 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-976
SELECT - 4 / + 93 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 3 FROM tab0 cor0
----
-3
-3
-3

query I rowsort
SELECT - + col0 + + - col0 + - - 84 FROM tab1 AS cor0
----
-18
-86
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT - 18 col0, MAX( DISTINCT - col0 ) FROM tab1 cor0 WHERE NULL IS NULL
----
-18
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-979
SELECT - 18 col0, MAX ( DISTINCT - col0 ) FROM tab1 cor0 WHERE NULL IS NULL
----
-18
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT COUNT( * ) * 17 * 10 + 37 AS col1, + ( - - 99 ) FROM tab0 AS cor0
----
547
99

skipif mysql # not compatible
query II rowsort label-980
SELECT COUNT ( * ) * 17 * 10 + 37 AS col1, + ( - - 99 ) FROM tab0 AS cor0
----
547
99

query I rowsort
SELECT - ( + - col1 ) + - - ( - 75 ) * + col1 FROM tab1 AS cor0
----
-1036
-3478
-370

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - ( - + 33 ) NOT IN ( + 97 * + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT COUNT( + 28 ) + - 95 + - 13 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT COUNT ( + 28 ) + - 95 + - 13 FROM tab1 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT + 25 + - COUNT( * ) FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-984
SELECT + 25 + - COUNT ( * ) FROM tab0 cor0
----
22

query I rowsort
SELECT ALL - + 28 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
1331
2869
367

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-986
SELECT DISTINCT - SUM( ALL - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - SUM ( ALL - CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT - + COUNT( * ) * - 56 / SUM( + 43 ) FROM tab1 WHERE + 22 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-991
SELECT - + COUNT ( * ) * - 56 / SUM ( + 43 ) FROM tab1 WHERE + 22 < NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT DISTINCT + col0 * col1 DIV - col0 + + col1 * ( 2 ) * + + 92 FROM tab0 AS cor0
----
14823
183
3843

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT + col0 * col1 / - col0 + + col1 * ( 2 ) * + + 92 FROM tab0 AS cor0
----
14823
183
3843

query I rowsort
SELECT + 99 - col1 * + 46 FROM tab1 AS cor0
----
-131
-2063
-545

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

query I rowsort
SELECT - + 56 - col1 AS col2 FROM tab0 AS cor0
----
-137
-57
-77

query I rowsort
SELECT - - col2 - col2 * + col2 FROM tab2 AS cor0
----
-1560
-3306
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 - + 93 + + 11 * + 98 + - col0 col2 FROM tab2 WHERE 10 / + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT DISTINCT - col1 * - CAST( + 94 AS SIGNED ) * + 19 + + - col0 AS col0 FROM tab1
----
24953
83851
8845

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT - col1 * - CAST ( + 94 AS INTEGER ) * + 19 + + - col0 AS col0 FROM tab1
----
24953
83851
8845

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT DISTINCT COUNT( * ) * + SUM( 35 ) FROM tab0
----
315

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT COUNT ( * ) * + SUM ( 35 ) FROM tab0
----
315

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col0 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT + + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 IN ( + ( - - col1 ), col0 / + - 38 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT + + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 IN ( + ( - - col1 ), col0 / + - 38 + + col1 )
----
0

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

skipif mysql # not compatible
query I rowsort label-1005
SELECT COUNT ( * ) + + + COUNT ( * ) FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - col0 * - + 7 FROM tab1 AS cor0
----
357
595
637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1008
SELECT 8 FROM tab1 AS cor0 WHERE NOT - CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1008
SELECT 8 FROM tab1 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) IS NOT NULL
----

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

query I rowsort
SELECT col2 * - col0 * + - col2 * - 41 * - 1 FROM tab0 AS cor0
----
1358535
356700
38978577

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1011
SELECT col2 * col0 AS col2, - CAST( 54 AS SIGNED ) FROM tab2
----
1058
-54
2560
-54
4350
-54

skipif mysql # not compatible
query II rowsort label-1011
SELECT col2 * col0 AS col2, - CAST ( 54 AS INTEGER ) FROM tab2
----
1058
-54
2560
-54
4350
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL - MAX( - + 43 ) col2 FROM tab2
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1014
SELECT ALL - MAX ( - + 43 ) col2 FROM tab2
----
43

query I rowsort
SELECT DISTINCT - 3 * - col0 * + col0 FROM tab2
----
12288
16875
6348

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1016
SELECT ALL col0 + 25 - - col1 * - col0 / - - CAST( NULL AS SIGNED ), 4 AS col2 FROM tab1 AS cor0
----
NULL
4
NULL
4
NULL
4

skipif mysql # not compatible
query II rowsort label-1016
SELECT ALL col0 + 25 - - col1 * - col0 / - - CAST ( NULL AS INTEGER ), 4 AS col2 FROM tab1 AS cor0
----
NULL
4
NULL
4
NULL
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT + - 67 * COUNT( ALL - + 40 ) AS col1 FROM tab2 cor0
----
-201

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT + - 67 * COUNT ( ALL - + 40 ) AS col1 FROM tab2 cor0
----
-201

query I rowsort
SELECT - col2 + - 70 FROM tab2
----
-110
-128
-93

query I rowsort
SELECT ALL 3 + col0 FROM tab2
----
49
67
78

query I rowsort
SELECT 41 + + col1 AS col0 FROM tab2
----
108
118
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1022
SELECT ALL COUNT( * ) AS col0, 72 * - 65 + MIN( ALL - - col0 ) AS col2 FROM tab2
----
3
-4634

skipif mysql # not compatible
query II rowsort label-1022
SELECT ALL COUNT ( * ) AS col0, 72 * - 65 + MIN ( ALL - - col0 ) AS col2 FROM tab2
----
3
-4634

query II rowsort
SELECT 9 AS col0, - 61 FROM tab0 AS cor0
----
9
-61
9
-61
9
-61

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

query II rowsort
SELECT ALL + col2 - - ( - col2 ), + col1 * - col2 AS col0 FROM tab1 AS cor0
----
0
-1344
0
-295
0
-3196

query I rowsort
SELECT ALL - ( + 63 ) AS col1 FROM tab0 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1027
SELECT col2 - + col1 * + + CAST( col1 AS SIGNED ) AS col0, col1 col0 FROM tab2
----
-2578
51
-4431
67
-5889
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1027
SELECT col2 - + col1 * + + CAST ( col1 AS INTEGER ) AS col0, col1 col0 FROM tab2
----
-2578
51
-4431
67
-5889
77

query I rowsort
SELECT + col0 - + col0 + + - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col0 + + - col0 * + - 1 * - col1 AS col1 FROM tab2
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - + 6
----

query I rowsort
SELECT + col2 + col0 + + - 89 * + 52 FROM tab2
----
-4495
-4524
-4559

query I rowsort
SELECT ALL 77 + + col1 + - col2 + - col0 AS col0 FROM tab2
----
11
50
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL - ( - COUNT( * ) ) * - 48 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - ( - COUNT ( * ) ) * - 48 FROM tab2 AS cor0
----
-144

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 76 + - - 56 * - 72 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 68 + 79 - 48 * 12 > + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col2 col0 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT + 12 * col1 + col2 AS col1, + col1 - 64 FROM tab0 cor0
----
1019
17
111
-63
262
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 / - col1 + + 82 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 / - col1 + + 82 * + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL + SUM( ALL + - 73 ) AS col2 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + SUM ( ALL + - 73 ) AS col2 FROM tab2 AS cor0
----
-219

query I rowsort
SELECT 22 * + 51 * - col1 FROM tab1 AS cor0
----
-15708
-52734
-5610

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT + MAX( ALL - 46 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT + MAX ( ALL - 46 ) FROM tab1 AS cor0
----
-46

query II rowsort
SELECT col1 AS col0, - ( + 83 ) * - col0 + - col0 FROM tab2 AS cor0
----
51
3772
67
6150
77
5248

query I rowsort
SELECT ( - 12 ) AS col1 FROM tab0
----
-12
-12
-12

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 * 46 AS col0 FROM tab2
----
-23
2346
-40
3542
-58
3082

query I rowsort
SELECT ALL col2 * - - col1 AS col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL - 81 + + + col1 + 36 AS col2 FROM tab0
----
-24
-44
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1049
SELECT DISTINCT * FROM tab0 WHERE 86 / - + 59 + + + ( - col2 ) + + 9 NOT BETWEEN - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1049
SELECT DISTINCT * FROM tab0 WHERE 86 / - + 59 + + + ( - col2 ) + + 9 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND ( NULL )
----

query I rowsort
SELECT - 97 + - col1 * col1 * + col2 + - col2 + + ( + 20 ) AS col1 FROM tab1
----
-150357
-1611
-18989

query I rowsort
SELECT + col2 + col1 * - col2 AS col1 FROM tab1
----
-1248
-236
-3128

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

query I rowsort
SELECT + 40 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) + - + 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL - 91 * - COUNT( * ) * + + 23 AS col2 FROM tab1
----
6279

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - 91 * - COUNT ( * ) * + + 23 AS col2 FROM tab1
----
6279

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1056
SELECT - + CAST ( NULL AS INTEGER ) + - 97 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT SUM( + col1 ) + COUNT( * ) FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-1057
SELECT SUM ( + col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
106

query I rowsort
SELECT 94 * - col0 AS col0 FROM tab1 AS cor0 WHERE + 45 IS NOT NULL
----
-4794
-7990
-8554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT DISTINCT + 41 * 1 + + 11 - + - 76 DIV - SUM( DISTINCT 57 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT + 41 * 1 + + 11 - + - 76 / - SUM ( DISTINCT 57 ) AS col0 FROM tab1 AS cor0
----
51

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

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

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

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

query I rowsort
SELECT - col2 * 39 * + col0 * + - 98 + - - 72 FROM tab0 AS cor0
----
2694582
3325212
36702738

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

query I rowsort
SELECT DISTINCT + col1 + - 0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col0 * + 41 * - col2 FROM tab1
----
-200736
-205615
-253708

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( - 73 + - 6 > + col2 ) )
----

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

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

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

query I rowsort
SELECT col2 * - - 56 AS col1 FROM tab2
----
1288
2240
3248

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1070
SELECT + 42 / col1 col2 FROM tab1
----
0
3
8

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

query I rowsort
SELECT + - 20 * - 27 AS col1 FROM tab0 AS cor0
----
540
540
540

query I rowsort
SELECT - col0 * + - ( + 69 ) * 56 * col1 AS col2 FROM tab0 AS cor0
----
374808
4694760
7059528

query I rowsort
SELECT - - 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - col1 * col1 * + col0 AS col1 FROM tab0 cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - MIN( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1076
SELECT - MIN ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-10

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 62 > NULL
----

query I rowsort
SELECT + + 87 * + + 64 FROM tab0 AS cor0
----
5568
5568
5568

query I rowsort
SELECT ALL 26 * + - 73 * - - col2 AS col1 FROM tab2
----
-110084
-43654
-75920

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1082
SELECT DISTINCT + + col2, + CAST( + col1 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT + + col2, + CAST ( + col1 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL + COUNT( * ) * + 35 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL + COUNT ( * ) * + 35 FROM tab1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT CAST( - 8 AS SIGNED ) AS col0 FROM tab2
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-1084
SELECT CAST ( - 8 AS INTEGER ) AS col0 FROM tab2
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL + COUNT( * ) * + + 67 + + 52 FROM tab0
----
253

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL + COUNT ( * ) * + + 67 + + 52 FROM tab0
----
253

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

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

query I rowsort
SELECT - ( + - 71 ) AS col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT ALL - col2 + - 99 FROM tab2 cor0
----
-122
-139
-157

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT DISTINCT ( + - col0 ) - - col0 DIV + col1 - - 18 + + col0 DIV - ( + col0 ) FROM tab1 AS cor0
----
-31
-51
-73

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT ( + - col0 ) - - col0 / + col1 - - 18 + + col0 / - ( + col0 ) FROM tab1 AS cor0
----
-31
-51
-73

query I rowsort
SELECT + col2 - - 98 AS col1 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT ALL - col1 - + 20 * + + col1 FROM tab0 AS cor0
----
-1701
-21
-441

query II rowsort
SELECT ALL + - 71 - + + col0 + - col2 * col2 AS col2, col0 * + col2 AS col0 FROM tab0 cor0
----
-2295
705
-258
870
-9969
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT ALL - 26 + + col0 DIV ( - 59 ) + col2 FROM tab0
----
-17
21
72

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - 26 + + col0 / ( - 59 ) + col2 FROM tab0
----
-17
21
72

query I rowsort
SELECT DISTINCT + 15 * + 92 - - col1 FROM tab2
----
1431
1447
1457

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT + MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1099
SELECT + MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
75

query II rowsort
SELECT ALL + col1 + 82, + col1 + + col1 AS col0 FROM tab0 WHERE NOT - 50 * + - ( + + 20 ) IS NULL
----
103
42
163
162
83
2

query I rowsort
SELECT col2 * - - 8 FROM tab1
----
472
544
768

query II rowsort
SELECT + ( col2 ) AS col1, 29 FROM tab2
----
23
29
40
29
58
29

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

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

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

query I rowsort
SELECT 94 * col0 * + col1 FROM tab2 AS cor0
----
220524
463232
472350

query II rowsort
SELECT DISTINCT col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1107
SELECT DISTINCT COUNT( * ) AS col2, - 73 / CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1107
SELECT DISTINCT COUNT ( * ) AS col2, - 73 / CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
3
NULL

query I rowsort
SELECT col0 * - col0 FROM tab2 AS cor0 WHERE NOT 58 <= + + col2
----
-2116
-4096

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

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

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

query I rowsort
SELECT DISTINCT + + 65 FROM tab1 cor0
----
65

query I rowsort
SELECT ALL - - col1 + - + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 58 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 * + - ( - 14 ) AND + + col0
----

query II rowsort
SELECT + + col0 * - - ( + col0 ) AS col1, + col1 AS col1 FROM tab1 AS cor0
----
2601
14
7225
5
8281
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 4 BETWEEN NULL AND - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + 19 col2 FROM tab0 AS cor0
----
1045
1045
1045

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

query II rowsort
SELECT 77 + col2, col1 AS col2 FROM tab1
----
136
5
145
47
173
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT COUNT( * ) - COUNT( * ) col0 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1119
SELECT COUNT ( * ) - COUNT ( * ) col0 FROM tab2, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT SUM( - - ( col2 ) ) * + 31 FROM tab1
----
6913

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT SUM ( - - ( col2 ) ) * + 31 FROM tab1
----
6913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT DISTINCT + + 20 * col0 FROM tab2 WHERE - + col2 * + CAST( + + 21 AS SIGNED ) IS NOT NULL
----
1280
1500
920

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT + + 20 * col0 FROM tab2 WHERE - + col2 * + CAST ( + + 21 AS INTEGER ) IS NOT NULL
----
1280
1500
920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT - 80 DIV + COUNT( col1 ) + - COUNT( * ) * + MAX( DISTINCT 99 ) FROM tab1
----
-323

skipif mysql # not compatible
query I rowsort label-1122
SELECT - 80 / + COUNT ( col1 ) + - COUNT ( * ) * + MAX ( DISTINCT 99 ) FROM tab1
----
-323

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

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

query II rowsort
SELECT - ( + col1 ), + col2 * - + col2 AS col2 FROM tab0 AS cor0
----
-1
-9801
-21
-100
-81
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT SUM( DISTINCT 58 ) FROM tab1 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1126
SELECT SUM ( DISTINCT 58 ) FROM tab1 cor0
----
58

query I rowsort
SELECT + col2 - - 11 FROM tab2
----
34
51
69

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - 51
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + - 9 + + + col0 NOT BETWEEN + 63 AND col2 / - col0 + - ( 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 46 + - + col2 FROM tab1 AS cor0
----
-13
-22
-50

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

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

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

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT col0 / - 45 AS col2 FROM tab1 AS cor0
----
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76 col0, col1 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
76
-18270
76
-57105
76
-9603

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

skipif mysql # not compatible
query II rowsort label-1134
SELECT DISTINCT - COUNT ( * ), MAX ( + - ( + + col0 ) ) AS col0 FROM tab1 AS cor0
----
-3
-51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1136
SELECT ALL - 58 AS col2, - COUNT( col0 ) AS col0 FROM tab0
----
-58
-3

skipif mysql # not compatible
query II rowsort label-1136
SELECT ALL - 58 AS col2, - COUNT ( col0 ) AS col0 FROM tab0
----
-58
-3

query I rowsort
SELECT ALL - 11 * + + ( col1 ) FROM tab1
----
-154
-517
-55

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

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

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

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

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

query II rowsort
SELECT col2 * - col1 AS col2, col2 FROM tab0 cor0
----
-210
10
-3807
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL > + col1
----
0

query I rowsort
SELECT + 38 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - ( + 61 ) + col0 + - 57 FROM tab0
----
-103
-21
-31

query I rowsort
SELECT ALL col1 * - + ( - + 26 ) * - col2 + - + col2 FROM tab0 AS cor0
----
-2673
-5470
-99029

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT ALL + 67 DIV 55 * + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + 67 / 55 * + col2 FROM tab2 AS cor0
----
23
40
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 17 + - col1, - col2 col2 FROM tab2 AS cor0
----
-68
-23
-84
-58
-94
-40

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

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

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

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

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE + col2 + 48 IS NULL
----

query I rowsort
SELECT col0 * - + col0 * - ( + 4 ) FROM tab0
----
30276
37636
900

query II rowsort
SELECT ALL - col0 AS col2, + col1 * + - 16 - + col2 * - col1 AS col0 FROM tab1
----
-51
1120
-85
215
-91
2444

query III rowsort
SELECT * FROM tab1 WHERE + - 84 = - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT COUNT( * ) * - + 6 AS col0 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-1156
SELECT COUNT ( * ) * - + 6 AS col0 FROM tab0
----
-18

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

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

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

query II rowsort
SELECT - col0 + ( + col0 ), - col0 AS col0 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - COUNT( * ) * 52 FROM tab0 AS cor0 WHERE + col2 > col0
----
-104

skipif mysql # not compatible
query I rowsort label-1160
SELECT - COUNT ( * ) * 52 FROM tab0 AS cor0 WHERE + col2 > col0
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-1161
SELECT DISTINCT - 43 AS col1, + COUNT( * ) FROM tab2 AS cor0 WHERE 76 * col1 IS NOT NULL
----
-43
3

skipif mysql # not compatible
query II rowsort label-1161
SELECT DISTINCT - 43 AS col1, + COUNT ( * ) FROM tab2 AS cor0 WHERE 76 * col1 IS NOT NULL
----
-43
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 / - 74 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1162
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 / - 74 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1163
SELECT DISTINCT - col2 - CAST( - 8 AS SIGNED ) * col1 * + 2 * col0 * 44 + - 95 FROM tab0
----
1286103
68094
855218

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT - col2 - CAST ( - 8 AS INTEGER ) * col1 * + 2 * col0 * 44 + - 95 FROM tab0
----
1286103
68094
855218

query I rowsort
SELECT DISTINCT 82 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1165
SELECT ALL ( + - col2 ) - - 83 + - + 67 * - col1 * - - col2 + - + col0 + - col0 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL ( + - col2 ) - - 83 + - + 67 * - col1 * - - col2 + - + col0 + - col0 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT - ( col0 ) AS col1, - col0 AS col1 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT DISTINCT + col2 * col2 * - 97 AS col2 FROM tab1 AS cor0
----
-337657
-448528
-893952

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

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

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab0 AS cor0 WHERE - 47 IS NULL
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT - 44 * MAX( 17 ) FROM tab1 WHERE - + 47 * + - col1 IS NOT NULL
----
-748

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT - 44 * MAX ( 17 ) FROM tab1 WHERE - + 47 * + - col1 IS NOT NULL
----
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT DISTINCT + SUM( ALL - - 94 ) FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT + SUM ( ALL - - 94 ) FROM tab0
----
282

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

query II rowsort
SELECT 5 AS col0, - 29 FROM tab0
----
5
-29
5
-29
5
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1180
SELECT SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 88 * col2 FROM tab1
----
-5192
-5984
-8448

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1183
SELECT 14 DIV - 38 AS col1, col2 + col2 FROM tab2
----
0
116
0
46
0
80

skipif mysql # not compatible
query II rowsort label-1183
SELECT 14 / - 38 AS col1, col2 + col2 FROM tab2
----
0
116
0
46
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL + COUNT( * ) + - SUM( DISTINCT + 95 ) AS col1 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL + COUNT ( * ) + - SUM ( DISTINCT + 95 ) AS col1 FROM tab0
----
-92

query I rowsort
SELECT ALL + + ( + - col0 ) + - 79 AS col1 FROM tab2 AS cor0
----
-125
-143
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT - col2 + - CAST( + 37 AS SIGNED ) * - col2 FROM tab0 cor0
----
1692
3564
360

skipif mysql # not compatible
query I rowsort label-1186
SELECT - col2 + - CAST ( + 37 AS INTEGER ) * - col2 FROM tab0 cor0
----
1692
3564
360

query I rowsort
SELECT - ( + 4 ) + - col0 AS col2 FROM tab0 AS cor0
----
-101
-19
-91

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab1 WHERE 18 IS NULL
----

query I rowsort
SELECT col1 + - 29 FROM tab1
----
-15
-24
18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 46 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + col0
----

query III rowsort
SELECT * FROM tab0 WHERE - + 16 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col2 + + col2 AS col1, 35 AS col0 FROM tab2 AS cor0
----
116
35
46
35
80
35

query I rowsort
SELECT + - col0 - + col1 * 14 * 48 FROM tab2 AS cor0
----
-34318
-45099
-51808

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 4 * - col1 <> ( - col1 + 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-17

query I rowsort
SELECT DISTINCT + ( + 55 ) + + 63 * - col1 AS col1 FROM tab0 cor0 WHERE NOT ( col2 ) IN ( - ( + + col1 ) )
----
-1268
-5048
-8

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

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

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

skipif mysql # not compatible
query I rowsort label-1199
SELECT + - col2 / + ( - - col2 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1200
SELECT DISTINCT + CAST( + MAX( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + CAST ( + MAX ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - - 70 AS col2 FROM tab0 cor0
----
70
70
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT MAX( ALL 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-1203
SELECT MAX ( ALL 71 ) FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL + MIN( ALL col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL + MIN ( ALL col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT ALL - 22 * - 11 FROM tab2
----
242
242
242

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

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT - ( + MIN ( - col2 ) ) FROM tab2
----
58

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 46 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + col0 ) ) - + col0 <> + ( + col2 ) / + + 36
----

query II rowsort
SELECT - ( + + col2 ), + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1211
SELECT - + 22 * + + col0, 71 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1012
NULL
-1408
NULL
-1650
NULL

skipif mysql # not compatible
query II rowsort label-1211
SELECT - + 22 * + + col0, 71 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1012
NULL
-1408
NULL
-1650
NULL

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

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

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

query I rowsort
SELECT ALL + - col2 + - 73 FROM tab2 AS cor0
----
-113
-131
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1215
SELECT - 70 AS col1, + 39 + - MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
-70
130

skipif mysql # not compatible
query II rowsort label-1215
SELECT - 70 AS col1, + 39 + - MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-70
130

query I rowsort
SELECT DISTINCT 92 * 70 FROM tab1
----
6440

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

skipif mysql # not compatible
query I rowsort label-1217
SELECT - COUNT ( * ) + - COUNT ( col2 ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT ALL - MAX( DISTINCT - col1 ) + 49 AS col1 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - MAX ( DISTINCT - col1 ) + 49 AS col1 FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT + COUNT( * ) * + - 1 * COUNT( + col0 ) + - COUNT( * ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1219
SELECT + COUNT ( * ) * + - 1 * COUNT ( + col0 ) + - COUNT ( * ) FROM tab0 cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT - COUNT( * ) + 92 AS col1 FROM tab0 cor0
----
89

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - COUNT ( * ) + 92 AS col1 FROM tab0 cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1221
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 BETWEEN - col1 AND - CAST( 31 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1221
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 BETWEEN - col1 AND - CAST ( 31 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
88

query I rowsort
SELECT col0 * - - col0 AS col1 FROM tab2
----
2116
4096
5625

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

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= - 20 / - col2
----

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

query I rowsort
SELECT DISTINCT ( 15 ) FROM tab0
----
15

query II rowsort
SELECT DISTINCT ( + - 90 ) * - 6 AS col0, - col2 AS col1 FROM tab2
----
540
-23
540
-40
540
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT CAST( - 76 AS SIGNED ) AS col2 FROM tab2
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-1229
SELECT CAST ( - 76 AS INTEGER ) AS col2 FROM tab2
----
-76
-76
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT DISTINCT 84 + COUNT( * ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT 84 + COUNT ( * ) AS col2 FROM tab0
----
87

query I rowsort
SELECT ALL col1 + + 18 FROM tab2 AS cor0
----
69
85
95

query I rowsort
SELECT + 96 * - + 10 FROM tab1 cor0
----
-960
-960
-960

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

skipif mysql # not compatible
query I rowsort label-1234
SELECT - + MAX ( - 88 ) FROM tab0 AS cor0
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT + 64 DIV + 61 col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1236
SELECT + 64 / + 61 col0 FROM tab1
----
1
1
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1238
SELECT + - 25 DIV - - ( + col2 ) + col0 AS col2 FROM tab0 AS cor0
----
15
85
97

skipif mysql # not compatible
query I rowsort label-1238
SELECT + - 25 / - - ( + col2 ) + col0 AS col2 FROM tab0 AS cor0
----
15
85
97

query I rowsort
SELECT - col0 + + + 76 FROM tab1 AS cor0
----
-15
-9
25

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + col2 <= - col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN - col2 AND - col1
----

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 + - col0 * - col1 col1 FROM tab1 cor0
----
394
4246
683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col1 + - col2, + col1 + + col2 col1 FROM tab1
----
-34
64
100
110
2141
115

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 19 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 46 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + 14 FROM tab0
----
1134
14
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT DISTINCT CAST( + - col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

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

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab2 WHERE NOT - col2 * + 21 IS NULL
----
46
46
64
64
75
75

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 46 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT col2 AS col1, - col2 * 50 AS col2 FROM tab2
----
23
-1150
40
-2000
58
-2900

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT DISTINCT - 77 * - MIN( + - 50 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3850

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT - 77 * - MIN ( + - 50 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3850

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

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

query I rowsort
SELECT col1 * - - 34 AS col1 FROM tab2 AS cor0
----
1734
2278
2618

onlyif mysql # aggregate syntax: 
query II rowsort label-1262
SELECT ALL COUNT( * ) * COUNT( * ) AS col2, 65 FROM tab2 AS cor0
----
9
65

skipif mysql # not compatible
query II rowsort label-1262
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2, 65 FROM tab2 AS cor0
----
9
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT ALL + col0 DIV + col2 + - col0 FROM tab0 AS cor0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL + col0 / + col2 + - col0 FROM tab0 AS cor0
----
-15
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT + MAX( + + 59 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT + MAX ( + + 59 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 91 + - - 10 * - - col0 FROM tab2 WHERE + col0 IS NOT NULL
----
551
731
841

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

query I rowsort
SELECT ALL + 7 + - - col2 AS col0 FROM tab0 AS cor0
----
106
17
54

query I rowsort
SELECT col2 + + col0 + + 21 + col1 FROM tab0 AS cor0
----
139
164
218

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + 89 * + col1 * + col0 * 59 AND - col2
----

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

query I rowsort
SELECT DISTINCT + - 75 FROM tab0 AS cor0 WHERE - col1 + + + col2 = NULL
----

query II rowsort
SELECT 1 AS col0, 18 AS col2 FROM tab1 cor0
----
1
18
1
18
1
18

query I rowsort
SELECT ALL + col1 + - 39 - + col1 FROM tab0 AS cor0
----
-39
-39
-39

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

query I rowsort
SELECT ALL - 14 - 7 * - - col1 * - col0 FROM tab2 cor0
----
16408
34482
35161

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT ALL - - col1 DIV 88 + - 26 FROM tab2 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL - - col1 / 88 + - 26 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + AVG ( - col0 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + 77 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col0 ) - - - col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL - 38 + + COUNT( * ) AS col2 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - 38 + + COUNT ( * ) AS col2 FROM tab1
----
-35

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT - COUNT ( - 80 ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT ALL col0 * - + col2 AS col1, col0 + - col2 FROM tab0
----
-705
-32
-870
77
-9603
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT - SUM( 68 ) * + + 42 * - COUNT( * ) AS col2 FROM tab1
----
25704

skipif mysql # not compatible
query I rowsort label-1289
SELECT - SUM ( 68 ) * + + 42 * - COUNT ( * ) AS col2 FROM tab1
----
25704

onlyif mysql # DIV for integer division: 
query II rowsort label-1290
SELECT + col0 DIV col1 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
0
81
4
21
97
1

skipif mysql # not compatible
query II rowsort label-1290
SELECT + col0 / col1 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
0
81
4
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - COUNT( * ) * - - 8 AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - COUNT ( * ) * - - 8 AS col2 FROM tab0 AS cor0
----
-24

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

query I rowsort
SELECT - + 20 AS col1 FROM tab2 WHERE NOT - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 83 * + col2 FROM tab0
----
3901
8217
830

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT CAST( 15 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-1296
SELECT CAST ( 15 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL MAX( ALL - 23 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL MAX ( ALL - 23 ) FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + ( 41 ) * + - 45 FROM tab0 cor0
----
-1845

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE NOT + col1 - + + ( + + col1 ) + col0 - 98 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1300
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1300
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) + CAST ( NULL AS REAL ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT - - 16 AS col2 FROM tab1 cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT - MIN( ALL - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-1305
SELECT - MIN ( ALL - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
91

query I rowsort
SELECT col2 * + ( + col0 ) + - + col1 + col0 FROM tab1
----
4933
5095
6232

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ALL COUNT( * ) * - SUM( - - col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL COUNT ( * ) * - SUM ( - - col2 ) FROM tab1
----
-669

query I rowsort
SELECT 5 * - col2 * 70 + + - col0 AS col2 FROM tab1
----
-20735
-23891
-33651

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT - ( MAX( ALL 94 ) ) * + ( - - 55 ) AS col1 FROM tab1 WHERE - col1 BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT - ( MAX ( ALL 94 ) ) * + ( - - 55 ) AS col1 FROM tab1 WHERE - col1 BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL - - COUNT( * ) FROM tab2 WHERE - col1 - 13 * - col1 * - 93 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - - COUNT ( * ) FROM tab2 WHERE - col1 - 13 * - col1 * - 93 IS NOT NULL
----
3

query II rowsort
SELECT 2 AS col1, col1 FROM tab2 AS cor0
----
2
51
2
67
2
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 + col0 col1 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT col2 * 16 AS col2 FROM tab0 AS cor0
----
1584
160
752

query I rowsort
SELECT DISTINCT + col2 + + - col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT + 30 + ( - COUNT( col1 ) ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1315
SELECT + 30 + ( - COUNT ( col1 ) ) AS col1 FROM tab0
----
27

query I rowsort
SELECT DISTINCT + 37 - col2 AS col0 FROM tab1 AS cor0
----
-22
-31
-59

query I rowsort
SELECT + - col1 + + ( - - 78 ) AS col1 FROM tab1 AS cor0
----
31
64
73

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 IN ( - col0, + col1 )
----

query II rowsort
SELECT - col2 AS col1, col1 + + col2 * + col1 AS col0 FROM tab0
----
-10
231
-47
3888
-99
100

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - 88
----

query I rowsort
SELECT 89 * - - 23 FROM tab1
----
2047
2047
2047

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1323
SELECT + 84 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-1323
SELECT + 84 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
84
NULL
84
NULL
84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1324
SELECT ALL col2, CAST( - col2 AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1324
SELECT ALL col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

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

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

query I rowsort
SELECT + - 53 * + 70 AS col0 FROM tab0 AS cor0
----
-3710
-3710
-3710

query I rowsort
SELECT ALL + 50 / 30 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT 46 - col1 * - col1 FROM tab2
----
2647
4535
5975

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT + MAX( 96 ) - - ( - 21 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1329
SELECT + MAX ( 96 ) - - ( - 21 ) FROM tab1
----
75

query I rowsort
SELECT - 62 FROM tab0 WHERE col1 - col2 BETWEEN ( - col2 ) AND - 15 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + MAX( - 67 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-1331
SELECT + MAX ( - 67 ) FROM tab1
----
-67

query I rowsort
SELECT + col1 - + col1 AS col2 FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) * 4 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) * 4 FROM tab1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1335
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1335
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * col0 col2 FROM tab0
----
-1245
-7221
-8051

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

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

query I rowsort
SELECT DISTINCT + col1 * + 80 AS col1 FROM tab2 WHERE NOT NULL >= - 78 * 87
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL 95 * MAX( ( col2 ) * col1 ) FROM tab1
----
303620

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL 95 * MAX ( ( col2 ) * col1 ) FROM tab1
----
303620

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL 63 * COUNT( * ) - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL = + 2 + 68
----
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL 63 * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL = + 2 + 68
----
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) >= 21
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL = ( - 48 ) + + ( 67 + col1 ) * + col2
----

query I rowsort
SELECT 37 + 48 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ( ( MAX( DISTINCT col2 ) ) ) + MIN( ALL col0 + col2 ) * - 33 FROM tab1 AS cor0
----
-4656

skipif mysql # not compatible
query I rowsort label-1347
SELECT ( ( MAX ( DISTINCT col2 ) ) ) + MIN ( ALL col0 + col2 ) * - 33 FROM tab1 AS cor0
----
-4656

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 61 BETWEEN + 63 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT + 55 + COUNT( * ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + 55 + COUNT ( * ) FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL + 22 + col1 * col0 AS col1 FROM tab1 cor0
----
4299
447
736

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL COUNT( + 32 ) - - 53 AS col2 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL COUNT ( + 32 ) - - 53 AS col2 FROM tab0 AS cor0
----
56

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

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

query I rowsort
SELECT + 8 * 13 FROM tab0
----
104
104
104

query I rowsort
SELECT DISTINCT + 72 + col0 FROM tab2
----
118
136
147

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT ALL - col1 + 75 DIV col0 FROM tab1
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL - col1 + 75 / col0 FROM tab1
----
-13
-47
-5

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL 98 + - col0 FROM tab1 AS cor0
----
13
47
7

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

query I rowsort
SELECT ALL col2 / col0 + col2 AS col0 FROM tab0 AS cor0 WHERE 42 = - col0 / 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT - MIN( ALL - col0 ) - - ( + SUM( - col2 ) + + MIN( ALL - col2 ) ) col2 FROM tab0 AS cor0
----
-158

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1361
SELECT - MIN ( ALL - col0 ) - - ( + SUM ( - col2 ) + + MIN ( ALL - col2 ) ) col2 FROM tab0 AS cor0
----
-158

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

query I rowsort
SELECT DISTINCT + 50 + - col2 FROM tab0 cor0
----
-49
3
40

query I rowsort
SELECT ALL - col2 - + 54 AS col0 FROM tab2 AS cor0
----
-112
-77
-94

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

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

query I rowsort
SELECT col0 * col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - 71 - + 70 / col1 AS col1 FROM tab1 AS cor0 WHERE col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL - SUM( DISTINCT + 51 ) FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - SUM ( DISTINCT + 51 ) FROM tab1 AS cor0 WHERE - col0 BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + 97 * - 94 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1372
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 <= CAST( + col2 AS SIGNED ) OR + col2 + CAST( NULL AS SIGNED ) = NULL
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-1372
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 <= CAST ( + col2 AS INTEGER ) OR + col2 + CAST ( NULL AS INTEGER ) = NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT DISTINCT - MAX( - 92 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT - MAX ( - 92 ) FROM tab2
----
92

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( 16 * 95 ) IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + 17 * col2 FROM tab0
----
1683
170
799

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 BETWEEN col0 + - col2 AND ( + col1 * col0 )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL col2 * + CAST( - 21 AS SIGNED ) * 44 AS col2 FROM tab1
----
-54516
-62832
-88704

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL col2 * + CAST ( - 21 AS INTEGER ) * 44 AS col2 FROM tab1
----
-54516
-62832
-88704

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 55 ) > ( + 87 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + col2 BETWEEN + 6 AND - col2 * - 15 - col2
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + SUM( DISTINCT - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + SUM ( DISTINCT - col1 ) FROM tab1
----
-66

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

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

query I rowsort
SELECT - 31 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1391
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-1391
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab0
----
3
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT ALL col1 DIV - col2 + - col1 FROM tab0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL col1 / - col2 + - col1 FROM tab0
----
-1
-23
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT + - COUNT( * ) * + + 96 FROM tab1 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + - COUNT ( * ) * + + 96 FROM tab1 cor0
----
-288

query I rowsort
SELECT ALL ( + + 61 ) AS col1 FROM tab1 AS cor0
----
61
61
61

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

query I rowsort
SELECT + + 36 + - - col0 - - col2 FROM tab2 cor0
----
105
140
169

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT 82 DIV + - col2 + col0 DIV + col2 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1399
SELECT 82 / + - col2 + col0 / + col2 + + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT 60 + 94 FROM tab1 AS cor0
----
154

query I rowsort
SELECT - col2 + - col0 * - - col0 FROM tab0 AS cor0
----
-272
-7579
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL MAX( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL MAX ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - col0 * - + col2 + + 84 AS col0 FROM tab2 AS cor0
----
1142
2644
4434

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 9 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1406
SELECT - 11 + 23 DIV + CAST( - + col2 AS SIGNED ) AS col1 FROM tab0
----
-11
-11
-13

skipif mysql # not compatible
query I rowsort label-1406
SELECT - 11 + 23 / + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0
----
-11
-11
-13

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

query III rowsort
SELECT * FROM tab1 WHERE + 22 IN ( col1 + - col2 )
----

query I rowsort
SELECT col1 + - 12 FROM tab0
----
-11
69
9

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

query I rowsort
SELECT ALL - col0 * + ( + col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT DISTINCT + MIN( 68 ) DIV + 11 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + MIN ( 68 ) / + 11 AS col2 FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - 93 / - col1 + + col0 ) <> NULL
----

query I rowsort
SELECT ALL col0 + + + 31 - 87 + + 81 AS col2 FROM tab2
----
100
71
89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1415
SELECT 51 FROM tab0 WHERE CAST( - + col1 AS SIGNED ) + - CAST( col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1415
SELECT 51 FROM tab0 WHERE CAST ( - + col1 AS INTEGER ) + - CAST ( col2 AS REAL ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT + MIN( - ( + 2 ) ) FROM tab2 WHERE 55 + + col2 NOT IN ( col0 )
----
-2

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT + MIN ( - ( + 2 ) ) FROM tab2 WHERE 55 + + col2 NOT IN ( col0 )
----
-2

query I rowsort
SELECT DISTINCT 98 + ( col2 ) FROM tab2
----
121
138
156

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

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

query I rowsort
SELECT DISTINCT - ( col0 ) + - col1 FROM tab1 AS cor0 WHERE col1 - + col0 + - col2 = 32
----

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

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

query I rowsort
SELECT + col2 - - 4 FROM tab2 cor0
----
27
44
62

query I rowsort
SELECT + col2 - - 5 - + - col0 AS col2 FROM tab1 cor0
----
149
152
164

query I rowsort
SELECT - col0 - - + col1 FROM tab2
----
-8
13
5

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col0 FROM tab2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - 67 AS col0 FROM tab2 AS cor0
----
67

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1429
SELECT col0 DIV 39 * + 98 col2, col2 AS col1 FROM tab0 cor0
----
0
47
196
10
196
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1429
SELECT col0 / 39 * + 98 col2, col2 AS col1 FROM tab0 cor0
----
0
47
196
10
196
99

query I rowsort
SELECT ALL - + 22 * col2 AS col2 FROM tab0 AS cor0
----
-1034
-2178
-220

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

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - COUNT ( * ) / + ( + 34 ) FROM tab2 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT - 58 * + ( - MIN ( ALL + - col1 ) ) FROM tab0 AS cor0
----
-4698

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1434
SELECT ( CAST( + - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1434
SELECT ( CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT ALL + ( - ( - - SUM( - 45 ) ) ) AS col0 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL + ( - ( - - SUM ( - 45 ) ) ) AS col0 FROM tab0
----
135

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

query I rowsort
SELECT ( + + 35 ) FROM tab1
----
35
35
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT COUNT( ALL - 31 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT COUNT ( ALL - 31 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1440
SELECT DISTINCT + 64, + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-1440
SELECT DISTINCT + 64, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
64
NULL

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE 45 * - 49 BETWEEN + col0 + - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL <= col2 * - - col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1444
SELECT - + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT ( col0 ) DIV + + col0 + col2 + + ( + col0 ) FROM tab2
----
105
134
70

skipif mysql # not compatible
query I rowsort label-1445
SELECT ( col0 ) / + + col0 + col2 + + ( + col0 ) FROM tab2
----
105
134
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < ( NULL )
----

query I rowsort
SELECT 43 FROM tab0 AS cor0 WHERE NULL = - col2 + col0
----

query I rowsort
SELECT DISTINCT - + 82 + + col0 + - col2 AS col0 FROM tab2 cor0
----
-58
-59
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= ( 57 )
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= ( 57 )
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 / + 68 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 45 + - - col1 * 75 * - col2 * - 88 AS col0, col1 - - col1 col1 FROM tab2 AS cor0
----
20327955
154
25647555
134
7741755
102

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1455
SELECT DISTINCT 17 DIV - - 79 + - CAST( col1 AS SIGNED ) - + col1 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT 17 / - - 79 + - CAST ( col1 AS INTEGER ) - + col1 FROM tab1
----
-10
-28
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) <> ( NULL )
----

query I rowsort
SELECT ALL 94 * + + 12 AS col2 FROM tab0
----
1128
1128
1128

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

skipif mysql # not compatible
query I rowsort label-1458
SELECT + ( 85 ) * + - col0 - + col0 + col0 + col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 22 + - - col0 AS col2 FROM tab0
----
109
119
37

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col2 / + col1 AND NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT - COUNT( * ) * SUM( - col1 ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-1461
SELECT - COUNT ( * ) * SUM ( - col1 ) FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1463
SELECT * FROM tab2 cor0 WHERE NOT col2 <> - + CAST( NULL AS SIGNED ) * + - 12 + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1463
SELECT * FROM tab2 cor0 WHERE NOT col2 <> - + CAST ( NULL AS INTEGER ) * + - 12 + CAST ( - col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= col1 + + 85
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 4, col0, + col0, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT ALL + col2 DIV 81 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + col2 / 81 AS col2 FROM tab1 AS cor0
----
0
0
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT ALL - col0 DIV - - 89 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - col0 / - - 89 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1469
SELECT + + ( - CAST( + 47 AS SIGNED ) ) * MIN( DISTINCT - 52 ) + + 30 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
2434

skipif mysql # not compatible
query I rowsort label-1469
SELECT + + ( - CAST ( + 47 AS INTEGER ) ) * MIN ( DISTINCT - 52 ) + + 30 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2434

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1471
SELECT ALL * FROM tab1 WHERE col2 NOT IN ( - col1, + CAST( NULL AS SIGNED ) + - + 78 )
----

skipif mysql # not compatible
query III rowsort label-1471
SELECT ALL * FROM tab1 WHERE col2 NOT IN ( - col1, + CAST ( NULL AS INTEGER ) + - + 78 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT ALL 22 FROM tab0 WHERE NOT + CAST( col2 AS SIGNED ) < - col1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL 22 FROM tab0 WHERE NOT + CAST ( col2 AS INTEGER ) < - col1
----
22
22
22

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * - col0 < col2 + + + col1 * 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 22 * col2 AS col1 FROM tab0
----
-1034
-2178
-220

query I rowsort
SELECT ALL col0 * 32 FROM tab2
----
1472
2048
2400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1476
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - 98 * + col0 FROM tab2
----
NULL
-4508
NULL
-6272
NULL
-7350

skipif mysql # not compatible
query II rowsort label-1476
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - 98 * + col0 FROM tab2
----
NULL
-4508
NULL
-6272
NULL
-7350

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT ( ( + 2 / ( + + 85 ) ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT - col0 * 53 + - col1 + + + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-4630
-5142
-875

skipif mysql # not compatible
query I rowsort label-1478
SELECT - col0 * 53 + - col1 + + + col1 / + col2 AS col0 FROM tab0 AS cor0
----
-4630
-5142
-875

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT + col2 DIV 29 * + - col0 + - col1 DIV - - ( + - 10 ) AS col2 FROM tab2 AS cor0
----
-144
-57
5

skipif mysql # not compatible
query I rowsort label-1479
SELECT + col2 / 29 * + - col0 + - col1 / - - ( + - 10 ) AS col2 FROM tab2 AS cor0
----
-144
-57
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT + MIN( 55 ) + + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1480
SELECT + MIN ( 55 ) + + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
61

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

query I rowsort
SELECT + + col0 * - + col2 + + col1 AS col2 FROM tab0 AS cor0
----
-624
-849
-9602

query II rowsort
SELECT ALL - col0 AS col1, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL - 21 - + - col1 * - col2 FROM tab1
----
-1365
-316
-3217

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + 54 * - + COUNT( * ) AS col1 FROM tab0, tab1 AS cor0
----
-486

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 54 * - + COUNT ( * ) AS col1 FROM tab0, tab1 AS cor0
----
-486

query I rowsort
SELECT ALL - 83 AS col2 FROM tab0
----
-83
-83
-83

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 5 BETWEEN - - 83 AND 72
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > ( 4 + + col1 )
----

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

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

query I rowsort
SELECT DISTINCT - - col2 - 78 AS col0 FROM tab1 AS cor0
----
-10
-19
18

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

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

query II rowsort
SELECT - col0 AS col0, - col1 + - col0 AS col2 FROM tab1
----
-51
-65
-85
-90
-91
-138

query I rowsort
SELECT DISTINCT - + 58 * - - ( + - 61 ) AS col1 FROM tab0 AS cor0
----
3538

query I rowsort
SELECT - - 43 * - + 19 AS col0 FROM tab1 cor0
----
-817
-817
-817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col0 col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - MAX( - - col2 ) * - 57 FROM tab0 AS cor0
----
5643

skipif mysql # not compatible
query I rowsort label-1498
SELECT - MAX ( - - col2 ) * - 57 FROM tab0 AS cor0
----
5643

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

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

query I rowsort
SELECT + col2 * + 89 FROM tab0
----
4183
8811
890

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN + col1 AND + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT + 79 * - 90 FROM tab0
----
-7110

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

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

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL CAST ( SUM ( - + 82 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-246

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

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

query I rowsort
SELECT DISTINCT + + 26 + + 15 * 6 * + 23 AS col1 FROM tab1 AS cor0
----
2096

query I rowsort
SELECT + ( + 77 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
77
77
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL COUNT( - 42 ) FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL COUNT ( - 42 ) FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL ( - + 76 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT DISTINCT + 61 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1513
SELECT DISTINCT + 82 * + ( COUNT( * ) ) col2, - MAX( - - 62 ) FROM tab2
----
246
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1513
SELECT DISTINCT + 82 * + ( COUNT ( * ) ) col2, - MAX ( - - 62 ) FROM tab2
----
246
-62

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

skipif mysql # not compatible
query I rowsort label-1514
SELECT ( + - col1 ) / - col1 AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT DISTINCT 27 + - - MIN( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT 27 + - - MIN ( ALL - + col2 ) AS col1 FROM tab0 AS cor0
----
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 * + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 76 FROM tab0 AS cor0
----
-11
-21
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT CAST( 3 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1518
SELECT CAST ( 3 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT ALL + 14 col1 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - + col1 - col0 * + col1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1521
SELECT + CAST( NULL AS SIGNED ), + 81 AS col1 FROM tab0 AS cor0
----
NULL
81
NULL
81
NULL
81

skipif mysql # not compatible
query II rowsort label-1521
SELECT + CAST ( NULL AS INTEGER ), + 81 AS col1 FROM tab0 AS cor0
----
NULL
81
NULL
81
NULL
81

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

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

skipif mysql # not compatible
query III rowsort label-1523
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT col0 * - col1 * + col0 * + + 42 - - col0 AS col1 FROM tab1
----
-1517165
-1529337
-16346603

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT - ( + SUM( + col0 ) ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - ( + SUM ( + col0 ) ) AS col2 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND + col0 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND + col0 + + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT COUNT( + + col0 ) + + 49 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-1527
SELECT COUNT ( + + col0 ) + + 49 FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT MAX( ALL + + 44 ) + + 87 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-1528
SELECT MAX ( ALL + + 44 ) + + 87 FROM tab2
----
131

query I rowsort
SELECT DISTINCT col0 * + - col0 + - col0 FROM tab2
----
-2162
-4160
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1530
SELECT SUM( DISTINCT 98 ) + - CAST( NULL AS SIGNED ) - - - COUNT( * ) + COUNT( * ) / + COUNT( * ) AS col2, - COUNT( * ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1530
SELECT SUM ( DISTINCT 98 ) + - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + COUNT ( * ) / + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0
----
NULL
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL - COUNT( * ) * COUNT( * ) + + 62 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - COUNT ( * ) * COUNT ( * ) + + 62 FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT ALL + COUNT( * ) + + MAX( + col1 ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL + COUNT ( * ) + + MAX ( + col1 ) AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL - - COUNT( * ) FROM tab1 WHERE + - 25 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - - COUNT ( * ) FROM tab1 WHERE + - 25 IS NOT NULL
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT DISTINCT AVG ( + 65 ) * - + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT AVG ( + 65 ) * - + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1537
SELECT - CAST( NULL AS DECIMAL ) * + 91 + col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT - CAST ( NULL AS REAL ) * + 91 + col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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 # DIV for integer division: 
query II rowsort label-1542
SELECT - - col2 DIV + 79 AS col2, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-1542
SELECT - - col2 / + 79 AS col2, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND + 83 * col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT MAX( - + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1545
SELECT MAX ( - + col2 ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT + 40 + - 21 - - col0 AS col0 FROM tab1
----
104
110
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 64 col0 FROM tab0
----
111
163
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 < + 86 * + col1 - + col1 - - - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL - - col1 + - 68 FROM tab1 AS cor0
----
-21
-54
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT - ( + + 92 ) + ( + COUNT( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-83

skipif mysql # not compatible
query I rowsort label-1551
SELECT - ( + + 92 ) + ( + COUNT ( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-83

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

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE 56 IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT col1 DIV + - col1 + + col0 + - 72 AS col2 FROM tab2 AS cor0
----
-27
-9
2

skipif mysql # not compatible
query I rowsort label-1554
SELECT col1 / + - col1 + + col0 + - 72 AS col2 FROM tab2 AS cor0
----
-27
-9
2

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE - col2 + - col2 <> col0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col2 * 88 col2 FROM tab0
----
4217
8713
901

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL ( MAX( DISTINCT - col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL ( MAX ( DISTINCT - col2 ) ) FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1558
SELECT ALL 32, col2 + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
32
NULL
32
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL 32, col2 + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
32
NULL
32
NULL
32
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT col1 DIV ( col1 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1559
SELECT col1 / ( col1 ) AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT col1 * + col0 * + ( col0 ) + - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col1 * + col0 * + ( col0 ) + - col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT - MIN( ALL - 46 ) AS col0 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - MIN ( ALL - 46 ) AS col0 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1562
SELECT 60 AS col2, - col0 * + CAST( NULL AS DECIMAL ) * + col0 + + 93 / - col0 FROM tab1 AS cor0
----
60
NULL
60
NULL
60
NULL

skipif mysql # not compatible
query II rowsort label-1562
SELECT 60 AS col2, - col0 * + CAST ( NULL AS REAL ) * + col0 + + 93 / - col0 FROM tab1 AS cor0
----
60
NULL
60
NULL
60
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1563
SELECT + + 89 AS col2, - ( COUNT( * ) ) FROM tab2 cor0
----
89
-3

skipif mysql # not compatible
query II rowsort label-1563
SELECT + + 89 AS col2, - ( COUNT ( * ) ) FROM tab2 cor0
----
89
-3

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

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

query II rowsort
SELECT 34, - 67 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
34
-157182
34
-330176
34
-336675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 21 col1, - ( - col2 ) - + 56 AS col1 FROM tab0 cor0
----
-21
-46
-21
-9
-21
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL + MAX( DISTINCT + - 88 ) * 50 FROM tab2
----
-4400

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + MAX ( DISTINCT + - 88 ) * 50 FROM tab2
----
-4400

onlyif mysql # DIV for integer division: 
query I rowsort label-1568
SELECT DISTINCT col2 DIV + - col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT col2 / + - col1 AS col2 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT MAX( DISTINCT - col0 ) col0 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1569
SELECT MAX ( DISTINCT - col0 ) col0 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - 88 col2 FROM tab0 WHERE NULL IS NULL
----
-4136
-8712
-880

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

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT + COUNT ( col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1573
SELECT ALL - CAST( - - 41 AS SIGNED ) + 2 DIV + - 16 + + col0 AS col2 FROM tab0 AS cor0
----
-26
46
56

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - CAST ( - - 41 AS INTEGER ) + 2 / + - 16 + + col0 AS col2 FROM tab0 AS cor0
----
-26
46
56

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

query I rowsort
SELECT ALL - 34 + - col1 FROM tab1 AS cor0
----
-39
-48
-81

query I rowsort
SELECT ALL - ( + col2 ) / + ( + - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 48 / - - 52 - + + 59 IS NOT NULL )
----

query I rowsort
SELECT ( - - col2 ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab2
----
-58

query I rowsort
SELECT + + 29 * 59 AS col0 FROM tab0 AS cor0
----
1711
1711
1711

query I rowsort
SELECT - + 92 * + 69 - + col2 FROM tab2 AS cor0
----
-6371
-6388
-6406

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

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

query I rowsort
SELECT ALL + 1 + - col1 AS col2 FROM tab0 cor0
----
-20
-80
0

query I rowsort
SELECT ALL + - col1 - + - col0 AS col1 FROM tab2 cor0
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - - 36 IN ( - col2, 85, + + 33 * + 53, col1 ) AND NOT - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT DISTINCT + COUNT( * ) * 29 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + COUNT ( * ) * 29 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT - 12 DIV COUNT( * ) + + 77 AS col2 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT - 12 / COUNT ( * ) + + 77 AS col2 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT + 55 * COUNT( * ) * - 52 FROM tab2
----
-8580

skipif mysql # not compatible
query I rowsort label-1587
SELECT + 55 * COUNT ( * ) * - 52 FROM tab2
----
-8580

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

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

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

skipif mysql # not compatible
query I rowsort label-1589
SELECT 0 / + - 74 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + col1 * col2 AS col2, col1 AS col1 FROM tab2
----
1173
51
3080
77
3886
67

query II rowsort
SELECT DISTINCT col2 * - 3 AS col2, - 10 AS col0 FROM tab1
----
-177
-10
-204
-10
-288
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND + col0
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / + - 33 < + - 24 + col1
----
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 NOT BETWEEN - 31 AND - col1 * col1 - + col2
----

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab0 cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - MAX( col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1597
SELECT - MAX ( col2 ) FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT col2 * + - col2 + + 45 AS col2 FROM tab0 AS cor0
----
-2164
-55
-9756

query I rowsort
SELECT + - col2 + - col2 FROM tab1 AS cor0 WHERE NOT - 45 * - 86 + - col1 BETWEEN NULL AND - - col0
----
-118
-136
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1600
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + - CAST( NULL AS DECIMAL ) AS DECIMAL ) = + col2
----

skipif mysql # not compatible
query III rowsort label-1600
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + - CAST ( NULL AS REAL ) AS REAL ) = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1601
SELECT 88 * + col1 + + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
1827
7047
87

skipif mysql # not compatible
query I rowsort label-1601
SELECT 88 * + col1 + + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
1827
7047
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 1 col2 FROM tab0
----
16
88
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 * col2 col1 FROM tab1
----
3894
4488
6336

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT ALL 91, COUNT( * ) AS col0 FROM tab0
----
91
3

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL 91, COUNT ( * ) AS col0 FROM tab0
----
91
3

query I rowsort
SELECT ALL ( col1 ) FROM tab1 WHERE + 66 IS NOT NULL
----
14
47
5

query I rowsort
SELECT + 44 FROM tab2 AS cor0 WHERE 44 + col1 + col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 - + col2 >= col2
----
46
51
23

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 11 * - 36 + - + col1 * 56 / + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 * + + col0 + + - 56 col0 FROM tab0 AS cor0
----
1174
7078
7898

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1610
SELECT - COUNT( * ) AS col1, ( + 17 ) DIV - MIN( ALL - 96 ) * + 74 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-1610
SELECT - COUNT ( * ) AS col1, ( + 17 ) / - MIN ( ALL - 96 ) * + 74 FROM tab0 AS cor0
----
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1611
SELECT ALL CAST( MAX( + - 49 ) AS SIGNED ) + COUNT( * ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL CAST ( MAX ( + - 49 ) AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT 98 FROM tab2 AS cor0 WHERE - 70 <> - col0
----
98
98
98

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1614
SELECT * FROM tab1 AS cor0 WHERE 64 + + CAST( NULL AS DECIMAL ) BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1614
SELECT * FROM tab1 AS cor0 WHERE 64 + + CAST ( NULL AS REAL ) BETWEEN col0 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT + + CAST ( + + 46 AS INTEGER ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-15

query II rowsort
SELECT - 75 AS col2, + 52 FROM tab1
----
-75
52
-75
52
-75
52

query II rowsort
SELECT - col2 AS col1, + 34 - + col1 FROM tab2
----
-23
-17
-40
-43
-58
-33

query II rowsort
SELECT ALL 54 AS col1, 82 FROM tab1
----
54
82
54
82
54
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 / + col1 + + col0 + + col1 / + - col1 * col1 * + 8 IS NOT NULL
----

query II rowsort
SELECT col1, - col1 * - 3 AS col1 FROM tab2 AS cor0
----
51
153
67
201
77
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT DISTINCT - 80 * - 3 + + - 27 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT - 80 * - 3 + + - 27 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 cor0 WHERE - 62 / - - 15 - col1 + - ( 26 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT - - 6 * - + 81 AS col0 FROM tab2 AS cor0
----
-486
-486
-486

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL COUNT( * ) + + 60 AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL COUNT ( * ) + + 60 AS col2 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT - MAX( DISTINCT + 88 ) AS col0 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-1627
SELECT - MAX ( DISTINCT + 88 ) AS col0 FROM tab0
----
-88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + 16 IS NOT NULL
----

query I rowsort
SELECT 45 + col1 AS col2 FROM tab1
----
50
59
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + 29 ) + - col1 * + col0 col1 FROM tab2
----
-2317
-4899
-4996

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT 91 DIV col0 * + 41 FROM tab0
----
0
246
41

skipif mysql # not compatible
query I rowsort label-1633
SELECT 91 / col0 * + 41 FROM tab0
----
0
246
41

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 64 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT 96 * + 35 AS col1 FROM tab2 cor0
----
3360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL + + MAX( - ( + + 83 ) ) * 61 FROM tab1 AS cor0
----
-5063

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL + + MAX ( - ( + + 83 ) ) * 61 FROM tab1 AS cor0
----
-5063

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1641
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE - 53 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT + MAX( + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1642
SELECT + MAX ( + col1 ) AS col1 FROM tab2
----
77

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

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

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT - + col1 BETWEEN col1 AND - + col2
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1645
SELECT ALL - 52 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2, + col0 * CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1645
SELECT ALL - 52 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2, + col0 * CAST ( col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1646
SELECT CAST( NULL AS SIGNED ) * - - CAST( + + 78 AS SIGNED ), - col2 AS col0 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-1646
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( + + 78 AS INTEGER ), - col2 AS col0 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1647
SELECT - CAST( - COUNT( ALL - col0 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1647
SELECT - CAST ( - COUNT ( ALL - col0 ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT 35 * - COUNT( + + 78 ) AS col2 FROM tab1, tab1 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT 35 * - COUNT ( + + 78 ) AS col2 FROM tab1, tab1 AS cor0
----
-315

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE 62 / + col0 + - 22 + - col2 * col2 <= NULL
----

query I rowsort
SELECT ALL col0 + - 38 FROM tab2 AS cor0
----
26
37
8

query I rowsort
SELECT + 82 + 86 FROM tab1 AS cor0
----
168
168
168

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

query I rowsort
SELECT - + 73 * - + 28 * 95 + + 30 * + - col1 AS col1 FROM tab0 AS cor0
----
191750
193550
194150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT DISTINCT + - MAX( + ( + + col1 ) ) * 38 + CAST( - 66 AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2989

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + - MAX ( + ( + + col1 ) ) * 38 + CAST ( - 66 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2989

query I rowsort
SELECT + 94 + + col2 AS col2 FROM tab1 cor0
----
153
162
190

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT 7 + - + 12 DIV + - col1 + ( col2 ) FROM tab1
----
103
68
75

skipif mysql # not compatible
query I rowsort label-1659
SELECT 7 + - + 12 / + - col1 + ( col2 ) FROM tab1
----
103
68
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT - ( SUM( + - col2 ) ) * - - COUNT( * ) - - - COUNT( * ) - + 12 AS col1 FROM tab1
----
654

skipif mysql # not compatible
query I rowsort label-1660
SELECT - ( SUM ( + - col2 ) ) * - - COUNT ( * ) - - - COUNT ( * ) - + 12 AS col1 FROM tab1
----
654

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

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

query I rowsort
SELECT DISTINCT + 39 + col2 FROM tab0 AS cor0
----
138
49
86

query I rowsort
SELECT ALL - - col0 + - + col1 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT + 12 * - CAST( col1 AS SIGNED ) * + col2 FROM tab0
----
-1188
-2520
-45684

skipif mysql # not compatible
query I rowsort label-1665
SELECT + 12 * - CAST ( col1 AS INTEGER ) * + col2 FROM tab0
----
-1188
-2520
-45684

query I rowsort
SELECT DISTINCT + 38 * + + col1 FROM tab0 cor0
----
3078
38
798

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1667
SELECT DISTINCT - 27, - CAST( NULL AS DECIMAL ) * - col2 * + col2 + - + col0 AS col1 FROM tab2 AS cor0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-1667
SELECT DISTINCT - 27, - CAST ( NULL AS REAL ) * - col2 * + col2 + - + col0 AS col1 FROM tab2 AS cor0
----
-27
NULL

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

query I rowsort
SELECT - 16 AS col0 FROM tab0 cor0
----
-16
-16
-16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1671
SELECT - + 32, col1 - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
-32
NULL
-32
NULL
-32
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1671
SELECT - + 32, col1 - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
-32
NULL
-32
NULL
-32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT + - MIN( DISTINCT + 63 ) col0 FROM tab1 cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1672
SELECT + - MIN ( DISTINCT + 63 ) col0 FROM tab1 cor0
----
-63

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1675
SELECT 14 / - ( + col0 ) * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT 14 / - ( + col0 ) * + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT ALL + col1 * - col1 DIV + col1 AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + col1 * - col1 / + col1 AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col2 * col2 * - 67 FROM tab1
----
-233227
-309808
-617472

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT DISTINCT + 47 DIV - - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT + 47 / - - col1 FROM tab2
----
0

query I rowsort
SELECT ( - col2 ) * + col2 AS col1 FROM tab0
----
-100
-2209
-9801

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

query I rowsort
SELECT ALL col2 + + + 88 AS col1 FROM tab1 AS cor0
----
147
156
184

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * - col1 + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL + MIN( ALL - + 92 ) AS col2 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + MIN ( ALL - + 92 ) AS col2 FROM tab0
----
-92

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

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

query II rowsort
SELECT - 63 * col1 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
-1323
-87
-5103
-15
-63
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL 58 * + COUNT( * ) + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL 58 * + COUNT ( * ) + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT DISTINCT COUNT( * ) * + 31 * - + 53 FROM tab0 AS cor0
----
-4929

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT COUNT ( * ) * + 31 * - + 53 FROM tab0 AS cor0
----
-4929

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT DISTINCT - col0 * 51 DIV + col0 AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT - col0 * 51 / + col0 AS col2 FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col2 - - + col2 col0 FROM tab2
----
-1150
-3040
-3828

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT CAST( col1 AS SIGNED ) - ( - 22 ) AS col1 FROM tab1
----
27
36
69

skipif mysql # not compatible
query I rowsort label-1692
SELECT CAST ( col1 AS INTEGER ) - ( - 22 ) AS col1 FROM tab1
----
27
36
69

query I rowsort
SELECT col2 * + + col2 + - + 2 FROM tab0
----
2207
9799
98

query I rowsort
SELECT ALL 18 + + - 67 + - col0 * - - col1 * col0 * - col0 FROM tab2
----
20185039
28265576
4964087

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT ALL 84 DIV - 9 FROM tab1
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL 84 / - 9 FROM tab1
----
-9
-9
-9

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

query I rowsort
SELECT 84 * + col1 + col0 AS col0 FROM tab1
----
1227
4039
505

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT DISTINCT - + col0 DIV + col2 FROM tab0 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT - + col0 / + col2 FROM tab0 AS cor0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT - 78 + - COUNT( * ) FROM tab0 AS cor0 WHERE 5 IS NULL
----
-78

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - 78 + - COUNT ( * ) FROM tab0 AS cor0 WHERE 5 IS NULL
----
-78

query I rowsort
SELECT DISTINCT + - col2 * - - 16 AS col2 FROM tab0 AS cor0
----
-1584
-160
-752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * + + col1 col1 FROM tab2 AS cor0
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * - - 70 col1 FROM tab0 AS cor0
----
-4480
-4480
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL + COUNT( * ) - + + 57 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 + + - ( - col2 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + COUNT ( * ) - + + 57 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 + + - ( - col2 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - 91 * MIN( col2 ) FROM tab2 AS cor0 WHERE NOT col2 * + col1 = col1
----
-2093

skipif mysql # not compatible
query I rowsort label-1705
SELECT - 91 * MIN ( col2 ) FROM tab2 AS cor0 WHERE NOT col2 * + col1 = col1
----
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT SUM( DISTINCT + + ( col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1706
SELECT SUM ( DISTINCT + + ( col1 ) ) FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + - 46 + + col0 BETWEEN + col2 AND - 91
----

query II rowsort
SELECT 95 AS col1, - ( + col0 ) - - 26 AS col2 FROM tab0
----
95
-61
95
-71
95
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 * + - 61 col2 FROM tab0
----
-488

query I rowsort
SELECT - 33 * - col0 + col2 FROM tab0
----
2881
3300
542

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT col2 + + + col2 DIV - col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1711
SELECT col2 + + + col2 / - col0 FROM tab2
----
23
40
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT + COUNT( * ) * - ( + + 74 ) + + + 31 AS col2 FROM tab2 AS cor0
----
-191

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT + COUNT ( * ) * - ( + + 74 ) + + + 31 AS col2 FROM tab2 AS cor0
----
-191

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT ALL - - 86 * COUNT( * ) col0 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1715
SELECT ALL - - 86 * COUNT ( * ) col0 FROM tab0 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL SUM( - 68 ) + 73 + + - 34 col0 FROM tab1
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1716
SELECT ALL SUM ( - 68 ) + 73 + + - 34 col0 FROM tab1
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1717
SELECT DISTINCT * FROM tab0 WHERE + col0 * + CAST( col1 AS SIGNED ) + + col1 <> + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1717
SELECT DISTINCT * FROM tab0 WHERE + col0 * + CAST ( col1 AS INTEGER ) + + col1 <> + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL - col0 * + col1 * 7 + - + 82 + ( - col2 ) FROM tab2 AS cor0
----
-16527
-34618
-35315

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT - - 36 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - - 36 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
39

query II rowsort
SELECT DISTINCT col0 - + col1 AS col1, - col0 * + col2 FROM tab1 AS cor0
----
37
-4896
44
-6188
80
-5015

query I rowsort
SELECT ALL - 94 - + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-145
-179
-185

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

query I rowsort
SELECT 92 + col1 + + col0 + - col0 + + - 44 * - col2 * 14 * + 41 FROM tab2 AS cor0
----
1010409
1465007
581031

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

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

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

query I rowsort
SELECT DISTINCT + 95 + col1 FROM tab0 WHERE NOT col1 IS NULL
----
116
176
96

query III rowsort
SELECT * FROM tab1 WHERE - 17 * + col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT MIN( 81 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT MIN ( 81 ) FROM tab2
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * + + col2 + + ( 24 ) + + col0 * - - col0 + - - col1 * 60 * col0 BETWEEN - 55 AND ( col1 )
----

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

query II rowsort
SELECT DISTINCT col2, - col0 AS col0 FROM tab1
----
59
-85
68
-91
96
-51

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

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

query II rowsort
SELECT - + col1, + col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT + CAST( ( - + ( - + MAX( DISTINCT col2 ) ) ) AS SIGNED ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1736
SELECT + CAST ( ( - + ( - + MAX ( DISTINCT col2 ) ) ) AS INTEGER ) FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - 43 * - - ( ( - SUM( ALL - - col0 ) ) ) FROM tab0 AS cor0
----
8557

skipif mysql # not compatible
query I rowsort label-1737
SELECT - 43 * - - ( ( - SUM ( ALL - - col0 ) ) ) FROM tab0 AS cor0
----
8557

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT - - 25 DIV + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1738
SELECT - - 25 / + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT - MAX( DISTINCT col2 ) DIV MIN( + 24 ) FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1740
SELECT - MAX ( DISTINCT col2 ) / MIN ( + 24 ) FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT DISTINCT - SUM( ALL col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab2 cor0
----
-121

query I rowsort
SELECT ALL + col0 * - 93 * - + 96 FROM tab1
----
455328
758880
812448

onlyif mysql # DIV for integer division: 
query II rowsort label-1743
SELECT col0 DIV - + 40 AS col2, 7 FROM tab1
----
-1
7
-2
7
-2
7

skipif mysql # not compatible
query II rowsort label-1743
SELECT col0 / - + 40 AS col2, 7 FROM tab1
----
-1
7
-2
7
-2
7

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

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

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

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

query I rowsort
SELECT ALL 96 * + - 39 + 7 FROM tab0 AS cor0
----
-3737
-3737
-3737

query I rowsort
SELECT DISTINCT - ( - + col0 ) + - - ( + ( - - col0 ) ) AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT - col1 + - col1 * 21 AS col2 FROM tab1 AS cor0
----
-1034
-110
-308

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

query I rowsort
SELECT - ( - - col2 ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT - - 7 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
16

skipif mysql # not compatible
query I rowsort label-1751
SELECT - - 7 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
16

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 50 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / + col1 >= - + 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 - - 99 FROM tab2 AS cor0
----
150
166
176

query I rowsort
SELECT DISTINCT - col2 + + 5 AS col0 FROM tab0 cor0
----
-42
-5
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT DISTINCT + - CAST( - SUM( 24 ) AS SIGNED ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT + - CAST ( - SUM ( 24 ) AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT ( + col1 ) + - + 19 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
32
48
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT + col1 + - + 50 + - col2 DIV + col0 - + col2 AS col2 FROM tab0
----
-149
-19
-39

skipif mysql # not compatible
query I rowsort label-1761
SELECT + col1 + - + 50 + - col2 / + col0 - + col2 AS col2 FROM tab0
----
-149
-19
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1762
SELECT - col0 + + col0 DIV - 99 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1762
SELECT - col0 + + col0 / - 99 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ( - - COUNT( + - col1 ) ) + - COUNT( DISTINCT + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1763
SELECT ( - - COUNT ( + - col1 ) ) + - COUNT ( DISTINCT + col2 ) FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT DISTINCT col0 * col0 DIV + 76 AS col2 FROM tab0
----
123
2
99

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT col0 * col0 / + 76 AS col2 FROM tab0
----
123
2
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT + 52 AS col1, 15 * + COUNT( * ) FROM tab0
----
52
45

skipif mysql # not compatible
query II rowsort label-1766
SELECT + 52 AS col1, 15 * + COUNT ( * ) FROM tab0
----
52
45

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - col2 / - - 6 + - - 52 * + col1 + 30 * + 23 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL + COUNT( * ) + - - 25 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
28

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + COUNT ( * ) + - - 25 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1769
SELECT DISTINCT col2 * + CAST( + + col0 AS SIGNED ) FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT col2 * + CAST ( + + col0 AS INTEGER ) FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT DISTINCT - 36 DIV + col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - 36 / + col2 FROM tab2
----
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT ALL + - col0 * - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + - col0 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-2601
-7225
-8281

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT - ( COUNT( DISTINCT - 25 ) ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - ( COUNT ( DISTINCT - 25 ) ) FROM tab0 cor0
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT ALL - 22 DIV col1 FROM tab0 cor0
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL - 22 / col1 FROM tab0 cor0
----
-1
-22
0

query I rowsort
SELECT - col1 / - 7 + + ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT DISTINCT + - ( - col1 ) * - col2 + 61 FROM tab1 AS cor0 WHERE NOT - col0 / - - 68 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT + SUM( ALL + 1 ) + - 34 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1782
SELECT + SUM ( ALL + 1 ) + - 34 FROM tab2 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 col0, + ( + - col0 ) FROM tab2 WHERE NOT col0 IS NULL
----
52
-46
52
-64
52
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1784
SELECT ALL CAST( - MIN( DISTINCT - col2 ) AS SIGNED ) AS col1, - COUNT( * ) col1 FROM tab1
----
96
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1784
SELECT ALL CAST ( - MIN ( DISTINCT - col2 ) AS INTEGER ) AS col1, - COUNT ( * ) col1 FROM tab1
----
96
-3

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

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN 99 + - col1 AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1787
SELECT ALL - COUNT( * ) + + + 43 DIV + 40 col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1787
SELECT ALL - COUNT ( * ) + + + 43 / + 40 col0 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < 49
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 > + col1 + - 19
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT + MAX( - 45 ) * MAX( ALL + CAST( col1 AS SIGNED ) ) AS col0 FROM tab2
----
-3465

skipif mysql # not compatible
query I rowsort label-1793
SELECT + MAX ( - 45 ) * MAX ( ALL + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2
----
-3465

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

query I rowsort
SELECT - col0 * + ( + col1 ) AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT ALL + SUM( 3 ) * 0 FROM tab1 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL + SUM ( 3 ) * 0 FROM tab1 WHERE NULL <> ( NULL )
----
NULL

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

query I rowsort
SELECT - 69 * - col0 + col2 FROM tab2
----
3197
4456
5233

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT DISTINCT - 67 * + COUNT( * ) AS col1 FROM tab1 WHERE ( - ( col1 ) + col0 ) BETWEEN ( + col0 + 38 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT - 67 * + COUNT ( * ) AS col1 FROM tab1 WHERE ( - ( col1 ) + col0 ) BETWEEN ( + col0 + 38 ) AND NULL
----
0

query I rowsort
SELECT + 92 * col0 AS col2 FROM tab0
----
1380
8004
8924

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

query I rowsort
SELECT ALL + col2 * - ( - 18 ) FROM tab0
----
1782
180
846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT DISTINCT col0 + + col0 / col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT col0 + + col0 / col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT COUNT( * ) * 52 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-1804
SELECT COUNT ( * ) * 52 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col0 FROM tab0
----
1
441
6561

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

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

query I rowsort
SELECT + 94 FROM tab1 WHERE ( - ( - 7 ) ) BETWEEN col0 + - col1 AND - col1
----

query I rowsort
SELECT DISTINCT - 55 / 80 FROM tab1 WHERE NOT col2 < ( NULL )
----

query I rowsort
SELECT + col1 * + col1 AS col2 FROM tab0 WHERE 91 * col0 <> col2 + col0
----
1
441
6561

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT ALL 47 DIV col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL 47 / col0 FROM tab2
----
0
0
1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT DISTINCT MAX( ALL col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT MAX ( ALL col1 ) FROM tab0 cor0
----
81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1818
SELECT ALL + 46 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2162
4554
460

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + 46 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2162
4554
460

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 94 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( 32 * ( - 37 ) + col2 ) AND col2
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 37 ) * 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT - 36 * 2 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
-63

skipif mysql # not compatible
query I rowsort label-1823
SELECT - 36 * 2 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2
----
-63

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 54 AND col2 + 81
----

query I rowsort
SELECT + 11 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT COUNT( * ) * 65 AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1827
SELECT COUNT ( * ) * 65 AS col2 FROM tab2 AS cor0
----
195

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT DISTINCT + CAST( 52 AS SIGNED ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT + CAST ( 52 AS INTEGER ) FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT SUM( + 30 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT SUM ( + 30 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----
NULL

query I rowsort
SELECT + 79 * - col0 AS col0 FROM tab1 AS cor0
----
-4029
-6715
-7189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1832
SELECT DISTINCT - + COUNT( * ) + CAST( + 66 AS SIGNED ) col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1832
SELECT DISTINCT - + COUNT ( * ) + CAST ( + 66 AS INTEGER ) col0 FROM tab0 AS cor0
----
63

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * - col0 col2 FROM tab0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - col1 <= col0 + + col0
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL 91 * + COUNT( * ) AS col0 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL 91 * + COUNT ( * ) AS col0 FROM tab0
----
273

query I rowsort
SELECT + 89 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL + ( 43 ) FROM tab2
----
43
43
43

query I rowsort
SELECT - 11 * + col1 AS col0 FROM tab1
----
-154
-517
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT col0 * ( - col1 ) AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) BETWEEN - 77 AND col1
----

skipif mysql # not compatible
query I rowsort label-1842
SELECT col0 * ( - col1 ) AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - 77 AND col1
----

query I rowsort
SELECT DISTINCT col0 + col2 + col0 * col0 FROM tab0
----
287
7666
9605

query I rowsort
SELECT - col2 + - 56 AS col0 FROM tab1
----
-115
-124
-152

query III rowsort
SELECT * FROM tab0 WHERE 46 + 99 / 81 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + + col2 + col2 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT DISTINCT - 32 + + - col1 FROM tab0 cor0
----
-113
-33
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - COUNT( * ) col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

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

query I rowsort
SELECT ALL 9 AS col0 FROM tab0 AS cor0 WHERE NULL <= - 83
----

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

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

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

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

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

query I rowsort
SELECT + + 12 - + - 79 AS col0 FROM tab2 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1854
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 90 * ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1854
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 90 * ( + CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 AS col2, 19 AS col0 FROM tab1 AS cor0
----
51
19
85
19
91
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT COUNT( * ) FROM tab2 WHERE NOT - - col1 + - col1 <= 94
----
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT COUNT ( * ) FROM tab2 WHERE NOT - - col1 + - col1 <= 94
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 > ( NULL )
----

query I rowsort
SELECT + col1 * + + 56 FROM tab1
----
2632
280
784

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

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

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

query I rowsort
SELECT 42 - 84 FROM tab0 WHERE NOT ( + ( + 9 ) * - col0 ) BETWEEN - col1 AND ( ( - 80 ) )
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1864
SELECT DISTINCT * FROM tab2 WHERE - - 77 <> ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1864
SELECT DISTINCT * FROM tab2 WHERE - - 77 <> ( CAST ( NULL AS INTEGER ) )
----

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 11 - - + col0 + + col2 / + ( - col1 ) > + 78
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT - col0 DIV + 70 + - + col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-1868
SELECT - col0 / + 70 + - + col1 FROM tab2 AS cor0
----
-51
-68
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT + - 35 * MAX( DISTINCT - 10 ) FROM tab0 AS cor0
----
350

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + - 35 * MAX ( DISTINCT - 10 ) FROM tab0 AS cor0
----
350

query I rowsort
SELECT DISTINCT + + 41 FROM tab2 AS cor0 WHERE NOT col1 + 25 + + col0 IS NULL
----
41

query I rowsort
SELECT - - col2 + + - 1 * - col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT - + ( + - col0 ) + - 53 DIV + - 77 * - col2 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1873
SELECT - + ( + - col0 ) + - 53 / + - 77 * - col2 AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1874
SELECT col0 AS col2 FROM tab0 WHERE NULL IN ( CAST( - col0 AS SIGNED ) * + - 87 )
----

skipif mysql # not compatible
query I rowsort label-1874
SELECT col0 AS col2 FROM tab0 WHERE NULL IN ( CAST ( - col0 AS INTEGER ) * + - 87 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT ALL 1 DIV - col2 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL 1 / - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ( + + col1 ) * - col0 * col0 AS col1 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL + 79 * - col2 FROM tab0
----
-3713
-7821
-790

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT DISTINCT col1 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT col1 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL 74 + + col0 FROM tab1
----
125
159
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1881
SELECT ( - + COUNT( * ) ) DIV - ( COUNT( DISTINCT col2 ) ) - + 28 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1881
SELECT ( - + COUNT ( * ) ) / - ( COUNT ( DISTINCT col2 ) ) - + 28 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT COUNT( * ) * + ( 65 ) FROM tab0 WHERE ( + 53 + col2 ) NOT BETWEEN + col1 AND col0 * + col2 + + col0 / col2
----
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT COUNT ( * ) * + ( 65 ) FROM tab0 WHERE ( + 53 + col2 ) NOT BETWEEN + col1 AND col0 * + col2 + + col0 / col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT - ( col0 ) FROM tab0 WHERE - - CAST( 4 AS SIGNED ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1883
SELECT - ( col0 ) FROM tab0 WHERE - - CAST ( 4 AS INTEGER ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - 99 AS col2 FROM tab1 cor0
----
-99
-99
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 * + col1 NOT IN ( - col1 / + col0 + - col2 + col0 * col0 )
----

query II rowsort
SELECT + col1 AS col1, + 9 AS col0 FROM tab2 cor0 WHERE NOT + 82 > NULL
----

query I rowsort
SELECT col1 * col2 * 66 FROM tab1 AS cor0
----
19470
210936
88704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * + 83 col0 FROM tab1 cor0
----
3901
3901
3901

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT DISTINCT - MAX( - col0 ) col1 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1889
SELECT DISTINCT - MAX ( - col0 ) col1 FROM tab0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT + 40 DIV + col1 AS col1 FROM tab0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + 40 / + col1 AS col1 FROM tab0
----
0
1
40

query I rowsort
SELECT ALL + ( col0 ) - + col1 / col0 FROM tab2 WHERE - 16 IS NULL
----

query I rowsort
SELECT ALL 11 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( col2 * + 55 + - col0 * col2 + + col2 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * + col2 NOT IN ( + + col2, col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1894
SELECT - col0 col2, col0 - - 59 DIV - col2 FROM tab1
----
-51
51
-85
84
-91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1894
SELECT - col0 col2, col0 - - 59 / - col2 FROM tab1
----
-51
51
-85
84
-91
91

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1897
SELECT - - 63 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST( + col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1897
SELECT - - 63 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( + col1 AS REAL ) IS NOT NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 63 * + + col2 BETWEEN NULL AND NULL
----

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

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

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

query II rowsort
SELECT DISTINCT + 35, ( col1 ) FROM tab0 AS cor0
----
35
1
35
21
35
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-1905
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( ALL + 37 ) * - 74, - 93 + - ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0
0
NULL

skipif mysql # not compatible
query III rowsort label-1905
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( ALL + 37 ) * - 74, - 93 + - ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0
0
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1906
SELECT - col1 FROM tab2 WHERE ( ( CAST( NULL AS DECIMAL ) ) BETWEEN col1 * - - ( ( - + col1 ) ) AND - 0 )
----

skipif mysql # not compatible
query I rowsort label-1906
SELECT - col1 FROM tab2 WHERE ( ( CAST ( NULL AS REAL ) ) BETWEEN col1 * - - ( ( - + col1 ) ) AND - 0 )
----

query I rowsort
SELECT + 55 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1908
SELECT DISTINCT CAST( 92 AS SIGNED ) + 3 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT CAST ( 92 AS INTEGER ) + 3 FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE 7 / - col2 / + - ( + col2 ) * - - col2 + col2 * - - col2 * col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE 7 / - col2 / + - ( + col2 ) * - - col2 + col2 * - - col2 * col0 >= NULL
----
0

query I rowsort
SELECT ALL - col0 + + col0 AS col0 FROM tab0 cor0 WHERE NULL > 41
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 45 + - - col1 col0 FROM tab0 AS cor0
----
-24
-44
36

query I rowsort
SELECT DISTINCT + col1 * + col0 * - col2 + + + ( - 1 ) AS col1 FROM tab2 AS cor0
----
-197121
-291451
-53959

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

query I rowsort
SELECT ALL + 87 * + + 29 + + col2 + - col0 FROM tab1 cor0
----
2497
2500
2568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT ALL - CAST( NULL AS SIGNED ) + - 7 * 58 * 29 / + MAX( DISTINCT + - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - CAST ( NULL AS INTEGER ) + - 7 * 58 * 29 / + MAX ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 96 * 47 * ( + col0 ) + col0 AS col1 FROM tab1 AS cor0
----
230163
383605
410683

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 28 + - + ( + col0 ) IS NULL AND NOT col0 BETWEEN + col2 + - col2 AND NULL
----

query I rowsort
SELECT 83 * + ( col1 ) + + col1 FROM tab0
----
1764
6804
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT MAX( - col1 ) + + + COUNT( - + 53 ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-1920
SELECT MAX ( - col1 ) + + + COUNT ( - + 53 ) AS col0 FROM tab1
----
-2

query I rowsort
SELECT - 89 + - - 31 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT + - col0 + + - 21 FROM tab0 AS cor0
----
-108
-118
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT DISTINCT - - col1 * ( + + 33 ) + - - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
130
2688
780

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - - col1 * ( + + 33 ) + - - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
130
2688
780

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

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

query I rowsort
SELECT + 80 * - 13 FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
-1040
-1040
-1040

query I rowsort
SELECT + 39 * + - col1 AS col2 FROM tab1
----
-1833
-195
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT + CAST( + 42 AS SIGNED ) AS col1 FROM tab0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-1928
SELECT + CAST ( + 42 AS INTEGER ) AS col1 FROM tab0
----
42
42
42

query I rowsort
SELECT + - 75 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 47 <= - col2 - - ( 93 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - + 86 + - col1 NOT BETWEEN - col0 AND - - col0 * - - col2
----
97
1
99

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

query I rowsort
SELECT + + col2 FROM tab0 cor0 WHERE NOT col2 < NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT - COUNT( DISTINCT - - CAST( 8 AS SIGNED ) ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1935
SELECT - COUNT ( DISTINCT - - CAST ( 8 AS INTEGER ) ) AS col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1936
SELECT ALL + 79 / + CAST( NULL AS SIGNED ), - SUM( DISTINCT - - col0 ) AS col2 FROM tab2
----
NULL
-185

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL + 79 / + CAST ( NULL AS INTEGER ), - SUM ( DISTINCT - - col0 ) AS col2 FROM tab2
----
NULL
-185

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( ( NULL ) IN ( - 63 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL COUNT( * ) + - + SUM( + col2 ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL COUNT ( * ) + - + SUM ( + col2 ) FROM tab1
----
-220

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= ( + - 86 * - col1 / - col1 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT - col2 DIV 57 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1943
SELECT - col2 / 57 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL AND + 58 <> col2 / + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 + + col1 col2 FROM tab2 AS cor0
----
-1
-11
-27

query II rowsort
SELECT - + 79, - col0 / + + col2 FROM tab0 AS cor0 WHERE NULL = col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + + col2 + - 96 FROM tab1 AS cor0
----
-28
-37
0

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + col2 <= col2 + + 41
----
-15
-87
-97

query I rowsort
SELECT 31 + - - ( 97 ) FROM tab1 AS cor0
----
128
128
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL MIN( - ( + ( + col2 ) ) ) col0 FROM tab1
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1951
SELECT ALL MIN ( - ( + ( + col2 ) ) ) col0 FROM tab1
----
-96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1953
SELECT DISTINCT + 52 - - + COUNT( * ) col1, - 4 FROM tab0
----
55
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1953
SELECT DISTINCT + 52 - - + COUNT ( * ) col1, - 4 FROM tab0
----
55
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT ( + - col2 ) DIV col2 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1954
SELECT ( + - col2 ) / col2 AS col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE 72 * - col0 NOT BETWEEN + col2 AND NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL - + 3 + - col2 FROM tab1 WHERE NOT + col2 * - col0 IS NULL
----
-62
-71
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + + COUNT( * ) FROM tab0 WHERE ( + - col1 - + 7 + + - col0 * + col1 ) > + 99
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT + + COUNT ( * ) FROM tab0 WHERE ( + - col1 - + 7 + + - col0 * + col1 ) > + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT - + ( - COUNT( - 16 ) ) - - 94 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1959
SELECT - + ( - COUNT ( - 16 ) ) - - 94 FROM tab0 AS cor0
----
97

query II rowsort
SELECT - 68 - - + col1 AS col1, - col0 + - - col2 FROM tab2 AS cor0
----
-1
-17
-17
-23
9
-24

query III rowsort
SELECT * FROM tab2 WHERE NOT - 22 NOT IN ( + + 96, + 12 + - 17 + col0 + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NULL NOT IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( col2 )
----
0

query I rowsort
SELECT DISTINCT - - 23 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
23

query I rowsort
SELECT ALL 3 * + col1 FROM tab2
----
153
201
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( - + col0 ) ) * col2 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1966
SELECT - 99 DIV + COUNT( * ) FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1966
SELECT - 99 / + COUNT ( * ) FROM tab2 cor0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT DISTINCT col2 * - - 51 + + - col0 * + - col0 * - + ( - + 87 ) DIV - + 1 col0 FROM tab1 AS cor0
----
-221391
-625566
-716979

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1967
SELECT DISTINCT col2 * - - 51 + + - col0 * + - col0 * - + ( - + 87 ) / - + 1 col0 FROM tab1 AS cor0
----
-221391
-625566
-716979

onlyif mysql # DIV for integer division: 
query II rowsort label-1968
SELECT - ( col1 ) * + 65 * - col1 DIV col1 col1, - col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
1365
0
5265
0
65
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1968
SELECT - ( col1 ) * + 65 * - col1 / col1 col1, - col2 / - col1 AS col2 FROM tab0 AS cor0
----
1365
0
5265
0
65
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT + 4 DIV col2 * + 74 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT + 4 / col2 * + 74 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * 94 AS col0 FROM tab0 AS cor0
----
-1410
-8178
-9118

query I rowsort
SELECT ALL - + ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + 75 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL col0 * + + CAST( - + col2 AS SIGNED ) + col0 * 8 * 52 * col2 + + ( - + 78 ) * - 62 + 92 - - col1 AS col0 FROM tab2 AS cor0
----
1067405
1810245
444049

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL col0 * + + CAST ( - + col2 AS INTEGER ) + col0 * 8 * 52 * col2 + + ( - + 78 ) * - 62 + 92 - - col1 AS col0 FROM tab2 AS cor0
----
1067405
1810245
444049

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, + col2 * + col2 * + - 48 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 92 * + + col0 - - + 62 AS col2 FROM tab1 AS cor0
----
-4630
-7758
-8310

query I rowsort
SELECT col2 * - col2 + + + col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL - SUM( DISTINCT col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - SUM ( DISTINCT col1 ) FROM tab2
----
-195

query II rowsort
SELECT - 10, 54 AS col1 FROM tab1
----
-10
54
-10
54
-10
54

query II rowsort
SELECT ALL col2 AS col1, col2 * + + col1 FROM tab1
----
59
295
68
3196
96
1344

query I rowsort
SELECT ALL col2 + - col1 + - col2 AS col0 FROM tab0
----
-1
-21
-81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1982
SELECT ALL + COUNT ( * ) * + COUNT ( * ) col0 FROM tab0
----
9

query I rowsort
SELECT DISTINCT col0 * - - 73 FROM tab2
----
3358
4672
5475

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT COUNT( * ), + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1984
SELECT COUNT ( * ), + COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + + COUNT( * ) + - COUNT( * ) + + 85 + + + 77 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( + + col1, + 50 )
----
162

skipif mysql # not compatible
query I rowsort label-1985
SELECT + + COUNT ( * ) + - COUNT ( * ) + + 85 + + + 77 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( + + col1, + 50 )
----
162

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

skipif mysql # not compatible
query I rowsort label-1986
SELECT + COUNT ( * ) * + COUNT ( * ) / 80 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + - col1, + col0 + 16 + + 58 AS col0 FROM tab0 AS cor0
----
-1
171
-21
161
-81
89

query II rowsort
SELECT DISTINCT - col0, + col0 + + ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-15
30
-87
174
-97
194

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + col1 + - - 95 + - col1 AS col0 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT + ( - col2 ) * - 83 + col2 FROM tab0
----
3948
8316
840

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT DISTINCT + MIN( - - 87 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT + MIN ( - - 87 ) FROM tab1
----
87

query I rowsort
SELECT DISTINCT + + col2 + + 53 AS col1 FROM tab0 AS cor0
----
100
152
63

query I rowsort
SELECT ALL + ( + - ( col2 ) ) + + 68 AS col1 FROM tab2 AS cor0
----
10
28
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL 81 + + + COUNT( * ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL 81 + + + COUNT ( * ) FROM tab1 AS cor0
----
84

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

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

query I rowsort
SELECT DISTINCT + 28 + - col1 * - 29 AS col0 FROM tab0 AS cor0
----
2377
57
637

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT - COUNT( DISTINCT col0 ) / + AVG ( DISTINCT 23 ) FROM tab0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT - COUNT ( DISTINCT col0 ) / + AVG ( DISTINCT 23 ) FROM tab0 WHERE ( NOT NULL IS NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + ( - col2 ) col1 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT - - 29 / + SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + 57 / col1 - - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT - - 29 / + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + 57 / col1 - - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + + ( - + col0 ) + + 87 - - 65 - + 68 FROM tab2 AS cor0
----
2200
4180
5709

query I rowsort
SELECT + + 75 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2007
SELECT - 80 DIV + + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-8

skipif mysql # not compatible
query I rowsort label-2007
SELECT - 80 / + + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + 25 AS col0 FROM tab2 cor0
----
25
25
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2011
SELECT DISTINCT + 18 DIV - + MIN( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT + 18 / - + MIN ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 29 * - col1 FROM tab2 AS cor0 WHERE NOT ( 98 IS NOT NULL )
----

query I rowsort
SELECT - 14 * 29 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 + + + 43 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> ( - + col1 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2016
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT COUNT( * ) * 73 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT COUNT ( * ) * 73 FROM tab0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2018
SELECT ALL * FROM tab1 WHERE NOT + CAST( - 90 AS SIGNED ) NOT BETWEEN col2 - col0 AND + col1
----

skipif mysql # not compatible
query III rowsort label-2018
SELECT ALL * FROM tab1 WHERE NOT + CAST ( - 90 AS INTEGER ) NOT BETWEEN col2 - col0 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + col0 + - - 74 col0 FROM tab2
----
22
40
51

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 9 >= NULL OR ( - col1 * 51 * + - 73 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + - - col1 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL - col2 + + - col0 AS col1 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - col1 * - col0 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-36125
-36414
-389207

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT DISTINCT 70 * CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
3290
350
980

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT 70 * CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
3290
350
980

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT ALL col2 DIV - - col1 col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2028
SELECT ALL col2 / - - col1 col1 FROM tab0
----
0
0
99

query I rowsort
SELECT + - 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 76 + 16 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2032
SELECT - - col2 * col0 + + - CAST( + 68 AS SIGNED ) col0, col2 FROM tab1 cor0
----
4828
96
4947
59
6120
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2032
SELECT - - col2 * col0 + + - CAST ( + 68 AS INTEGER ) col0, col2 FROM tab1 cor0
----
4828
96
4947
59
6120
68

query I rowsort
SELECT ALL ( - - col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 40 + + - 0 FROM tab1 AS cor0
----
40

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

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + + MIN ( - - 72 ) + CAST ( 31 AS INTEGER ) FROM tab0 cor0
----
103

query I rowsort
SELECT ALL + + col2 - - col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2037
SELECT - + COUNT( - col0 ) AS col2, COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-2037
SELECT - + COUNT ( - col0 ) AS col2, COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
-3
1

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

query I rowsort
SELECT col1 * + + col2 FROM tab1 cor0
----
1344
295
3196

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

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

query I rowsort
SELECT + col1 - + 12 AS col1 FROM tab1
----
-7
2
35

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

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

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

query I rowsort
SELECT + 41 * - 69 AS col2 FROM tab1
----
-2829
-2829
-2829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT DISTINCT 86 * + - CAST( - 90 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT 86 * + - CAST ( - 90 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT - 34 * 12 - + 35, ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-443
3

skipif mysql # not compatible
query II rowsort label-2047
SELECT - 34 * 12 - + 35, ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-443
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - MAX( - - 7 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2049
SELECT - MAX ( - - 7 ) FROM tab1 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT + 44 DIV + 38 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2050
SELECT + 44 / + 38 AS col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT - ( - - col0 ) * 53, col1 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4611
210
-5141
99
-795
3807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT + + CAST( - - col1 AS SIGNED ) * + col1 + - 22 * - 94 + col2 + col0 + - - col1 * 77 AS col2 FROM tab0 AS cor0
----
14928
2342
4223

skipif mysql # not compatible
query I rowsort label-2052
SELECT + + CAST ( - - col1 AS INTEGER ) * + col1 + - 22 * - 94 + col2 + col0 + - - col1 * 77 AS col2 FROM tab0 AS cor0
----
14928
2342
4223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 52 - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT ALL col1 DIV - - col0 + 91 + - - 32 FROM tab2
----
123
124
124

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL col1 / - - col0 + 91 + - - 32 FROM tab2
----
123
124
124

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

query I rowsort
SELECT ALL col0 + 15 * - col2 AS col0 FROM tab1
----
-1389
-800
-929

query I rowsort
SELECT col1 + 68 * - col1 AS col2 FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT ALL col1 * - - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 42 BETWEEN NULL AND + col2
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - 44 BETWEEN + col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2063
SELECT ALL + col1 + - 96 DIV - col1 AS col1, + 14 * + col2 AS col1 FROM tab1 AS cor0
----
20
1344
24
826
49
952

skipif mysql # not compatible
query II rowsort label-2063
SELECT ALL + col1 + - 96 / - col1 AS col1, + 14 * + col2 AS col1 FROM tab1 AS cor0
----
20
1344
24
826
49
952

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

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

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 21 + - col0 FROM tab0 cor0
----
-66
-76
6

query I rowsort
SELECT ALL - 74 - + col2 FROM tab2 AS cor0
----
-114
-132
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2069
SELECT * FROM tab2 AS cor0 WHERE 9 NOT IN ( + CAST( col2 AS SIGNED ) - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2069
SELECT * FROM tab2 AS cor0 WHERE 9 NOT IN ( + CAST ( col2 AS INTEGER ) - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 + - col2 col2 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT SUM( + col0 ) * 9 AS col1 FROM tab0
----
1791

skipif mysql # not compatible
query I rowsort label-2071
SELECT SUM ( + col0 ) * 9 AS col1 FROM tab0
----
1791

onlyif mysql # DIV for integer division: 
query II rowsort label-2072
SELECT DISTINCT + col1 DIV + col1, - 12 AS col2 FROM tab0
----
1
-12

skipif mysql # not compatible
query II rowsort label-2072
SELECT DISTINCT + col1 / + col1, - 12 AS col2 FROM tab0
----
1
-12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT col0 DIV - + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2074
SELECT col0 / - + col0 FROM tab2
----
-1
-1
-1

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

query I rowsort
SELECT ALL ( + 51 ) FROM tab2
----
51
51
51

query II rowsort
SELECT DISTINCT - col1, - col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2078
SELECT DISTINCT CAST( + col2 AS DECIMAL ), - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - col0 * + 63 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-2078
SELECT DISTINCT CAST ( + col2 AS REAL ), - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - col0 * + 63 BETWEEN ( NULL ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT COUNT ( ALL - - 77 ) FROM tab1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL MAX( 70 ) col0 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2081
SELECT ALL MAX ( 70 ) col0 FROM tab0
----
70

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

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

query I rowsort
SELECT ALL + 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - MIN( ALL col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2084
SELECT - MIN ( ALL col2 ) FROM tab0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL - COUNT( * ) + - 31 - + 61 col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2086
SELECT ALL - COUNT ( * ) + - 31 - + 61 col0 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT - 13 + + + 48 FROM tab0 AS cor0
----
35
35
35

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 + - col2 * + 23 * - col1 + - 74 IS NOT NULL
----

query I rowsort
SELECT ALL 97 * - col0 AS col1 FROM tab1 AS cor0
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT - MAX( DISTINCT + col2 ) + + + COUNT( 6 ) AS col1 FROM tab2 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2091
SELECT - MAX ( DISTINCT + col2 ) + + + COUNT ( 6 ) AS col1 FROM tab2 cor0
----
-55

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * + + col0 + col2 col0 FROM tab2
----
-1219
-1688
-1967

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT - COUNT( ALL 9 ) AS col0 FROM tab1 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT - COUNT ( ALL 9 ) AS col0 FROM tab1 WHERE + - col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT - 97 col0 FROM tab0 AS cor0 WHERE + col2 <= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2096
SELECT - 97 col0 FROM tab0 AS cor0 WHERE + col2 <= - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col0 - 82 FROM tab2 AS cor0
----
-18
-36
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + ( + + 45 ) - - MIN( col2 ) col2 FROM tab1
----
104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2098
SELECT + ( + + 45 ) - - MIN ( col2 ) col2 FROM tab1
----
104

query I rowsort
SELECT 76 * - + col1 + - col1 FROM tab2
----
-3927
-5159
-5929

query I rowsort
SELECT ALL + col0 - 74 FROM tab1
----
-23
11
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2101
SELECT MAX( - col2 ), MAX( ALL + 55 ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-10
58

skipif mysql # not compatible
query II rowsort label-2101
SELECT MAX ( - col2 ), MAX ( ALL + 55 ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-10
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT DISTINCT - 26 * CAST( NULL AS SIGNED ) / + 43 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - 26 * CAST ( NULL AS INTEGER ) / + 43 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <> - - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2104
SELECT ALL - 96 DIV - col2 + - CAST( 95 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL - 96 / - col2 + - CAST ( 95 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-94
-94
-94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - 87 - 8 * 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT DISTINCT + - COUNT( * ), COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2107
SELECT DISTINCT + - COUNT ( * ), COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2109
SELECT + + ( CAST ( + col1 AS INTEGER ) ) col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT - col1 DIV + 19 AS col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2110
SELECT - col1 / + 19 AS col1 FROM tab1 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT ALL + + col2 * + CAST( col0 AS SIGNED ) * 75 + 48 * - col0 AS col1 FROM tab0 AS cor0
----
52155
61074
715569

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + + col2 * + CAST ( col0 AS INTEGER ) * 75 + 48 * - col0 AS col1 FROM tab0 AS cor0
----
52155
61074
715569

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT ALL ( - 26 ) DIV + 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL ( - 26 ) / + 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT 74 AS col2, + col0 AS col1 FROM tab2
----
74
46
74
64
74
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 25 NOT BETWEEN + 27 AND col0
----

query II rowsort
SELECT - + col1 AS col1, + 88 AS col2 FROM tab0 AS cor0
----
-1
88
-21
88
-81
88

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

skipif mysql # not compatible
query I rowsort label-2116
SELECT MIN ( - - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2117
SELECT DISTINCT + COUNT( * ) * + 90 + - - AVG ( ALL - + col2 ) + COUNT( * ) / - - CAST( NULL AS SIGNED ), - 18 col0 FROM tab2 AS cor0
----
NULL
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2117
SELECT DISTINCT + COUNT ( * ) * + 90 + - - AVG ( ALL - + col2 ) + COUNT ( * ) / - - CAST ( NULL AS INTEGER ), - 18 col0 FROM tab2 AS cor0
----
NULL
-18

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

query I rowsort
SELECT ALL - 83 * + 85 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

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

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - 98 + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT 22 + + ( + - 2 ) AS col2 FROM tab0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT 62 + - col2 - + + col1 * + col1 / - 32 * - CAST( NULL AS SIGNED ) * - 62 / - 60 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT 62 + - col2 - + + col1 * + col1 / - 32 * - CAST ( NULL AS INTEGER ) * - 62 / - 60 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + 27 ) AS col0 FROM tab2
----
-27

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT NULL > - + col0
----

query I rowsort
SELECT + + col2 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2126
SELECT + - col0 + + + 97 DIV + + col2 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-2126
SELECT + - col0 + + + 97 / + + col2 FROM tab1 AS cor0
----
-50
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2127
SELECT col0 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2127
SELECT col0 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + col1 - - 87 * + ( + + col2 ) FROM tab0
----
4170
8614
891

query I rowsort
SELECT DISTINCT + ( - + col1 ) * + col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + - 98 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-2130
SELECT + - 98 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-294

query I rowsort
SELECT ALL + - 36 * + 65 * col0 + col0 AS col1 FROM tab2 cor0
----
-107594
-149696
-175425

query I rowsort
SELECT DISTINCT 67 * col0 FROM tab1 AS cor0
----
3417
5695
6097

query I rowsort
SELECT + 76 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 * ( - 32 ) col2 FROM tab2 AS cor0
----
-2720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE col0 - + col2 <> CAST( + - col2 AS SIGNED )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE col0 - + col2 <> CAST ( + - col2 AS INTEGER )
----
15
87
97

query I rowsort
SELECT - 61 FROM tab0 WHERE NOT + col2 * + col0 < + col1
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT ( - + MIN( + col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT ( - + MIN ( + col2 ) ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT - MIN( col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2138
SELECT - MIN ( col1 ) col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL - MIN( + col2 ) * - 71 * + 11 + + MIN( DISTINCT + col0 ) AS col2 FROM tab0
----
7825

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL - MIN ( + col2 ) * - 71 * + 11 + + MIN ( DISTINCT + col0 ) AS col2 FROM tab0
----
7825

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2140
SELECT ALL + + col2 * 21 * + + 80 - - + CAST( NULL AS SIGNED ), - 4 AS col2 FROM tab0 AS cor0
----
NULL
-4
NULL
-4
NULL
-4

skipif mysql # not compatible
query II rowsort label-2140
SELECT ALL + + col2 * 21 * + + 80 - - + CAST ( NULL AS INTEGER ), - 4 AS col2 FROM tab0 AS cor0
----
NULL
-4
NULL
-4
NULL
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2141
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( 89 ) NOT IN ( col2, CAST( - col2 AS SIGNED ), - 23 ) )
----

skipif mysql # not compatible
query III rowsort label-2141
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( 89 ) NOT IN ( col2, CAST ( - col2 AS INTEGER ), - 23 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT + SUM( DISTINCT + ( + + 32 ) ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2142
SELECT + SUM ( DISTINCT + ( + + 32 ) ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT + - ( - 16 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL + + col1 + - + col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT - col1 + - 76 FROM tab1 AS cor0
----
-123
-81
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT + + ( - 59 ) / col0 + - - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + + ( - 59 ) / col0 + - - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT SUM( 1 ) * + - 58 * + 66 + + 16 col1 FROM tab0
----
-11468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2147
SELECT DISTINCT SUM ( 1 ) * + - 58 * + 66 + + 16 col1 FROM tab0
----
-11468

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 12 col2 FROM tab1
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - SUM( ALL + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2150
SELECT - SUM ( ALL + col1 ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT - 11 * + 55 AS col1 FROM tab0
----
-605
-605
-605

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT DISTINCT - COUNT( * ) + - + SUM( + - 18 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - COUNT ( * ) + - + SUM ( + - 18 ) AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2153
SELECT 16 * + CAST( NULL AS SIGNED ) - COUNT( * ) + - 82 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT 16 * + CAST ( NULL AS INTEGER ) - COUNT ( * ) + - 82 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2154
SELECT - col1 * - + 6 + col0, col0 * CAST( NULL AS SIGNED ) + - col0 * col0 AS col0 FROM tab1
----
115
NULL
135
NULL
373
NULL

skipif mysql # not compatible
query II rowsort label-2154
SELECT - col1 * - + 6 + col0, col0 * CAST ( NULL AS INTEGER ) + - col0 * col0 AS col0 FROM tab1
----
115
NULL
135
NULL
373
NULL

query I rowsort
SELECT DISTINCT + - 86 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT DISTINCT - + col1 DIV + - 49 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - + col1 / + - 49 FROM tab2 AS cor0
----
1

query I rowsort
SELECT col1 * - - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT + + col2 DIV + col2 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT + + col2 / + col2 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL ( + 18 ) AS col1 FROM tab1 AS cor0
----
18
18
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 44 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 AS cor0 WHERE NOT col2 * - + 58 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2162
SELECT - - COUNT( * ) DIV - + 77 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT - - COUNT ( * ) / - + 77 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE ( - col1 ) * 79 IS NULL
----

query II rowsort
SELECT col1, - 82 - 68 AS col1 FROM tab0
----
1
-150
21
-150
81
-150

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN ( NULL ) AND col1 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL - SUM( - 82 ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - SUM ( - 82 ) FROM tab0
----
246

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < 73
----

query I rowsort
SELECT ( + ( + 97 ) ) FROM tab1
----
97
97
97

query II rowsort
SELECT DISTINCT - 7 + + ( + - col1 ), + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-28
21
-8
1
-88
81

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 cor0 WHERE NOT col0 * + ( - 73 ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT - - SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT - - SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - col0 * - col1 + + col2 - + + col2 + col1 * 14 FROM tab1 WHERE col0 * + col2 * - 76 BETWEEN 63 AND + - 53 * col0
----

query I rowsort
SELECT - 66 * ( + 78 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 + + 16 col0 FROM tab2
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 NOT IN ( - - col2 )
----

query I rowsort
SELECT DISTINCT - col0 * - 50 AS col2 FROM tab2 AS cor0
----
2300
3200
3750

query I rowsort
SELECT DISTINCT + + col1 / + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * - col0 + + + col0 * + + col2 * - col1 AND NULL
----

query I rowsort
SELECT - 9 AS col0 FROM tab1 cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT + - ( - MAX( - + col0 ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2180
SELECT + - ( - MAX ( - + col0 ) ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 86 - 9 AS col1 FROM tab2 cor0
----
-95

query I rowsort
SELECT ALL ( + 42 ) + + - col0 AS col1 FROM tab0 AS cor0
----
-45
-55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL - COUNT( * ) * - MAX( DISTINCT 10 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT 10 ) FROM tab2 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( 41 ) / + + 18 * - + 59 + + col1 NOT BETWEEN col2 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 24 > NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col2 - - + col1 AS col2 FROM tab2
----
28
37
9

query I rowsort
SELECT - 61 + + col1 AS col0 FROM tab2
----
-10
16
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( ALL CAST( + col1 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( ALL CAST ( + col1 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 / + ( - - 32 ) * 69 + + col0 + - + col0 - - - 9 BETWEEN + 83 + + - col1 AND NULL
----

query I rowsort
SELECT + 28 + 22 AS col1 FROM tab0
----
50
50
50

query I rowsort
SELECT col0 + + col1 + - col0 + + - col0 FROM tab0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2194
SELECT ALL col2 DIV + - 67 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL col2 / + - 67 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 1 + + + ( col0 ) FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT COUNT( * ) + 76 col0 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2196
SELECT DISTINCT COUNT ( * ) + 76 col0 FROM tab2
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 + + + col1 * - + 32 col1 FROM tab2
----
-1655
-2161
-2488

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2198
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT CAST ( NULL AS REAL ) + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT DISTINCT - MAX( - - 17 ) AS col0 FROM tab0 AS cor0 WHERE + col0 * - col2 * col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT - MAX ( - - 17 ) AS col0 FROM tab0 AS cor0 WHERE + col0 * - col2 * col2 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2200
SELECT DISTINCT - 73 AS col2, - 33 - - COUNT( + 84 ) FROM tab0 cor0
----
-73
-30

skipif mysql # not compatible
query II rowsort label-2200
SELECT DISTINCT - 73 AS col2, - 33 - - COUNT ( + 84 ) FROM tab0 cor0
----
-73
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, + col0 col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2203
SELECT ALL - - CAST( + - col1 AS DECIMAL ) * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - - CAST ( + - col1 AS REAL ) * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * col2 <> NULL
----

query I rowsort
SELECT ALL - + 46 AS col2 FROM tab0 cor0
----
-46
-46
-46

query I rowsort
SELECT ALL - ( + col1 ) + + - 66 FROM tab0
----
-147
-67
-87

query I rowsort
SELECT ALL - 76 * - + 39 AS col0 FROM tab1
----
2964
2964
2964

query II rowsort
SELECT DISTINCT - col1 * col1 * - col1 AS col0, + 1 + - col1 AS col2 FROM tab0
----
1
0
531441
-80
9261
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ( COUNT( * ) ) AS col0 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2208
SELECT ( COUNT ( * ) ) AS col0 FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT + 95 * - col2 FROM tab0 AS cor0 WHERE NULL > 13
----

query I rowsort
SELECT DISTINCT - 99 * - col1 FROM tab0
----
2079
8019
99

query I rowsort
SELECT DISTINCT 0 * 78 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT ALL 18 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL 18 / - col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 - + 25 col2 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - col2 - col0
----

query I rowsort
SELECT ALL + - col2 * + - 25 * col2 AS col0 FROM tab1 AS cor0
----
115600
230400
87025

query I rowsort
SELECT ALL + col2 * - 10 * - ( + - 61 ) * + - 38 AS col1 FROM tab1
----
1367620
1576240
2225280

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 10 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab0 WHERE - + col2 * - + 67 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + 28 AS col2 FROM tab1 cor0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + col0 * + + 30 <= NULL
----

query I rowsort
SELECT ALL - + col1 * + 28 FROM tab0 cor0
----
-2268
-28
-588

query I rowsort
SELECT - 59 * 62 + + 46 FROM tab2 cor0
----
-3612
-3612
-3612

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2223
SELECT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ), 41 AS col0 FROM tab1 AS cor0
----
NULL
41
NULL
41
NULL
41

skipif mysql # not compatible
query II rowsort label-2223
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ), 41 AS col0 FROM tab1 AS cor0
----
NULL
41
NULL
41
NULL
41

query I rowsort
SELECT DISTINCT - ( + + 77 ) FROM tab0
----
-77

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab0, tab0 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT + CAST( + 75 AS SIGNED ) FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-2226
SELECT + CAST ( + 75 AS INTEGER ) FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT + 1 * - + col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 17 FROM tab0 cor0 WHERE NOT + ( 74 ) * + col1 * + col1 + - col2 IS NULL
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT CAST( col0 AS SIGNED ) * + - 39 FROM tab2 AS cor0
----
-1794
-2496
-2925

skipif mysql # not compatible
query I rowsort label-2230
SELECT CAST ( col0 AS INTEGER ) * + - 39 FROM tab2 AS cor0
----
-1794
-2496
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT COUNT( ALL + 24 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2231
SELECT COUNT ( ALL + 24 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT ALL - + ( + ( + - CAST( - + col2 AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - + ( + ( + - CAST ( - + col2 AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col1 FROM tab1 WHERE NOT + col1 * 73 + - + 20 >= + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT DISTINCT - 56 AS col0, COUNT( * ) FROM tab0
----
-56
3

skipif mysql # not compatible
query II rowsort label-2234
SELECT DISTINCT - 56 AS col0, COUNT ( * ) FROM tab0
----
-56
3

query I rowsort
SELECT + - 94 AS col1 FROM tab0 WHERE NOT - 97 * + col1 + ( 90 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + COUNT( DISTINCT + - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2236
SELECT + COUNT ( DISTINCT + - col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL COUNT( ALL - + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL COUNT ( ALL - + col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2238
SELECT ALL * FROM tab0 cor0 WHERE col0 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2238
SELECT ALL * FROM tab0 cor0 WHERE col0 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT - - col2 DIV - + 70 + - col0 DIV - - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2239
SELECT - - col2 / - + 70 + - col0 / - - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 71 >= + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL MAX( DISTINCT + 24 ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL MAX ( DISTINCT + 24 ) AS col2 FROM tab0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col0 FROM tab1
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col1 - - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL COUNT( - + col0 ) + 5 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL COUNT ( - + col0 ) + 5 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2246
SELECT - - col1 - CAST( 43 AS SIGNED ) * + 79 FROM tab2 AS cor0
----
-3320
-3330
-3346

skipif mysql # not compatible
query I rowsort label-2246
SELECT - - col1 - CAST ( 43 AS INTEGER ) * + 79 FROM tab2 AS cor0
----
-3320
-3330
-3346

query I rowsort
SELECT - - 74 - + col2 AS col2 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT + col0 + 61 FROM tab0 AS cor0 WHERE NULL > 98 + + 57 + - - col1 + + + 81 + - 84 / - col2
----

query I rowsort
SELECT DISTINCT 92 - 84 AS col1 FROM tab1 cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL + + 94 + - COUNT( * ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + + 94 + - COUNT ( * ) FROM tab1 cor0
----
91

query I rowsort
SELECT - col0 * - - col2 + - col0 FROM tab2
----
-1104
-2624
-4425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2252
SELECT + col0, CAST( NULL AS SIGNED ) * 93 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2252
SELECT + col0, CAST ( NULL AS INTEGER ) * 93 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + col0 * - 36 AS col0 FROM tab2
----
-1656
-2304
-2700

query III rowsort
SELECT * FROM tab2 WHERE NOT + 60 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT col0 / CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT col0 / CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + 35 * ( + COUNT( * ) ) AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-2256
SELECT + 35 * ( + COUNT ( * ) ) AS col0 FROM tab0
----
105

query II rowsort
SELECT col2, 10 FROM tab2
----
23
10
40
10
58
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 84 * 83 * col2 col1 FROM tab0 AS cor0
----
327684
690228
69720

query I rowsort
SELECT - col2 + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 + - 27 * col2 AS col1 FROM tab2
----
-1003
-1499
-570

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 ) NOT IN ( 65 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE NOT ( + col2 * col0 ) >= NULL
----

query I rowsort
SELECT ALL - ( 31 ) AS col2 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT - 5 AS col0 FROM tab1 WHERE ( 1 ) NOT BETWEEN ( col0 ) AND ( - col2 * + 80 )
----
-5
-5
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT - 18 <> col0 * + col1
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT NULL IN ( + col0 - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL MAX( 80 ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL MAX ( 80 ) AS col0 FROM tab0
----
80

query I rowsort
SELECT DISTINCT + 5 * + col1 FROM tab0
----
105
405
5

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - ( + 87 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col2 IN ( col0 )
----
-6

skipif mysql # not compatible
query I rowsort label-2270
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col2 IN ( col0 )
----
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + 42 * 29 + ( + col0 ) AND col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col1 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2273
SELECT DISTINCT - SUM( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IN ( + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + SUM( ALL col2 ) * - COUNT( * ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-2274
SELECT + SUM ( ALL col2 ) * - COUNT ( * ) FROM tab1
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - SUM( DISTINCT col0 ) col1 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2275
SELECT ALL - SUM ( DISTINCT col0 ) col1 FROM tab1
----
-227

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT NULL <> ( - col2 * col1 )
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + 59 FROM tab1
----
106
64
73

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 < 96
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT DISTINCT 42 * - ( + col0 DIV 98 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT 42 * - ( + col0 / 98 ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL col2 * - col1 + col0 FROM tab0 cor0
----
-123
-2
-3792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 97 * 50 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col1 * 21 col1 FROM tab1 AS cor0
----
-1078
-190
-345

query I rowsort
SELECT col1 * col1 - col2 * 27 FROM tab2 AS cor0
----
1980
2923
4849

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT col1 DIV - col0 - - col0 * col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-2285
SELECT col1 / - col0 - - col0 * col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT + col1 DIV + 50 + col2 AS col1 FROM tab0 WHERE col2 >= ( 57 )
----
99

skipif mysql # not compatible
query I rowsort label-2287
SELECT + col1 / + 50 + col2 AS col1 FROM tab0 WHERE col2 >= ( 57 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2288
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IN ( + CAST( NULL AS SIGNED ) + + 16 )
----

skipif mysql # not compatible
query III rowsort label-2288
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IN ( + CAST ( NULL AS INTEGER ) + + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT + + 71 + COUNT( * ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2289
SELECT + + 71 + COUNT ( * ) FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 75 * 45 + 57 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL + MAX( DISTINCT + col1 ) * - COUNT( * ) + SUM( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + MAX ( DISTINCT + col1 ) * - COUNT ( * ) + SUM ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT - 70 * 53 AS col0 FROM tab1 AS cor0
----
-3710
-3710
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT MAX( DISTINCT col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2294
SELECT MAX ( DISTINCT col0 ) FROM tab0 cor0
----
97

query I rowsort
SELECT DISTINCT + 17 + + col0 FROM tab1 AS cor0
----
102
108
68

query I rowsort
SELECT DISTINCT - 92 + 56 AS col2 FROM tab0 AS cor0 WHERE col0 = NULL
----

query I rowsort
SELECT ALL 51 + 43 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2298
SELECT - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2298
SELECT - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 cor0
----
-1

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE col0 + col0 NOT IN ( + 45 * - 12 )
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 - col2 * col2 col0 FROM tab2 AS cor0
----
1125
2072
4329

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + + MAX( DISTINCT 84 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2301
SELECT + + MAX ( DISTINCT 84 ) FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL - SUM( col2 ) * 92 AS col2 FROM tab2
----
-11132

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - SUM ( col2 ) * 92 AS col2 FROM tab2
----
-11132

query I rowsort
SELECT col1 + col0 FROM tab2 WHERE NOT col1 * - col0 < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab2
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2305
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2305
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1 + - CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - col2 col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - 7 * 55 FROM tab2 AS cor0
----
-385

query I rowsort
SELECT 51 FROM tab0 AS cor0 WHERE NOT - col1 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2309
SELECT DISTINCT + 99 DIV + 1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT + 99 / + 1 FROM tab1 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL + MIN( - ( 98 ) ) + - 71 AS col0 FROM tab2
----
-169

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + MIN ( - ( 98 ) ) + - 71 AS col0 FROM tab2
----
-169

query I rowsort
SELECT ALL - 98 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT - COUNT( * ) * 80 + + - ( + ( - 69 ) ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2313
SELECT - COUNT ( * ) * 80 + + - ( + ( - 69 ) ) FROM tab2 AS cor0
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT ALL + col1 DIV - col0 col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2314
SELECT ALL + col1 / - col0 col2 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT 57 * col2 FROM tab1 AS cor0 WHERE ( + col2 * + - col2 ) IS NOT NULL
----
3363
3876
5472

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 - - - col1 ) IN ( 82 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL + CAST( + 59 AS SIGNED ) FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL + CAST ( + 59 AS INTEGER ) FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - col1 + 15 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32
1
10

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND + 49
----

query I rowsort
SELECT ALL 94 * + col0 + col0 + - + col1 AS col2 FROM tab2
----
4319
6003
7058

query I rowsort
SELECT - col0 + - + 51 AS col0 FROM tab2
----
-115
-126
-97

query I rowsort
SELECT + 11 + + + 17 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT - col1 + - 54 * - 92 FROM tab2 AS cor0
----
4891
4901
4917

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT + 99, COUNT( * ) AS col0 FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-2326
SELECT + 99, COUNT ( * ) AS col0 FROM tab0
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + 34 FROM tab0
----
115
35
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2329
SELECT DISTINCT 85 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE - 28 NOT BETWEEN NULL AND ( + col1 ) * - 34 + - 59 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT 85 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE - 28 NOT BETWEEN NULL AND ( + col1 ) * - 34 + - 59 * + col1
----
NULL

query I rowsort
SELECT ALL col2 * + col0 + - col0 FROM tab1 AS cor0 WHERE col0 BETWEEN 7 AND ( + 97 )
----
4845
4930
6097

query I rowsort
SELECT DISTINCT + col0 / col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0, + col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + AVG ( + col1 ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL - 32 * + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2334
SELECT ALL - 32 * + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL SUM( ALL + col2 ) * + COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
1089

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL SUM ( ALL + col2 ) * + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
1089

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - 82 * + col2 * 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2337
SELECT - + 81 DIV COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2337
SELECT - + 81 / COUNT ( * ) FROM tab2 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 42 / 58 IS NOT NULL
----

query II rowsort
SELECT ALL + - col0 AS col2, + 46 AS col2 FROM tab1 cor0
----
-51
46
-85
46
-91
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT COUNT( ALL - 65 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2340
SELECT COUNT ( ALL - 65 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2342
SELECT + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT - - 83 + CAST( NULL AS SIGNED ) col0 FROM tab1 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-2343
SELECT - - 83 + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col0 + ( + 58 ), + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ( 66 ) + + COUNT( * ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2345
SELECT ( 66 ) + + COUNT ( * ) FROM tab0 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + + + col0 IS NULL
----

query I rowsort
SELECT + 19 + + - col2 + - + col1 * + - 84 FROM tab1 AS cor0
----
1099
380
3899

query I rowsort
SELECT + + col1 + 19 AS col0 FROM tab0 AS cor0
----
100
20
40

query I rowsort
SELECT DISTINCT - 67 * 3 + - col1 AS col1 FROM tab2 AS cor0
----
-252
-268
-278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT ALL + col2 * - col1 + + CAST( NULL AS SIGNED ) * 16 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + col2 * - col1 + + CAST ( NULL AS INTEGER ) * 16 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL MIN( + 90 ) * + - 59 AS col1 FROM tab2 AS cor0
----
-5310

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL MIN ( + 90 ) * + - 59 AS col1 FROM tab2 AS cor0
----
-5310

query I rowsort
SELECT + col1 + + 4 FROM tab0
----
25
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL + 31 * - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + 31 * - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-279

query I rowsort
SELECT - col2 * 92 * + 75 AS col2 FROM tab1
----
-407100
-469200
-662400

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT + 60 * COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-2355
SELECT + 60 * COUNT ( * ) FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT DISTINCT 99 + + COUNT( * ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT 99 + + COUNT ( * ) FROM tab2
----
102

query I rowsort
SELECT ALL - 4 * - - col1 * - 97 FROM tab2
----
19788
25996
29876

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT MAX( + + col0 ) * + 29 AS col2 FROM tab0 WHERE + col1 - - - col0 IS NOT NULL
----
2813

skipif mysql # not compatible
query I rowsort label-2358
SELECT MAX ( + + col0 ) * + 29 AS col2 FROM tab0 WHERE + col1 - - - col0 IS NOT NULL
----
2813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT DISTINCT 66 / - CAST( NULL AS SIGNED ) * 50 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT 66 / - CAST ( NULL AS INTEGER ) * 50 AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col2 FROM tab1
----
-45
23
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 77 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT - ( - 49 ) * + + COUNT( * ) - - 42 + + - 14 AS col1 FROM tab2 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-2362
SELECT - ( - 49 ) * + + COUNT ( * ) - - 42 + + - 14 AS col1 FROM tab2 AS cor0
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - + COUNT( * ) - 76 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2363
SELECT - + COUNT ( * ) - 76 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT - + col0 - 46 * + 30 FROM tab0 AS cor0
----
-1395
-1467
-1477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2365
SELECT + COUNT( * ) + + + COUNT( * ) + ( + + MAX( + + 1 ) ) DIV - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2365
SELECT + COUNT ( * ) + + + COUNT ( * ) + ( + + MAX ( + + 1 ) ) / - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT DISTINCT - col2 - + + col0 * + CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
658
860
9504

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT - col2 - + + col0 * + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT + - ( + 20 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT + 25 DIV - ( - COUNT( * ) ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT + 25 / - ( - COUNT ( * ) ) FROM tab0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT DISTINCT col0 DIV + 95 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT col0 / + 95 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT 98 DIV + MAX( - + 5 ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-2370
SELECT 98 / + MAX ( - + 5 ) AS col2 FROM tab0
----
-19

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 19 + + ( 3 ) > NULL
----

query I rowsort
SELECT + - col2 * - 59 AS col1 FROM tab2 cor0
----
1357
2360
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT MIN( ( + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2374
SELECT MIN ( ( + col0 ) ) FROM tab0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 * + col0 * 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 11 * - ( col1 ) * ( + - 35 ) + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + 78 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT DISTINCT 82, col0 FROM tab0
----
82
15
82
87
82
97

query I rowsort
SELECT ALL - col2 * 81 AS col1 FROM tab1
----
-4779
-5508
-7776

query I rowsort
SELECT ALL 32 * - col1 FROM tab0
----
-2592
-32
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT + MAX( DISTINCT col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2381
SELECT + MAX ( DISTINCT col0 ) AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT + 32 AS col0, - COUNT( * ) * - - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
32
-12

skipif mysql # not compatible
query II rowsort label-2382
SELECT + 32 AS col0, - COUNT ( * ) * - - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
32
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT - col0 * 51 + + - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-2300
-3200
-3750

skipif mysql # not compatible
query I rowsort label-2383
SELECT - col0 * 51 + + - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-2300
-3200
-3750

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 31 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 59 AS col0, col0 * + col2 FROM tab0
----
59
705
59
870
59
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT + - CAST( col2 AS SIGNED ) * - - col1 + - 94 FROM tab0 WHERE NOT - + ( + - CAST( NULL AS SIGNED ) ) / - 41 IN ( col1, 50 )
----

skipif mysql # not compatible
query I rowsort label-2387
SELECT + - CAST ( col2 AS INTEGER ) * - - col1 + - 94 FROM tab0 WHERE NOT - + ( + - CAST ( NULL AS INTEGER ) ) / - 41 IN ( col1, 50 )
----

query II rowsort
SELECT 87 AS col2, col1 - + col1 AS col0 FROM tab0
----
87
0
87
0
87
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 13 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - + col1 FROM tab0 AS cor0
----
-162
-2
-42

query II rowsort
SELECT - 35 AS col0, 18 AS col0 FROM tab2 AS cor0
----
-35
18
-35
18
-35
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL 7 + COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL 7 + COUNT ( * ) FROM tab2 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col2 ) * 23 - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT 66 * - col0 AS col1, - col1 FROM tab2 AS cor0
----
-3036
-51
-4224
-77
-4950
-67

query II rowsort
SELECT ALL - - col1 AS col2, col1 FROM tab0 cor0
----
1
1
21
21
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col0 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT 55 AS col2 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 77 + - + ( + + 50 ) FROM tab1
----
-127
-127
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-2400
SELECT col1 + - 36 + + col1 DIV + + col2 FROM tab2
----
17
32
42

skipif mysql # not compatible
query I rowsort label-2400
SELECT col1 + - 36 + + col1 / + + col2 FROM tab2
----
17
32
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT + col2 DIV - col2 + col1 AS col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-2401
SELECT + col2 / - col2 + col1 AS col1 FROM tab2
----
50
66
76

query I rowsort
SELECT ALL - col2 + + ( col1 ) * - col1 FROM tab2
----
-2624
-4547
-5969

query I rowsort
SELECT - - col2 + 8 * - ( 2 ) AS col2 FROM tab2 AS cor0
----
24
42
7

query II rowsort
SELECT DISTINCT + col0 AS col2, - 40 * - 81 AS col2 FROM tab0
----
15
3240
87
3240
97
3240

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT ALL - 91 AS col1, - MAX( - + col1 ) AS col2 FROM tab0
----
-91
1

skipif mysql # not compatible
query II rowsort label-2405
SELECT ALL - 91 AS col1, - MAX ( - + col1 ) AS col2 FROM tab0
----
-91
1

query II rowsort
SELECT ALL 84 AS col0, + col0 * col0 + - col0 * + col1 AS col1 FROM tab1
----
84
1887
84
4004
84
6800

query I rowsort
SELECT DISTINCT col1 * 10 FROM tab0
----
10
210
810

query I rowsort
SELECT ALL 5 FROM tab2 cor0
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 47 + + col0, + col2 + col1 + + - 24 + + 15 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + 92 * 84 * - + 99 <> ( NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 + + col0 col1 FROM tab1 AS cor0
----
-131
-2071
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2412
SELECT ALL col0 DIV - + col0 + - - 43 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
109
119
93

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL col0 / - + col0 + - - 43 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
109
119
93

query II rowsort
SELECT DISTINCT - ( 31 ), col0 + + col2 * + col0 AS col0 FROM tab0
----
-31
720
-31
957
-31
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT + COUNT( * ) * - 33 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-2414
SELECT + COUNT ( * ) * - 33 FROM tab2
----
-99

query I rowsort
SELECT DISTINCT + - 47 AS col2 FROM tab0 AS cor0
----
-47

query II rowsort
SELECT DISTINCT + 73 * + col1, col0 AS col1 FROM tab0 AS cor0
----
1533
87
5913
15
73
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + 86 + - - 68 IS NULL
----

query I rowsort
SELECT ALL - col1 + ( + col1 ) + + col2 + + - col0 * ( + 60 ) + 31 AS col0 FROM tab1
----
-2933
-5010
-5361

query I rowsort
SELECT DISTINCT + col0 + + 11 FROM tab1 AS cor0
----
102
62
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT - 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-2420
SELECT - CAST ( NULL AS INTEGER ) + ( + col0 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT ALL col0 + col1 - + - 9 DIV + col1 col1 FROM tab0 AS cor0
----
107
108
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2421
SELECT ALL col0 + col1 - + - 9 / + col1 col1 FROM tab0 AS cor0
----
107
108
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT MIN( + 64 ) + + 97 AS col2 FROM tab2 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-2422
SELECT MIN ( + 64 ) + + 97 AS col2 FROM tab2 AS cor0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT + + 99 + + COUNT( * ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + + 99 + + COUNT ( * ) FROM tab2 AS cor0
----
102

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 38 - col1 < NULL
----

query II rowsort
SELECT 67, + 20 AS col2 FROM tab2 AS cor0
----
67
20
67
20
67
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2426
SELECT col2 * + CAST( + - col1 AS SIGNED ) AS col1, 65 AS col2 FROM tab0 AS cor0
----
-210
65
-3807
65
-99
65

skipif mysql # not compatible
query II rowsort label-2426
SELECT col2 * + CAST ( + - col1 AS INTEGER ) AS col1, 65 AS col2 FROM tab0 AS cor0
----
-210
65
-3807
65
-99
65

query I rowsort
SELECT ALL + col1 + + 59 AS col2 FROM tab1
----
106
64
73

query II rowsort
SELECT + col1, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2429
SELECT col2 DIV col0 * + ( - - col0 ) AS col2 FROM tab1
----
0
0
51

skipif mysql # not compatible
query I rowsort label-2429
SELECT col2 / col0 * + ( - - col0 ) AS col2 FROM tab1
----
0
0
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT - COUNT( * ) - + - COUNT( * ) DIV - - 86 * - - COUNT( * ) - 32 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2430
SELECT - COUNT ( * ) - + - COUNT ( * ) / - - 86 * - - COUNT ( * ) - 32 FROM tab1 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT COUNT( - col2 ) + - 46 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-43

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT COUNT ( - col2 ) + - 46 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT COUNT( * ) * - 8 AS col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT COUNT ( * ) * - 8 AS col0 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT - ( - ( col2 ) ) FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col1, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col1 * - 32 + - + 87 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2436
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 * - 32 + - + 87 <> NULL
----

query I rowsort
SELECT DISTINCT + + col2 - - 12 FROM tab2 WHERE NOT col0 * + + col2 NOT BETWEEN - col0 + - 72 * - col1 AND + col0 + + 96 + + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2438
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2439
SELECT MIN( - CAST( - 0 AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2439
SELECT MIN ( - CAST ( - 0 AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * + - 82 * - 34 AS col2 FROM tab0 AS cor0
----
131036
276012
27880

query I rowsort
SELECT + col0 * 72 + - 22 * - - 99 AS col2 FROM tab1 AS cor0
----
1494
3942
4374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * + ( + + col0 ) col2 FROM tab2 AS cor0
----
3680
5120
6000

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + 51
----

query I rowsort
SELECT 1 * + col1 + 6 FROM tab2 AS cor0
----
57
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - MIN( ALL - col1 ) * - 87 * - COUNT( * ) FROM tab2 AS cor0
----
20097

skipif mysql # not compatible
query I rowsort label-2445
SELECT - MIN ( ALL - col1 ) * - 87 * - COUNT ( * ) FROM tab2 AS cor0
----
20097

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2446
SELECT DISTINCT - + CAST( + col2 AS SIGNED ), ( 47 ) AS col1 FROM tab0 AS cor0
----
-10
47
-47
47
-99
47

skipif mysql # not compatible
query II rowsort label-2446
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ), ( 47 ) AS col1 FROM tab0 AS cor0
----
-10
47
-47
47
-99
47

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL < col2 + - col0
----

query II rowsort
SELECT + 64 * - col2, - col2 AS col0 FROM tab0 AS cor0
----
-3008
-47
-6336
-99
-640
-10

query I rowsort
SELECT + 55 * + ( - 45 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 39 = ( - + ( + 21 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 * - + 6 + - 60 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 21 col0 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT + - 44 + - + 70 FROM tab1 AS cor0
----
-114
-114
-114

query I rowsort
SELECT DISTINCT - 34 + 63 FROM tab0 WHERE NOT - 3 + + col0 < - + 81
----
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col0 - + col1 NOT BETWEEN - + col0 AND NULL
----
15
81
47

query I rowsort
SELECT DISTINCT + + 9 + - + col0 + col2 AS col2 FROM tab2 AS cor0
----
-14
-15
-8

query I rowsort
SELECT ALL - col0 + + + 9 AS col2 FROM tab2 cor0
----
-37
-55
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2458
SELECT + ( - COUNT( * ) ) - - ( CAST( 30 AS SIGNED ) ) * - - MAX( DISTINCT + col0 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
2250

skipif mysql # not compatible
query I rowsort label-2458
SELECT + ( - COUNT ( * ) ) - - ( CAST ( 30 AS INTEGER ) ) * - - MAX ( DISTINCT + col0 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
2250

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2461
SELECT col1 AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - col2 * + col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2461
SELECT col1 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT DISTINCT - COUNT( * ) - - - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) FROM tab2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2463
SELECT DISTINCT - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 - - + col1 + - col2 * + 27 FROM tab1
----
-1503
-1698
-2527

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT + 48 + + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 48 + + COUNT ( * ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT SUM( ALL + col2 ) + + + 84 - + 4 col2 FROM tab2
----
201

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2466
SELECT SUM ( ALL + col2 ) + + + 84 - + 4 col2 FROM tab2
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * ( - + col1 ) + - + col1 col1 FROM tab0 cor0
----
-1296
-1848
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 63 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - - COUNT( DISTINCT - + 3 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - - COUNT ( DISTINCT - + 3 ) AS col1 FROM tab1 AS cor0
----
1

query II rowsort
SELECT - col0 AS col1, - col0 AS col1 FROM tab0
----
-15
-15
-87
-87
-97
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - col1
----

query I rowsort
SELECT - - 35 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT - - 77 <> col1
----
77

onlyif mysql # aggregate syntax: 
query III rowsort label-2474
SELECT - 78, + 2 AS col0, - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-78
2
3

skipif mysql # not compatible
query III rowsort label-2474
SELECT - 78, + 2 AS col0, - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-78
2
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55 col0, + 75 * - + 26 AS col0 FROM tab2 AS cor0
----
55
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT - COUNT( * ) * + + 74 + - COUNT( * ) FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2477
SELECT - COUNT ( * ) * + + 74 + - COUNT ( * ) FROM tab0 AS cor0
----
-225

query II rowsort
SELECT ALL - col2 AS col2, 34 AS col1 FROM tab1 AS cor0
----
-59
34
-68
34
-96
34

query I rowsort
SELECT + - ( 61 ) * - + col1 * + 84 + - - 30 AS col2 FROM tab2 AS cor0
----
261354
343338
394578

query I rowsort
SELECT + 8 + + col0 FROM tab0
----
105
23
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL - SUM( + 79 ) FROM tab0 WHERE NOT NULL <= + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL - SUM ( + 79 ) FROM tab0 WHERE NOT NULL <= + 18
----
NULL

query I rowsort
SELECT 49 + + + col1 - - 47 FROM tab1
----
101
110
143

query I rowsort
SELECT - 35 + ( + - col0 ) FROM tab1
----
-120
-126
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT MIN( DISTINCT + + 49 ) AS col2 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-2484
SELECT MIN ( DISTINCT + + 49 ) AS col2 FROM tab0
----
49

query I rowsort
SELECT DISTINCT + col2 * - ( - + col1 ) AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL - MAX( ALL 18 ) + + 75 AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - MAX ( ALL 18 ) + + 75 AS col0 FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT DISTINCT + 38 * col0 * - - CAST( NULL AS SIGNED ) + - col1 + - CAST( col1 AS SIGNED ) + + 63 + 48 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + 38 * col0 * - - CAST ( NULL AS INTEGER ) + - col1 + - CAST ( col1 AS INTEGER ) + + 63 + 48 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + - col2 - - + col1 + + + col2 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL + COUNT( col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL + COUNT ( col2 ) FROM tab1 cor0
----
3

query I rowsort
SELECT 46 + + + col1 AS col0 FROM tab1
----
51
60
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2492
SELECT + 78 FROM tab0 WHERE - + 92 * - - col2 / col2 BETWEEN NULL AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2492
SELECT + 78 FROM tab0 WHERE - + 92 * - - col2 / col2 BETWEEN NULL AND - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT 27 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-2493
SELECT 27 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
36

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col1 * + + col1 / - col0 * col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 * col2
----

query I rowsort
SELECT + col0 + - 59 AS col0 FROM tab0 AS cor0 WHERE - 47 IS NULL
----

query I rowsort
SELECT + + 42 + col0 - col1 + - 1 * - col1 * col1 FROM tab2 AS cor0
----
2638
4539
5958

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + COUNT( DISTINCT - 9 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2498
SELECT + COUNT ( DISTINCT - 9 ) col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col0 - 94 + - 41 FROM tab1 AS cor0
----
-186
-220
-226

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * - + col0 - + + 77 FROM tab0 AS cor0
----
-1292
-174
-1904

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT + + ( - COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2502
SELECT + + ( - COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2503
SELECT + col0 AS col1, + col1 - - + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2503
SELECT + col0 AS col1, + col1 - - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL + + 56 - - col0 AS col2 FROM tab0 AS cor0
----
143
153
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2505
SELECT DISTINCT col2 - - CAST( - 99 AS SIGNED ) AS col1 FROM tab2
----
-41
-59
-76

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT col2 - - CAST ( - 99 AS INTEGER ) AS col1 FROM tab2
----
-41
-59
-76

query III rowsort
SELECT * FROM tab1 WHERE - 3 BETWEEN + 82 AND NULL
----

query I rowsort
SELECT ALL 62 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - 66 * + COUNT( * ) FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 66 * + COUNT ( * ) FROM tab1 AS cor0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT ALL - - 23 / - ( - col2 ) + + - CAST( - 66 AS SIGNED ) col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2509
SELECT ALL - - 23 / - ( - col2 ) + + - CAST ( - 66 AS INTEGER ) col2 FROM tab1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL - 58 + - COUNT( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - 58 + - COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 NOT IN ( - + col2 )
----

query I rowsort
SELECT DISTINCT - - ( + 29 ) AS col1 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ( + - COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT ( + - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - col2 * ( - 1 ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - + ( + 23 ) FROM tab1 AS cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 + - col0 * - col0 col0, + 42 AS col2 FROM tab2 AS cor0
----
2070
42
4032
42
5550
42

query I rowsort
SELECT - + col0 * - 72 AS col2 FROM tab2 cor0
----
3312
4608
5400

query I rowsort
SELECT ALL - 49 + + col2 + - + col2 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL - + ( - 54 ) * - - col2 * + 51 AS col0 FROM tab0 AS cor0
----
129438
272646
27540

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - + col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 <= + col0 - 28
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2523
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0, SUM( - 14 ) col1 FROM tab0 WHERE col1 IS NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2523
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, SUM ( - 14 ) col1 FROM tab0 WHERE col1 IS NULL
----
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 71 + - 46 - - + 49 AS col2 FROM tab0
----
74
74
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col1 * - ( 3 ) + - col1 + + - 81 * 76 * - 10 + - col1 FROM tab0
----
61155
61455
61555

query I rowsort
SELECT - 84 + + col1 FROM tab1 cor0
----
-37
-70
-79

query I rowsort
SELECT - col0 + + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL - - MAX( DISTINCT - 15 ) * + 97 FROM tab1 AS cor0
----
-1455

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL - - MAX ( DISTINCT - 15 ) * + 97 FROM tab1 AS cor0
----
-1455

query I rowsort
SELECT ALL ( ( - col0 ) ) + 60 + + col2 * - col1 * + col2 FROM tab2 AS cor0
----
-123204
-225403
-26965

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col1 * col1 * + 5 * - ( + col1 ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT 15 * + COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-2533
SELECT 15 * + COUNT ( * ) FROM tab2
----
45

query I rowsort
SELECT ( - col1 ) * - col1 AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL - COUNT( 63 ) + - 55 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL - COUNT ( 63 ) + - 55 FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2537
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 / - + 53 ) >= - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2537
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 / - + 53 ) >= - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT ALL col1 * - 80 - + col0 AS col0 FROM tab1 cor0
----
-1171
-3851
-485

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT ALL 3 DIV ( - + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL 3 / ( - + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT + col1 * 63 AS col1 FROM tab1
----
2961
315
882

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - + COUNT( * ) - - 27 * - 73 FROM tab0 WHERE NOT NULL IS NULL
----
-1971

skipif mysql # not compatible
query I rowsort label-2541
SELECT - + COUNT ( * ) - - 27 * - 73 FROM tab0 WHERE NOT NULL IS NULL
----
-1971

onlyif mysql # aggregate syntax: 
query II rowsort label-2542
SELECT + 83, + SUM( - 53 ) + 86 AS col2 FROM tab0
----
83
-73

skipif mysql # not compatible
query II rowsort label-2542
SELECT + 83, + SUM ( - 53 ) + 86 AS col2 FROM tab0
----
83
-73

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT + ( + MAX( ALL + col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + ( + MAX ( ALL + col1 ) ) AS col0 FROM tab1
----
47

query I rowsort
SELECT ALL - - 15 FROM tab2 WHERE - + col0 < - col2
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * - col0 col1 FROM tab0
----
-4350
-4850
-750

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2547
SELECT - CAST( - - 54 AS SIGNED ) DIV - 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT - CAST ( - - 54 AS INTEGER ) / - 76 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2548
SELECT ALL - + COUNT( * ) AS col1, + COUNT( + col0 ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2548
SELECT ALL - + COUNT ( * ) AS col1, + COUNT ( + col0 ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-3
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 93 AS col2 FROM tab1 AS cor0
----
93
93
93

query II rowsort
SELECT + col0 + col2, + col0 FROM tab1 AS cor0
----
144
85
147
51
159
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT + col2 * col1 * - CAST( NULL AS SIGNED ) + + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT + col2 * col1 * - CAST ( NULL AS INTEGER ) + + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - - ( + + col1 ) - - col0 AS col2 FROM tab2
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL - 17 + - MIN( ALL col1 ) AS col2 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - 17 + - MIN ( ALL col1 ) AS col2 FROM tab1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2555
SELECT ALL - COUNT( * ) + - 34 * - CAST( - 12 AS SIGNED ) AS col0 FROM tab2
----
-411

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL - COUNT ( * ) + - 34 * - CAST ( - 12 AS INTEGER ) AS col0 FROM tab2
----
-411

query II rowsort
SELECT DISTINCT col1 AS col1, - 5 + - - col2 AS col0 FROM tab0
----
1
94
21
5
81
42

query I rowsort
SELECT DISTINCT - col1 + + 52 + - - col0 * col2 + 95 * col2 FROM tab1 AS cor0
----
10667
12653
14054

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 / col2 + + - ( ( col0 ) ) + - col1 + + col1 * 94 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 / col2 + + - ( ( col0 ) ) + - col1 + + col1 * 94 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT + MIN( DISTINCT + - ( - col1 ) ) - - SUM( col2 ) FROM tab0 cor0
----
157

skipif mysql # not compatible
query I rowsort label-2559
SELECT + MIN ( DISTINCT + - ( - col1 ) ) - - SUM ( col2 ) FROM tab0 cor0
----
157

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2560
SELECT ALL + MIN( ALL + CAST( NULL AS DECIMAL ) ) - - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL + MIN ( ALL + CAST ( NULL AS REAL ) ) - - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT - ( + - COUNT( * ) ) + - 45 AS col1 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - ( + - COUNT ( * ) ) + - 45 AS col1 FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2563
SELECT 22 AS col0, COUNT( * ) * + 34 FROM tab2 AS cor0
----
22
102

skipif mysql # not compatible
query II rowsort label-2563
SELECT 22 AS col0, COUNT ( * ) * + 34 FROM tab2 AS cor0
----
22
102

query I rowsort
SELECT DISTINCT + col1 * - 76 AS col0 FROM tab1 AS cor0
----
-1064
-3572
-380

query I rowsort
SELECT - + 54 * - col0 - + 73 FROM tab2 AS cor0
----
2411
3383
3977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL - COUNT( * ) * + CAST( + AVG ( DISTINCT - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - COUNT ( * ) * + CAST ( + AVG ( DISTINCT - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
102

query I rowsort
SELECT + + col2 + - - col1 + col2 FROM tab0 WHERE NOT - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL SUM( DISTINCT - + 68 ) AS col0 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL SUM ( DISTINCT - + 68 ) AS col0 FROM tab1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL MIN( DISTINCT - 91 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2569
SELECT ALL MIN ( DISTINCT - 91 ) col2 FROM tab1
----
-91

query I rowsort
SELECT ALL 5 FROM tab1 WHERE NOT - - col2 NOT BETWEEN NULL AND + + col2
----

query I rowsort
SELECT DISTINCT + + col1 * + + col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2572
SELECT * FROM tab0 cor0 WHERE NOT - 94 * CAST( NULL AS SIGNED ) - - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2572
SELECT * FROM tab0 cor0 WHERE NOT - 94 * CAST ( NULL AS INTEGER ) - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - col2 + + - col0 + + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - col2 + + - col0 + + col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT SUM( DISTINCT + 82 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT SUM ( DISTINCT + 82 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
82

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT + + col0 AS col0, ( - col1 ) FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2579
SELECT - col0 FROM tab2 AS cor0 WHERE + col1 DIV + col0 - + col1 <= + CAST( - + 50 AS SIGNED )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2579
SELECT - col0 FROM tab2 AS cor0 WHERE + col1 / + col0 - + col1 <= + CAST ( - + 50 AS INTEGER )
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2580
SELECT + + 45 * - CAST( NULL AS SIGNED ) - ( col0 ) * - ( - 84 ) - - col2 * + col0 AS col2, col2 col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2580
SELECT + + 45 * - CAST ( NULL AS INTEGER ) - ( col0 ) * - ( - 84 ) - - col2 * + col0 AS col2, col2 col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT col1 + - + 10 FROM tab0 cor0
----
-9
11
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - COUNT( * ) + - ( - 7 ) + - + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-2582
SELECT - COUNT ( * ) + - ( - 7 ) + - + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
7

query I rowsort
SELECT + 45 + - col0 FROM tab2
----
-1
-19
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT ALL - CAST( ( - + 16 ) AS SIGNED ) FROM tab0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL - CAST ( ( - + 16 ) AS INTEGER ) FROM tab0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 10 + - MIN( DISTINCT + ( col0 ) ) AS col0 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-2585
SELECT 10 + - MIN ( DISTINCT + ( col0 ) ) AS col0 FROM tab1
----
-41

query I rowsort
SELECT + 12 + - col1 + - col2 FROM tab2
----
-105
-113
-62

query I rowsort
SELECT + col0 * + + col0 * + + 25 * + col2 + + + 13 - - - 63 AS col2 FROM tab0
----
1892200
23287225
264325

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - col1 / col0 + col1 + col1 / - - col1 * col1 * - + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 40 + - col2 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col2, 34 FROM tab1 AS cor0
----
51
34
85
34
91
34

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT DISTINCT - - COUNT( * ), 21 col0 FROM tab0 cor0
----
3
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2592
SELECT DISTINCT - - COUNT ( * ), 21 col0 FROM tab0 cor0
----
3
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 WHERE 83 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 WHERE 83 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT ( col2 ) * + + col2 - + col0 FROM tab2
----
1536
3289
483

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - MIN( DISTINCT 58 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2595
SELECT - MIN ( DISTINCT 58 ) FROM tab2
----
-58

query II rowsort
SELECT col1, + col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2597
SELECT COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2598
SELECT 17 * + + 4 AS col2, 99 + - COUNT( * ) col2 FROM tab0
----
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2598
SELECT 17 * + + 4 AS col2, 99 + - COUNT ( * ) col2 FROM tab0
----
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT DISTINCT - 56 DIV + 17 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - 56 / + 17 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col0, 50 + - 56 AS col0 FROM tab0 AS cor0
----
-15
-6
-87
-6
-97
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2603
SELECT - 16 DIV - col1 AS col1, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-2603
SELECT - 16 / - col1 AS col1, col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2604
SELECT ALL + col0 * 87, + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
1305
NULL
7569
NULL
8439
NULL

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL + col0 * 87, + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
1305
NULL
7569
NULL
8439
NULL

query I rowsort
SELECT 10 * - - col0 + - 46 AS col1 FROM tab1
----
464
804
864

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2606
SELECT DISTINCT ( CAST( - - 78 AS SIGNED ) ) * col1 + + + col2 AS col1, col1 FROM tab0 cor0
----
1648
21
177
1
6365
81

skipif mysql # not compatible
query II rowsort label-2606
SELECT DISTINCT ( CAST ( - - 78 AS INTEGER ) ) * col1 + + + col2 AS col1, col1 FROM tab0 cor0
----
1648
21
177
1
6365
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL + COUNT( * ) * - COUNT( * ) - - 32 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
32

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + COUNT ( * ) * - COUNT ( * ) - - 32 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 + - - col1 * + 62 col0 FROM tab0 AS cor0
----
1390
150
5110

query I rowsort
SELECT DISTINCT col2 - - ( 72 ) - - col2 FROM tab1 cor0
----
190
208
264

query I rowsort
SELECT - + 34 + - 73 FROM tab1 AS cor0
----
-107
-107
-107

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 31 * + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT DISTINCT - 54 + + COUNT( * ) + - 41 AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - 54 + + COUNT ( * ) + - 41 AS col2 FROM tab1 AS cor0
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 70 col1 FROM tab1
----
4130
4760
6720

query III rowsort
SELECT * FROM tab1 WHERE - 99 < + 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL - COUNT( ALL - + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - COUNT ( ALL - + col0 ) FROM tab1
----
-3

query I rowsort
SELECT ALL - + 78 * col2 + - 31 FROM tab1 AS cor0
----
-4633
-5335
-7519

query II rowsort
SELECT + - col0 * - + 90 + + col0 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
4186
23
5824
40
6825
58

query I rowsort
SELECT DISTINCT + + col2 + + - 91 FROM tab1 AS cor0
----
-23
-32
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + MAX( DISTINCT + - 28 ) - + 51 * - 85 + + + 6 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4313

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2619
SELECT + MAX ( DISTINCT + - 28 ) - + 51 * - 85 + + + 6 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
4313

query I rowsort
SELECT - - 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2621
SELECT MIN( - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT MIN ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * - + col0 + + - 47 + - 42 FROM tab1 AS cor0
----
-4985
-5104
-6277

query I rowsort
SELECT ALL + - 50 AS col1 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT col2 * - 49 FROM tab2 cor0
----
-1127
-1960
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - + 99 * - + col0 * + - col2 * - ( - 7 ) FROM tab2 AS cor0
----
-1774080
-3014550
-733194

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT + + COUNT( + col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + + COUNT ( + col1 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT + SUM( ALL - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + SUM ( ALL - col0 ) FROM tab0
----
-199

query I rowsort
SELECT ALL 95 * col0 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL + 61 + + COUNT( * ) col0 FROM tab1
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2631
SELECT ALL + 61 + + COUNT ( * ) col0 FROM tab1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT DISTINCT CAST( + + COUNT( - 81 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT CAST ( + + COUNT ( - 81 ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL col2 + 12 AS col2 FROM tab1
----
108
71
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab2 cor0
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2635
SELECT CAST( + 32 AS SIGNED ) * COUNT( * ) DIV - COUNT( ALL + 18 ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2635
SELECT CAST ( + 32 AS INTEGER ) * COUNT ( * ) / - COUNT ( ALL + 18 ) FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab2 cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT - - COUNT( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT - - COUNT ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 82 + - - 71 AS col0 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2639
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab2
----
9
-3

skipif mysql # not compatible
query II rowsort label-2639
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2
----
9
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT DISTINCT - 90 * - 34 * - - COUNT( * ) FROM tab1
----
9180

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT - 90 * - 34 * - - COUNT ( * ) FROM tab1
----
9180

query I rowsort
SELECT + 8 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT - COUNT( * ) * - 49 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT - COUNT ( * ) * - 49 FROM tab0
----
147

query I rowsort
SELECT ( 62 ) AS col0 FROM tab1
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT + 65 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT + 65 / - col1 FROM tab2
----
-1
0
0

query II rowsort
SELECT ( + + col1 ), col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT - - col1 + + - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + col2 * col0 - + col1 AS col0 FROM tab0 cor0 WHERE + col2 * 27 IS NOT NULL
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT + 20 - - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2648
SELECT + 20 - - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - - COUNT( * ) * + + COUNT( * ) - COUNT( * ) + - - ( MIN( col2 ) ) AS col0 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2649
SELECT - - COUNT ( * ) * + + COUNT ( * ) - COUNT ( * ) + - - ( MIN ( col2 ) ) AS col0 FROM tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT ( col1 ) * - ( - col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT + col2 * + + col1 FROM tab0 WHERE + - 16 NOT BETWEEN - + CAST( - - 72 AS SIGNED ) AND - col0 - - col2 + - 96
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-2651
SELECT + col2 * + + col1 FROM tab0 WHERE + - 16 NOT BETWEEN - + CAST ( - - 72 AS INTEGER ) AND - col0 - - col2 + - 96
----
210
3807
99

query I rowsort
SELECT + col1 * - col1 * col0 + - - col0 AS col1 FROM tab2
----
-119600
-336600
-379392

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT - SUM( ALL - - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - SUM ( ALL - - col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + + ( - MIN( ALL - col1 ) ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2656
SELECT + + ( - MIN ( ALL - col1 ) ) FROM tab1 cor0
----
47

query I rowsort
SELECT ALL + + ( + - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2659
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <> + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2659
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <> + CAST ( NULL AS REAL )
----

query II rowsort
SELECT DISTINCT - 75 AS col1, 75 AS col0 FROM tab1 AS cor0
----
-75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col0 * + - col1 col2 FROM tab0 AS cor0
----
-1
-97
-21
-1827
-81
-1215

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT 42 + - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT 42 + - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT MAX( ALL + 99 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2664
SELECT MAX ( ALL + 99 ) AS col0 FROM tab0
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2665
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col2 + - col1 * - col0 * + - 86 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2665
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col2 + - col1 * - col0 * + - 86 col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 34 * + col2 AS col1 FROM tab1
----
-2006
-2312
-3264

query I rowsort
SELECT ALL - 77 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + 51 + 29 AS col0 FROM tab2
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT DISTINCT - + COUNT( * ) * - - 45 + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT DISTINCT - + COUNT ( * ) * - - 45 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL + 38 + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + 38 + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT DISTINCT + col1 + + - col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT + col1 + + - col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT + COUNT( DISTINCT + col0 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2672
SELECT + COUNT ( DISTINCT + col0 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NULL = ( 74 ) + + 27 * + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2674
SELECT - COUNT( * ) AS col1, - 75 FROM tab0 AS cor0
----
-3
-75

skipif mysql # not compatible
query II rowsort label-2674
SELECT - COUNT ( * ) AS col1, - 75 FROM tab0 AS cor0
----
-3
-75

query I rowsort
SELECT ALL - 75 - 47 + + col1 + col2 FROM tab2 AS cor0
----
-48
-5
3

query I rowsort
SELECT - col2 * 1 FROM tab2 AS cor0 WHERE col1 <> ( - col1 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2677
SELECT COUNT( * ) - + 82 col2, 4 FROM tab0
----
-79
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2677
SELECT COUNT ( * ) - + 82 col2, 4 FROM tab0
----
-79
4

query I rowsort
SELECT 90 - - - ( 95 ) AS col1 FROM tab0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT - col0 - - CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT - col0 - - CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2680
SELECT ALL col0 AS col2, CAST( - col0 AS SIGNED ) + - - 26 AS col2 FROM tab2
----
46
-20
64
-38
75
-49

skipif mysql # not compatible
query II rowsort label-2680
SELECT ALL col0 AS col2, CAST ( - col0 AS INTEGER ) + - - 26 AS col2 FROM tab2
----
46
-20
64
-38
75
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT + - ( + SUM( + col2 ) ) col0, 85 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
-223
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2681
SELECT + - ( + SUM ( + col2 ) ) col0, 85 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
-223
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 1 <> NULL
----

query II rowsort
SELECT DISTINCT + - col1 AS col2, col1 AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT - COUNT( * ) AS col2, 50 AS col0 FROM tab0 AS cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-2684
SELECT - COUNT ( * ) AS col2, 50 AS col0 FROM tab0 AS cor0
----
-3
50

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2685
SELECT 11, CAST( NULL AS DECIMAL ) + - + 4 + - 11 AS col2 FROM tab2 AS cor0
----
11
NULL
11
NULL
11
NULL

skipif mysql # not compatible
query II rowsort label-2685
SELECT 11, CAST ( NULL AS REAL ) + - + 4 + - 11 AS col2 FROM tab2 AS cor0
----
11
NULL
11
NULL
11
NULL

query I rowsort
SELECT ( + - 87 ) FROM tab0 cor0
----
-87
-87
-87

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > 30 + + 66
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2688
SELECT DISTINCT + - ( CAST( + - col0 AS SIGNED ) ), + col0 DIV col2 + col2 AS col0 FROM tab2 AS cor0
----
46
25
64
41
75
59

skipif mysql # not compatible
query II rowsort label-2688
SELECT DISTINCT + - ( CAST ( + - col0 AS INTEGER ) ), + col0 / col2 + col2 AS col0 FROM tab2 AS cor0
----
46
25
64
41
75
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + col1 ) col0, col2 - + col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 96 ) + + col2 > NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + - col1 - ( + col0 ) + + 31 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 99 + - 76 FROM tab1, tab2 AS cor0
----
9 values hashing to d226dfed031e44630d31422ec08161fe

query I rowsort
SELECT ALL - + col2 + - col2 * + + col1 FROM tab2 AS cor0
----
-1196
-3120
-3944

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 97 <> 28 * + 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0, col2 + + col1 AS col1 FROM tab1 AS cor0
----
51
110
85
64
91
115

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 40 ) > + col1
----

query I rowsort
SELECT DISTINCT - - col0 + - col0 + - 45 FROM tab0 cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT COUNT( ALL 38 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT COUNT ( ALL 38 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL = col2 + col2
----

query I rowsort
SELECT DISTINCT + 39 * 49 FROM tab2
----
1911

query III rowsort
SELECT * FROM tab0 WHERE NOT - 11 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT + 90 * 63 + 63 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT 28 - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 90 * 63 + 63 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT 28 - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 27 + - col0 AS col0 FROM tab0
----
-60
-70
12

query I rowsort
SELECT - col0 + 87 AS col0 FROM tab0
----
-10
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL 72 * COUNT( * ) AS col1 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL 72 * COUNT ( * ) AS col1 FROM tab0
----
216

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + 8 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT 78 DIV - MIN( DISTINCT 50 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2709
SELECT 78 / - MIN ( DISTINCT 50 ) AS col1 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT 56 * + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN 15 * + ( col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2711
SELECT 56 * + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN 15 * + ( col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2712
SELECT DISTINCT 76 DIV - MIN( - 90 * - col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT 76 / - MIN ( - 90 * - col1 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT col0 + - 19 AS col2 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
-4
68
78

query III rowsort
SELECT * FROM tab1 WHERE - col2 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col1 )
----

query I rowsort
SELECT ( col1 ) * - 57 - - col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT + ( col1 ) / - col1 - col0 < ( col1 * - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-2717
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT + ( col1 ) / - col1 - col0 < ( col1 * - col0 )
----
-3

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL + 88 * + COUNT( * ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + 88 * + COUNT ( * ) FROM tab1 AS cor0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT DISTINCT + 95 DIV col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + 95 / col0 FROM tab0
----
0
1
6

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 75 ) <= ( NULL )
----

query I rowsort
SELECT + 76 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL COUNT( * ) * 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
324

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL COUNT ( * ) * 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
324

query I rowsort
SELECT + - 48 AS col1 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT + col2 + 53 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 53 + - col1 FROM tab1 AS cor0
----
39
48
6

query I rowsort
SELECT - - col2 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT col1 + - 19 * - ( col0 ) FROM tab0 AS cor0
----
1674
1844
366

query I rowsort
SELECT col1 + + col1 * + col0 AS col0 FROM tab0
----
1296
1848
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT - col0 DIV ( 9 ) AS col0 FROM tab0
----
-1
-10
-9

skipif mysql # not compatible
query I rowsort label-2730
SELECT - col0 / ( 9 ) AS col0 FROM tab0
----
-1
-10
-9

query I rowsort
SELECT - col2 FROM tab0 WHERE col2 = + col0 / + col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT CAST( NULL AS SIGNED ) * - col0 / - 74 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT CAST ( NULL AS INTEGER ) * - col0 / - 74 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT DISTINCT 97 + - - COUNT( * ) AS col0 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT 97 + - - COUNT ( * ) AS col0 FROM tab2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + COUNT( * ) * COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) * COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 ) BETWEEN - 79 * - col1 + 57 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT - + ( - col2 ) * CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2736
SELECT DISTINCT - + ( - col2 ) * CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT - COUNT( * ) - - 44 FROM tab1 AS cor0 WHERE ( 2 + ( col1 ) ) BETWEEN NULL AND NULL
----
44

skipif mysql # not compatible
query I rowsort label-2737
SELECT - COUNT ( * ) - - 44 FROM tab1 AS cor0 WHERE ( 2 + ( col1 ) ) BETWEEN NULL AND NULL
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT SUM( ALL + - col0 ) - - ( MAX( col0 ) - COUNT( * ) ) AS col2 FROM tab2 cor0
----
-113

skipif mysql # not compatible
query I rowsort label-2738
SELECT SUM ( ALL + - col0 ) - - ( MAX ( col0 ) - COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-113

query I rowsort
SELECT ALL 11 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT IN ( + col0 + 79 )
----

query I rowsort
SELECT + - 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + - 84 AS col0 FROM tab1 AS cor0
----
-33
1
7

query II rowsort
SELECT col2 AS col2, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 35 NOT BETWEEN + col1 * - col2 AND 31 - - col0
----

query II rowsort
SELECT col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 72 NOT IN ( + col2 + - col2 * col1 )
----
3

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 72 NOT IN ( + col2 + - col2 * col1 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL - COUNT( ALL - col2 ) * COUNT( * ) - 7 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - COUNT ( ALL - col2 ) * COUNT ( * ) - 7 FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL - MAX( col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - MAX ( col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL + 23 * + COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + 23 * + COUNT ( * ) FROM tab1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT + CAST( SUM( col1 ) AS SIGNED ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2752
SELECT + CAST ( SUM ( col1 ) AS INTEGER ) AS col1 FROM tab0
----
103

query I rowsort
SELECT - col0 - col0 AS col1 FROM tab2 WHERE NOT ( - + col2 ) * 41 = - col1 + col0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL 20 * - - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL 20 * - - COUNT ( * ) FROM tab0
----
60

query I rowsort
SELECT ALL col2 * - - ( + col1 ) FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - 15 * - ( - 56 ) * col0 * col0 AS col1 FROM tab1 AS cor0
----
-2184840
-6069000
-6956040

query I rowsort
SELECT ALL 8 AS col0 FROM tab0 cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2759
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * col1 / + + col0 * - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2759
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * col1 / + + col0 * - col1 IS NULL
----

query I rowsort
SELECT ( col1 ) * - ( 75 ) AS col0 FROM tab2 WHERE NOT + + 75 * - col0 <> NULL
----

query I rowsort
SELECT - col2 * - + col1 + + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-231
-2754
98

query I rowsort
SELECT DISTINCT 55 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 53 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2764
SELECT DISTINCT - 56 DIV - COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT - 56 / - COUNT ( * ) FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT COUNT( * ) * SUM( ALL - 11 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2765
SELECT COUNT ( * ) * SUM ( ALL - 11 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NULL IN ( - col0, col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 + + col2 * - - col0 / - + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col1 FROM tab1 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2770
SELECT ALL * FROM tab2 WHERE NOT - 79 NOT BETWEEN + col1 AND ( + - 20 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2770
SELECT ALL * FROM tab2 WHERE NOT - 79 NOT BETWEEN + col1 AND ( + - 20 - - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 < ( + 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 12 + col0 AS col0 FROM tab0
----
109
27
99

query I rowsort
SELECT DISTINCT - 23 + - col2 - + col2 AS col1 FROM tab0
----
-117
-221
-43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - 45 * + + ( + col2 ) + - 85 + 77 AND NULL
----

query I rowsort
SELECT ( col0 ) + + ( - 50 ) FROM tab1 WHERE - 68 * - col0 + - col1 NOT BETWEEN col0 - + 40 / 4 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT CAST( + + 44 AS SIGNED ) + + ( + 58 ) + - - COUNT( * ) AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-2776
SELECT CAST ( + + 44 AS INTEGER ) + + ( + 58 ) + - - COUNT ( * ) AS col0 FROM tab0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT SUM( + col2 ) + + + 96 FROM tab2
----
217

skipif mysql # not compatible
query I rowsort label-2777
SELECT SUM ( + col2 ) + + + 96 FROM tab2
----
217

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2778
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> ( col0 * - col2 / - col0 / - CAST( NULL AS SIGNED ) - + ( 61 ) )
----

skipif mysql # not compatible
query III rowsort label-2778
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> ( col0 * - col2 / - col0 / - CAST ( NULL AS INTEGER ) - + ( 61 ) )
----

query II rowsort
SELECT 88, 33 AS col2 FROM tab1 AS cor0
----
88
33
88
33
88
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + MIN( ALL col1 ) col0 FROM tab2 AS cor0 WHERE NOT 97 * + 10 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2780
SELECT + MIN ( ALL col1 ) col0 FROM tab2 AS cor0 WHERE NOT 97 * + 10 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL AVG ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE ( - 71 + + + ( + col2 ) ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col0 * + 86 * - ( 77 ) AS col0 FROM tab0 AS cor0
----
576114
642334
99330

query I rowsort
SELECT + col2 / + + col1 + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2784
SELECT ALL SUM( ALL - + col1 ), - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
-66
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2784
SELECT ALL SUM ( ALL - + col1 ), - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-66
NULL

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + - col1 ) IN ( 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL MAX( DISTINCT + - 88 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL MAX ( DISTINCT + - 88 ) FROM tab0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * + col1 col2 FROM tab2
----
4335
5695
6545

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2790
SELECT * FROM tab0 WHERE NOT col0 / - + 44 IN ( - - col1, ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2790
SELECT * FROM tab0 WHERE NOT col0 / - + 44 IN ( - - col1, ( - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT 12 * - + col0 FROM tab1
----
-1020
-1092
-612

query I rowsort
SELECT DISTINCT - col2 * + - col1 * - col2 AS col1 FROM tab1 cor0
----
-129024
-17405
-217328

query II rowsort
SELECT col2 AS col1, col1 FROM tab1 cor0
----
59
5
68
47
96
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + 47 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2795
SELECT ALL CAST( NULL AS DECIMAL ), 15 AS col1 FROM tab0 cor0
----
NULL
15
NULL
15
NULL
15

skipif mysql # not compatible
query II rowsort label-2795
SELECT ALL CAST ( NULL AS REAL ), 15 AS col1 FROM tab0 cor0
----
NULL
15
NULL
15
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT + + 89 * - COUNT( * ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-2796
SELECT + + 89 * - COUNT ( * ) FROM tab2 AS cor0
----
-267

query II rowsort
SELECT + + col1 AS col1, - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < - 75 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT ALL - 99 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - 99 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2799
SELECT + col1 * col0 col0, 69 * + CAST( NULL AS DECIMAL ) + col0 * 21 * 17 FROM tab2 cor0
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2799
SELECT + col1 * col0 col0, 69 * + CAST ( NULL AS REAL ) + col0 * 21 * 17 FROM tab2 cor0
----
2346
NULL
4928
NULL
5025
NULL

query I rowsort
SELECT DISTINCT + 56 * + + col2 AS col0 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT col2 * - - col2 AS col2 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col2 * - col1 * col0 BETWEEN col2 * - 85 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT - MAX( ALL - + col1 ) DIV - + COUNT( ALL col1 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2803
SELECT - MAX ( ALL - + col1 ) / - + COUNT ( ALL col1 ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT + - col1 AS col0 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + + 29 FROM tab1 WHERE NULL >= ( NULL )
----
29

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + + 29 FROM tab1 WHERE NULL >= ( NULL )
----
29

query II rowsort
SELECT ALL 41 AS col0, ( + col1 ) FROM tab1
----
41
14
41
47
41
5

query I rowsort
SELECT ALL + 74 + - 90 FROM tab1 AS cor0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= 67
----
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2809
SELECT DISTINCT + COUNT( * ) - CAST( COUNT( * ) AS SIGNED ), 74 AS col1 FROM tab2 AS cor0
----
0
74

skipif mysql # not compatible
query II rowsort label-2809
SELECT DISTINCT + COUNT ( * ) - CAST ( COUNT ( * ) AS INTEGER ), 74 AS col1 FROM tab2 AS cor0
----
0
74

query I rowsort
SELECT + 55 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL + + 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IN ( - - col0 - - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IN ( - - col0 - - 86 )
----
0

query II rowsort
SELECT DISTINCT - col1 AS col2, 84 * - ( + - 69 ) FROM tab2
----
-51
5796
-67
5796
-77
5796

query I rowsort
SELECT - 79 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # DIV for integer division: 
query III rowsort label-2815
SELECT + 30 DIV + + col0, 95 + 81 AS col1, + + 2 * + + 86 * + 98 * - 91 * - 61 + - 76 AS col2 FROM tab2 AS cor0
----
9 values hashing to 9d520702346e7a674c17bb28c2efc709

skipif mysql # not compatible
query III rowsort label-2815
SELECT + 30 / + + col0, 95 + 81 AS col1, + + 2 * + + 86 * + 98 * - 91 * - 61 + - 76 AS col2 FROM tab2 AS cor0
----
9 values hashing to 9d520702346e7a674c17bb28c2efc709

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT + - COUNT( - col0 ) FROM tab1 AS cor0 WHERE NOT col0 * - col2 / + ( 9 ) <> col2
----
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + - COUNT ( - col0 ) FROM tab1 AS cor0 WHERE NOT col0 * - col2 / + ( 9 ) <> col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT - - col2 DIV + 1 + 36 + col0 + - 77 * + - 74 FROM tab2 cor0
----
5803
5838
5867

skipif mysql # not compatible
query I rowsort label-2817
SELECT - - col2 / + 1 + 36 + col0 + - 77 * + - 74 FROM tab2 cor0
----
5803
5838
5867

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 71 + - col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 6 * + + 7 )
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 6 * + + 7 )
----
0

query I rowsort
SELECT ALL col1 * + - 50 AS col2 FROM tab2 AS cor0
----
-2550
-3350
-3850

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2821
SELECT - CAST( NULL AS DECIMAL ), + 26 + - 4 AS col2 FROM tab2 cor0
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-2821
SELECT - CAST ( NULL AS REAL ), + 26 + - 4 AS col2 FROM tab2 cor0
----
NULL
22
NULL
22
NULL
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 56, col1 * - + col1 - + - col0 + - ( - col1 ) col1 FROM tab1 AS cor0
----
56
-131
56
-2071
56
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col0 FROM tab0
----
46
46
46

query I rowsort
SELECT 59 FROM tab2 WHERE NOT - + col0 IS NULL
----
59
59
59

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + 70 + + 16 AS col1, 84 FROM tab2 AS cor0
----
86
84
86
84
86
84

query I rowsort
SELECT ALL - col1 * - 32 * - col0 * - 99 AS col0 FROM tab2 AS cor0
----
15611904
15919200
7432128

query I rowsort
SELECT DISTINCT - - 71 * + col0 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT COUNT( * ) * + + 83 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT COUNT ( * ) * + + 83 FROM tab2
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT DISTINCT - col2 + + + col2 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + CAST( - - col2 AS SIGNED ) * + - col1 + - 43 ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT - col2 + + + col2 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + CAST ( - - col2 AS INTEGER ) * + - col1 + - 43 ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 <> - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 46 - 30 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT ( - 20 ) * col1 * + + ( - 9 ) + + col1 AS col1 FROM tab2 AS cor0
----
12127
13937
9231

query I rowsort
SELECT ALL col2 * + + col0 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL - 6 * + - 53 + + MAX( + col0 ) + + + COUNT( * ) * 22 + COUNT( * ) AS col2 FROM tab0
----
484

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - 6 * + - 53 + + MAX ( + col0 ) + + + COUNT ( * ) * 22 + COUNT ( * ) AS col2 FROM tab0
----
484

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT DISTINCT col2 DIV 12 AS col1 FROM tab0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT col2 / 12 AS col1 FROM tab0
----
0
3
8

query I rowsort
SELECT - col0 * col1 * 44 + - - col2 + col1 FROM tab2
----
-103150
-216715
-220975

query I rowsort
SELECT 33 * col2 + + - 68 AS col1 FROM tab1
----
1879
2176
3100

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE NOT - 18 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col2 / + ( + 18 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + ( - + col2 ) - + - col1 * 87 FROM tab2 WHERE NOT + col0 / - + col2 + - 22 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= 77 + + + 65
----

query I rowsort
SELECT DISTINCT - - col0 * + 63 * + + 84 + + + col2 + - - col2 * col0 AS col2 FROM tab0 AS cor0
----
461284
523026
80132

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + 64 NOT IN ( + col1 / col2 - col1, col2 )
----

query I rowsort
SELECT + col2 / - 47 - - - col0 FROM tab2 WHERE NOT + 12 NOT BETWEEN col2 * - 14 - - col1 AND - ( col0 ) * col1
----

query I rowsort
SELECT ALL col1 + + + ( + col2 ) + + col0 * + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 42 AND ( + 30 * + - 57 + - col0 + + col2 + col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL - + MAX( + + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - + MAX ( + + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2849
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 79 * + - col2 AS col2 FROM tab0 cor0
----
-3713
-7821
-790

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 > - - col2 - + + col2
----

query I rowsort
SELECT DISTINCT - col0 * 33 FROM tab0 cor0
----
-2871
-3201
-495

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT ALL - + COUNT( * ) AS col2, 72 - + 30 * MIN( - - col2 ) AS col0 FROM tab2 AS cor0
----
-3
-618

skipif mysql # not compatible
query II rowsort label-2853
SELECT ALL - + COUNT ( * ) AS col2, 72 - + 30 * MIN ( - - col2 ) AS col0 FROM tab2 AS cor0
----
-3
-618

query II rowsort
SELECT DISTINCT + col2, 11 FROM tab0
----
10
11
47
11
99
11

query II rowsort
SELECT ALL col0 AS col0, + col2 * - - col0 AS col1 FROM tab0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT COUNT( + 54 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2856
SELECT COUNT ( + 54 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2857
SELECT * FROM tab2 WHERE NOT - ( - + ( 28 ) ) * - col1 + + - col1 + + + ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2857
SELECT * FROM tab2 WHERE NOT - ( - + ( 28 ) ) * - col1 + + - col1 + + + ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT DISTINCT 59 DIV + + 37 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT 59 / + + 37 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL - COUNT( * ) + COUNT( + - ( 61 ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - COUNT ( * ) + COUNT ( + - ( 61 ) ) AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 26 AS col1 FROM tab1 cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 10 * - - 95 * - 7 - + 37 col2, 86 * - col0 FROM tab0 AS cor0
----
-6687
-1290
-6687
-7482
-6687
-8342

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL COUNT( ALL - - 99 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL COUNT ( ALL - - 99 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - SUM( DISTINCT - 63 ) * - - 42 AS col2 FROM tab2
----
2646

skipif mysql # not compatible
query I rowsort label-2864
SELECT - SUM ( DISTINCT - 63 ) * - - 42 AS col2 FROM tab2
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE + col2 * + 3 BETWEEN - col0 + - col2 AND NULL
----

query I rowsort
SELECT ALL - - 56 + + - col0 FROM tab0 AS cor0
----
-31
-41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT DISTINCT - ( 92 ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT - ( 92 ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2869
SELECT * FROM tab2 AS cor0 WHERE - col0 * - CAST( + + 22 AS DECIMAL ) NOT BETWEEN NULL AND - 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2869
SELECT * FROM tab2 AS cor0 WHERE - col0 * - CAST ( + + 22 AS REAL ) NOT BETWEEN NULL AND - 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT SUM( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2870
SELECT SUM ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + col0 * col1 AS col2 FROM tab0 AS cor0 WHERE + 26 >= - col0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + 84 + - + col2 col2, 21 FROM tab2 AS cor0
----
101
21
107
21
108
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col2 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT - col2 * col0 FROM tab1 WHERE ( NOT NULL = ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2875
SELECT DISTINCT COUNT( DISTINCT - + CAST( - col0 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT COUNT ( DISTINCT - + CAST ( - col0 AS INTEGER ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col1 FROM tab1
----
74
74
74

query I rowsort
SELECT ALL - 24 * col0 * - + 44 - 56 FROM tab2
----
48520
67528
79144

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL SUM( ALL + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL SUM ( ALL + col1 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2879
SELECT ALL - COUNT( * ) * + 47 + 83 DIV + + COUNT( * ) + - 10 + - 35 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - COUNT ( * ) * + 47 + 83 / + + COUNT ( * ) + - 10 + - 35 FROM tab1 AS cor0
----
-159

query I rowsort
SELECT - col1 * - 37 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT MAX( DISTINCT 47 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2881
SELECT MAX ( DISTINCT 47 ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT + 8 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT - 66 * - col1 + col2 AS col0 FROM tab0 AS cor0
----
1396
165
5393

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT COUNT( * ) * - SUM( ALL + 64 ) FROM tab2 AS cor0
----
-576

skipif mysql # not compatible
query I rowsort label-2884
SELECT COUNT ( * ) * - SUM ( ALL + 64 ) FROM tab2 AS cor0
----
-576

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT - 76 DIV col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2885
SELECT - 76 / col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - 11 + - col1 * col2 + 56 * - 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 50 * - col1 AS col1 FROM tab1 AS cor0
----
-2350
-250
-700

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - 71 + col0 * 90
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / 90 + - col0 * - + col0 * + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - COUNT( - - 9 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2892
SELECT - COUNT ( - - 9 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + + 53 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + 88 + + + 99 * - ( + - col0 ) + + col2 FROM tab0 cor0
----
1620
8711
9790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + - col1 + col2 col2 FROM tab0 AS cor0
----
-1168
-1817
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col2 FROM tab0 cor0
----
55
55
55

query I rowsort
SELECT - 62 * - - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 58 * col0 * + col1 AS col2 FROM tab1
----
24650
248066
41412

query II rowsort
SELECT col1 AS col0, 37 FROM tab0
----
1
37
21
37
81
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT COUNT( * ) * + + 18 col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2900
SELECT COUNT ( * ) * + + 18 col2 FROM tab1 AS cor0
----
54

query I rowsort
SELECT + 67 - - col1 + + col2 * - - 81 * - 57 AS col1 FROM tab0 AS cor0
----
-216851
-457015
-46082

query I rowsort
SELECT ALL - 41 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + col1 * - - col0 + + col1 + - - col1 * + - 33 AS col2 FROM tab1 AS cor0
----
24915
289332
68096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 15 col2 FROM tab2 AS cor0
----
25
43
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT + CAST( + col2 AS SIGNED ) - - col1 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT + CAST ( + col2 AS INTEGER ) - - col1 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 - - col0 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT DISTINCT 56 - - + col0 AS col0 FROM tab0 AS cor0
----
143
153
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT ALL COUNT( * ) - 4 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL COUNT ( * ) - 4 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL - ( COUNT( DISTINCT - col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - ( COUNT ( DISTINCT - col0 ) ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col1 col2, - col0 + + - col2 * - - col1 AS col0 FROM tab2
----
-13
-3144
-5
-1219
8
-3961

query I rowsort
SELECT + col1 + + col1 + + col0 AS col2 FROM tab0
----
129
177
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + COUNT( * ) + - 38 + - 32 col2 FROM tab1
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2912
SELECT + COUNT ( * ) + - 38 + - 32 col2 FROM tab1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT + 74 * MIN( - 8 ) AS col2 FROM tab1
----
-592

skipif mysql # not compatible
query I rowsort label-2913
SELECT + 74 * MIN ( - 8 ) AS col2 FROM tab1
----
-592

query I rowsort
SELECT DISTINCT - col0 * - ( - col1 ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - col0 * + + ( + + col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2916
SELECT ALL - - CAST( - MIN( DISTINCT - col1 ) AS SIGNED ) DIV + - 97 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - - CAST ( - MIN ( DISTINCT - col1 ) AS INTEGER ) / + - 97 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 99 FROM tab2 AS cor0 WHERE NOT + col2 * + + col2 IS NULL
----
-99
-99
-99

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + - MIN( DISTINCT + + col2 ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2919
SELECT + - MIN ( DISTINCT + + col2 ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col1 FROM tab1 AS cor0
----
33

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE NOT NULL <= col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 12 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col1 col1, 21 col0 FROM tab2
----
-2346
21
-4928
21
-5025
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT ALL col2 * + col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL col2 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT DISTINCT 9 / 53 + + - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT 9 / 53 + + - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2928
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 22 - 67 + - COUNT( DISTINCT ( - + CAST( NULL AS SIGNED ) ) ) * - + 46, - 78 - 0 - - 69 AS col2 FROM tab1 AS cor0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-2928
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 22 - 67 + - COUNT ( DISTINCT ( - + CAST ( NULL AS INTEGER ) ) ) * - + 46, - 78 - 0 - - 69 AS col2 FROM tab1 AS cor0
----
NULL
-9

query I rowsort
SELECT DISTINCT - col0 + + - 38 FROM tab1 AS cor0
----
-123
-129
-89

query I rowsort
SELECT DISTINCT - col2 * - - col1 - - 90 FROM tab2 cor0
----
-1083
-2990
-3796

query I rowsort
SELECT - 16 * + 75 * 83 + + 19 FROM tab0 AS cor0
----
-99581
-99581
-99581

query I rowsort
SELECT - col0 + - 3 * - 35 FROM tab0
----
18
8
90

query I rowsort
SELECT DISTINCT + - col2 * col0 - ( + 87 ) FROM tab2 AS cor0
----
-1145
-2647
-4437

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 99 * + ( - 70 ) * - ( + - 62 ) BETWEEN - 69 AND 95
----

query I rowsort
SELECT + 8 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT + + CAST( - MAX( ALL - col2 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2937
SELECT + + CAST ( - MAX ( ALL - col2 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2938
SELECT - - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2938
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + COUNT( DISTINCT + col1 ) AS col0 FROM tab0 cor0 WHERE 95 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + COUNT ( DISTINCT + col1 ) AS col0 FROM tab0 cor0 WHERE 95 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT - MAX( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2941
SELECT ALL col1, 75 DIV + + col1 AS col0 FROM tab2
----
51
1
67
1
77
0

skipif mysql # not compatible
query II rowsort label-2941
SELECT ALL col1, 75 / + + col1 AS col0 FROM tab2
----
51
1
67
1
77
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 54 NOT BETWEEN NULL AND - + 22
----

query II rowsort
SELECT DISTINCT col1, + col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT COUNT( - ( - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2944
SELECT COUNT ( - ( - col1 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT DISTINCT - 37 AS col1, COUNT( * ) col2 FROM tab0
----
-37
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2945
SELECT DISTINCT - 37 AS col1, COUNT ( * ) col2 FROM tab0
----
-37
3

onlyif mysql # aggregate syntax: 
query III rowsort label-2946
SELECT DISTINCT - COUNT( * ), MAX( - col1 ) * - + 94 AS col2, - COUNT( * ) + + SUM( + col0 ) AS col2 FROM tab1
----
-3
470
224

skipif mysql # not compatible
query III rowsort label-2946
SELECT DISTINCT - COUNT ( * ), MAX ( - col1 ) * - + 94 AS col2, - COUNT ( * ) + + SUM ( + col0 ) AS col2 FROM tab1
----
-3
470
224

query I rowsort
SELECT ( - ( col2 ) ) * + 10 + - 37 - + + col1 * - + col2 FROM tab0
----
-928
3300
73

query I rowsort
SELECT DISTINCT + 91 FROM tab1 WHERE NOT - col2 IS NULL
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 99 col2, + col1 FROM tab1 AS cor0
----
99
14
99
47
99
5

query I rowsort
SELECT 93 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT SUM( col0 ) AS col1 FROM tab2 AS cor0 WHERE - 62 IS NOT NULL
----
185

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT SUM ( col0 ) AS col1 FROM tab2 AS cor0 WHERE - 62 IS NOT NULL
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT DISTINCT SUM( ALL + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT SUM ( ALL + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT DISTINCT + + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT COUNT( - + 89 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2954
SELECT COUNT ( - + 89 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + SUM( - - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + SUM ( - - col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2956
SELECT + 16 DIV + + 93 + - + col1 * + - col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-2956
SELECT + 16 / + + 93 + - + col1 * + - col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT + - 72 DIV + - col2 AS col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2957
SELECT + - 72 / + - col2 AS col2 FROM tab2 AS cor0
----
1
1
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 / - col1 / - col2 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT DISTINCT MAX( - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT MAX ( - col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT ALL ( + - ( - + 29 ) ) * + col0 + - 94 - + col0 * col2 FROM tab2
----
-2269
-798
182

query I rowsort
SELECT ALL col0 * + col0 + col1 * col0 AS col0 FROM tab1
----
12558
3315
7650

query I rowsort
SELECT ALL + col2 * 11 * + - col2 FROM tab1
----
-101376
-38291
-50864

query I rowsort
SELECT 24 + col2 AS col0 FROM tab0 AS cor0
----
123
34
71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT + COUNT( * ) + 19 AS col1 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT + COUNT ( * ) + 19 AS col1 FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT - COUNT( * ) + ( + 10 ) * COUNT( * ) col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2966
SELECT - COUNT ( * ) + ( + 10 ) * COUNT ( * ) col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT - 84 - + col2 AS col1 FROM tab2
----
-107
-124
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT ALL CAST( NULL AS SIGNED ) * 87 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL CAST ( NULL AS INTEGER ) * 87 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT - ( + col2 ) * col1 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT + + 32 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT 81 + + ( col2 ) FROM tab2
----
104
121
139

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT col0 DIV + col1 + - col1 * + 12 AS col2 FROM tab1 AS cor0
----
-165
-43
-563

skipif mysql # not compatible
query I rowsort label-2974
SELECT col0 / + col1 + - col1 * + 12 AS col2 FROM tab1 AS cor0
----
-165
-43
-563

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2975
SELECT ALL + SUM( DISTINCT - col0 ) DIV - - ( - 35 ) + + + 95 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + SUM ( DISTINCT - col0 ) / - - ( - 35 ) + + + 95 FROM tab0 AS cor0
----
100

query I rowsort
SELECT ALL + 94 * + - col1 FROM tab2 AS cor0
----
-4794
-6298
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL COUNT( - + 24 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL COUNT ( - + 24 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT DISTINCT col2 FROM tab1 WHERE NOT + CAST( - 97 AS SIGNED ) * col2 * 23 + + ( + - col2 ) + - col2 IN ( + + col0 + + 64 * + 34 )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT col2 FROM tab1 WHERE NOT + CAST ( - 97 AS INTEGER ) * col2 * 23 + + ( + - col2 ) + - col2 IN ( + + col0 + + 64 * + 34 )
----
59
68
96

query I rowsort
SELECT + + 89 AS col1 FROM tab0 WHERE NOT + - 86 NOT IN ( - + col0 * + 75 * - 17, - col2 + 55 * - ( - 19 ) + + 13 )
----

query II rowsort
SELECT + 5 AS col0, - 12 FROM tab1
----
5
-12
5
-12
5
-12

query I rowsort
SELECT col1 * 6 FROM tab1
----
282
30
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT ALL 1 DIV + + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL 1 / + + col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT DISTINCT MIN( DISTINCT - 94 ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT MIN ( DISTINCT - 94 ) FROM tab0
----
-94

query I rowsort
SELECT + col1 * + ( - - col2 ) * + col1 AS col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT - ( - - 73 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 45 <= 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT COUNT( ALL 37 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2987
SELECT COUNT ( ALL 37 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT - col1, 46 + + - col0 AS col0 FROM tab0
----
-1
-51
-21
-41
-81
31

query II rowsort
SELECT DISTINCT + 28, + 45 AS col1 FROM tab2
----
28
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2990
SELECT + COUNT( * ), + COUNT( * ) DIV + 76 AS col0 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-2990
SELECT + COUNT ( * ), + COUNT ( * ) / + 76 AS col0 FROM tab2
----
3
0

query I rowsort
SELECT ALL - 58 + 80 + - - col0 * ( - + 59 ) AS col0 FROM tab1
----
-2987
-4993
-5347

query I rowsort
SELECT ALL + 84 + + 86 AS col0 FROM tab0 AS cor0
----
170
170
170

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 86 <= ( + 49 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 3 col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 + + + 93 + + + col1 AS col0 FROM tab0 AS cor0
----
135
255
95

query I rowsort
SELECT 26 + + col1 FROM tab1 cor0
----
31
40
73

query I rowsort
SELECT col0 + + - col2 + - col0 - + + 51 * - - col0 FROM tab2 cor0
----
-2369
-3304
-3883

query I rowsort
SELECT 62 * - 27 FROM tab2 AS cor0
----
-1674
-1674
-1674

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 WHERE NOT + + 2 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + col2 * - + col1 * - + 16 FROM tab0
----
1584
3360
60912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3001
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT col2 * - - col0 * + - col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT + col2 - col0 DIV + col2 FROM tab1 WHERE NULL IS NULL
----
58
67
96

skipif mysql # not compatible
query I rowsort label-3003
SELECT + col2 - col0 / + col2 FROM tab1 WHERE NULL IS NULL
----
58
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL 92 * + COUNT( * ) AS col1 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL 92 * + COUNT ( * ) AS col1 FROM tab0
----
276

query I rowsort
SELECT ALL 19 + 50 AS col1 FROM tab2
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT + col2 * + CAST( 93 AS SIGNED ) + + 48 * + col1 * - ( - col0 ) - + col1 FROM tab0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3006
SELECT + col2 * + CAST ( 93 AS INTEGER ) + + 48 * + col1 * - ( - col0 ) - + col1 FROM tab0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 25 + - 85 * - col1 AS col1 FROM tab1 AS cor0
----
1215
4020
450

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT - 16 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 16 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3009
SELECT DISTINCT 91 * + COUNT( * ) / - 56 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT 91 * + COUNT ( * ) / - 56 * - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 2 FROM tab2 AS cor0 WHERE NOT NULL <> + col2
----

query II rowsort
SELECT col2 AS col0, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT DISTINCT - + col0 * + col1 * + 26 + - col0 + - col0 DIV - + 99 AS col2 FROM tab1 AS cor0
----
-111293
-11135
-18615

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT - + col0 * + col1 * + 26 + - col0 + - col0 / - + 99 AS col2 FROM tab1 AS cor0
----
-111293
-11135
-18615

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + MAX( + 43 ) AS col0 FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-3013
SELECT + MAX ( + 43 ) AS col0 FROM tab1 cor0
----
43

query I rowsort
SELECT ALL + col0 * col2 * - 78 AS col1 FROM tab1 AS cor0
----
-381888
-391170
-482664

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT + col2 DIV + 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT + col2 / + 75 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT + MIN( ALL col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT + MIN ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3017
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3017
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT DISTINCT - ( + CAST( + col2 AS SIGNED ) ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT - ( + CAST ( + col2 AS INTEGER ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 28 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1428
-1876
-2156

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3023
SELECT + + col0 * - - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3023
SELECT + + col0 * - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + - col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + 19 + + COUNT( ALL col0 ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3025
SELECT + 19 + + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT - - COUNT( * ) AS col1 FROM tab2 WHERE NOT - - col0 + + 61 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3026
SELECT - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - - col0 + + 61 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT + MAX( ALL col1 ) FROM tab1 WHERE NOT - col1 NOT IN ( - 1 + - CAST( 75 AS SIGNED ) + + col2, - col0 * CAST( NULL AS SIGNED ) - - - col2, col0, + col1 + - col0, - ( + + col0 ) - + col1 + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab1 WHERE NOT - col1 NOT IN ( - 1 + - CAST ( 75 AS INTEGER ) + + col2, - col0 * CAST ( NULL AS INTEGER ) - - - col2, col0, + col1 + - col0, - ( + + col0 ) - + col1 + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3029
SELECT col1 AS col2, ( + + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3029
SELECT col1 AS col2, ( + + CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL 68 + ( + COUNT( * ) ) + + - COUNT( * ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL 68 + ( + COUNT ( * ) ) + + - COUNT ( * ) FROM tab1 AS cor0
----
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 45 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 75 col2 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT ( + + col0 ) AS col2 FROM tab2 cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - 57 col1 FROM tab0 AS cor0 WHERE NULL > - col0
----

query I rowsort
SELECT + col2 + - col1 FROM tab2 cor0 WHERE 2 * - col2 IS NULL
----

query I rowsort
SELECT ALL + + 38 FROM tab0 cor0
----
38
38
38

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT - + col0 >= NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3038
SELECT col1 * + - CAST( NULL AS SIGNED ) + 43 + - 55 AS col1, + 61 FROM tab1
----
NULL
61
NULL
61
NULL
61

skipif mysql # not compatible
query II rowsort label-3038
SELECT col1 * + - CAST ( NULL AS INTEGER ) + 43 + - 55 AS col1, + 61 FROM tab1
----
NULL
61
NULL
61
NULL
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT + - col0 + col0 + - col2 DIV - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT + - col0 + col0 + - col2 / - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL - SUM( + col1 ) + - - 12 FROM tab1 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL - SUM ( + col1 ) + - - 12 FROM tab1 cor0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 10 + col1 * + - 29 AND 7 + + col2 OR NOT - 67 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 0 + - - col1 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL col0 - 42 + - col0 + 26 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT ALL - ( - + 82 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 6 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT - SUM( + - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3047
SELECT - SUM ( + - col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT DISTINCT + 90 DIV col2 * - col2 FROM tab1 AS cor0
----
-59
-68
0

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT + 90 / col2 * - col2 FROM tab1 AS cor0
----
-59
-68
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT + - MAX( + 31 ) AS col1 FROM tab0 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT + - MAX ( + 31 ) AS col1 FROM tab0 cor0
----
-31

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( + ( - col2 ) )
----

query I rowsort
SELECT - + 95 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-95
-95
-95

query II rowsort
SELECT - 56 AS col1, + 64 AS col1 FROM tab0
----
-56
64
-56
64
-56
64

query I rowsort
SELECT DISTINCT - col1 * - 20 FROM tab2
----
1020
1340
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT - 7 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 7 / col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3055
SELECT DISTINCT + 87 DIV - - COUNT( * ) FROM tab1 WHERE NOT + col2 IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT + 87 / - - COUNT ( * ) FROM tab1 WHERE NOT + col2 IS NULL
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3056
SELECT MIN( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= + - col0 - + + ( col2 ) + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3059
SELECT ALL - CAST( ( - 47 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL - CAST ( ( - 47 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT - 78 + + - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL ( COUNT( * ) ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL ( COUNT ( * ) ) + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - col0 + + + col2 + + col2 FROM tab0
----
-67
101
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL MAX( DISTINCT col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL MAX ( DISTINCT col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3064
SELECT ALL - + COUNT( * ) FROM tab0 cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL - + COUNT ( * ) FROM tab0 cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + 5 FROM tab1 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT DISTINCT + + ( - + COUNT( * ) ) + 39 AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT + + ( - + COUNT ( * ) ) + 39 AS col0 FROM tab1 AS cor0
----
36

query II rowsort
SELECT DISTINCT ( + + col2 ), + col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IS NULL OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * + 59 + col1 FROM tab0 AS cor0 WHERE col1 + - col2 IS NULL
----

query I rowsort
SELECT + 34 * - col1 FROM tab2 AS cor0
----
-1734
-2278
-2618

query I rowsort
SELECT + col1 * + ( + + col0 ) FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - - 56 * + 44 + + 31 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT - MAX( ALL 47 ) AS col2 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT - MAX ( ALL 47 ) AS col2 FROM tab2
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col0 * + ( + - col2 ) AND + col0 > NULL
----

query I rowsort
SELECT - col1 - 67 AS col1 FROM tab2
----
-118
-134
-144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3076
SELECT * FROM tab2 WHERE - 43 * CAST( 16 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3076
SELECT * FROM tab2 WHERE - 43 * CAST ( 16 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT COUNT( * ) - - 84 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT COUNT ( * ) - - 84 FROM tab2 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 13 col1 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3079
SELECT - 25 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3079
SELECT - 25 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
1

query II rowsort
SELECT - - col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 <> - col1 - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3082
SELECT - ( + COUNT( + 12 ) ) * - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) / + - 10 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT - ( + COUNT ( + 12 ) ) * - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) / + - 10 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 * + 66 AS col1 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT + 37 * col2 AS col2 FROM tab1
----
2183
2516
3552

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( 22 )
----

query I rowsort
SELECT - col0 + + - col0 + col2 AS col1 FROM tab0 cor0
----
-164
-95
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - MIN( ALL - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT + + COUNT( * ) + 77 AS col0 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + + COUNT ( * ) + 77 AS col0 FROM tab0 AS cor0
----
80

query II rowsort
SELECT + 28 AS col1, - 27 AS col0 FROM tab0 AS cor0
----
28
-27
28
-27
28
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT DISTINCT + col2 + - CAST( - col2 AS SIGNED ) + - col2 * + col0 * + - 19 FROM tab0 AS cor0
----
13489
16550
182655

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + col2 + - CAST ( - col2 AS INTEGER ) + - col2 * + col0 * + - 19 FROM tab0 AS cor0
----
13489
16550
182655

query I rowsort
SELECT DISTINCT - - col0 - - col1 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT 20 * - 81 - + 53 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT ALL - COUNT( * ), + COUNT( * ) * + 64 AS col2 FROM tab1 AS cor0
----
-3
192

skipif mysql # not compatible
query II rowsort label-3093
SELECT ALL - COUNT ( * ), + COUNT ( * ) * + 64 AS col2 FROM tab1 AS cor0
----
-3
192

query I rowsort
SELECT ALL col0 * - col0 * + + col0 + - col0 FROM tab0 AS cor0
----
-3390
-658590
-912770

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL - 6 - - COUNT( * ) FROM tab0 WHERE NOT - + 65 BETWEEN - col1 AND NULL
----
-4

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL - 6 - - COUNT ( * ) FROM tab0 WHERE NOT - + 65 BETWEEN - col1 AND NULL
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - MAX( + 41 ) + + + 34 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-3096
SELECT - MAX ( + 41 ) + + + 34 FROM tab2
----
-7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 29 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT + 25 - - ( + - COUNT( * ) ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + 25 - - ( + - COUNT ( * ) ) FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - ( + SUM( col2 ) ) + COUNT( col2 ) AS col1 FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-3099
SELECT - ( + SUM ( col2 ) ) + COUNT ( col2 ) AS col1 FROM tab1
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3100
SELECT ALL - MIN( ALL - col0 ) DIV - - 46 AS col2 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - MIN ( ALL - col0 ) / - - 46 AS col2 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL 48 + - - COUNT( * ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL 48 + - - COUNT ( * ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT + 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ALL - SUM( ALL + col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL - SUM ( ALL + col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3105
SELECT col1 AS col2, - CAST( 88 AS SIGNED ) * + col2 AS col1 FROM tab1
----
14
-8448
47
-5984
5
-5192

skipif mysql # not compatible
query II rowsort label-3105
SELECT col1 AS col2, - CAST ( 88 AS INTEGER ) * + col2 AS col1 FROM tab1
----
14
-8448
47
-5984
5
-5192

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab2 cor1 ON + 80 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3108
SELECT + 90 AS col2, col1 DIV col0 AS col1 FROM tab2 AS cor0
----
90
0
90
1
90
1

skipif mysql # not compatible
query II rowsort label-3108
SELECT + 90 AS col2, col1 / col0 AS col1 FROM tab2 AS cor0
----
90
0
90
1
90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT + SUM( DISTINCT - col1 ) AS col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + SUM ( DISTINCT - col1 ) AS col1 FROM tab2 cor0
----
-195

query I rowsort
SELECT ALL + - col2 * - 27 FROM tab2 AS cor0
----
1080
1566
621

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT + 4 DIV + col1 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3111
SELECT + 4 / + col1 FROM tab0 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT + 92 * - - 69 AS col1 FROM tab1
----
6348

query I rowsort
SELECT ALL 26 * + + col0 FROM tab1
----
1326
2210
2366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3114
SELECT - 14 DIV MAX( + - 92 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3114
SELECT - 14 / MAX ( + - 92 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( 1 ) * + 74 * 24 FROM tab0
----
1776

query II rowsort
SELECT DISTINCT col2 + - 54 AS col0, - 71 AS col0 FROM tab2
----
-14
-71
-31
-71
4
-71

query I rowsort
SELECT ALL - - 30 + - - 15 * - col0 FROM tab1 AS cor0
----
-1245
-1335
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT COUNT( * ) AS col2 FROM tab0 WHERE col0 <> - - col1
----
3

skipif mysql # not compatible
query I rowsort label-3118
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE col0 <> - - col1
----
3

query I rowsort
SELECT + - 54 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT - 68 * ( - + col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT - 68 * ( - + col1 ) <= NULL
----
0

query I rowsort
SELECT - col2 FROM tab1 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 + + + ( 38 ) AS col2 FROM tab1 AS cor0
----
-9
24
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3123
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL - CAST( NULL AS SIGNED ) * ( - - col2 ) - - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3124
SELECT ALL - CAST ( NULL AS INTEGER ) * ( - - col2 ) - - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT DISTINCT + - 3 DIV + col2 + + col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + - 3 / + col2 + + col2 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT + col0 * - 30 - - col1, col0 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-2589
7590
-2909
9410
-369
306

query I rowsort
SELECT - col1 * - + 59 FROM tab1 AS cor0
----
2773
295
826

query I rowsort
SELECT DISTINCT - col0 - - + 58 FROM tab2 AS cor0
----
-17
-6
12

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 WHERE ( col2 * 23 ) NOT IN ( col1, - col2 * - + col0 + - col0 + - - 97 )
----
59
68
96

query I rowsort
SELECT DISTINCT 99 - + col0 FROM tab1
----
14
48
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col2 FROM tab2
----
63
63
63

onlyif mysql # DIV for integer division: 
query II rowsort label-3132
SELECT + col2, + 99 DIV - + ( + col0 ) FROM tab0
----
10
-1
47
-6
99
-1

skipif mysql # not compatible
query II rowsort label-3132
SELECT + col2, + 99 / - + ( + col0 ) FROM tab0
----
10
-1
47
-6
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT ALL - ( + col1 ) DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL - ( + col1 ) / - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab2 AS cor0 WHERE NOT - 64 + - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - MIN( DISTINCT + col0 ) AS col0 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3135
SELECT - MIN ( DISTINCT + col0 ) AS col0 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT - - MIN( - + col1 ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3136
SELECT DISTINCT - - MIN ( - + col1 ) col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - - 65 * + col0 * col2 * - - col2 FROM tab0 AS cor0
----
2153775
565500
61795305

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE NOT + col0 <= col1
----
1
21

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 72 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT 35 + - 86 AS col0 FROM tab0
----
-51
-51
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 46 * - 61 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT ALL + CAST( 97 AS SIGNED ) * - 46 - + col2 * + col1 AS col0 FROM tab0
----
-4561
-4672
-8269

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + CAST ( 97 AS INTEGER ) * - 46 - + col2 * + col1 AS col0 FROM tab0
----
-4561
-4672
-8269

query I rowsort
SELECT col0 * col1 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( 26 * col2 )
----

query I rowsort
SELECT + 52 * col1 - col1 AS col0 FROM tab2
----
2601
3417
3927

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT DISTINCT col2 DIV - col0 + + col0 FROM tab0
----
12
87
96

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT col2 / - col0 + + col0 FROM tab0
----
12
87
96

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL NOT IN ( + 3 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) IN ( col0 )
----

query I rowsort
SELECT + col2 + col0 AS col2 FROM tab2 WHERE NOT ( + 94 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col0 FROM tab2
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL MAX( col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3151
SELECT ALL MAX ( col1 ) col1 FROM tab2
----
77

query I rowsort
SELECT col0 * 29 - + col0 * - 99 FROM tab2
----
5888
8192
9600

query I rowsort
SELECT ( col0 ) * - col0 + col1 FROM tab2 WHERE + 24 <= + col1 * - ( ( + col2 ) * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3154
SELECT ALL - 34 AS col2 FROM tab2 WHERE NOT + col0 = CAST( + col2 AS SIGNED ) * - col0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL - 34 AS col2 FROM tab2 WHERE NOT + col0 = CAST ( + col2 AS INTEGER ) * - col0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 WHERE NOT col0 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3155
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 WHERE NOT col0 <> NULL
----
0

query I rowsort
SELECT ALL ( col0 ) * 91 + - col0 * 66 FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT COUNT( * ) FROM tab0 WHERE 30 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT COUNT ( * ) FROM tab0 WHERE 30 < ( NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN NULL AND ( ( + 9 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 38 BETWEEN col2 * - ( 1 * + col0 ) AND ( + col2 )
----
87
21
10

query I rowsort
SELECT ALL + col1 - col1 * + col1 AS col2 FROM tab0
----
-420
-6480
0

query I rowsort
SELECT - col0 + + 42 AS col0 FROM tab2
----
-22
-33
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT SUM( col1 ) + 65 AS col2 FROM tab1 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-3162
SELECT SUM ( col1 ) + 65 AS col2 FROM tab1 AS cor0
----
131

query I rowsort
SELECT DISTINCT 63 * col0 FROM tab0 AS cor0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT + 79 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + 79 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
82

query I rowsort
SELECT ALL - 97 FROM tab2 AS cor0 WHERE NOT - col0 >= col0
----
-97
-97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3166
SELECT ALL COUNT( * ) - 21 DIV - 37 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL COUNT ( * ) - 21 / - 37 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col0 - col1 FROM tab1 WHERE NOT + 54 - col1 IS NULL
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT ALL + 16 DIV - 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + 16 / - 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT - 96 DIV - col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-3169
SELECT - 96 / - col0 FROM tab0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT col1 DIV 63 - 73 FROM tab2
----
-72
-72
-73

skipif mysql # not compatible
query I rowsort label-3170
SELECT col1 / 63 - 73 FROM tab2
----
-72
-72
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT COUNT( * ) * - MIN( col2 + 48 ) - - 64 * + COUNT( * ) AS col1 FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3171
SELECT COUNT ( * ) * - MIN ( col2 + 48 ) - - 64 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT 68 - 36 DIV - col1 AS col2 FROM tab1 cor0
----
68
70
75

skipif mysql # not compatible
query I rowsort label-3172
SELECT 68 - 36 / - col1 AS col2 FROM tab1 cor0
----
68
70
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + + 28 - COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3173
SELECT + + 28 - COUNT ( * ) FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT - ( COUNT( ALL col0 ) ) * + CAST( 33 + MAX( DISTINCT + col2 + col1 * 28 ) * - CAST( NULL AS SIGNED ) AS SIGNED ) - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT - ( COUNT ( ALL col0 ) ) * + CAST ( 33 + MAX ( DISTINCT + col2 + col1 * 28 ) * - CAST ( NULL AS INTEGER ) AS INTEGER ) - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 42 AS col2 FROM tab2 AS cor0
----
100
65
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 82 NOT BETWEEN NULL AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 - - 48 FROM tab1 AS cor0
----
133
139
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT + 60 + COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT + 60 + COUNT ( * ) FROM tab1 AS cor0
----
63

query III rowsort
SELECT * FROM tab2 cor0 WHERE 91 + col1 * 52 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 94 col0 FROM tab2 cor0
----
140
158
169

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + col1 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL - 85 * + MAX( 34 * - col0 ) + 2 AS col0 FROM tab0 AS cor0
----
43352

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - 85 * + MAX ( 34 * - col0 ) + 2 AS col0 FROM tab0 AS cor0
----
43352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT ALL col1 * CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL col1 * CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT + COUNT( * ) * 1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 78 * + ( + 24 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT + COUNT ( * ) * 1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 78 * + ( + 24 ) )
----
0

query I rowsort
SELECT 49 AS col0 FROM tab0 WHERE NOT 26 + 36 / + col2 IS NULL
----
49
49
49

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( + col2 - 59 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * col1 IN ( col0 * 95 + - ( 34 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 61 BETWEEN + col2 * col1 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col1 ) * 10 AS col1 FROM tab2
----
510
670
770

query III rowsort
SELECT * FROM tab2 WHERE NOT 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * + 91 * - col0 FROM tab1
----
-236691
-657475
-753571

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT + MIN( ALL + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3194
SELECT + MIN ( ALL + col0 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL MAX( ALL col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL MAX ( ALL col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ALL + 42 * - + col2 FROM tab2
----
-1680
-2436
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT - col0 DIV + 95 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3197
SELECT - col0 / + 95 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT - 12 * col0 AS col0 FROM tab1 WHERE NOT col0 * + col0 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT + col2 * - + 84 * CAST( 26 AS SIGNED ) AS col2 FROM tab1
----
-128856
-148512
-209664

skipif mysql # not compatible
query I rowsort label-3199
SELECT + col2 * - + 84 * CAST ( 26 AS INTEGER ) AS col2 FROM tab1
----
-128856
-148512
-209664

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL COUNT( + 8 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL COUNT ( + 8 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 75 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 <> col0
----

query II rowsort
SELECT - col2 AS col0, - col1 + - 52 AS col0 FROM tab2
----
-23
-103
-40
-129
-58
-119

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3207
SELECT ALL CAST( NULL AS DECIMAL ) * col1 FROM tab0 WHERE + 55 / col0 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL CAST ( NULL AS REAL ) * col1 FROM tab0 WHERE + 55 / col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL + ( + COUNT( DISTINCT - + col2 ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3208
SELECT ALL + ( + COUNT ( DISTINCT - + col2 ) ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col0 + - col0 + + 61 * 78 AS col2 FROM tab2 cor0
----
4758

query I rowsort
SELECT DISTINCT + + col2 + 37 - - col0 FROM tab2 AS cor0
----
106
141
170

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + col2 * 35 < + col2 + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 * + col2 ) IN ( + 96 )
----

query II rowsort
SELECT ALL + + col1, 43 AS col0 FROM tab2 AS cor0
----
51
43
67
43
77
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( 1 ) AND - col0
----

query I rowsort
SELECT ALL ( - col0 ) * - - 67 * col1 AS col1 FROM tab2 AS cor0
----
-157182
-330176
-336675

query I rowsort
SELECT 81 + + + col1 - col1 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT + col0 * col2 FROM tab1 cor0 WHERE - - 87 <> NULL OR NOT 29 = ( 60 )
----
4896
5015
6188

query I rowsort
SELECT col2 * - - ( col1 ) FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT col1 DIV 15 FROM tab1
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3220
SELECT col1 / 15 FROM tab1
----
0
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT ( + 41 ) * col0 AS col1 FROM tab0 WHERE + 70 * + 61 <= + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3221
SELECT ( + 41 ) * col0 AS col1 FROM tab0 WHERE + 70 * + 61 <= + CAST ( col2 AS INTEGER )
----

query I rowsort
SELECT ALL - col0 - - + col2 FROM tab1 AS cor0
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 AS cor0 WHERE - 69 BETWEEN + 41 AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT DISTINCT - - COUNT( ALL - 20 ) - - CAST( + - 49 AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - - COUNT ( ALL - 20 ) - - CAST ( + - 49 AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
150

query I rowsort
SELECT - col0 + col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT + 66 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
66
66
66

query I rowsort
SELECT - + 96 * + col1 + - ( + - col0 ) * + 56 AS col1 FROM tab1 AS cor0
----
1512
4280
584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3228
SELECT ( + 55 ) DIV + + MAX( ALL - - col2 ) + - - ( COUNT( DISTINCT - 34 ) ) + + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3228
SELECT ( + 55 ) / + + MAX ( ALL - - col2 ) + - - ( COUNT ( DISTINCT - 34 ) ) + + COUNT ( * ) FROM tab0
----
4

query II rowsort
SELECT DISTINCT col2 AS col0, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3230
SELECT ALL 7 + col2 DIV CAST( + col0 AS SIGNED ) FROM tab1
----
7
7
8

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL 7 + col2 / CAST ( + col0 AS INTEGER ) FROM tab1
----
7
7
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col0 < + + 86
----
51
14
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 NOT IN ( - 32 * + ( - 37 ) + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 92 + - col2 FROM tab0 AS cor0
----
-102
-139
-191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - 14 col1 FROM tab2 AS cor0
----
37
54
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3235
SELECT - COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - ( + - col2 ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - 98 * + - col0 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT + ( + 89 ) FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3239
SELECT - - CAST( - col2 AS SIGNED ) DIV + + 78 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3239
SELECT - - CAST ( - col2 AS INTEGER ) / + + 78 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL + COUNT( + col0 ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + COUNT ( + col0 ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3241
SELECT ALL - SUM( - col1 ) FROM tab2 cor0 WHERE NOT NULL IN ( 70, - col2, + + CAST( - 31 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL - SUM ( - col1 ) FROM tab2 cor0 WHERE NOT NULL IN ( 70, - col2, + + CAST ( - 31 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + SUM( 30 ) AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3242
SELECT + SUM ( 30 ) AS col0 FROM tab1 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 49 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 49 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT - + 69 DIV - 64 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3244
SELECT - + 69 / - 64 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL AVG ( DISTINCT col2 ) - + COUNT( * ) FROM tab2 WHERE ( col0 ) / col0 IN ( + col2 * - + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL AVG ( DISTINCT col2 ) - + COUNT ( * ) FROM tab2 WHERE ( col0 ) / col0 IN ( + col2 * - + col2 )
----
NULL

query I rowsort
SELECT + 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - 97 * col0, 10 AS col2 FROM tab1 AS cor0
----
-4947
10
-8245
10
-8827
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT DISTINCT - COUNT( * ) + ( + - 28 ) col1 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3250
SELECT DISTINCT - COUNT ( * ) + ( + - 28 ) col1 FROM tab0 AS cor0
----
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * 69 AND - 13
----

query I rowsort
SELECT - col1 * + + col0 * ( - + col1 ) FROM tab2 AS cor0
----
119646
336675
379456

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 90 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 < col0 + - 6 )
----

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL - MIN( DISTINCT col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - MIN ( DISTINCT col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT ALL + ( + + 48 ) AS col1 FROM tab1
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT + 93 - MIN( ( col0 ) ) * + 78 col0 FROM tab2 WHERE - - ( col1 ) * col2 + - col1 + + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3258
SELECT DISTINCT + 93 - MIN ( ( col0 ) ) * + 78 col0 FROM tab2 WHERE - - ( col1 ) * col2 + - col1 + + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + COUNT( 49 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3260
SELECT + COUNT ( 49 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT - + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3261
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3262
SELECT - + CAST( - - SUM( ALL - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3262
SELECT - + CAST ( - - SUM ( ALL - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - ( + col1 ) * 73 + col2 AS col1 FROM tab0 AS cor0
----
-1523
-5866
26

query I rowsort
SELECT DISTINCT - - col2 - - + col0 + col0 FROM tab2 AS cor0
----
115
168
208

query I rowsort
SELECT - ( - 98 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT col2 DIV 27 DIV + + 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT col2 / 27 / + + 85 FROM tab2
----
0
0
0

query I rowsort
SELECT - + 6 AS col1 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT + + 64 * col1 FROM tab2 AS cor0
----
3264
4288
4928

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT DISTINCT MIN( ALL - + col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT MIN ( ALL - + col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE - 7 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 35 <= + + col2
----

query I rowsort
SELECT DISTINCT col2 * + + col1 * col0 * col0 AS col0 FROM tab0
----
1589490
856575
931491

query I rowsort
SELECT + ( + 9 ) AS col2 FROM tab1
----
9
9
9

query I rowsort
SELECT + col0 * - - col1 AS col2 FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT - col2 * - - ( - col2 ) AS col1 FROM tab0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col1 FROM tab1
----
-58

query I rowsort
SELECT 81 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
81
81
81

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + ( - 89 ) * col2 + - + 77 FROM tab2 AS cor0
----
-2124
-3637
-5239

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN 69 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT + CAST( NULL AS SIGNED ) col2 FROM ( tab1 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-3283
SELECT + CAST ( NULL AS INTEGER ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + col2 AS col2, col1 * - - 16 AS col1 FROM tab0
----
10
336
47
1296
99
16

query I rowsort
SELECT col2 + + - col1 AS col0 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT + col2 + - + CAST( - + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-3287
SELECT + col2 + - + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col1 ) / + col0 ) NOT IN ( 65, 39, - 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 77 col2, + col1 FROM tab2 AS cor0
----
77
51
77
67
77
77

query I rowsort
SELECT + col2 * - col2 - col1 AS col0 FROM tab0 AS cor0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT ALL + ( 38 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + ( 38 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + COUNT( * ) * + MAX( DISTINCT - + 9 ) + SUM( + col2 ) FROM tab1 cor0
----
196

skipif mysql # not compatible
query I rowsort label-3292
SELECT + COUNT ( * ) * + MAX ( DISTINCT - + 9 ) + SUM ( + col2 ) FROM tab1 cor0
----
196

query II rowsort
SELECT ALL col0 AS col2, + 78 AS col1 FROM tab1 AS cor0
----
51
78
85
78
91
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT DISTINCT - col0 DIV + + 86 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - col0 / + + 86 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3295
SELECT + 62 DIV col0, + col2 DIV + ( col1 ) AS col1 FROM tab0
----
0
0
0
99
4
0

skipif mysql # not compatible
query II rowsort label-3295
SELECT + 62 / col0, + col2 / + ( col1 ) AS col1 FROM tab0
----
0
0
0
99
4
0

query II rowsort
SELECT - col0 * + - 85, + col1 FROM tab2
----
3910
51
5440
77
6375
67

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL BETWEEN ( NULL ) AND + 50 )
----

query I rowsort
SELECT col1 + - ( + 83 ) FROM tab0 AS cor0
----
-2
-62
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3299
SELECT DISTINCT + 38 - + COUNT( * ) DIV 26 + COUNT( * ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT + 38 - + COUNT ( * ) / 26 + COUNT ( * ) FROM tab2 AS cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 34 + - col2 * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1034
-103857
-970333

query II rowsort
SELECT DISTINCT + col0 AS col1, + 95 AS col1 FROM tab1
----
51
95
85
95
91
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT + - CAST( - + col1 AS SIGNED ) * + col2 + + - col2 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

skipif mysql # not compatible
query I rowsort label-3303
SELECT + - CAST ( - + col1 AS INTEGER ) * + col2 + + - col2 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT MIN( ALL - col2 ) col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3304
SELECT MIN ( ALL - col2 ) col1 FROM tab1 cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col0 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL - + SUM( ALL col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL - + SUM ( ALL col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query II rowsort label-3307
SELECT - - col0, col1 DIV + - 25 AS col1 FROM tab1 cor0
----
51
0
85
0
91
-1

skipif mysql # not compatible
query II rowsort label-3307
SELECT - - col0, col1 / + - 25 AS col1 FROM tab1 cor0
----
51
0
85
0
91
-1

query I rowsort
SELECT - + 75 * + col2 FROM tab0 AS cor0
----
-3525
-7425
-750

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE + col0 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT - - MIN( DISTINCT - + col0 ) AS col0 FROM tab1 WHERE 95 IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - - MIN ( DISTINCT - + col0 ) AS col0 FROM tab1 WHERE 95 IS NOT NULL
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL - MAX( DISTINCT - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL - MAX ( DISTINCT - col2 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT DISTINCT 32 * - col0 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT DISTINCT + 33 DIV 7 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col2 IN ( 88 )
----
4

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + 33 / 7 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + col2 IN ( 88 )
----
4

query I rowsort
SELECT 17 + + 24 + - 8 + - col2 * col1 + - + 52 AS col1 FROM tab2 AS cor0
----
-1192
-3099
-3905

query I rowsort
SELECT - 12 + col0 * - col0 FROM tab0 AS cor0
----
-237
-7581
-9421

query III rowsort
SELECT * FROM tab2 WHERE + ( 62 ) <= + col2 * + + col1 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 59 + + col1 AS col2 FROM tab0
----
140
60
80

query I rowsort
SELECT ALL + col1 + - 24 AS col1 FROM tab1 AS cor0
----
-10
-19
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT - col0 * + CAST( - col1 AS SIGNED ) + - 51 * + col2 + - 80 AS col0 FROM tab2 AS cor0
----
1093
1987
2808

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - col0 * + CAST ( - col1 AS INTEGER ) + - 51 * + col2 + - 80 AS col0 FROM tab2 AS cor0
----
1093
1987
2808

query I rowsort
SELECT ALL + 9 * + col2 * + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-164430
-513945
-86427

query I rowsort
SELECT + - col1 - + col0 AS col1 FROM tab0 cor0
----
-108
-96
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----

query II rowsort
SELECT + - col1 + + - 55 * - - col0 AS col2, col2 + - col0 * - 61 AS col0 FROM tab2 AS cor0
----
-2581
2829
-3597
3944
-4192
4633

query I rowsort
SELECT + + 31 FROM tab2 WHERE - col0 BETWEEN - 45 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT DISTINCT + col2 * - + col0 DIV - col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + col2 * - + col0 / - col0 FROM tab0
----
10
47
99

query I rowsort
SELECT 58 * + 41 + - 85 AS col0 FROM tab2
----
2293
2293
2293

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col2 * - col0 * + col1 + col0 )
----

query I rowsort
SELECT DISTINCT - 70 + col2 AS col0 FROM tab1
----
-11
-2
26

query I rowsort
SELECT 92 * - + 48 AS col1 FROM tab0
----
-4416
-4416
-4416

query I rowsort
SELECT DISTINCT - - 2 + 97 AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT 41 + 74 - - SUM( - - col0 ) * + 21 / + - ( MAX( DISTINCT 75 ) ) FROM tab0 AS cor0 WHERE ( 2 BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT 41 + 74 - - SUM ( - - col0 ) * + 21 / + - ( MAX ( DISTINCT 75 ) ) FROM tab0 AS cor0 WHERE ( 2 BETWEEN NULL AND NULL )
----
NULL

query I rowsort
SELECT DISTINCT 14 * + + ( - col1 ) FROM tab0 AS cor0
----
-1134
-14
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3333
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT + MIN( ALL col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab2
----
23

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 8 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3336
SELECT - - col1 * + + col0 - - CAST( NULL AS DECIMAL ) - - col2 * - + 11 * - col0 * 35 * - col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT - - col1 * + + col0 - - CAST ( NULL AS REAL ) - - col2 * - + 11 * - col0 * 35 * - col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - col0 > NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 33 FROM tab0 AS cor0
----
1551
3267
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3339
SELECT CAST( + - 6 AS SIGNED ) FROM tab0 cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-3339
SELECT CAST ( + - 6 AS INTEGER ) FROM tab0 cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT MIN( DISTINCT - col2 ) * - COUNT( * ) - 56 AS col0 FROM tab0
----
241

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT MIN ( DISTINCT - col2 ) * - COUNT ( * ) - 56 AS col0 FROM tab0
----
241

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT COUNT( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT COUNT ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - SUM( ALL + 68 ) FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-3343
SELECT - SUM ( ALL + 68 ) FROM tab2 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - SUM( + + 68 ) + + MIN( ALL - 98 ) FROM tab0 AS cor0
----
-302

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - SUM ( + + 68 ) + + MIN ( ALL - 98 ) FROM tab0 AS cor0
----
-302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3345
SELECT DISTINCT 68 / - CAST( NULL AS SIGNED ) + + col1 + - col2 * + col0 + 53 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT 68 / - CAST ( NULL AS INTEGER ) + + col1 + - col2 * + col0 + 53 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 79 AND + - col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3348
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, col0 + + - col1 + - - 30 / + - CAST( ( + + 75 ) AS SIGNED ) * + - 99 )
----

skipif mysql # not compatible
query III rowsort label-3348
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, col0 + + - col1 + - - 30 / + - CAST ( ( + + 75 ) AS INTEGER ) * + - 99 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3349
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + col2 BETWEEN col0 + - col1 AND - CAST( - 97 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3349
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + col2 BETWEEN col0 + - col1 AND - CAST ( - 97 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + 82 + - col0 NOT BETWEEN - + col0 AND - - col2 + col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT COUNT( * ) * - COUNT( * ) + - 72 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-3351
SELECT COUNT ( * ) * - COUNT ( * ) + - 72 FROM tab1
----
-81

query I rowsort
SELECT DISTINCT + col1 * + - col2 + + 67 AS col1 FROM tab1 AS cor0
----
-1277
-228
-3129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 48 * + 99 + - col0 + 13 * + + col2 - - - col0 col0 FROM tab2 AS cor0
----
-4148
-4360
-4545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL + col0 * + + col0 + + + CAST( NULL AS SIGNED ) - - CAST( - ( + + col2 ) AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + col0 * + + col0 + + + CAST ( NULL AS INTEGER ) - - CAST ( - ( + + col2 ) AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT ALL - COUNT( * ) * - COUNT( * ) * - + COUNT( ALL + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - + COUNT ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT DISTINCT - + col1 DIV col0 * - 98 FROM tab0 AS cor0
----
0
490

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - + col1 / col0 * - 98 FROM tab0 AS cor0
----
0
490

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + 33 / 88 * + - 0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * col2 - + - col0 FROM tab0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - MIN( ALL 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-3359
SELECT - MIN ( ALL 14 ) FROM tab1
----
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 / - - col2 * - - col0 ) BETWEEN col1 * 44 AND - + col2
----

query II rowsort
SELECT col1 * - - 29 - - col0 AS col0, + col1 FROM tab0
----
126
1
2364
81
696
21

query I rowsort
SELECT DISTINCT - + col0 + + 23 AS col0 FROM tab2 WHERE NOT + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT 21 - + MIN( - 48 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-3363
SELECT 21 - + MIN ( - 48 ) FROM tab1
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 - - 45 + col2 col2 FROM tab1
----
176
185
213

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL ( - - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL ( - - COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT DISTINCT + 5 * + MAX( ALL + + col2 ) FROM tab1 WHERE NULL BETWEEN + + ( + 16 ) * + col0 * + + CAST( NULL AS SIGNED ) + - col0 AND + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT + 5 * + MAX ( ALL + + col2 ) FROM tab1 WHERE NULL BETWEEN + + ( + 16 ) * + col0 * + + CAST ( NULL AS INTEGER ) + - col0 AND + - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3367
SELECT ALL * FROM tab2 AS cor0 WHERE col0 > - 49 * CAST( 42 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3367
SELECT ALL * FROM tab2 AS cor0 WHERE col0 > - 49 * CAST ( 42 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - COUNT( * ) * + + 67 AS col2 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3368
SELECT - COUNT ( * ) * + + 67 AS col2 FROM tab1 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3369
SELECT + CAST( - col2 AS SIGNED ) AS col0, 7 AS col2 FROM tab0
----
-10
7
-47
7
-99
7

skipif mysql # not compatible
query II rowsort label-3369
SELECT + CAST ( - col2 AS INTEGER ) AS col0, 7 AS col2 FROM tab0
----
-10
7
-47
7
-99
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT - col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT - col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3371
SELECT - + CAST( + col2 AS SIGNED ) DIV + 69 * col1 - + + ( - + 56 ) AS col2 FROM tab0 AS cor0
----
55
56
56

skipif mysql # not compatible
query I rowsort label-3371
SELECT - + CAST ( + col2 AS INTEGER ) / + 69 * col1 - + + ( - + 56 ) AS col2 FROM tab0 AS cor0
----
55
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3372
SELECT - col0, CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
query II rowsort label-3372
SELECT - col0, CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT + col1 AS col2, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT - - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT - - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT - SUM( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT - SUM ( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 - + ( + 93 ) < - 25 + - 55
----

query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab2 WHERE - col0 + - 0 IS NULL
----

query I rowsort
SELECT ALL col0 * + col1 + - 89 * col1 AS col1 FROM tab2
----
-1925
-2193
-938

query II rowsort
SELECT + col1 + 57, + col0 + + 10 AS col2 FROM tab1 AS cor0
----
104
101
62
95
71
61

query I rowsort
SELECT ( col0 ) * + col1 + col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT - 34 - - col1 FROM tab0 AS cor0
----
-13
-33
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col0 + - - 76 col2 FROM tab2 AS cor0
----
-28
-57
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT - MAX( DISTINCT - - col2 ) * 87 + + COUNT( * ) + + COUNT( * ) col1 FROM tab0 AS cor0
----
-8607

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3383
SELECT - MAX ( DISTINCT - - col2 ) * 87 + + COUNT ( * ) + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-8607

query I rowsort
SELECT DISTINCT col1 * + + col2 + + 57 AS col0 FROM tab0 AS cor0
----
156
267
3864

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + MAX( ALL col2 ) + - 2 AS col2 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3385
SELECT + MAX ( ALL col2 ) + - 2 AS col2 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT - 65 + + 5 * + COUNT( * ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT - 65 + + 5 * + COUNT ( * ) FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL AND NULL > - col2
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL AND NULL > - col2
----
0

query I rowsort
SELECT DISTINCT + col0 - + ( + - 83 ) FROM tab2 cor0
----
129
147
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col0 - - + 37 FROM tab2
----
101
112
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT SUM( ALL - ( + + col1 ) ) * + + COUNT( * ) AS col1 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-3391
SELECT SUM ( ALL - ( + + col1 ) ) * + + COUNT ( * ) AS col1 FROM tab2
----
-585

onlyif mysql # DIV for integer division: 
query II rowsort label-3392
SELECT DISTINCT - col2 * col0 AS col1, col0 DIV col2 AS col0 FROM tab1
----
-4896
0
-5015
1
-6188
1

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT - col2 * col0 AS col1, col0 / col2 AS col0 FROM tab1
----
-4896
0
-5015
1
-6188
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT 45 * - COUNT( col1 ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT 45 * - COUNT ( col1 ) FROM tab1
----
-135

query I rowsort
SELECT DISTINCT col0 * - col0 * 12 FROM tab1
----
-31212
-86700
-99372

query II rowsort
SELECT ( + col0 ) AS col0, + 39 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
15
39
87
39
97
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL + - ( + 49 ) + - - 34 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
257

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + - ( + 49 ) + - - 34 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - MAX( DISTINCT - - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3397
SELECT - MAX ( DISTINCT - - col1 ) AS col2 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab2
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL - COUNT( - 95 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - COUNT ( - 95 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - 43 + + col0 FROM tab0 AS cor0
----
-28
44
54

query II rowsort
SELECT ALL col1 AS col0, col1 + - - 97 - - + 14 * - col0 FROM tab0 AS cor0
----
1
-1260
21
-1100
81
-32

query II rowsort
SELECT + col2 - + - col2, 37 FROM tab0 AS cor0 WHERE NOT 7 * + col1 NOT IN ( - col0 * + col2, + 88, col1, - col1 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT + 96 + + col1 - - col2 DIV + col0 FROM tab0 AS cor0
----
117
180
98

skipif mysql # not compatible
query I rowsort label-3403
SELECT + 96 + + col1 - - col2 / + col0 FROM tab0 AS cor0
----
117
180
98

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) + - + col1 IS NOT NULL
----

query I rowsort
SELECT col1 * - 93 AS col2 FROM tab1
----
-1302
-4371
-465

query I rowsort
SELECT ALL - col0 * - col0 + + col0 AS col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT - COUNT( - ( 66 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3407
SELECT - COUNT ( - ( 66 ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT DISTINCT - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL 3 * col1 * col0 + - + col0 AS col2 FROM tab2
----
14720
15000
6992

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - 26 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 0 >= NULL
----

query II rowsort
SELECT col2 * 19 + col1 AS col2, + col0 AS col2 FROM tab1
----
1126
85
1339
91
1838
51

query I rowsort
SELECT ALL + + ( + col1 ) + - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT ALL - 94 + - COUNT( * ) + + 28 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - 94 + - COUNT ( * ) + + 28 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL > - col2
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > - col2
----
0

query II rowsort
SELECT ALL col2 - ( + 45 ), - col0 * + col1 - - 73 * - col0 AS col2 FROM tab2 AS cor0
----
-22
-5704
-5
-9600
13
-10500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT + MAX( + CAST( NULL AS SIGNED ) ) - + + COUNT( * ) * + 98 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) - + + COUNT ( * ) * + 98 AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + col1 - 19 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
-18
97
2
87
62
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - 8 * - MAX( ALL + + ( - + 88 ) ) FROM tab0
----
-704

skipif mysql # not compatible
query I rowsort label-3419
SELECT - 8 * - MAX ( ALL + + ( - + 88 ) ) FROM tab0
----
-704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT DISTINCT col0 * + CAST( + - 76 AS SIGNED ) FROM tab0
----
-1140
-6612
-7372

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT col0 * + CAST ( + - 76 AS INTEGER ) FROM tab0
----
-1140
-6612
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - 69 FROM tab2
----
23
-69
40
-69
58
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + MIN( 90 ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + MIN ( 90 ) FROM tab1 AS cor0
----
90

query II rowsort
SELECT + - col1 AS col1, + 26 AS col1 FROM tab1 cor0
----
-14
26
-47
26
-5
26

query I rowsort
SELECT ALL col2 + + 38 AS col0 FROM tab0
----
137
48
85

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - 28 + - col1 AND + col1
----

query I rowsort
SELECT ALL col1 + - - 37 FROM tab1 AS cor0
----
42
51
84

query I rowsort
SELECT + col2 * + - col0 + + ( + 16 ) FROM tab2 AS cor0
----
-1042
-2544
-4334

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 >= NULL
----

query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col0 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3432
SELECT * FROM tab1 AS cor0 WHERE - col1 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3432
SELECT * FROM tab1 AS cor0 WHERE - col1 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col1 * + 11 FROM tab0
----
-11
-231
-891

query I rowsort
SELECT DISTINCT + ( + 27 ) FROM tab2 WHERE NULL > - 81
----

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - - col1 * - + 80 * 64 FROM tab0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) + + col2 col1, col1 AS col0 FROM tab0
----
198
1
20
21
94
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL + 29 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + 29 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
26

query I rowsort
SELECT DISTINCT + + 0 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + - col1 AND ( + 1 - - col2 + + - 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT + ( + 9 ) IS NOT NULL WHERE + + 75 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3441
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT + ( + 9 ) IS NOT NULL WHERE + + 75 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + 41 * - COUNT( * ) * - 9 + - + ( 30 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
3291

skipif mysql # not compatible
query I rowsort label-3442
SELECT + 41 * - COUNT ( * ) * - 9 + - + ( 30 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
3291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT - - CAST( NULL AS SIGNED ) * - - COUNT( * ) + 88 * + MAX( - col2 ) + + + COUNT( * ) + + 52 * + AVG ( 78 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3443
SELECT - - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + 88 * + MAX ( - col2 ) + + + COUNT ( * ) + + 52 * + AVG ( 78 ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT + 74 + - COUNT( * ) AS col0 FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-3444
SELECT + 74 + - COUNT ( * ) AS col0 FROM tab2 cor0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 61 col1 FROM tab2 AS cor0
----
-61
-61
-61

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= 52 + - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT + AVG ( - col1 ) * CAST( NULL AS SIGNED ) * - COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3447
SELECT + AVG ( - col1 ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * + ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - ( - 25 ) AS col2, + col0 * - col0 - + col0 FROM tab1
----
25
-2652
25
-7310
25
-8372

query II rowsort
SELECT ( col1 ) AS col0, 34 + + col1 FROM tab2
----
51
85
67
101
77
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT CAST( - 49 AS SIGNED ) FROM tab1
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-3451
SELECT CAST ( - 49 AS INTEGER ) FROM tab1
----
-49
-49
-49

query I rowsort
SELECT + 72 * + col1 AS col2 FROM tab2
----
3672
4824
5544

query I rowsort
SELECT - 90 * - + ( 35 ) FROM tab2
----
3150
3150
3150

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * - + col0 / - 9 = - 10 * - col2 + - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 55
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3455
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT DISTINCT - COUNT( ALL + 77 ) col2, COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3456
SELECT DISTINCT - COUNT ( ALL + 77 ) col2, COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col1 FROM tab0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL + 83 + COUNT( * ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + 83 + COUNT ( * ) FROM tab1 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-3459
SELECT - col1 AS col0, col1 DIV - 67 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-3459
SELECT - col1 AS col0, col1 / - 67 AS col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query I rowsort
SELECT ALL + col2 * + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3461
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 + - col1 + + col1 * - col2 * + col0 AS col0 FROM tab1 WHERE NOT - 78 IS NOT NULL
----

query I rowsort
SELECT + ( 68 ) FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT MIN( DISTINCT ( + + col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT MIN ( DISTINCT ( + + col0 ) ) AS col1 FROM tab2
----
46

query I rowsort
SELECT DISTINCT + ( col0 ) + - col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 47 FROM tab0 AS cor0 WHERE NULL IS NULL
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT - 82 + - col0 / CAST( NULL AS SIGNED ) / 17 + + ( + - 45 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT - 82 + - col0 / CAST ( NULL AS INTEGER ) / 17 + + ( + - 45 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + + col0 * - - col2 AS col1 FROM tab0 AS cor0
----
624
849
9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + col1 col0 FROM tab1
----
109
67
76

query I rowsort
SELECT ALL 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ( + 5 ) FROM tab2
----
5
5
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col1 IN ( + col2, + col1 - + 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 33 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT - ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + ( - 80 ) AS col2 FROM tab2 AS cor0
----
-80
-80
-80

query II rowsort
SELECT ALL + 65, col0 FROM tab1 AS cor0
----
65
51
65
85
65
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT COUNT( 96 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3478
SELECT COUNT ( 96 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3480
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) * - + 58 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3480
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) * - + 58 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 30 ) FROM tab2
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT ALL - col1, col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3484
SELECT * FROM tab2 WHERE NOT - CAST( + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3484
SELECT * FROM tab2 WHERE NOT - CAST ( + col2 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + - col0 * + col0 + - col1 * + 48 FROM tab0 AS cor0
----
-4113
-8577
-9457

query II rowsort
SELECT DISTINCT + 22, - 10 - + - col1 AS col2 FROM tab2 cor0
----
22
41
22
57
22
67

query I rowsort
SELECT DISTINCT col0 + - col2 + - col2 * - - ( + ( - ( + ( col0 ) ) ) ) FROM tab0
----
673
947
9601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 39 + + 8 col0, 71 col2 FROM tab0 AS cor0
----
47
71

query I rowsort
SELECT - ( + + ( - + 60 ) ) FROM tab2 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3490
SELECT ALL + CAST( - - SUM( DISTINCT - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL + CAST ( - - SUM ( DISTINCT - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - + 27 / - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - COUNT( * ) + - SUM( + col0 ) * - + ( - MIN( DISTINCT + 61 ) ) AS col1 FROM tab0
----
-12142

skipif mysql # not compatible
query I rowsort label-3492
SELECT - COUNT ( * ) + - SUM ( + col0 ) * - + ( - MIN ( DISTINCT + 61 ) ) AS col1 FROM tab0
----
-12142

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 32 / + - 90 * + 21 NOT BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT col0 + - 68 AS col2 FROM tab2
----
-22
-4
7

query I rowsort
SELECT ALL - ( - 85 ) FROM tab0
----
85
85
85

query I rowsort
SELECT ALL col0 * - col2 * - col2 FROM tab0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + ( ( + MIN( DISTINCT - - col1 ) ) ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3497
SELECT + ( ( + MIN ( DISTINCT - - col1 ) ) ) AS col2 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT DISTINCT - 72 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT - 72 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 / - + 17 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT + COUNT( * ), - 89 AS col0 FROM tab2
----
3
-89

skipif mysql # not compatible
query II rowsort label-3500
SELECT + COUNT ( * ), - 89 AS col0 FROM tab2
----
3
-89

query I rowsort
SELECT + 89 * + col2 AS col1 FROM tab0 cor0
----
4183
8811
890

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT DISTINCT col0 DIV - col0 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT col0 / - col0 AS col2 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3503
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT + col0 DIV 81 + - 45 AS col2 FROM tab1
----
-44
-44
-45

skipif mysql # not compatible
query I rowsort label-3504
SELECT + col0 / 81 + - 45 AS col2 FROM tab1
----
-44
-44
-45

query I rowsort
SELECT + 49 + + 52 FROM tab0
----
101
101
101

query II rowsort
SELECT ALL - - col1 + + - 64, col0 FROM tab2 AS cor0
----
-13
46
13
64
3
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 17 / - + ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL - MIN( + 56 ) FROM tab0 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - MIN ( + 56 ) FROM tab0 cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL - COUNT( DISTINCT + col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL - COUNT ( DISTINCT + col1 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT - 49 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT - 49 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL - COUNT( ALL - - col0 ) + COUNT( - 8 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL - COUNT ( ALL - - col0 ) + COUNT ( - 8 ) AS col2 FROM tab2
----
0

query II rowsort
SELECT col1 - + col0 AS col2, col0 * + + col0 + + - 58 + col1 * + col1 AS col2 FROM tab0
----
-66
7952
-96
9352
66
6728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3513
SELECT CAST( NULL AS SIGNED ) * - - 48 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3513
SELECT CAST ( NULL AS INTEGER ) * - - 48 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 + - + 7 * + col0 FROM tab1
----
-408
-680
-728

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - + 18 + - col2 + + col2 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - + 57 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + 5 AS col0, 69 * - 66 - + 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to a3a7b27f3245123873ed3d7009aa35f7

query II rowsort
SELECT DISTINCT + col1, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - + col1 * - 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 / 63 * col1 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT + MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT + - CAST( NULL AS SIGNED ) * col1 * col1 * + 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT + - CAST ( NULL AS INTEGER ) * col1 * col1 * + 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( - + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT - SUM( - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT - SUM ( - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL - MAX( - col2 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL - MAX ( - col2 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT DISTINCT + col0 * CAST( 87 AS SIGNED ) AS col2 FROM tab1
----
4437
7395
7917

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + col0 * CAST ( 87 AS INTEGER ) AS col2 FROM tab1
----
4437
7395
7917

query II rowsort
SELECT ALL col1 AS col0, col2 AS col0 FROM tab1 WHERE col2 > NULL
----

query I rowsort
SELECT ALL - col2 * col2 + + + col0 * + 41 AS col2 FROM tab0
----
-1594
-5824
3467

query III rowsort
SELECT ALL * FROM tab0 WHERE + 66 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT + MAX( - - 21 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3531
SELECT + MAX ( - - 21 ) FROM tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - 48 AND ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL - 67 + + MIN( DISTINCT + 21 ) - COUNT( - + 90 ) * + - MIN( DISTINCT - 81 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-775

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - 67 + + MIN ( DISTINCT + 21 ) - COUNT ( - + 90 ) * + - MIN ( DISTINCT - 81 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT COUNT( * ) * + COUNT( DISTINCT col0 ) * COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3535
SELECT COUNT ( * ) * + COUNT ( DISTINCT col0 ) * COUNT ( * ) FROM tab2
----
27

query I rowsort
SELECT + 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 19, + col2, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT - + COUNT( * ) + - - 93 AS col1 FROM tab0 AS cor0 WHERE col2 + - + 71 IN ( + 73, + col2, - - 38 )
----
93

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT - + COUNT ( * ) + - - 93 AS col1 FROM tab0 AS cor0 WHERE col2 + - + 71 IN ( + 73, + col2, - - 38 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT 76 * - 41 + - 98 + - COUNT( * ) FROM tab1 AS cor0
----
-3217

skipif mysql # not compatible
query I rowsort label-3539
SELECT 76 * - 41 + - 98 + - COUNT ( * ) FROM tab1 AS cor0
----
-3217

query I rowsort
SELECT 69 + 67 FROM tab1 cor0
----
136
136
136

query I rowsort
SELECT + col2 + + 8 FROM tab2 AS cor0
----
31
48
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3542
SELECT DISTINCT - 50 - + - CAST( NULL AS SIGNED ) + 8 / - CAST( + 65 AS DECIMAL ) * + + 99 - + 95 * - col2 * - - col2 + col0 * - - 40 * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - 50 - + - CAST ( NULL AS INTEGER ) + 8 / - CAST ( + 65 AS REAL ) * + + 99 - + 95 * - col2 * - - col2 + col0 * - - 40 * col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT COUNT( DISTINCT - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3543
SELECT COUNT ( DISTINCT - col2 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT 12 + COUNT( * ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT 12 + COUNT ( * ) AS col0 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT MAX( + ( + - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3545
SELECT MAX ( + ( + - col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL ( - + COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT ALL ( - + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col2 * - col1, ( - + 27 ) + - + col1 AS col2 FROM tab0
----
-210
-48
-3807
-108
-99
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3548
SELECT * FROM tab0 AS cor0 WHERE NOT + 77 + - CAST( NULL AS SIGNED ) + - 80 * - 2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3548
SELECT * FROM tab0 AS cor0 WHERE NOT + 77 + - CAST ( NULL AS INTEGER ) + - 80 * - 2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3549
SELECT DISTINCT + 55, - 60 AS col2 FROM tab1 AS cor0 WHERE NOT + 68 * - CAST( + col2 AS DECIMAL ) BETWEEN NULL AND + 43 / + 54
----

skipif mysql # not compatible
query II rowsort label-3549
SELECT DISTINCT + 55, - 60 AS col2 FROM tab1 AS cor0 WHERE NOT + 68 * - CAST ( + col2 AS REAL ) BETWEEN NULL AND + 43 / + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + MAX( ALL 34 ) col2 FROM tab0 cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3550
SELECT DISTINCT + MAX ( ALL 34 ) col2 FROM tab0 cor0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3551
SELECT - - CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3551
SELECT - - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT - 5 DIV + 75 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 5 / + 75 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col2 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 WHERE NOT - 47 * 30 + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 47 * 30 + + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab0 WHERE + - ( - 36 ) + - + 39 / + 89 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE + - ( - 36 ) + - + 39 / + 89 * + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL + COUNT( DISTINCT - - col2 ) * COUNT( * ) + - 56 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + COUNT ( DISTINCT - - col2 ) * COUNT ( * ) + - 56 FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT MAX( - 54 ) AS col0 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3557
SELECT MAX ( - 54 ) AS col0 FROM tab0
----
-54

query I rowsort
SELECT - col1 / - + ( + 77 ) FROM tab2 cor0 WHERE + col0 * col0 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3559
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 63 * + col1 * - + 59 IS NOT NULL
----

query I rowsort
SELECT + ( - col2 ) + + col2 * + - col2 AS col1 FROM tab1 AS cor0
----
-3540
-4692
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT COUNT( * ) * MIN( - ( 29 ) ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-3562
SELECT COUNT ( * ) * MIN ( - ( 29 ) ) FROM tab2
----
-87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 48 / 94 ) NOT BETWEEN ( - col1 * 58 ) AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL SUM( 34 ) AS col2 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL SUM ( 34 ) AS col2 FROM tab2
----
102

query I rowsort
SELECT DISTINCT - 1 * + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT COUNT( * ) + + 86 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-3566
SELECT COUNT ( * ) + + 86 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL - 70 * + 67 + - COUNT( * ) FROM tab0
----
-4693

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - 70 * + 67 + - COUNT ( * ) FROM tab0
----
-4693

query I rowsort
SELECT ALL + 2 + col1 * - col1 AS col0 FROM tab0 WHERE ( col1 - col0 ) > - col0
----
-439
-6559
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT + 57 - + MIN( ALL + col1 + col1 ) AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-3569
SELECT + 57 - + MIN ( ALL + col1 + col1 ) AS col2 FROM tab0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + 91 * COUNT( * ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3570
SELECT + 91 * COUNT ( * ) AS col1 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT COUNT( * ) * 16 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT COUNT ( * ) * 16 FROM tab2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT DISTINCT 46 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT 46 / - col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT - MIN( ALL col1 ) * COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT - MIN ( ALL col1 ) * COUNT ( * ) FROM tab1
----
-15

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) >= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - ( + 95 + col1 ) NOT BETWEEN - col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 60 IS NOT NULL
----

query I rowsort
SELECT ALL + 62 + col0 AS col0 FROM tab1
----
113
147
153

query I rowsort
SELECT col0 * 19 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * col1 FROM tab1 WHERE col2 IS NOT NULL
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL + ( + SUM( col1 ) ) * 61 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN ( - col1 ) AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL + ( + SUM ( col1 ) ) * 61 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN ( - col1 ) AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3581
SELECT DISTINCT + 3 / - ( CAST( NULL AS SIGNED ) / - col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT + 3 / - ( CAST ( NULL AS INTEGER ) / - col1 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( - col1 ) FROM tab1 WHERE - col1 + + col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + SUM( ALL col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3583
SELECT + SUM ( ALL col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT ALL + 85 * col2 FROM tab0 WHERE 18 > + 43 * + col2
----

query I rowsort
SELECT ALL + 21 + col0 AS col1 FROM tab1
----
106
112
72

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 83 ) / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT - COUNT( * ) * 88 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT - COUNT ( * ) * 88 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 97 AS col2 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT 26 DIV 57 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT 26 / 57 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT - MAX( 24 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3590
SELECT - MAX ( 24 ) FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT COUNT( * ) * ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT COUNT ( * ) * ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col2 FROM tab1
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-3593
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL CAST( + col1 AS SIGNED ) * + ( 88 * + col0 + col2 ) AS col0 FROM tab2
----
207621
436744
446086

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL CAST ( + col1 AS INTEGER ) * + ( 88 * + col0 + col2 ) AS col0 FROM tab2
----
207621
436744
446086

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ( MIN( ALL - col2 ) ) AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-3595
SELECT ( MIN ( ALL - col2 ) ) AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT + MIN( - col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3596
SELECT + MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL - - ( MIN( ALL col0 ) ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT ALL - - ( MIN ( ALL col0 ) ) col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL COUNT( * ) + 27 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL COUNT ( * ) + 27 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT 1 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3599
SELECT 1 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col0 * + 72 AS col2 FROM tab1 AS cor0
----
3672
6120
6552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT - + CAST( NULL AS SIGNED ) / col2 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3601
SELECT - + CAST ( NULL AS INTEGER ) / col2 col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * 29 AS col1 FROM tab0 AS cor0
----
-2349
-29
-609

query I rowsort
SELECT 42 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT + CAST( + col0 AS SIGNED ) + + ( 43 - + col0 ) FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-3604
SELECT + CAST ( + col0 AS INTEGER ) + + ( 43 - + col0 ) FROM tab2
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3605
SELECT ALL * FROM tab1 WHERE ( 94 + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3605
SELECT ALL * FROM tab1 WHERE ( 94 + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3606
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE col0 * col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE col0 * col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - - 28 FROM tab0
----
2436
2716
420

query I rowsort
SELECT ALL + 0 + + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col0 + 99 FROM tab2
----
145
163
174

query I rowsort
SELECT - 88 + - + col1 FROM tab1
----
-102
-135
-93

query I rowsort
SELECT - col1 * - col0 + 4 FROM tab0
----
101
1219
1831

query I rowsort
SELECT ALL + 35 + + col1 FROM tab2 AS cor0
----
102
112
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3613
SELECT DISTINCT 23 + col0 + + CAST( - 7 + ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
118
186
198

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT 23 + col0 + + CAST ( - 7 + ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
118
186
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT 90 + - 37 * - COUNT( * ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-3614
SELECT 90 + - 37 * - COUNT ( * ) FROM tab2 AS cor0
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col1 FROM tab0 cor0
----
87
87
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT DISTINCT 79 + - col1 DIV 88 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT 79 + - col1 / 88 FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT COUNT( * ) * + 34 * SUM( + col0 DIV col2 ) + + 64 FROM tab2 AS cor0
----
472

skipif mysql # not compatible
query I rowsort label-3618
SELECT COUNT ( * ) * + 34 * SUM ( + col0 / col2 ) + + 64 FROM tab2 AS cor0
----
472

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3620
SELECT DISTINCT + 28 DIV - + COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT + 28 / - + COUNT ( * ) AS col2 FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + ( col0 ) * - col1 + col0 FROM tab1 WHERE ( ( col0 ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3623
SELECT ALL - COUNT( * ) DIV MIN( ALL col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - COUNT ( * ) / MIN ( ALL col0 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT COUNT( * ) - 76 + - COUNT( * ) AS col2 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-3624
SELECT COUNT ( * ) - 76 + - COUNT ( * ) AS col2 FROM tab2
----
-76

query I rowsort
SELECT DISTINCT col1 + + ( - col0 ) * ( col1 * 47 - 98 ) FROM tab2
----
-105703
-225267
-228758

query I rowsort
SELECT - + 76 + + + col2 AS col0 FROM tab1 AS cor0
----
-17
-8
20

query I rowsort
SELECT + 40 + 48 * 34 * 22 FROM tab1 AS cor0
----
35944
35944
35944

query I rowsort
SELECT + + 37 + - - col1 FROM tab0 cor0
----
118
38
58

query I rowsort
SELECT - ( 14 ) + + 58 - + col0 FROM tab1 AS cor0
----
-41
-47
-7

query I rowsort
SELECT - - 67 + + 81 AS col2 FROM tab0 cor0
----
148
148
148

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - 92 * - 38 * + col1
----

query I rowsort
SELECT ALL - 13 - + 95 + col0 * 33 FROM tab2 AS cor0
----
1410
2004
2367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT DISTINCT + - CAST( 86 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-86

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + - CAST ( 86 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-86

query I rowsort
SELECT 35 AS col1 FROM tab2 WHERE NOT + col1 + + col2 NOT IN ( 86 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3635
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - col1 * - 67 NOT BETWEEN col0 - CAST( NULL AS DECIMAL ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - col1 * - 67 NOT BETWEEN col0 - CAST ( NULL AS REAL ) AND col0
----
0

query I rowsort
SELECT DISTINCT 19 * - + col2 FROM tab1
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT DISTINCT COUNT( * ) DIV 97 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT COUNT ( * ) / 97 FROM tab1
----
0

query I rowsort
SELECT 12 * + col1 AS col1 FROM tab2 WHERE NOT ( 41 ) IS NULL
----
612
804
924

query I rowsort
SELECT + ( - col2 ) * - + ( - col1 ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT + COUNT( * ) * + MIN( DISTINCT + col1 ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-3640
SELECT + COUNT ( * ) * + MIN ( DISTINCT + col1 ) AS col1 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT ( + MIN( DISTINCT col1 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT ( + MIN ( DISTINCT col1 ) ) AS col1 FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( 37 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL SUM( DISTINCT + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL SUM ( DISTINCT + col0 ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT + 68 * - - col1 + + 70 + col2 AS col2 FROM tab2 cor0
----
3561
4684
5346

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 95 * + - col0 BETWEEN ( col0 ) AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL COUNT( * ) * - 27 AS col2 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL COUNT ( * ) * - 27 AS col2 FROM tab1 AS cor0
----
-81

query II rowsort
SELECT 78 AS col2, - col1 FROM tab1
----
78
-14
78
-47
78
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * - col0 * col0 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 92 * - col2 AS col1 FROM tab1
----
5428
6256
8832

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT + AVG ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 * 2 + - col2 + - + col0 + 72 * - 76 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 * 2 + - col2 + - + col0 + 72 * - 76 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + AVG ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT ALL - + col1 + - - col2 + - + 7 + 15 * col0 FROM tab1 AS cor0
----
1322
1379
840

query I rowsort
SELECT ALL + - col1 + col0 * col2 + + 29 AS col2 FROM tab2 AS cor0 WHERE NOT + 28 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab2 AS cor0 WHERE NOT 48 NOT IN ( col1 )
----

query I rowsort
SELECT col0 + 50 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 88 NOT IN ( col1 * - col2 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT - - COUNT( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3660
SELECT - - COUNT ( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
3

query II rowsort
SELECT - col2 AS col2, 27 FROM tab0
----
-10
27
-47
27
-99
27

query I rowsort
SELECT DISTINCT 64 + 4 - + + 28 * + col2 FROM tab2
----
-1052
-1556
-576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, ( col1 ) AS col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT ALL COUNT( * ) + - 20 AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL COUNT ( * ) + - 20 AS col1 FROM tab0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT + - 6 col0 FROM tab0 WHERE NULL = - + CAST( NULL AS SIGNED ) / - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3665
SELECT + - 6 col0 FROM tab0 WHERE NULL = - + CAST ( NULL AS INTEGER ) / - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3666
SELECT 16 DIV - col2 + col1 FROM tab1 AS cor0 WHERE col1 + col2 NOT BETWEEN ( NULL ) AND + ( - + CAST( col2 AS SIGNED ) ) * + 5
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3666
SELECT 16 / - col2 + col1 FROM tab1 AS cor0 WHERE col1 + col2 NOT BETWEEN ( NULL ) AND + ( - + CAST ( col2 AS INTEGER ) ) * + 5
----
14
47
5

query I rowsort
SELECT + - col2 + 37 AS col0 FROM tab0 AS cor0
----
-10
-62
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT + col2 DIV + 84 + + col0 AS col2 FROM tab0
----
15
87
98

skipif mysql # not compatible
query I rowsort label-3668
SELECT + col2 / + 84 + + col0 AS col2 FROM tab0
----
15
87
98

query I rowsort
SELECT ALL col0 + + ( + - col1 ) + + col1 + col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - + 10 * + col1 * - col0 AS col1 FROM tab0 AS cor0
----
12150
18270
970

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT + SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - ( - ( - col2 ) ) IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - ( - ( - col2 ) ) IS NULL
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT + ( + CAST( - - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3672
SELECT + ( + CAST ( - - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - - col2 * + - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT 80 * + 69 FROM tab0
----
5520
5520
5520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3675
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( + 20 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3675
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( + 20 AS INTEGER ) <= NULL
----

query II rowsort
SELECT + col2, col1 + 86 FROM tab1
----
59
91
68
133
96
100

query I rowsort
SELECT ALL + col1 * - 76 * - - col0 FROM tab1
----
-32300
-325052
-54264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col2 col1 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT ALL 69 AS col0, col2 AS col0 FROM tab0
----
69
10
69
47
69
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3680
SELECT ALL CAST( + + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) * - - ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL CAST ( + + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - - ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col0 + - 21 FROM tab1 AS cor0
----
4875
4994
6167

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT DISTINCT MAX( ALL - - col0 ) FROM tab0 AS cor0 WHERE NOT - 6 * col2 + - + ( + - col2 ) IS NULL
----
97

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT MAX ( ALL - - col0 ) FROM tab0 AS cor0 WHERE NOT - 6 * col2 + - + ( + - col2 ) IS NULL
----
97

query I rowsort
SELECT ALL - 51 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT + + col2 * ( + col1 ) FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE - 37 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE - 37 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL COUNT( ALL - 94 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL COUNT ( ALL - 94 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + + + col1 - - col0 IS NULL
----

query I rowsort
SELECT + - col2 * - 83 + col1 FROM tab0 AS cor0
----
3982
8218
851

query I rowsort
SELECT + col2 + - col1 + col0 + 61 FROM tab1 AS cor0
----
173
194
200

query I rowsort
SELECT ALL col1 + ( 6 ) FROM tab0
----
27
7
87

query II rowsort
SELECT ALL col1, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT + col0 * - + 3 FROM tab0
----
-261
-291
-45

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 4 FROM tab2
----
51
-4
67
-4
77
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3695
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + - CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-3695
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND - col1
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col1 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE - 21 BETWEEN - col1 + + col1 AND ( 76 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 22 - + col1 * - + col1 * - 25 * + - 62 * + col1 + - + col1 + 82 BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT ALL - COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col0 * + col0 * - - col2 * + col0 AS col2 FROM tab0 AS cor0
----
158625
6585030
90354627

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT DISTINCT - col1 * 26 DIV - col2 AS col2 FROM tab1 AS cor0
----
17
2
3

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT - col1 * 26 / - col2 AS col2 FROM tab1 AS cor0
----
17
2
3

query I rowsort
SELECT ALL + - col1 + - col2 - + col1 * col1 FROM tab2 cor0 WHERE NOT col0 / + col0 NOT IN ( + ( - col2 ), col1, - - 43 * - 91 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3703
SELECT - MIN( + + col0 ) DIV - 11 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-3703
SELECT - MIN ( + + col0 ) / - 11 FROM tab2 cor0
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - col0 AS col1, col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3706
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3706
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3707
SELECT ALL col2 * + col1 + 4 DIV - col2 AS col1, 14 - - - col1 col1 FROM tab0 AS cor0
----
210
-7
3807
-67
99
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3707
SELECT ALL col2 * + col1 + 4 / - col2 AS col1, 14 - - - col1 col1 FROM tab0 AS cor0
----
210
-7
3807
-67
99
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT - MIN( DISTINCT - + 78 ) col2 FROM tab1
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT DISTINCT - MIN ( DISTINCT - + 78 ) col2 FROM tab1
----
78

query I rowsort
SELECT ( 32 ) FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL col2 * - ( + 72 ) FROM tab2
----
-1656
-2880
-4176

query I rowsort
SELECT 98 * 16 FROM tab2
----
1568
1568
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - MIN( 24 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-3712
SELECT - MIN ( 24 ) FROM tab1
----
-24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 44 ) IS NOT NULL
----

query I rowsort
SELECT + 9 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
9
9
9

query I rowsort
SELECT ALL - 38 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col1 * col0 - + - col1 - col1 ) AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3716
SELECT + 17 * + SUM( ALL - col0 ) - - - COUNT( + 18 ) AS col1, - 11 AS col2 FROM tab2 AS cor0
----
-3148
-11

skipif mysql # not compatible
query II rowsort label-3716
SELECT + 17 * + SUM ( ALL - col0 ) - - - COUNT ( + 18 ) AS col1, - 11 AS col2 FROM tab2 AS cor0
----
-3148
-11

query II rowsort
SELECT 13, + 97 - ( + col0 ) AS col2 FROM tab1
----
13
12
13
46
13
6

query I rowsort
SELECT ALL col2 * - - col0 FROM tab0
----
705
870
9603

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + - 91 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT DISTINCT col0 + - - 84 - + - col1 * + + 99 * - ( col0 ) * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT col0 + - - 84 - + - col1 * + + 99 * - ( col0 ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL - MIN( ALL - + 28 ) + 96 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - MIN ( ALL - + 28 ) + 96 FROM tab2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT ALL COUNT( * ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3722
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT - ( col2 ) + ( - col0 ) DIV - 81 AS col0 FROM tab0 AS cor0
----
-47
-9
-98

skipif mysql # not compatible
query I rowsort label-3723
SELECT - ( col2 ) + ( - col0 ) / - 81 AS col0 FROM tab0 AS cor0
----
-47
-9
-98

query I rowsort
SELECT DISTINCT 5 + + col1 + ( + col1 ) * - ( - + col1 ) AS col2 FROM tab0 cor0
----
467
6647
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3725
SELECT ALL + col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL + col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - - col2 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + - col1 NOT BETWEEN + + 91 AND - 96
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3728
SELECT DISTINCT - + 61 * - + COUNT( * ) DIV - COUNT( * ) AS col0, COUNT( * ) col0 FROM tab0 AS cor0
----
-61
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3728
SELECT DISTINCT - + 61 * - + COUNT ( * ) / - COUNT ( * ) AS col0, COUNT ( * ) col0 FROM tab0 AS cor0
----
-61
3

query I rowsort
SELECT ALL + 10 - + + 50 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 84, - col1 * col0 + + col1 col2 FROM tab1 cor0
----
-84
-420
-84
-4230
-84
-700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT DISTINCT - - 77 FROM tab2 WHERE NOT + 84 > + + 0 * ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT - - 77 FROM tab2 WHERE NOT + 84 > + + 0 * ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col0 + - - 40 * + - col0 FROM tab1
----
-1989
-3315
-3549

query I rowsort
SELECT DISTINCT - 77 * 11 FROM tab1
----
-847

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( - col0 ) AND col2 + - col2 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL MIN( DISTINCT - + 26 ) * SUM( ALL 28 ) AS col1 FROM tab1
----
-2184

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL MIN ( DISTINCT - + 26 ) * SUM ( ALL 28 ) AS col1 FROM tab1
----
-2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3738
SELECT ALL - COUNT( * ) DIV + SUM( ALL col2 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - COUNT ( * ) / + SUM ( ALL col2 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN + col1 + + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * - + col0 + + col0 FROM tab0 cor0
----
-210
-7482
-9312

query I rowsort
SELECT col1 + - + 24 FROM tab1 AS cor0
----
-10
-19
23

query I rowsort
SELECT DISTINCT col0 + - 10 FROM tab1 WHERE NULL IS NULL
----
41
75
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT ( - 66 + + col2 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT + SUM( DISTINCT + 78 ) col2 FROM tab1
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3744
SELECT + SUM ( DISTINCT + 78 ) col2 FROM tab1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT - ( - CAST( + + 71 AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif mysql # not compatible
query I rowsort label-3745
SELECT - ( - CAST ( + + 71 AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + col0 * + + col2 * 67 * col1 + - col1 + - 72 * + + col2 FROM tab2 AS cor0
----
13204083
19522907
3613479

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3747
SELECT - col2 DIV - col0 + 45, 58 * - - ( 83 ) + 67 + - - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
45
NULL
46
NULL
48
NULL

skipif mysql # not compatible
query II rowsort label-3747
SELECT - col2 / - col0 + 45, 58 * - - ( 83 ) + 67 + - - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
45
NULL
46
NULL
48
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67, col0 col1 FROM tab2
----
67
46
67
64
67
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL + COUNT( ALL + col1 ) * + COUNT( * ) + - - 74 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL + COUNT ( ALL + col1 ) * + COUNT ( * ) + - - 74 FROM tab1
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 77 col0, - col2 FROM tab0
----
-77
-10
-77
-47
-77
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT - - MAX( DISTINCT - + col0 ) FROM tab1 WHERE col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - - MAX ( DISTINCT - + col0 ) FROM tab1 WHERE col1 > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COUNT( DISTINCT + + 76 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3755
SELECT COUNT ( DISTINCT + + 76 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3756
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT DISTINCT col2 * - 26 * - - 97 * + col2 AS col0 FROM tab0
----
-24718122
-252200
-5571098

query I rowsort
SELECT ALL + 1 + + col1 AS col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT COUNT( * ) + - MIN( - + col0 ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3759
SELECT COUNT ( * ) + - MIN ( - + col0 ) AS col0 FROM tab2 AS cor0
----
78

query I rowsort
SELECT - + 43 * - - ( - col0 ) + col1 AS col1 FROM tab0 AS cor0
----
3762
4172
726

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - - 16 / - col2 NOT IN ( - col1, - col0 * - col1 * col2 * col0 ) AND - 46 + - 81 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT COUNT( * ) + 50, + 59 + + 53 col0 FROM tab2 AS cor0
----
53
112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3762
SELECT COUNT ( * ) + 50, + 59 + + 53 col0 FROM tab2 AS cor0
----
53
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT + MAX( col0 ) + + - 43 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3763
SELECT + MAX ( col0 ) + + - 43 FROM tab1
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3764
SELECT ( - CAST( + 50 AS SIGNED ) ) DIV col1 FROM tab0
----
-2
-50
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT ( - CAST ( + 50 AS INTEGER ) ) / col1 FROM tab0
----
-2
-50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL + COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT IN ( - col2 * + 24, col1 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 AS col1, + col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT + ( + 57 ) FROM tab2 AS cor0
----
57

query I rowsort
SELECT ALL - - col1 * 14 AS col0 FROM tab1 cor0
----
196
658
70

query I rowsort
SELECT 45 FROM tab2 AS cor0 WHERE NOT NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT + + MAX( - 25 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

skipif mysql # not compatible
query I rowsort label-3771
SELECT + + MAX ( - 25 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT CAST( - 64 AS SIGNED ) AS col1 FROM tab1
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-3772
SELECT CAST ( - 64 AS INTEGER ) AS col1 FROM tab1
----
-64
-64
-64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + COUNT( * ) * + 83 + - 49 FROM tab2 AS cor0
----
200

skipif mysql # not compatible
query I rowsort label-3775
SELECT + COUNT ( * ) * + 83 + - 49 FROM tab2 AS cor0
----
200

query II rowsort
SELECT - 98 / + col1 + col0 - + 97 * - col2, 34 FROM tab0 AS cor0 WHERE NOT - col1 - 87 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - 23 FROM tab1 WHERE NULL <> 52 * + 86 + - 12
----

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col1 * + 44 + col0 * - - col1 AS col2 FROM tab0
----
141
2751
4779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 40 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3780
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL SUM( ALL + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL SUM ( ALL + col2 ) AS col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 82 * - MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
-4756

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 82 * - MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
-4756

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT MIN( - col1 ) + - 99 AS col1 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-3783
SELECT MIN ( - col1 ) + - 99 AS col1 FROM tab0
----
-180

query I rowsort
SELECT - col0 + - 37 + - + col1 FROM tab2
----
-134
-178
-179

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3785
SELECT + col0 * - col0 * - 91 + + - col1 AS col1, col2 FROM tab1 AS cor0 WHERE ( + col1 + - + 83 - col0 / + 46 * - - col0 * - - CAST( NULL AS SIGNED ) ) > 81 * - + 12 * + + 63
----

skipif mysql # not compatible
query II rowsort label-3785
SELECT + col0 * - col0 * - 91 + + - col1 AS col1, col2 FROM tab1 AS cor0 WHERE ( + col1 + - + 83 - col0 / + 46 * - - col0 * - - CAST ( NULL AS INTEGER ) ) > 81 * - + 12 * + + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT 46 + + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT 46 + + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
49

query II rowsort
SELECT col2 AS col2, + col0 AS col0 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT - ( - ( - col1 ) ) - 23 - - col1 FROM tab1
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT COUNT( * ) - + COUNT( * ) * + 25 AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3789
SELECT COUNT ( * ) - + COUNT ( * ) * + 25 AS col2 FROM tab2
----
-72

query I rowsort
SELECT col1 - col2 + + col2 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3791
SELECT ALL col0 - + + 17 + - 32 DIV + - col1 FROM tab1
----
36
74
74

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL col0 - + + 17 + - 32 / + - col1 FROM tab1
----
36
74
74

query I rowsort
SELECT 85 * + 65 - - col2 AS col1 FROM tab1
----
5584
5593
5621

query I rowsort
SELECT 8 FROM tab1 WHERE NOT NULL > + col2 * + col2 + - col0 / - + col1 + + ( - - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 14 / col2 * 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 38 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT - CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3797
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3798
SELECT - + ( col2 ) * col2 * + + 10 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT - + ( col2 ) * col2 * + + 10 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3799
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( ( + + col0 ) AS SIGNED ) + col2 * 98 / col0 / - col2 * + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3799
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( ( + + col0 ) AS INTEGER ) + col2 * 98 / col0 / - col2 * + - col1 IS NOT NULL
----

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3801
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL - ( + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 + - 61 IS NULL
----

query I rowsort
SELECT ALL col2 + - col2 + + + col2 AS col0 FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 82 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3805
SELECT ALL + ( + 20 ) + COUNT( * ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + ( + 20 ) + COUNT ( * ) / - - COUNT ( * ) FROM tab0 AS cor0
----
21

query II rowsort
SELECT DISTINCT col2 + + col2 AS col0, - 95 + col0 AS col0 FROM tab0 AS cor0
----
198
2
20
-8
94
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT - 73 * + COUNT( * ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-3807
SELECT - 73 * + COUNT ( * ) FROM tab1 AS cor0
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT col0 DIV + ( - col0 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3808
SELECT col0 / + ( - col0 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 12 - col0 FROM tab1
----
-39
-73
-79

query I rowsort
SELECT DISTINCT - 47 + 65 FROM tab1 AS cor0
----
18

query I rowsort
SELECT + col1 - - 49 FROM tab1 AS cor0
----
54
63
96

query I rowsort
SELECT + col1 + col1 * + - 55 + + col1 AS col2 FROM tab0 AS cor0
----
-1113
-4293
-53

query I rowsort
SELECT DISTINCT - 92 * - + col1 + + col2 FROM tab1 AS cor0
----
1384
4392
519

query I rowsort
SELECT + - 28 + - col1 FROM tab1 AS cor0
----
-33
-42
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT DISTINCT col1 - 10 DIV - 9 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT col1 - 10 / - 9 FROM tab1 AS cor0
----
15
48
6

query III rowsort
SELECT * FROM tab2 WHERE - ( + 98 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT MIN( col2 ) - + 20 + COUNT( * ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT MIN ( col2 ) - + 20 + COUNT ( * ) FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL <> - col0
----

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT - ( - MAX( + ( + col1 ) ) ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3819
SELECT - ( - MAX ( + ( + col1 ) ) ) AS col1 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT CAST( + col1 AS SIGNED ) * + 58 AS col2 FROM tab1
----
2726
290
812

skipif mysql # not compatible
query I rowsort label-3820
SELECT CAST ( + col1 AS INTEGER ) * + 58 AS col2 FROM tab1
----
2726
290
812

onlyif mysql # DIV for integer division: 
query I rowsort label-3821
SELECT + 42 DIV - 57 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3821
SELECT + 42 / - 57 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + - 88, + col2 col2 FROM tab2 AS cor0
----
-2024
23
-3520
40
-5104
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT DISTINCT + col0 * + + col2 + - col1 DIV - + 95 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT + col0 * + + col2 + - col1 / - + 95 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT DISTINCT + col2, col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( + col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE NOT + col1 / - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT DISTINCT - MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + 6 + ( ( - SUM( ALL - - col1 ) ) ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3828
SELECT + 6 + ( ( - SUM ( ALL - - col1 ) ) ) FROM tab1 AS cor0
----
-60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 47 - - 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT SUM( DISTINCT col2 ) - + + MIN( + 91 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-3830
SELECT SUM ( DISTINCT col2 ) - + + MIN ( + 91 ) FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3831
SELECT DISTINCT - + col1 DIV + - CAST( - + 88 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT - + col1 / + - CAST ( - + 88 AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 48 * - col1 AS col1 FROM tab2
----
-2448
-3216
-3696

query II rowsort
SELECT - col1 AS col2, - col0 + + - col1 AS col1 FROM tab1
----
-14
-65
-47
-138
-5
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT - 9 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - 9 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 98 + - ( - col0 ) FROM tab1 AS cor0
----
-13
-47
-7

query II rowsort
SELECT ALL 83 + - col2, + col0 - - col2 * col2 AS col1 FROM tab1 AS cor0
----
-13
9267
15
4715
24
3566

query I rowsort
SELECT DISTINCT + 16 - - + 56 AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + - col1 * - col0 - col2 FROM tab2 cor0
----
2323
4888
4967

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT - + MAX( ALL - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3842
SELECT - + MAX ( ALL - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL SUM( - 71 ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL SUM ( - 71 ) FROM tab1
----
-213

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 > col0
----
87
21
10
97
1
99

query I rowsort
SELECT - 52 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT ALL - CAST( - COUNT( DISTINCT col1 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - CAST ( - COUNT ( DISTINCT col1 ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL <= + - col0
----

query I rowsort
SELECT 19 * - - col0 FROM tab0
----
1653
1843
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + - col2 + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + - col2 + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT + 56 AS col0, COUNT( * ) FROM tab0
----
56
3

skipif mysql # not compatible
query II rowsort label-3851
SELECT + 56 AS col0, COUNT ( * ) FROM tab0
----
56
3

query I rowsort
SELECT + 24 FROM tab0 WHERE NOT NULL < ( - 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + ( + col1 ) col0 FROM tab0
----
113
173
93

query I rowsort
SELECT 24 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + 78 * + SUM( + + col2 ) col1 FROM tab1 AS cor0
----
17394

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3855
SELECT + 78 * + SUM ( + + col2 ) col1 FROM tab1 AS cor0
----
17394

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT DISTINCT - MIN( 63 ) AS col1 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT - MIN ( 63 ) AS col1 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT 26 * + col0 * 61 + + col0 FROM tab1 cor0
----
134895
144417
80937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT + + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT + + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT + col2 DIV + + col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3859
SELECT + col2 / + + col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT - - 96, + MAX( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT ( NOT - col2 IS NOT NULL ) )
----
96
58

skipif mysql # not compatible
query II rowsort label-3860
SELECT - - 96, + MAX ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT ( NOT - col2 IS NOT NULL ) )
----
96
58

query I rowsort
SELECT ALL + col2 * + - col1 + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL - COUNT( DISTINCT + 73 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - COUNT ( DISTINCT + 73 ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 61 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 61 IS NOT NULL
----
0

query II rowsort
SELECT 32 + - 28 + - - 9 * - 40 * - ( - ( + col2 ) ) AS col2, col0 + col2 * - col2 * + col0 * col2 FROM tab1 AS cor0
----
-21236
-17457130
-24476
-28613221
-34556
-45121485

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT + col0 + + col1 + - + col0 DIV - - 91 AS col0 FROM tab0
----
108
96
97

skipif mysql # not compatible
query I rowsort label-3866
SELECT + col0 + + col1 + - + col0 / - - 91 AS col0 FROM tab0
----
108
96
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 86 + + col0 col0 FROM tab2
----
4002
5568
6525

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT ALL col0 DIV - - col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL col0 / - - col0 AS col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + + col0 * 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - 64 + 99 AS col0 FROM tab1 AS cor0
----
-3677
-4253
-6045

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col2 * col2 NOT BETWEEN col0 AND + 84 * - 80 - + + ( - 95 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT + COUNT( * ) - - COUNT( * ) DIV 50 + + 9 AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-3872
SELECT + COUNT ( * ) - - COUNT ( * ) / 50 + + 9 AS col2 FROM tab0
----
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + col2 + col1 + + + 93 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT 69 + - MAX( - ( 64 ) ) + - MAX( ALL - col2 ) col0 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3874
SELECT DISTINCT 69 + - MAX ( - ( 64 ) ) + - MAX ( ALL - col2 ) col0 FROM tab2 AS cor0
----
156

query I rowsort
SELECT - col1 + - 27 FROM tab0 cor0
----
-108
-28
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + - MIN( ALL + - 78 ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3876
SELECT + - MIN ( ALL + - 78 ) AS col2 FROM tab2 AS cor0
----
78

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3878
SELECT ALL + CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3879
SELECT - + 40 AS col2, - COUNT( * ) * - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-40
9

skipif mysql # not compatible
query II rowsort label-3879
SELECT - + 40 AS col2, - COUNT ( * ) * - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-40
9

query II rowsort
SELECT ALL + col2, - col2 FROM tab2 WHERE ( - col2 ) = NULL
----

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 49
----

query I rowsort
SELECT + col1 * - - col1 AS col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT - CAST( + col2 AS SIGNED ) > col2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + col0 AS col2 FROM tab2 WHERE NOT - CAST ( + col2 AS INTEGER ) > col2
----
46
64
75

query II rowsort
SELECT DISTINCT col0 * col2, + col0 AS col1 FROM tab2
----
1058
46
2560
64
4350
75

query II rowsort
SELECT + 62 * - col2, + col1 FROM tab2
----
-1426
51
-2480
77
-3596
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - 47 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT - MAX( ALL + - col0 ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3887
SELECT - MAX ( ALL + - col0 ) AS col2 FROM tab2 cor0
----
46

query I rowsort
SELECT ( - - col0 ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3889
SELECT - MAX( ALL CAST( - + col1 AS SIGNED ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3889
SELECT - MAX ( ALL CAST ( - + col1 AS INTEGER ) ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT + ( + - 48 ) + col0 FROM tab2 AS cor0
----
-2
16
27

query I rowsort
SELECT ALL col0 + + - 45 FROM tab2 cor0
----
1
19
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT - ( + SUM( + + col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - ( + SUM ( + + col1 ) ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL - 2 * + 93 * + COUNT( * ) FROM tab1 cor0
----
-558

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - 2 * + 93 * + COUNT ( * ) FROM tab1 cor0
----
-558

query I rowsort
SELECT 31 * - col2 AS col0 FROM tab2
----
-1240
-1798
-713

query I rowsort
SELECT col1 * ( - 23 ) AS col2 FROM tab1
----
-1081
-115
-322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL - 1 * + - col0 * - CAST( + col1 AS SIGNED ) FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - 1 * + - col0 * - CAST ( + col1 AS INTEGER ) FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-3898
SELECT ALL 87 DIV 75 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL 87 / 75 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 46 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT - CAST( NULL AS SIGNED ) - + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT + col2 - - col2 DIV + - col0 FROM tab0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-3901
SELECT + col2 - - col2 / + - col0 FROM tab0
----
10
44
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 32 IS NULL
----

query I rowsort
SELECT DISTINCT + + 36 + + col2 + - - col0 FROM tab0 AS cor0
----
133
232
98

query I rowsort
SELECT ALL - col0 - - 40 FROM tab2 cor0
----
-24
-35
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT - 40 DIV 68 * + 22 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3905
SELECT - 40 / 68 * + 22 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3906
SELECT ALL ( + 99 ) DIV COUNT( * ) FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL ( + 99 ) / COUNT ( * ) FROM tab2 cor0
----
33

query II rowsort
SELECT col1 + + + 44 AS col0, + col2 * - - 90 FROM tab2 cor0
----
111
5220
121
3600
95
2070

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT ALL - + CAST( - 14 AS SIGNED ) FROM tab2 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - + CAST ( - 14 AS INTEGER ) FROM tab2 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab0 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - 57 * col1 AS col2 FROM tab2 AS cor0
----
-2907
-3819
-4389

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT 32 * 36 FROM tab2 AS cor0
----
1152

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + AVG ( ALL - 98 ) AS col2 FROM tab0 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 62 - + col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + 33 * + AVG ( - 19 ) AS col1, 2 + + - 1 FROM tab1 WHERE NOT ( NULL ) <> + + col2 OR + col1 IS NULL
----
NULL
1

query II rowsort
SELECT ALL col0, + col2 AS col0 FROM tab1
----
51
96
85
59
91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 + + - col0 col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 * + + 0 col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3922
SELECT ALL COUNT( * ) AS col0, - 52 FROM tab2 AS cor0
----
3
-52

skipif mysql # not compatible
query II rowsort label-3922
SELECT ALL COUNT ( * ) AS col0, - 52 FROM tab2 AS cor0
----
3
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT + - SUM( ( col0 ) ) DIV + 3 + - 71 FROM tab0 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-3923
SELECT + - SUM ( ( col0 ) ) / + 3 + - 71 FROM tab0 AS cor0
----
-137

query I rowsort
SELECT - col2 + + 6 + + col0 * - 51 * + col2 * + col1 FROM tab2 cor0
----
-10053154
-14864002
-2751875

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT DISTINCT + SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - MIN( + + 8 ) AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3926
SELECT - MIN ( + + 8 ) AS col0 FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3927
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - CAST( NULL AS SIGNED ) * - MAX( ALL col1 ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3927
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * - MAX ( ALL col1 ) FROM tab2 AS cor0
----
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT - 8 + - ( + 25 ) + - col1 - - 30 FROM tab2 AS cor0
----
-54
-70
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 + - col2 col2 FROM tab2 AS cor0
----
-61
-78
-96

query II rowsort
SELECT - 24 + + col1, col0 FROM tab0 AS cor0
----
-23
97
-3
87
57
15

query II rowsort
SELECT + - col1 + 60 AS col2, + 67 AS col1 FROM tab1 AS cor0
----
13
67
46
67
55
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 31 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3934
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE 24 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col0 * - 43 * + col0 AS col2 FROM tab2
----
-176128
-241875
-90988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT + 35 * - - col1 * - CAST( + ( - + 21 ) AS SIGNED ) * - col1 FROM tab2
----
-1911735
-3299415
-4357815

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + 35 * - - col1 * - CAST ( + ( - + 21 ) AS INTEGER ) * - col1 FROM tab2
----
-1911735
-3299415
-4357815

query I rowsort
SELECT - col0 + - 38 AS col1 FROM tab1
----
-123
-129
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL MAX( ALL - + col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3938
SELECT ALL MAX ( ALL - + col0 ) col1 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col1 FROM tab0 WHERE - ( + + 7 ) IS NOT NULL
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3940
SELECT 33 DIV - col0 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3940
SELECT 33 / - col0 AS col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT DISTINCT - col0 + + + 4 + - col2 + - + col2 AS col0 FROM tab2
----
-140
-187
-88

query III rowsort
SELECT * FROM tab0 WHERE - 48 * 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * 1 + + col2 * + 8 FROM tab2
----
235
397
531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 65 + - - col0 col0 FROM tab1 AS cor0
----
-14
20
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + + 24 - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + 24 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + SUM( ALL - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3946
SELECT + SUM ( ALL - col2 ) AS col2 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 83 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col1, + 15 AS col2 FROM tab0 AS cor0
----
15
15
87
15
97
15

query I rowsort
SELECT DISTINCT - 80 * + col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT ALL + col2 * - 81 + - - col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL + col2 * - 81 + - - col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT DISTINCT - col2 DIV col2 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - col2 / col2 AS col0 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL + SUM( ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + SUM ( ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT MIN( col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT MIN ( col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE + col1 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT + CAST( + - 35 AS SIGNED ) AS col0 FROM tab0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-3956
SELECT + CAST ( + - 35 AS INTEGER ) AS col0 FROM tab0
----
-35
-35
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT + COUNT( * ) DIV - 57 FROM tab0 WHERE - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT + COUNT ( * ) / - 57 FROM tab0 WHERE - col2 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ( COUNT( * ) ) * + COUNT( * ) + - 38 AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3958
SELECT ( COUNT ( * ) ) * + COUNT ( * ) + - 38 AS col0 FROM tab1
----
-29

query I rowsort
SELECT DISTINCT + ( - col0 ) + 89 AS col1 FROM tab1
----
-2
38
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col1 col1, col0 FROM tab1
----
1344
51
295
85
3196
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT + + 89 * COUNT( DISTINCT - - col1 ) * 81 AS col2 FROM tab1 cor0
----
21627

skipif mysql # not compatible
query I rowsort label-3961
SELECT + + 89 * COUNT ( DISTINCT - - col1 ) * 81 AS col2 FROM tab1 cor0
----
21627

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 = - col1 * + col1 DIV - col2 + - col2
----
-21
-81

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 = - col1 * + col1 / - col2 + - col2
----
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT 86 + + COUNT( * ) col1 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3964
SELECT 86 + + COUNT ( * ) col1 FROM tab0 AS cor0
----
89

query I rowsort
SELECT - 51 * - col2 + col0 AS col0 FROM tab2
----
1219
2104
3033

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - MAX( col1 ) AS col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - MAX ( col1 ) AS col1 FROM tab2 cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT ALL - 67 + - col0 DIV - col1 AS col2 FROM tab0 cor0
----
-63
-67
30

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - 67 + - col0 / - col1 AS col2 FROM tab0 cor0
----
-63
-67
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - MAX( + col1 ) * + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT - MAX ( + col1 ) * + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT COUNT( ALL - - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3969
SELECT COUNT ( ALL - - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 3 * + - col1 AS col1 FROM tab0 cor0
----
-243
-3
-63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 42 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( + col1 ) FROM tab2 WHERE - col1 + 14 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT ALL - col2 * - + col1 * - CAST( + + col0 AS SIGNED ) - + 52 AS col0 FROM tab1
----
-25127
-290888
-68596

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - col2 * - + col1 * - CAST ( + + col0 AS INTEGER ) - + 52 AS col0 FROM tab1
----
-25127
-290888
-68596

query I rowsort
SELECT col2 - - 74 FROM tab1
----
133
142
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT + CAST( NULL AS SIGNED ) / col0 * + col1 * - + 44 - CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT + CAST ( NULL AS INTEGER ) / col0 * + col1 * - + 44 - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 67 + + col0 FROM tab1
----
118
152
158

query I rowsort
SELECT col1 + - - col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL 45 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + - COUNT( * ) + 65 - SUM( - col1 ) AS col2 FROM tab0 WHERE NOT col2 / 27 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3980
SELECT + - COUNT ( * ) + 65 - SUM ( - col1 ) AS col2 FROM tab0 WHERE NOT col2 / 27 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 61 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - 46 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query III rowsort
SELECT * FROM tab0 WHERE NOT 93 <> + col1 * + col2 * col0 * 97 * - + col2
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT ALL - col2 * - col2 * - - col2, + col0 AS col2 FROM tab1
----
205379
85
314432
91
884736
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col0, - col1 * + + ( - ( + col1 ) ) + + col1 / + + col1, - + 83, + 77, col1 - col2 * - col0 - + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT - COUNT( DISTINCT - col0 ) * 30 AS col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3988
SELECT - COUNT ( DISTINCT - col0 ) * 30 AS col0 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT ALL - col0 * + - col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT + MAX( DISTINCT 34 ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + MAX ( DISTINCT 34 ) FROM tab0 AS cor0
----
34

query II rowsort
SELECT + - 3, col2 FROM tab2 AS cor0
----
-3
23
-3
40
-3
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col0 / col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT + COUNT( * ) AS col2, 93 AS col2 FROM tab0 WHERE NOT + col0 < NULL
----
0
93

skipif mysql # not compatible
query II rowsort label-3993
SELECT + COUNT ( * ) AS col2, 93 AS col2 FROM tab0 WHERE NOT + col0 < NULL
----
0
93

query I rowsort
SELECT ALL ( + 26 ) * - 5 + + col1 FROM tab0
----
-109
-129
-49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NULL BETWEEN - col2 AND + - 69 * - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3996
SELECT ALL CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + col2 col2 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT - + 3 + + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - + 3 + + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL - 68 - - + col0 FROM tab2 AS cor0
----
-22
-4
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4000
SELECT - COUNT( * ) + - 34 AS col1, MIN( - col0 ) AS col0 FROM tab2 AS cor0
----
-37
-75

skipif mysql # not compatible
query II rowsort label-4000
SELECT - COUNT ( * ) + - 34 AS col1, MIN ( - col0 ) AS col0 FROM tab2 AS cor0
----
-37
-75

query I rowsort
SELECT - - col2 + - + col1 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - col0 + ( + 23 ) FROM tab1 AS cor0
----
-28
-62
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT ALL - + COUNT( * ) - - MIN( + + col2 ) col2 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4003
SELECT ALL - + COUNT ( * ) - - MIN ( + + col2 ) col2 FROM tab0 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 11 + - + col0 + 74 * + 57 col1 FROM tab0 AS cor0
----
4152
4231
4261

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT DISTINCT - 28 DIV col0 - + + col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT - 28 / col0 - + + col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE 40 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL MAX( DISTINCT + - 21 ) AS col1 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL MAX ( DISTINCT + - 21 ) AS col1 FROM tab2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4008
SELECT COUNT( - ( col0 ) ) AS col0, COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-4008
SELECT COUNT ( - ( col0 ) ) AS col0, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL + MAX( - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL + MAX ( - col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT col2 * - - 81 * + 4 * - col1 FROM tab1
----
-1035504
-435456
-95580

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL COUNT( - col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL COUNT ( - col1 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + col2 * ( + 74 ) + 80 FROM tab0 WHERE ( NULL ) IN ( 49 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col2 + 89 * 35 )
----

query I rowsort
SELECT ( col0 ) - - col0 FROM tab2
----
128
150
92

query I rowsort
SELECT col0 + + 57 FROM tab1
----
108
142
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT MAX( + 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-4016
SELECT MAX ( + 95 ) FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - SUM( - 28 ) - + 69 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-4017
SELECT - SUM ( - 28 ) - + 69 FROM tab2
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 62 + col2 ) <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT COUNT( * ) + 67 AS col0 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-4019
SELECT COUNT ( * ) + 67 AS col0 FROM tab2
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 WHERE NOT col1 * - col1 IN ( 72 )
----
-23
-40
-58

query I rowsort
SELECT ALL col1 * 73 - 90 AS col1 FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + COUNT( - ( col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4022
SELECT + COUNT ( - ( col2 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL 37 * COUNT( * ) - + 41 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL 37 * COUNT ( * ) - + 41 FROM tab1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT ALL CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL col2 * - col2 AS col0 FROM tab2 WHERE - 43 / col0 BETWEEN col2 - + 22 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4027
SELECT * FROM tab1 WHERE NOT + 50 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4027
SELECT * FROM tab1 WHERE NOT + 50 * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 2 - - 30 FROM tab1
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN ( - col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT 73 * - 57 AS col2 FROM tab1 WHERE NULL = + 73 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL MAX( DISTINCT col1 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL MAX ( DISTINCT col1 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
81

query I rowsort
SELECT DISTINCT 72 * 84 AS col2 FROM tab1
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT - 76 ) FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT - 76 ) FROM tab1
----
-228

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN 59 AND + 69 * col0
----

query I rowsort
SELECT col0 FROM tab2 WHERE col0 + - ( 58 ) > col0
----

query I rowsort
SELECT ALL col2 * + col1 - - col0 FROM tab0 AS cor0
----
196
297
3822

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * col2 IN ( + 0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( + col0 ) col1 FROM tab2
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 + ( 65 + - 79 ) col2 FROM tab2
----
-15

query I rowsort
SELECT ALL col1 / + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT DISTINCT 13 + + col0 * - col2 AS col1 FROM tab0 AS cor0 WHERE ( + 53 + CAST( NULL AS SIGNED ) * + 41 ) > ( col0 )
----

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT 13 + + col0 * - col2 AS col1 FROM tab0 AS cor0 WHERE ( + 53 + CAST ( NULL AS INTEGER ) * + 41 ) > ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL - + COUNT( * ) + - 71 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - + COUNT ( * ) + - 71 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col0 + col0 * - 63 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT - 94 + COUNT( * ) FROM tab2 AS cor0 WHERE + 20 + + col0 NOT IN ( + col1 )
----
-91

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - 94 + COUNT ( * ) FROM tab2 AS cor0 WHERE + 20 + + col0 NOT IN ( + col1 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + - col0 AS col0 FROM tab2 cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + - col0 AS col0 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT + col1 * + col1 - - col1 FROM tab0 AS cor0
----
2
462
6642

query I rowsort
SELECT - col1 - - 56 AS col2 FROM tab2 cor0
----
-11
-21
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 * - 12 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT 17 DIV - 16 - - col1 * + 4 AS col0 FROM tab2
----
203
267
307

skipif mysql # not compatible
query I rowsort label-4051
SELECT 17 / - 16 - - col1 * + 4 AS col0 FROM tab2
----
203
267
307

query I rowsort
SELECT + 20 - - - 13 AS col0 FROM tab1
----
7
7
7

query III rowsort
SELECT * FROM tab2 WHERE - 67 * col0 BETWEEN - 20 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT COUNT( * ) * - 57 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-4054
SELECT COUNT ( * ) * - 57 FROM tab2
----
-171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col1 FROM tab1 WHERE NOT col1 = ( NULL )
----

query I rowsort
SELECT col2 * - col0 * + col2 AS col1 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT 98 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( + col0 ) * + col2 AS col2 FROM tab0 WHERE NOT ( + 30 ) <= NULL
----

query I rowsort
SELECT DISTINCT ( - 65 ) FROM tab0
----
-65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 47 * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col1 + 29 BETWEEN + 53 AND ( 90 * - col0 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT ALL + ( - ( MAX( + CAST( NULL AS SIGNED ) ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + ( - ( MAX ( + CAST ( NULL AS INTEGER ) ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE + col1 * - col0 = ( - CAST( NULL AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE + col1 * - col0 = ( - CAST ( NULL AS INTEGER ) * col1 )
----

query I rowsort
SELECT ( - 19 ) AS col0 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT - - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + 70 + - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
157
167
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4067
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + ( + 29 ) FROM tab0 AS cor0
----
29
29
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 / 34 + col1 col0 FROM tab1 AS cor0 WHERE NOT - col0 <> + col1
----

query I rowsort
SELECT ALL - 49 * - 23 * col1 FROM tab0 AS cor0
----
1127
23667
91287

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT + SUM( DISTINCT 18 ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4072
SELECT + SUM ( DISTINCT 18 ) AS col2 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT + COUNT( * ) DIV - 83 * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT + COUNT ( * ) / - 83 * + COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT COUNT( * ) * + COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4075
SELECT COUNT ( * ) * + COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 50 * + - ( - + 37 ) * + + 75 + + col2 AS col1 FROM tab0
----
138760
138797
138849

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT 83 + - ( + SUM( DISTINCT + - col1 ) ) FROM tab1
----
149

skipif mysql # not compatible
query I rowsort label-4077
SELECT 83 + - ( + SUM ( DISTINCT + - col1 ) ) FROM tab1
----
149

query I rowsort
SELECT ALL + 63 * + col0 FROM tab1
----
3213
5355
5733

query I rowsort
SELECT DISTINCT + col1 * col0 FROM tab0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - 75 * + COUNT( * ) AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-225

skipif mysql # not compatible
query I rowsort label-4080
SELECT - 75 * + COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + MIN( DISTINCT 5 ) 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-4081
SELECT + MIN ( DISTINCT 5 ) col2 FROM tab0 WHERE ( - - col0 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IN ( - col0 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL SUM( + ( col2 ) ) + + ( + 46 ) col1 FROM tab2
----
167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4083
SELECT ALL SUM ( + ( col2 ) ) + + ( + 46 ) col1 FROM tab2
----
167

query I rowsort
SELECT ( - col2 ) + ( - 70 ) AS col0 FROM tab0
----
-117
-169
-80

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4086
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + CAST( + - col2 AS SIGNED ) ) NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4086
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + CAST ( + - col2 AS INTEGER ) ) NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col0 * col2 NOT BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT - col1 * + - 64 FROM tab1 AS cor0
----
3008
320
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT + col2 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT + col2 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - 97 AS col0 FROM tab1 cor0
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ( COUNT( * ) ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE + - col1 * col2 NOT BETWEEN - 8 AND NULL
----
10
47
99

query I rowsort
SELECT 58 * + 6 FROM tab2 WHERE - col2 / + + col0 + - + col0 + + col2 IS NULL
----

query I rowsort
SELECT - col0 + + 42 * + + 24 FROM tab2
----
933
944
962

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL - MIN( col1 ) + + + SUM( ALL - 2 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - MIN ( col1 ) + + + SUM ( ALL - 2 ) FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL + - col1 + - + 17 FROM tab2 AS cor0
----
-68
-84
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT 16 + + SUM( col1 ) + COUNT( * ) * COUNT( * ) * 85 AS col0 FROM tab1 AS cor0
----
847

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT 16 + + SUM ( col1 ) + COUNT ( * ) * COUNT ( * ) * 85 AS col0 FROM tab1 AS cor0
----
847

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT DISTINCT + - 24 DIV - 71 * - + col0 - + col1 + + + col0 * ( col0 ) FROM tab0 AS cor0
----
144
7548
9408

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + - 24 / - 71 * - + col0 - + col1 + + + col0 * ( col0 ) FROM tab0 AS cor0
----
144
7548
9408

query I rowsort
SELECT - - 24 AS col2 FROM tab0 AS cor0 WHERE ( + col2 ) BETWEEN 84 AND NULL
----

query I rowsort
SELECT ALL col0 * - - col1 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT col0, - col1 + + 47 FROM tab0 AS cor0
----
15
-34
87
26
97
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4102
SELECT DISTINCT - 71 * SUM( DISTINCT - 78 ) AS col1, - ( COUNT( + CAST( + col0 AS SIGNED ) ) ) FROM tab2 AS cor0
----
5538
-3

skipif mysql # not compatible
query II rowsort label-4102
SELECT DISTINCT - 71 * SUM ( DISTINCT - 78 ) AS col1, - ( COUNT ( + CAST ( + col0 AS INTEGER ) ) ) FROM tab2 AS cor0
----
5538
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4103
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST( - col2 AS SIGNED ) AND ( - col1 + - col0 * col2 )
----

skipif mysql # not compatible
query III rowsort label-4103
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST ( - col2 AS INTEGER ) AND ( - col1 + - col0 * col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * 47 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT ALL + ( CAST( + col0 AS SIGNED ) ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + ( CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT col1 * + col0 * 67 AS col2 FROM tab0
----
122409
6499
81405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT - col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NULL BETWEEN col0 * - col2 AND - 10 )
----

skipif mysql # not compatible
query I rowsort label-4107
SELECT - col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NULL BETWEEN col0 * - col2 AND - 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT ALL + - 8 * + + ( - CAST( - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-184
-320
-464

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + - 8 * + + ( - CAST ( - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-184
-320
-464

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4109
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / - CAST( NULL AS SIGNED ) * + 0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4109
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / - CAST ( NULL AS INTEGER ) * + 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL - MAX( ALL 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL - MAX ( ALL 0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 23 - col1 AS col1 FROM tab2 WHERE NOT + col2 + - - col0 BETWEEN ( + - col1 + - 92 ) AND ( + 65 )
----
-100
-74
-90

query I rowsort
SELECT 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query IIIIII rowsort
SELECT * FROM tab2 cor0 JOIN tab1 AS cor1 ON ( - + 62 ) < - 32
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT - + 83, - col0 AS col1 FROM tab1 WHERE NOT 4 = - + col2
----
-83
-51
-83
-85
-83
-91

query I rowsort
SELECT DISTINCT - col2 + - + 36 + + - 30 AS col0 FROM tab1 AS cor0
----
-125
-134
-162

query I rowsort
SELECT DISTINCT + 1 * - 71 * col0 * 8 AS col2 FROM tab0 AS cor0
----
-49416
-55096
-8520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4117
SELECT ALL + + MIN( CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + + MIN ( CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT DISTINCT - COUNT( - 41 ) col2, + ( - 79 ) FROM tab0 AS cor0
----
-3
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4118
SELECT DISTINCT - COUNT ( - 41 ) col2, + ( - 79 ) FROM tab0 AS cor0
----
-3
-79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + col1 * - + ( - + 80 ) BETWEEN NULL AND ( 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4120
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - - + col0 + - CAST( NULL AS SIGNED ) * col1 + + + col2 * - - col2 >= + col2
----

skipif mysql # not compatible
query III rowsort label-4120
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - - + col0 + - CAST ( NULL AS INTEGER ) * col1 + + + col2 * - - col2 >= + col2
----

query I rowsort
SELECT ALL + 1 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + MIN( ALL - ( - col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4123
SELECT + MIN ( ALL - ( - col2 ) ) AS col2 FROM tab2
----
23

query I rowsort
SELECT ALL - ( + 5 ) FROM tab0
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * + + col0 col2 FROM tab2
----
-1610
-2240
-2625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4126
SELECT ALL CAST( NULL AS DECIMAL ) * 50 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL CAST ( NULL AS REAL ) * 50 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT + COUNT( ALL col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4127
SELECT + COUNT ( ALL col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - ( + 74 ) FROM tab2
----
-74

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT + 22 AS col2, - SUM( col0 ) FROM tab1
----
22
-227

skipif mysql # not compatible
query II rowsort label-4130
SELECT + 22 AS col2, - SUM ( col0 ) FROM tab1
----
22
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + COUNT( ALL + + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4131
SELECT + COUNT ( ALL + + col2 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT - 60 * ( + COUNT( * ) ) - + 67 - + + 97 * - 64 AS col2 FROM tab0
----
5961

skipif mysql # not compatible
query I rowsort label-4132
SELECT - 60 * ( + COUNT ( * ) ) - + 67 - + + 97 * - 64 AS col2 FROM tab0
----
5961

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT DISTINCT col1 DIV + col0 + + col0 - - col1 * + col2 + + + 70 + - - col1 AS col0 FROM tab2
----
1341
3292
4098

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT col1 / + col0 + + col0 - - col1 * + col2 + + + 70 + - - col1 AS col0 FROM tab2
----
1341
3292
4098

query I rowsort
SELECT ALL - col1 + 48 * - 16 + ( 73 ) AS col0 FROM tab2 AS cor0
----
-746
-762
-772

query I rowsort
SELECT col1 + - - 66 * + - 53 * - + 80 * + col1 FROM tab2 AS cor0
----
14271891
18749347
21547757

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT + 49 + + 21 DIV + + 78 * col2 FROM tab0 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-4136
SELECT + 49 + + 21 / + + 78 * col2 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - 98 - - col0 - + col1 * col1 * - col1 FROM tab2 AS cor0
----
132599
300740
456499

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 BETWEEN col0 - col2 AND - 51 + ( + - ( - + ( - col1 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - 50 AS col2 FROM tab0 WHERE + + col0 NOT IN ( - col0 + - - 51 / - + col2 + + + col1 )
----
-35
37
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT - 31 - + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-40

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - 31 - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-40

query II rowsort
SELECT DISTINCT + 27 * + 88 AS col0, col1 FROM tab0 AS cor0
----
2376
1
2376
21
2376
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - + col2 col1, 4 AS col0 FROM tab1 AS cor0
----
-1344
4
-295
4
-3196
4

query I rowsort
SELECT + ( + 28 ) AS col2 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT 83 / - MAX( ALL + ( + col1 ) * col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - - col0 NOT BETWEEN + 55 AND + col0 / + + col0 * + + 62 OR ( NOT NULL NOT IN ( 87 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT 83 / - MAX ( ALL + ( + col1 ) * col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - - col0 NOT BETWEEN + 55 AND + col0 / + + col0 * + + 62 OR ( NOT NULL NOT IN ( 87 ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - 93 + + col1 / + col1 * + col2
----

query I rowsort
SELECT ALL + col1 * - 42 FROM tab1
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query II rowsort label-4147
SELECT - COUNT( * ) AS col1, COUNT( * ) + 60 FROM tab2
----
-3
63

skipif mysql # not compatible
query II rowsort label-4147
SELECT - COUNT ( * ) AS col1, COUNT ( * ) + 60 FROM tab2
----
-3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT + SUM( - 70 ) AS col2 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-4148
SELECT + SUM ( - 70 ) AS col2 FROM tab0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - MIN( ALL - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - MIN ( ALL - col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + - 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT + COUNT( * ) * + - 40 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT + COUNT ( * ) * + - 40 FROM tab2
----
-120

query I rowsort
SELECT DISTINCT + 2 * - 2 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
-236
-272
-384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT ALL - col2 / col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - col2 / col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 36 * 31 FROM tab1 AS cor0
----
-1116
-1116
-1116

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT DISTINCT + 63 DIV 47 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT + 63 / 47 AS col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT DISTINCT - 0 DIV COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - 0 / COUNT ( * ) AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT - 56 col2, COUNT( * ) FROM tab2 AS cor0
----
-56
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4157
SELECT - 56 col2, COUNT ( * ) FROM tab2 AS cor0
----
-56
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + col2 * - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 82 AS col0, + col2 * col2 col1 FROM tab1 cor0
----
82
3481
82
4624
82
9216

query II rowsort
SELECT - 89 + + - col2 AS col0, 30 FROM tab1 AS cor0
----
-148
30
-157
30
-185
30

query II rowsort
SELECT ALL col1 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT + COUNT( * ) + + COUNT( * ) col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT + COUNT ( * ) + + COUNT ( * ) col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= ( 40 + + ( 88 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4164
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - + ( - - 44 ) * + COUNT( * ) FROM tab1 cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4165
SELECT - + ( - - 44 ) * + COUNT ( * ) FROM tab1 cor0
----
-132

query I rowsort
SELECT DISTINCT + + 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT 21 - col0 + + col0 * col0 - - ( + 87 ) DIV - 96 FROM tab0
----
231
7503
9333

skipif mysql # not compatible
query I rowsort label-4167
SELECT 21 - col0 + + col0 * col0 - - ( + 87 ) / - 96 FROM tab0
----
231
7503
9333

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT - 84 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + - MIN( col1 ) col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4169
SELECT + - MIN ( col1 ) col0 FROM tab1 cor0
----
-5

query I rowsort
SELECT ALL - + col1 * + - col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT - 80 * + + col1 FROM tab2 AS cor0
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - - SUM( col0 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-4172
SELECT - - SUM ( col0 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
681

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 70 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 58 * + - col0 FROM tab2 AS cor0
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL MAX( ALL - + 48 ) FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL MAX ( ALL - + 48 ) FROM tab2 cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 75 AS col0 FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT ( MAX( + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT ( MAX ( + col2 ) ) FROM tab1
----
96

query I rowsort
SELECT ALL ( + + col1 ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4180
SELECT + CAST( + - 10 AS SIGNED ) AS col2, col1 FROM tab0
----
-10
1
-10
21
-10
81

skipif mysql # not compatible
query II rowsort label-4180
SELECT + CAST ( + - 10 AS INTEGER ) AS col2, col1 FROM tab0
----
-10
1
-10
21
-10
81

query I rowsort
SELECT ( - 45 ) AS col1 FROM tab0
----
-45
-45
-45

query I rowsort
SELECT + 24 * - col2 FROM tab0
----
-1128
-2376
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL 3 * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL 3 * - COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT col0 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / - 63 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - 90 + + + COUNT( * ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 90 + + + COUNT ( * ) FROM tab0
----
-87

query I rowsort
SELECT + col1 + + 9 + - + col0 * + col1 FROM tab0
----
-1125
-1797
-87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 58 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - col0 + - col2 + col0 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT + ( - + ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT + ( - + ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT DISTINCT + - col0 * - CAST( col1 AS SIGNED ) - + col0 + + col1 col0 FROM tab0 AS cor0
----
1
1281
1761

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4193
SELECT DISTINCT + - col0 * - CAST ( col1 AS INTEGER ) - + col0 + + col1 col0 FROM tab0 AS cor0
----
1
1281
1761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4194
SELECT + MIN( ALL - - col1 ) DIV - 93 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4194
SELECT + MIN ( ALL - - col1 ) / - 93 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4196
SELECT - col2 DIV ( + 6 ) FROM tab0
----
-1
-16
-7

skipif mysql # not compatible
query I rowsort label-4196
SELECT - col2 / ( + 6 ) FROM tab0
----
-1
-16
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + ( + 10 ) - - COUNT( * ) AS col1 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4197
SELECT + ( + 10 ) - - COUNT ( * ) AS col1 FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT MAX( - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT MAX ( - + col0 ) FROM tab1
----
-51

query I rowsort
SELECT col1 - - 25 * + 83 AS col1 FROM tab2
----
2126
2142
2152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - - col0 col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + - 13 + - + col0 + - + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + - 13 + - + col0 + - + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 16 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
16
16
16

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) NOT BETWEEN + 72 AND NULL
----

query I rowsort
SELECT - + col2 * + + ( 71 ) FROM tab2 AS cor0
----
-1633
-2840
-4118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL - CAST( + + SUM( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - CAST ( + + SUM ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4206
SELECT ALL - ( - - 31 ) DIV 64 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - ( - - 31 ) / 64 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + MAX( ALL - 53 ) AS col0 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-4207
SELECT + MAX ( ALL - 53 ) AS col0 FROM tab1
----
-53

query II rowsort
SELECT ALL col1, - 41 * + col0 * - - col0 + - col1 FROM tab1
----
14
-106655
47
-339568
5
-296230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, col2 col1 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 * - 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - col0 * - col2 AS col2 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT col1 * + col2 FROM tab0 WHERE NOT NULL IN ( - - col0, col1 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 0 * + - 0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4215
SELECT + col1 + - CAST( 48 AS DECIMAL ) - + CAST( NULL AS SIGNED ) * 64 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT + col1 + - CAST ( 48 AS REAL ) - + CAST ( NULL AS INTEGER ) * 64 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT - - MAX( + + col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT - - MAX ( + + col2 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + col1 * - - col0 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - - col2 ) col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT - 71 * + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( + 88 ) IS NOT NULL
----
-639

skipif mysql # not compatible
query I rowsort label-4219
SELECT - 71 * + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE ( + 88 ) IS NOT NULL
----
-639

query I rowsort
SELECT + ( + - 26 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL ( MIN( + 25 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
25

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL ( MIN ( + 25 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - - 40 + + COUNT( * ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - - 40 + + COUNT ( * ) FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE - col1 * - col2 * - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 * - col2 * - + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL + COUNT( * ) + + + 43 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + COUNT ( * ) + + + 43 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4226
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 + + 65 + + col1 AS col1 FROM tab2 AS cor0
----
139
182
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4228
SELECT DISTINCT + + MIN( DISTINCT - - col0 ) - + COUNT( * ) + + COUNT( DISTINCT col2 ) * COUNT( * ) * + + CAST( + + 37 AS SIGNED ) FROM tab2 AS cor0
----
376

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + + MIN ( DISTINCT - - col0 ) - + COUNT ( * ) + + COUNT ( DISTINCT col2 ) * COUNT ( * ) * + + CAST ( + + 37 AS INTEGER ) FROM tab2 AS cor0
----
376

query I rowsort
SELECT DISTINCT + - 13 - - 22 * + 85 AS col0 FROM tab1 AS cor0
----
1857

query I rowsort
SELECT DISTINCT + - ( col2 ) FROM tab0 AS cor0 WHERE NOT ( NOT - col2 * + col0 * - col2 * + col0 > NULL )
----

query II rowsort
SELECT + - 31 AS col2, 82 FROM tab2 WHERE - 18 <= - - col1
----
-31
82
-31
82
-31
82

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + - col2 AND + 11 - - + col1 - - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4233
SELECT col1 * CAST( + 75 AS SIGNED ), col2 FROM tab0
----
1575
10
6075
47
75
99

skipif mysql # not compatible
query II rowsort label-4233
SELECT col1 * CAST ( + 75 AS INTEGER ), col2 FROM tab0
----
1575
10
6075
47
75
99

query I rowsort
SELECT - + 22 + + + 99 * + - 98 FROM tab2 WHERE - col2 * - 17 IS NOT NULL
----
-9724
-9724
-9724

query II rowsort
SELECT ALL col2, - 86 FROM tab1
----
59
-86
68
-86
96
-86

query I rowsort
SELECT ALL col1 + - + col1 * - col0 FROM tab0
----
1296
1848
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT DISTINCT - col0 + + col0 * - - ( - - CAST( + CAST( + 46 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
2295
3825
4095

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT - col0 + + col0 * - - ( - - CAST ( + CAST ( + 46 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
2295
3825
4095

query II rowsort
SELECT DISTINCT + - 46 AS col1, - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-46
10
-46
47
-46
99

query II rowsort
SELECT DISTINCT + - col0 AS col1, - ( 34 ) AS col1 FROM tab2 AS cor0
----
-46
-34
-64
-34
-75
-34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, - col1 + - col2 col1 FROM tab1 AS cor0
----
59
-64
68
-115
96
-110

query II rowsort
SELECT ALL - 43 * 29 * + - col0 AS col1, 96 * + + 66 FROM tab2 WHERE - ( + + col1 ) IS NOT NULL
----
57362
6336
79808
6336
93525
6336

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE ( - col2 + - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * + + 21 * 24 + 96 col0 FROM tab0
----
20256
20256
20256

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 18 * + 10 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 43 ) AS col0 FROM tab1
----
-43

query I rowsort
SELECT DISTINCT - col1 + - col0 * - + col2 + - 81 FROM tab2 AS cor0
----
2402
4202
926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL - col0 * col1 + - + col0 + - - col1 - - + 83 / + col2 + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - col0 * col1 + - + col0 + - - col1 - - + 83 / + col2 + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL - ( col2 ) + - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - ( col2 ) + - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 78 + - col1 AS col2, col2 AS col1 FROM tab2 AS cor0
----
1
40
11
58
27
23

query I rowsort
SELECT ALL - 98 * - col0 * - col2 FROM tab1 cor0
----
-479808
-491470
-606424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) * - + col2 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
1026895
12386304
14778304

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) * - + col2 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
1026895
12386304
14778304

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT - - COUNT( * ) + 83 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4253
SELECT - - COUNT ( * ) + 83 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL - col2 * + - 66 * col0 AS col0 FROM tab0
----
46530
57420
633798

query I rowsort
SELECT ALL 98 + + 22 FROM tab0
----
120
120
120

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT + + col2 * - col0 NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN + 67 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT DISTINCT + col1 * - col2 DIV col2 + + 3 * + + col1 + - 2 AS col0 FROM tab2 AS cor0
----
100
132
152

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT + col1 * - col2 / col2 + + 3 * + + col1 + - 2 AS col0 FROM tab2 AS cor0
----
100
132
152

query I rowsort
SELECT - + col2 - - - col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT ALL + + COUNT( * ) DIV + 26 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL + + COUNT ( * ) / + 26 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL ( 74 ) - + 8 * - + 94 FROM tab1
----
826
826
826

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT DISTINCT + 65 DIV col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + 65 / col0 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT 17 - + col0 + col1 * + - col0 AS col1 FROM tab0
----
-1213
-177
-1897

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( NULL = NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / - col0 * + col0 * + col0 <= - 65 * - col1
----

query I rowsort
SELECT + col1 * + + col1 * - 76 AS col1 FROM tab2 AS cor0
----
-197676
-341164
-450604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col1 FROM tab2 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL COUNT( ALL col0 ) * 81 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL COUNT ( ALL col0 ) * 81 FROM tab0 AS cor0
----
243

query I rowsort
SELECT + ( - - 35 ) FROM tab2
----
35
35
35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4270
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - - 37 ) AND + CAST( - + CAST( NULL AS DECIMAL ) AS DECIMAL ) / - + 8 + - - col2
----

skipif mysql # not compatible
query III rowsort label-4270
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - - 37 ) AND + CAST ( - + CAST ( NULL AS REAL ) AS REAL ) / - + 8 + - - col2
----

query I rowsort
SELECT DISTINCT ( + 55 ) AS col0 FROM tab0
----
55

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 76 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4273
SELECT DISTINCT - ( - 42 ) DIV + - MAX( col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - ( - 42 ) / + - MAX ( col1 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 13 NOT IN ( 80, + col1 * col1 + + col2 )
----

query II rowsort
SELECT DISTINCT - col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ( - + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col0 FROM tab2 AS cor0
----
-82
-82
-82

query II rowsort
SELECT DISTINCT col2 * + 53, + col0 * - - col1 FROM tab2 cor0 WHERE NOT ( ( NULL <> NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4279
SELECT + col1 * - + 80 + 72 + + col2 - + + col0 + - + CAST( - - col0 AS DECIMAL ) + col2 * + CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4279
SELECT + col1 * - + 80 + 72 + + col2 - + + col0 + - + CAST ( - - col0 AS REAL ) + col2 * + CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT * FROM tab2 WHERE + - 10 BETWEEN col0 * - - col1 / - + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 76 < NULL
----

query I rowsort
SELECT ALL - + ( col1 ) + col0 * - + ( + col2 ) FROM tab2 cor0
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT - AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - 56 + ( - 91 ) * - col2 AS col1, col1 AS col2 FROM tab0 AS cor0
----
4221
81
854
21
8953
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL COUNT( ALL col1 ) + - COUNT( * ) * 80 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL COUNT ( ALL col1 ) + - COUNT ( * ) * 80 FROM tab1
----
-237

query I rowsort
SELECT + - col0 + - + 23 FROM tab1 AS cor0
----
-108
-114
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT DISTINCT + - COUNT( * ) + - 78 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT + - COUNT ( * ) + - 78 FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4289
SELECT - CAST( NULL AS SIGNED ) + + + MAX( DISTINCT 49 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT - CAST ( NULL AS INTEGER ) + + + MAX ( DISTINCT 49 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + + 66 - 31 AS col2 FROM tab2
----
1487
2609
3797

query I rowsort
SELECT DISTINCT 71 + + 66 * - col0 * col0 FROM tab1 WHERE NOT + col2 + + + col2 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT - - ( - + 5 ) <= NULL
----

query II rowsort
SELECT ALL + col2 AS col2, 87 FROM tab1
----
59
87
68
87
96
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT DISTINCT - CAST( 82 AS SIGNED ) AS col0 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT - CAST ( 82 AS INTEGER ) AS col0 FROM tab0
----
-82

query I rowsort
SELECT + 65 * col0 AS col2 FROM tab2
----
2990
4160
4875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT - CAST( NULL AS SIGNED ) * - ( + - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT - CAST ( NULL AS INTEGER ) * - ( + - col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT ALL - - col1 DIV 67 * - col1 AS col2 FROM tab0 AS cor0
----
-81
0
0

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - - col1 / 67 * - col1 AS col2 FROM tab0 AS cor0
----
-81
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4298
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + 33 + - + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4298
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + 33 + - + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT DISTINCT - 20 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT - 20 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col1 * + 14 + - col2 AS col2 FROM tab0 AS cor0
----
-85
1087
284

query I rowsort
SELECT ALL - col0 * col1 * + ( col0 ) * col0 FROM tab2 AS cor0
----
-20185088
-28265625
-4964136

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT DISTINCT - ( + - SUM( ALL + 36 ) ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT - ( + - SUM ( ALL + 36 ) ) FROM tab0 AS cor0
----
108

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 64 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT CAST( NULL AS SIGNED ) / - + AVG ( DISTINCT col0 ) / + AVG ( col1 ) - - SUM( + col2 ) + + 43 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT CAST ( NULL AS INTEGER ) / - + AVG ( DISTINCT col0 ) / + AVG ( col1 ) - - SUM ( + col2 ) + + 43 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL + + 31 * col1 * - CAST( NULL AS SIGNED ) * - + col2 FROM tab1 WHERE + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + + 31 * col1 * - CAST ( NULL AS INTEGER ) * - + col2 FROM tab1 WHERE + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + 6 FROM tab1
----
57
91
97

query III rowsort
SELECT * FROM tab1 WHERE - col2 IN ( col1, 6 * - ( - col0 ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - - col2 + - + 21 * col0 * + col1 )
----

query I rowsort
SELECT DISTINCT ( + + 94 ) + - 62 AS col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT - - 75 * - col1 + 66 AS col1 FROM tab2 AS cor0
----
-3759
-4959
-5709

query I rowsort
SELECT 32 + - col0 AS col1 FROM tab2
----
-14
-32
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4313
SELECT ALL + SUM( ALL - 56 ) AS col0, 29 FROM tab2
----
-168
29

skipif mysql # not compatible
query II rowsort label-4313
SELECT ALL + SUM ( ALL - 56 ) AS col0, 29 FROM tab2
----
-168
29

query I rowsort
SELECT ALL - col2 + + col1 * col1 FROM tab1 cor0
----
-34
100
2141

query I rowsort
SELECT ALL + + col1 - - 31 FROM tab1 AS cor0
----
36
45
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - 64 FROM tab0 AS cor0 WHERE NULL BETWEEN 93 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( - col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4318
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( - col2 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + - MIN( 36 ) col2 FROM tab0 cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4319
SELECT + - MIN ( 36 ) col2 FROM tab0 cor0
----
-36

query I rowsort
SELECT + 61 AS col2 FROM tab0 AS cor0 WHERE NOT ( + 57 ) IS NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + MIN( DISTINCT ( - col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4321
SELECT + MIN ( DISTINCT ( - col2 ) ) FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT - MIN( DISTINCT - - ( - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - MIN ( DISTINCT - - ( - col0 ) ) FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4323
SELECT col0 * + + CAST( NULL AS SIGNED ) AS col1, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4323
SELECT col0 * + + CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - ( + 62 ) FROM tab0
----
-62
-62
-62

query II rowsort
SELECT DISTINCT + - 70 * + 14 - + col2 + - 43 - 82 + 83 - 6, col2 * + col2 * - - col2 AS col0 FROM tab0 AS cor0
----
-1038
1000
-1075
103823
-1127
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4326
SELECT MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4327
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 AND - - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4327
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 AND - - CAST ( - col0 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col1 FROM tab1 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 col0 FROM tab1 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab2 WHERE NOT - 79 + - 54 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4331
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4332
SELECT - 46 * - 99 * 43 AS col1, - SUM( + col0 ) FROM tab0 AS cor0
----
195822
-199

skipif mysql # not compatible
query II rowsort label-4332
SELECT - 46 * - 99 * 43 AS col1, - SUM ( + col0 ) FROM tab0 AS cor0
----
195822
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - - 55 * COUNT( col0 ) AS col1 FROM tab2 cor0
----
165

skipif mysql # not compatible
query I rowsort label-4333
SELECT - - 55 * COUNT ( col0 ) AS col1 FROM tab2 cor0
----
165

query I rowsort
SELECT col1 * - - col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL 56 + + col0 FROM tab2 AS cor0
----
102
120
131

query I rowsort
SELECT DISTINCT + ( - - 35 ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT ( - 35 ) AS col0 FROM tab1 AS cor0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT + col2 DIV + 94 + + 88 FROM tab2 cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-4338
SELECT + col2 / + 94 + + 88 FROM tab2 cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT DISTINCT + - col0 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 34 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 34 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 < col1 * 0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 35 + + 14 * + col0 AS col0 FROM tab1
----
1225
1309
749

query II rowsort
SELECT DISTINCT - 30, - col2 FROM tab2 WHERE + - col2 + - col2 / - 86 + - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT - 93 + + + SUM( - - col0 ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT - 93 + + + SUM ( - - col0 ) FROM tab0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT DISTINCT 2 + + col0 / - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT 2 + + col0 / - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT MAX( ALL - - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4346
SELECT MAX ( ALL - - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4347
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col1 * + 61 - 31 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col1 * + 61 - 31 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT + - ( CAST( - + col1 AS SIGNED ) ) * + + 99 + + col0 + + col1 AS col1 FROM tab2 AS cor0
----
5146
6775
7764

skipif mysql # not compatible
query I rowsort label-4348
SELECT + - ( CAST ( - + col1 AS INTEGER ) ) * + + 99 + + col0 + + col1 AS col1 FROM tab2 AS cor0
----
5146
6775
7764

query I rowsort
SELECT ALL - + 92 + + col0 FROM tab0 AS cor0
----
-5
-77
5

query III rowsort
SELECT * FROM tab0 WHERE + + 78 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4351
SELECT - MIN( col2 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4351
SELECT - MIN ( col2 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col2 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT SUM( DISTINCT - + 56 ) col1 FROM tab2
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4353
SELECT DISTINCT SUM ( DISTINCT - + 56 ) col1 FROM tab2
----
-56

query I rowsort
SELECT DISTINCT - 63 * - + 53 + col1 - - 46 + 17 FROM tab1 WHERE NULL IS NULL
----
3407
3416
3449

query II rowsort
SELECT ALL col1 AS col1, col1 * + col1 AS col2 FROM tab0
----
1
1
21
441
81
6561

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 * - col1 + 48 AND - + 54
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT ALL COUNT( * ) * + - 28 AS col0, - 25 FROM tab0
----
-84
-25

skipif mysql # not compatible
query II rowsort label-4357
SELECT ALL COUNT ( * ) * + - 28 AS col0, - 25 FROM tab0
----
-84
-25

query I rowsort
SELECT ( 9 ) * - + col0 FROM tab0
----
-135
-783
-873

query II rowsort
SELECT 21 AS col0, col0 * + col2 + col0 FROM tab1
----
21
4947
21
5100
21
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 15 ) col1 FROM tab2 AS cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) IN ( + col1 * col2, + col2 * - 67 + + - col1, col2, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NOT - ( - - col1 ) * - col0 NOT BETWEEN + + col1 AND - 84 )
----

query I rowsort
SELECT + 9 * - col2 FROM tab1 AS cor0
----
-531
-612
-864

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT + col2 * + - ( + + col2 ) > col0
----
15
87
97

query I rowsort
SELECT DISTINCT - 26 * - - col1 FROM tab0
----
-2106
-26
-546

query I rowsort
SELECT DISTINCT - 20 + + 68 AS col2 FROM tab2
----
48

query I rowsort
SELECT + 45 - - col0 AS col0 FROM tab2
----
109
120
91

query I rowsort
SELECT DISTINCT + + col1 * ( + col1 ) + + col2 - - 52 AS col0 FROM tab0 AS cor0 WHERE NOT - - 82 * - - col1 * - col2 IS NOT NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col1 + + + col1 AS col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT + ( + col1 ) * + 30 FROM tab1
----
1410
150
420

query I rowsort
SELECT ALL + ( - col0 ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT - SUM( + - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4374
SELECT - SUM ( + - col1 ) FROM tab2
----
195

query II rowsort
SELECT DISTINCT - col2 AS col0, - 21 AS col1 FROM tab1
----
-59
-21
-68
-21
-96
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT ALL - MIN( - col0 ) * - 47 AS col0, - 7 - - 51 FROM tab1
----
-4277
44

skipif mysql # not compatible
query II rowsort label-4376
SELECT ALL - MIN ( - col0 ) * - 47 AS col0, - 7 - - 51 FROM tab1
----
-4277
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT ALL + 24 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + 24 / - - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT ALL + CAST( - + ( + 30 ) AS SIGNED ) FROM tab0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + CAST ( - + ( + 30 ) AS INTEGER ) FROM tab0
----
-30
-30
-30

query I rowsort
SELECT + 94 AS col2 FROM tab0 cor0
----
94
94
94

query I rowsort
SELECT ( col1 ) * + col1 * + 86 FROM tab2 AS cor0
----
223686
386054
509894

query I rowsort
SELECT 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL col2 * - col2 + - - col0 FROM tab2 AS cor0
----
-1536
-3289
-483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col0 * + col1 col2 FROM tab0 cor0
----
-1230
-1914
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT CAST( + - ( col1 ) AS SIGNED ) + - CAST( + 68 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
-1101
-5937
-6597

skipif mysql # not compatible
query I rowsort label-4385
SELECT CAST ( + - ( col1 ) AS INTEGER ) + - CAST ( + 68 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
-1101
-5937
-6597

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - + 93
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4387
SELECT ALL 9 DIV + - col0 * + ( 79 ) * + col2 AS col2, 81 AS col0 FROM tab1
----
0
81
0
81
0
81

skipif mysql # not compatible
query II rowsort label-4387
SELECT ALL 9 / + - col0 * + ( 79 ) * + col2 AS col2, 81 AS col0 FROM tab1
----
0
81
0
81
0
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4388
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + - col1 * + 75 + - 95 - + CAST( - col2 AS DECIMAL ) AND ( - col0 + col0 )
----

skipif mysql # not compatible
query III rowsort label-4388
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + - col1 * + 75 + - 95 - + CAST ( - col2 AS REAL ) AND ( - col0 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) + - 26 AS col1 FROM tab1 WHERE - - col0 * col0 * - + col2 / - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 26 AS col1 FROM tab1 WHERE - - col0 * col0 * - + col2 / - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4391
SELECT + COUNT( + + CAST( + - col2 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4391
SELECT + COUNT ( + + CAST ( + - col2 AS INTEGER ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL < + col1 + 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL - ( - COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - ( - COUNT ( * ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT col0 - - - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 93 * + 91 * - col2 AS col0 FROM tab1 AS cor0
----
499317
575484
812448

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4396
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 54 * col2 FROM tab0
----
2538
5346
540

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT COUNT( ALL 27 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4398
SELECT COUNT ( ALL 27 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * + 87 AS col0 FROM tab2 AS cor0
----
-4437
-5829
-6699

query II rowsort
SELECT + col2 AS col1, - 24 AS col0 FROM tab2 AS cor0
----
23
-24
40
-24
58
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL ( + SUM( + 9 ) ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL ( + SUM ( + 9 ) ) FROM tab0
----
27

query I rowsort
SELECT + col1 * + - col2 * - 40 AS col0 FROM tab2
----
123200
155440
46920

query I rowsort
SELECT col2 * - + col0 AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT + COUNT( - 35 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT + COUNT ( - 35 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT 65 * COUNT( * ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4406
SELECT 65 * COUNT ( * ) FROM tab0 AS cor0
----
195

query II rowsort
SELECT DISTINCT col0 + + col2, 76 AS col1 FROM tab2 AS cor0
----
104
76
133
76
69
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 < + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 < + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT - + COUNT( * ) + - ( + SUM( DISTINCT - + 76 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT - + COUNT ( * ) + - ( + SUM ( DISTINCT - + 76 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> 14
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 74 * + - col0 * 11 * + - col1 IS NULL
----

query I rowsort
SELECT - 72 AS col1 FROM tab2 cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab2 cor0
----
15

query I rowsort
SELECT ALL - col0 * + 51 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT 87 * 3 * - MIN( ALL + 35 ) FROM tab1 AS cor0
----
-9135

skipif mysql # not compatible
query I rowsort label-4414
SELECT 87 * 3 * - MIN ( ALL + 35 ) FROM tab1 AS cor0
----
-9135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT CAST( - 4 AS SIGNED ) - + COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-4415
SELECT CAST ( - 4 AS INTEGER ) - + COUNT ( * ) FROM tab1
----
-7

query I rowsort
SELECT DISTINCT - 31 - - + col1 FROM tab2
----
20
36
46

query I rowsort
SELECT ALL col1 * - ( - - col2 ) + + - ( col0 ) AS col1 FROM tab1
----
-1395
-3287
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT col0 + - ( col1 ) + + CAST( - + col0 AS SIGNED ) + - + col2 * ( - col0 ) FROM tab1
----
4882
5010
6141

skipif mysql # not compatible
query I rowsort label-4418
SELECT col0 + - ( col1 ) + + CAST ( - + col0 AS INTEGER ) + - + col2 * ( - col0 ) FROM tab1
----
4882
5010
6141

onlyif mysql # aggregate syntax: 
query II rowsort label-4419
SELECT ALL 83 col2, MAX( ALL - col2 ) AS col0 FROM tab1
----
83
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4419
SELECT ALL 83 col2, MAX ( ALL - col2 ) AS col0 FROM tab1
----
83
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT 42 * - COUNT( * ) + + 84 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4420
SELECT 42 * - COUNT ( * ) + + 84 FROM tab2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4421
SELECT CAST( NULL AS SIGNED ) + ( - 89 ) + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT CAST ( NULL AS INTEGER ) + ( - 89 ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT COUNT( * ) * + COUNT( ALL - col0 ) + + 46 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4422
SELECT COUNT ( * ) * + COUNT ( ALL - col0 ) + + 46 FROM tab1
----
55

query II rowsort
SELECT col2 AS col0, + col0 / - + ( + col2 ) FROM tab2 WHERE NULL NOT BETWEEN - + 91 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT ALL col1 AS col0, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT ALL - ( MIN( 89 ) ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - ( MIN ( 89 ) ) FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT DISTINCT + MIN( + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT + MIN ( + col2 ) FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 81 = + col2 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 23 * + 52 FROM tab1
----
1196
1196
1196

query II rowsort
SELECT ALL + 74 * - col1 * - 9 * ( col2 ), - col0 AS col1 FROM tab1 cor0
----
196470
-85
2128536
-91
895104
-51

query I rowsort
SELECT ALL + col0 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 75 * - - col0 * - 65 + + 50 + - col2 col1, + col0 * 26 FROM tab0 AS cor0
----
-424085
2262
-472924
2522
-73122
390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) DIV 72 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) / 72 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - - COUNT( * ) * SUM( ALL - col2 ) + - - 79 FROM tab1 AS cor0
----
-590

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - COUNT ( * ) * SUM ( ALL - col2 ) + - - 79 FROM tab1 AS cor0
----
-590

query I rowsort
SELECT ALL + 65 * + 95 FROM tab2 AS cor0
----
6175
6175
6175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4436
SELECT 32 DIV - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4436
SELECT 32 / - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-4437
SELECT DISTINCT + col1 DIV - col2, + col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-4437
SELECT DISTINCT + col1 / - col2, + col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT ALL - + col0 DIV + col2 - - 24 FROM tab1 AS cor0
----
23
23
24

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - + col0 / + col2 - - 24 FROM tab1 AS cor0
----
23
23
24

query I rowsort
SELECT + + 1 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 BETWEEN 76 + - col2 AND NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - MAX( ALL - + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4442
SELECT - MAX ( ALL - + col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL - COUNT( * ) + - + SUM( ALL 85 ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL - COUNT ( * ) + - + SUM ( ALL 85 ) FROM tab2
----
-258

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT + col1 + + col1 * col0 + + + col0 + - col0 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + + MIN( - - col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4447
SELECT + + MIN ( - - col0 ) col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT 33 NOT BETWEEN NULL AND col0 + + 33
----

query I rowsort
SELECT col2 * + 74 - col1 AS col2 FROM tab1
----
4361
4985
7090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT 64 * col2 - + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4453
SELECT 64 * col2 - + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 44 FROM tab0
----
-34
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - COUNT( ALL col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4455
SELECT - COUNT ( ALL col2 ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT - col0 DIV + 70 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT - col0 / + 70 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT MAX( + 9 ) FROM tab1 WHERE ( col2 ) IN ( col1 / 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT MAX ( + 9 ) FROM tab1 WHERE ( col2 ) IN ( col1 / 51 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + 22 * 38 col0 FROM tab2 WHERE 13 * 29 > ( - col1 )
----
863
863
863

query I rowsort
SELECT 61 * + col1 AS col2 FROM tab2
----
3111
4087
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT COUNT( * ) * ( 37 ) AS col2 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4460
SELECT COUNT ( * ) * ( 37 ) AS col2 FROM tab0
----
111

query I rowsort
SELECT ( col0 ) - + 72 AS col1 FROM tab0
----
-57
15
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT ALL 0 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL 0 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN col2 AND ( - ( col0 ) )
----

query I rowsort
SELECT + 89 * 38 AS col0 FROM tab1
----
3382
3382
3382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT 97 + + col0 = 32 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT 97 + + col0 = 32 * col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4466
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL > - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL > - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 90 + + 41 FROM tab2
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT DISTINCT 23 DIV - 10 AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT 23 / - 10 AS col2 FROM tab2
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - ( col2 / col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT - MAX( col1 ) - + 69 FROM tab2 WHERE NOT col0 IS NULL
----
-146

skipif mysql # not compatible
query I rowsort label-4470
SELECT - MAX ( col1 ) - + 69 FROM tab2 WHERE NOT col0 IS NULL
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT - 81 / - CAST( NULL AS SIGNED ) - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT - 81 / - CAST ( NULL AS INTEGER ) - + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 + - col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE ( col1 * + ( col0 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4474
SELECT - col2 DIV - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4474
SELECT - col2 / - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 93 FROM tab0 WHERE NOT 85 * - col0 >= ( - col2 + - col0 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4477
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > + CAST( - col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4477
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > + CAST ( - col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 44 * - col1 AS col0 FROM tab1 cor0
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT + - COUNT( - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + - COUNT ( - col1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / - col2 + + col1 * 32 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT + 34 DIV 13 col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4482
SELECT + 34 / 13 col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT col0 FROM tab1 WHERE ( col1 * 50 ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT MIN( - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4484
SELECT MIN ( - col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4485
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 51 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT CAST ( NULL AS REAL ) * + 51 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 49 + - + col2 FROM tab1
----
-108
-117
-145

query I rowsort
SELECT ALL 20 * col2 AS col2 FROM tab2
----
1160
460
800

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT - ( - 19 ) DIV + col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4488
SELECT - ( - 19 ) / + col0 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab1 WHERE - 44 IN ( + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - 86 * - MAX( ALL + col0 ) FROM tab2
----
6450

skipif mysql # not compatible
query I rowsort label-4490
SELECT - 86 * - MAX ( ALL + col0 ) FROM tab2
----
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT + MIN( + - 18 ) + COUNT( * ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + MIN ( + - 18 ) + COUNT ( * ) AS col2 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN + col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE 21 + + 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - 45 + ( + 24 ) AS col1 FROM tab2
----
19
2
37

query I rowsort
SELECT DISTINCT - col0 * + col2 + + ( 2 ) * col1 FROM tab0 cor0
----
-543
-828
-9601

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT - col0 + col0 - col1 DIV - 67 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4496
SELECT - col0 + col0 - col1 / - 67 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT DISTINCT ( - col0 ) DIV - 68 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT ( - col0 ) / - 68 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1

query I rowsort
SELECT ALL + 52 AS col0 FROM tab0 WHERE NOT ( NULL <= ( NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4499
SELECT * FROM tab0 WHERE ( + 81 ) IN ( + 53 - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4499
SELECT * FROM tab0 WHERE ( + 81 ) IN ( + 53 - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL - col1 * 45 + ( 83 ) * - col0 AS col1 FROM tab2
----
-6113
-8777
-9240

query I rowsort
SELECT col2 * 51 AS col1 FROM tab2 WHERE ( col1 + + 53 BETWEEN 26 AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT col2 + + - 99 FROM tab0
----
-52
-89
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * + 90 ) IN ( 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 52 + - 33 AS col1 FROM tab2 AS cor0
----
19

query I rowsort
SELECT DISTINCT 20 - col0 FROM tab1 cor0
----
-31
-65
-71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <= ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN - col0 - - col2 * - 48 AND - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT - + COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4508
SELECT - + COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 - col1 + - 15 + - col2 * ( col1 * 81 + 58 ) AS col0 FROM tab1 AS cor0
----
-114410
-262791
-27252

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT - 5 - + - COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4510
SELECT - 5 - + - COUNT ( * ) FROM tab1 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT ( + CAST( - 9 AS SIGNED ) ) - - MIN( - col1 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4511
SELECT ( + CAST ( - 9 AS INTEGER ) ) - - MIN ( - col1 ) FROM tab1 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col0 ), - col1 col2 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT + COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4513
SELECT + COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query I rowsort
SELECT - col2 + - col1 * - 92 AS col1 FROM tab0 WHERE NOT - - 20 IN ( + + col2 * + col2 )
----
-7
1922
7405

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( + + col2 ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 56 + - + 8 + 47 ) = ( col1 + 54 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 + + col0 * col2 * - col0 * - 28 AS col1 FROM tab2 AS cor0
----
1362755
4587597
9135067

query I rowsort
SELECT ALL 14 AS col0 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT ALL CAST( - 72 AS SIGNED ) FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL CAST ( - 72 AS INTEGER ) FROM tab0 AS cor0
----
-72
-72
-72

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( - col0 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4524
SELECT + + col2 DIV + - 79 col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4524
SELECT + + col2 / + - 79 col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + 5 + + col1 + + col0 * + col1 FROM tab0 AS cor0
----
103
1301
1853

query I rowsort
SELECT - 9 + ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
14
31
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 47 ) col2 FROM tab2
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) * + + col1 * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) * + + col1 * col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 18 * col2 + + - col2 AS col2 FROM tab2
----
391
680
986

query I rowsort
SELECT + 63 * - col1 FROM tab0 WHERE - + 10 * + col1 * 31 BETWEEN ( - 45 ) AND 66
----

query II rowsort
SELECT + col2 AS col2, - col2 AS col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - SUM( DISTINCT - 23 ) AS col2 FROM tab0 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4532
SELECT - SUM ( DISTINCT - 23 ) AS col2 FROM tab0 cor0
----
23

query II rowsort
SELECT + col0 + col2 AS col2, ( - col0 ) FROM tab0 AS cor0
----
196
-97
62
-15
97
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-4534
SELECT DISTINCT 97 DIV 66 AS col2, col0 AS col1 FROM tab1 cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-4534
SELECT DISTINCT 97 / 66 AS col2, col0 AS col1 FROM tab1 cor0
----
1
51
1
85
1
91

query I rowsort
SELECT ALL - col1 * - - 46 FROM tab2 AS cor0
----
-2346
-3082
-3542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, - col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT CAST( MIN( DISTINCT + col1 ) AS SIGNED ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4538
SELECT CAST ( MIN ( DISTINCT + col1 ) AS INTEGER ) FROM tab2
----
51

query I rowsort
SELECT 85 FROM tab0 WHERE NOT NULL IS NOT NULL
----
85
85
85

query II rowsort
SELECT + col1, + 36 AS col2 FROM tab0
----
1
36
21
36
81
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, 35 col1 FROM tab2
----
-46
35
-64
35
-75
35

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 NOT IN ( - col2 )
----

query II rowsort
SELECT DISTINCT col2 AS col1, 39 + col0 AS col0 FROM tab1
----
59
124
68
130
96
90

query I rowsort
SELECT + 70 * 98 FROM tab2
----
6860
6860
6860

query I rowsort
SELECT ALL - col0 - col0 + + col2 AS col0 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
-111
-114
-6

query I rowsort
SELECT - col2 * - 65 FROM tab2
----
1495
2600
3770

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT + + CAST( + col1 AS SIGNED ) FROM tab1 WHERE NOT + - ( - 16 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4548
SELECT + + CAST ( + col1 AS INTEGER ) FROM tab1 WHERE NOT + - ( - 16 ) IS NOT NULL
----

query I rowsort
SELECT ALL 57 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT + + col1 * + 49 + col1 + - + col0 - 87 * - 23 * + 99 * 92 FROM tab0 AS cor0
----
18225061
18226071
18229143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4551
SELECT - CAST( + MAX( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4551
SELECT - CAST ( + MAX ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - ( - + 81 ) + + col1 * + + 95 FROM tab2 AS cor0
----
4926
6446
7396

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL MIN( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL MIN ( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 * - col0, - 53 )
----

query I rowsort
SELECT ALL - col1 * + 71 AS col0 FROM tab1 AS cor0
----
-3337
-355
-994

query I rowsort
SELECT col0 + + col2 FROM tab0 WHERE + ( + col2 ) NOT IN ( + col2, col2 - - col0 )
----

query I rowsort
SELECT ALL - col2 * - 77 FROM tab2
----
1771
3080
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT COUNT( * ) FROM tab1 WHERE 47 * + col0 + 46 / - 53 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4558
SELECT COUNT ( * ) FROM tab1 WHERE 47 * + col0 + 46 / - 53 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + SUM( DISTINCT - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4559
SELECT + SUM ( DISTINCT - col2 ) AS col0 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab0 WHERE ( - + col1 / - col1 + - + col0 + - + col0 * - 56 * 69 ) IS NULL
----

query I rowsort
SELECT 62 - 62 * - - col0 FROM tab1
----
-3100
-5208
-5580

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab0 WHERE + - 93 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab0 WHERE + - 93 IS NOT NULL
----
0

query I rowsort
SELECT - col0 * - col2 + + 69 AS col2 FROM tab1
----
4965
5084
6257

query II rowsort
SELECT ALL - col1 * + col1 + - col2, + col2 FROM tab2 AS cor0
----
-2624
23
-4547
58
-5969
40

query I rowsort
SELECT ALL - + 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4567
SELECT - col0 * + + col1 * col1 * - ( 68 ) * - CAST( NULL AS SIGNED ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4567
SELECT - col0 * + + col1 * col1 * - ( 68 ) * - CAST ( NULL AS INTEGER ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT ALL - + col0 * - 61 AS col2, 8 AS col1 FROM tab1 AS cor0
----
3111
8
5185
8
5551
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT ALL col1 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL col1 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + COUNT( * ) * + 86 AS col2 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + COUNT ( * ) * + 86 AS col2 FROM tab1 AS cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL - + 15 * + - MIN( ALL + col1 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL - + 15 * + - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1, 21 - 78 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT - col0 DIV + 37 AS col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - col0 / + 37 AS col0 FROM tab0 AS cor0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT - COUNT( * ) col0 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-4574
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT + 40 AS col1 FROM tab1 AS cor0 WHERE NOT 19 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4576
SELECT col1, - 42 DIV - + 31 AS col2 FROM tab1 cor0
----
14
1
47
1
5
1

skipif mysql # not compatible
query II rowsort label-4576
SELECT col1, - 42 / - + 31 AS col2 FROM tab1 cor0
----
14
1
47
1
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT 74 + - + COUNT( * ) FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----
74

skipif mysql # not compatible
query I rowsort label-4577
SELECT 74 + - + COUNT ( * ) FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----
74

query I rowsort
SELECT ALL - 59 * + + col0 AS col0 FROM tab1
----
-3009
-5015
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT - COUNT( * ) * + - MAX( - - 85 ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - COUNT ( * ) * + - MAX ( - - 85 ) FROM tab2
----
255

query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT 67 AS col0 FROM tab0 WHERE NOT ( NOT 92 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT COUNT( * ) * COUNT( ALL + 56 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT COUNT ( * ) * COUNT ( ALL + 56 ) AS col0 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT ALL col1 DIV col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL col1 / col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - COUNT( * ) FROM tab2 WHERE NOT + col0 - - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4585
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + col0 - - col2 IS NULL
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( + col2, - ( + col1 ) )
----

query I rowsort
SELECT - col0 - col1 * + ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT 54 + - COUNT( * ) + + 13 FROM tab0 cor0
----
64

skipif mysql # not compatible
query I rowsort label-4588
SELECT 54 + - COUNT ( * ) + + 13 FROM tab0 cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT ALL + + CAST( + - ( + 11 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + + CAST ( + - ( + 11 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4591
SELECT DISTINCT + MIN( ALL + - CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + MIN ( ALL + - CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1
----
-91

query I rowsort
SELECT - - ( - - AVG ( - + col0 ) ) FROM tab1 WHERE 73 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL - SUM( DISTINCT + col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - SUM ( DISTINCT + col0 ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT + ( 80 ) * + ( + 18 ) AS col1 FROM tab2 AS cor0
----
1440
1440
1440

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col0 + col0 AND col0
----

query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab1 AS cor0 WHERE 49 IS NOT NULL
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + MIN( DISTINCT + - col1 ) - COUNT( * ) * COUNT( ALL - - col1 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4597
SELECT + MIN ( DISTINCT + - col1 ) - COUNT ( * ) * COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT - 31 * 12 * + - col1 * - + col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT 93 * + col0 FROM tab0 cor0
----
1395
8091
9021

query I rowsort
SELECT - 43 * - - col1 * + + ( 26 ) - + col2 FROM tab0 AS cor0
----
-1217
-23488
-90605

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + col0 + - - col2 <> 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * col2 * col2 AS col1 FROM tab0 cor0
----
1000
103823
970299

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4603
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4603
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT + 58 * + COUNT( * ) col2 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4604
SELECT DISTINCT + 58 * + COUNT ( * ) col2 FROM tab2 AS cor0
----
174

query II rowsort
SELECT DISTINCT + col2, + col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query II rowsort
SELECT - col1 AS col2, ( col0 ) FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT DISTINCT 24 AS col2, - COUNT( * ) FROM tab2
----
24
-3

skipif mysql # not compatible
query II rowsort label-4607
SELECT DISTINCT 24 AS col2, - COUNT ( * ) FROM tab2
----
24
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 52 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 col1, - 0 * + col2 FROM tab1
----
17
0
17
0
17
0

query II rowsort
SELECT - 3 AS col1, col0 AS col1 FROM tab2
----
-3
46
-3
64
-3
75

query II rowsort
SELECT ALL col2, col1 AS col1 FROM tab0 WHERE NOT ( + 64 * - - col1 ) < col0
----
10
21
47
81

query II rowsort
SELECT ALL col1, + 41 AS col2 FROM tab1
----
14
41
47
41
5
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL COUNT( * ) * + + 43 * - COUNT( * ) AS col0 FROM tab0
----
-387

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL COUNT ( * ) * + + 43 * - COUNT ( * ) AS col0 FROM tab0
----
-387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT DISTINCT col1 FROM tab0 WHERE NOT - col1 + - + CAST( + col1 AS SIGNED ) / + 28 - - col0 + + - col0 - col0 + - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT col1 FROM tab0 WHERE NOT - col1 + - + CAST ( + col1 AS INTEGER ) / + 28 - - col0 + + - col0 - col0 + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT + COUNT( * ) FROM tab0 WHERE NOT 61 * ( + - col2 ) * + + col0 BETWEEN col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-4615
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 61 * ( + - col2 ) * + + col0 BETWEEN col2 AND NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT - COUNT( * ) * + CAST( 6 AS SIGNED ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-4616
SELECT - COUNT ( * ) * + CAST ( 6 AS INTEGER ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL - - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4618
SELECT - - 51, - 24 - - 73 * - col1 col0, + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( col1 ) BETWEEN + + col2 / - col1 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4618
SELECT - - 51, - 24 - - 73 * - col1 col0, + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( col1 ) BETWEEN + + col2 / - col1 AND NULL
----

query I rowsort
SELECT + col2 + - ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 13 + + col0 AS col0 FROM tab0
----
100
110
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT DISTINCT + col1 + col2 DIV + col0 + ( + col1 ) FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + col1 + col2 / + col0 + ( + col1 ) FROM tab2 AS cor0
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4622
SELECT - 84 DIV + CAST( 27 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 84 / + CAST ( 27 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3
-3
-3

query I rowsort
SELECT ALL 30 + + col1 - + col2 + + - ( + + 46 ) AS col2 FROM tab1 AS cor0
----
-37
-70
-98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - + col1 * + + col0 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + col2 IS NULL
----

query I rowsort
SELECT col1 - + 20 AS col2 FROM tab2
----
31
47
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT ALL CAST( ( col1 ) AS SIGNED ) - + + col0 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL CAST ( ( col1 ) AS INTEGER ) - + + col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT - 33 - - 66 * + COUNT( * ) AS col2 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 33 - - 66 * + COUNT ( * ) AS col2 FROM tab1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT MIN( ALL - + col1 ) - + - 85 + + SUM( DISTINCT - col0 ) AS col0 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-4629
SELECT MIN ( ALL - + col1 ) - + - 85 + + SUM ( DISTINCT - col0 ) AS col0 FROM tab1
----
-189

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 87 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT + - 25 + - ( - ( + + col2 ) ) * col0 < + 19
----
23

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col1 FROM tab2 WHERE NOT + - 25 + - ( - ( + + col2 ) ) * col0 < + 19
----
23

query I rowsort
SELECT - col1 + + col1 * 77 AS col0 FROM tab2
----
3876
5092
5852

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4633
SELECT ALL col1 AS col2, ( - col2 ) / + CAST( NULL AS SIGNED ) + + - col1 + + - col0 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL col1 AS col2, ( - col2 ) / + CAST ( NULL AS INTEGER ) + + - col1 + + - col0 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT + col1 AS col0, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4635
SELECT ALL * FROM tab0 WHERE 37 * - 89 + col1 * - col2 * + col1 + + 23 NOT BETWEEN col1 + CAST( NULL AS SIGNED ) AND - - col2 + + col1 + - + col2 + + col1 * + col2 + col1
----

skipif mysql # not compatible
query III rowsort label-4635
SELECT ALL * FROM tab0 WHERE 37 * - 89 + col1 * - col2 * + col1 + + 23 NOT BETWEEN col1 + CAST ( NULL AS INTEGER ) AND - - col2 + + col1 + - + col2 + + col1 * + col2 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 < - 56
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - MAX( ALL - + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4637
SELECT - MAX ( ALL - + col1 ) AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col2 FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT - COUNT( * ) + + 8 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4639
SELECT - COUNT ( * ) + + 8 FROM tab1
----
5

query I rowsort
SELECT - col1 + + + col2 + + col2 FROM tab1
----
113
178
89

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + + col0, 92, col0, - + col2 * - 60, + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + col0 * 76 FROM tab1 cor0
----
-197676
-549100
-629356

query I rowsort
SELECT ALL + col0 * + - 27 * 62 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + 80 / + 51
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT - 57 DIV - col1 FROM tab0 AS cor0
----
0
2
57

skipif mysql # not compatible
query I rowsort label-4645
SELECT - 57 / - col1 FROM tab0 AS cor0
----
0
2
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT SUM( DISTINCT + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT SUM ( DISTINCT + col2 ) FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 26 col0, col2 AS col2 FROM tab2
----
26
23
26
40
26
58

query II rowsort
SELECT col2 - + + 1, col0 FROM tab2
----
22
46
39
64
57
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - 75 >= - col0
----
87
21
10
97
1
99

query I rowsort
SELECT col1 + 55 * - + col1 AS col1 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT DISTINCT - col2 * col1 * + col1 + 1 + + col0 FROM tab0 AS cor0
----
-1
-308351
-4322

query I rowsort
SELECT DISTINCT 7 / 97 FROM tab2 AS cor0 WHERE NULL > - 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT - 69 * - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT - 69 * - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT - 21 * + 25 + MIN( + col1 ) FROM tab1 AS cor0
----
-520

skipif mysql # not compatible
query I rowsort label-4654
SELECT - 21 * + 25 + MIN ( + col1 ) FROM tab1 AS cor0
----
-520

query I rowsort
SELECT - 26 + + - col1 + + col2 * - col2 * + - col2 FROM tab1 AS cor0
----
205348
314359
884696

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT 48 DIV + col0 + + ( + 64 ) AS col1 FROM tab0 AS cor0
----
64
64
67

skipif mysql # not compatible
query I rowsort label-4656
SELECT 48 / + col0 + + ( + 64 ) AS col1 FROM tab0 AS cor0
----
64
64
67

query I rowsort
SELECT + col1 + + + 92 AS col1 FROM tab2 cor0
----
143
159
169

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 < - ( + col1 )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT - 89 - + MAX( DISTINCT - col2 ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT - 89 - + MAX ( DISTINCT - col2 ) FROM tab0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT + 35 DIV + ( - 66 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT + 35 / + ( - 66 ) AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4662
SELECT DISTINCT COUNT( * ) DIV + 70 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4662
SELECT DISTINCT COUNT ( * ) / + 70 col1 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 + col0 + - col2 FROM tab0
----
-101
-79
67

query II rowsort
SELECT - + ( + - col0 ) AS col2, - col0 + - col0 FROM tab0 AS cor0
----
15
-30
87
-174
97
-194

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4665
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4665
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, - 4 AS col0 FROM tab2
----
51
-4
67
-4
77
-4

query II rowsort
SELECT + 86 AS col2, col1 AS col2 FROM tab2
----
86
51
86
67
86
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) < NULL
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON - 0 > + - 83
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT - 37 DIV - col1 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-4670
SELECT - 37 / - col1 FROM tab1 AS cor0
----
0
2
7

query I rowsort
SELECT + col1 * col2 - ( + + col1 ) FROM tab2 AS cor0
----
1122
3003
3819

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * - col2 < NULL
----

query I rowsort
SELECT ALL - 56 * - 5 AS col2 FROM tab2
----
280
280
280

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - - col2 IS NULL
----

query I rowsort
SELECT ALL - col1 + - ( col0 ) * ( + col0 ) AS col0 FROM tab2
----
-2167
-4173
-5692

query I rowsort
SELECT DISTINCT + col2 * 37 + + col2 FROM tab2
----
1520
2204
874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT CAST( + ( - - COUNT( * ) ) AS SIGNED ) + + MAX( + ( - col1 ) ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) + + MAX ( + ( - col1 ) ) FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + 55 + COUNT( * ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4679
SELECT + 55 + COUNT ( * ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT DISTINCT + 45 + - + COUNT( - 62 ) * - + 73 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + 45 + - + COUNT ( - 62 ) * - + 73 FROM tab2
----
264

query III rowsort
SELECT * FROM tab0 WHERE + - ( 78 ) * + 55 IS NULL
----

query I rowsort
SELECT ALL col0 + - + col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 78 * - col2 AS col2 FROM tab0 AS cor0 WHERE + col1 * - col1 + + col0 + - ( - 24 ) <= NULL
----

query I rowsort
SELECT DISTINCT - col2 - col2 * 45 FROM tab0 AS cor0
----
-2162
-4554
-460

query I rowsort
SELECT - 95 - - + 90 AS col0 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - - 0 + + col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT DISTINCT COUNT( * ) DIV 69 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT COUNT ( * ) / 69 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4688
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4688
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT 36 - COUNT( * ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4690
SELECT 36 - COUNT ( * ) AS col2 FROM tab0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT - COUNT( col2 ) - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT - COUNT ( col2 ) - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + + 93 * + - col1 + + - 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT 27 * - - COUNT( * ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT 27 * - - COUNT ( * ) FROM tab0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4695
SELECT * FROM tab2 WHERE NOT CAST( + col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4695
SELECT * FROM tab2 WHERE NOT CAST ( + col0 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT 85 * COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-4697
SELECT 85 * COUNT ( * ) FROM tab1
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab1
----
89
89
89

query I rowsort
SELECT col2 * + 88 FROM tab1
----
5192
5984
8448

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL - - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL + - col0 AS col2, 97 AS col1 FROM tab1 AS cor0
----
-51
97
-85
97
-91
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 5 + + col0 + + - 72 * 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT MAX( - + 74 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4703
SELECT MAX ( - + 74 ) FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4704
SELECT - 66 * + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-4704
SELECT - 66 * + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
NULL
9

query I rowsort
SELECT ALL - 47 FROM tab1 AS cor0 WHERE NOT col1 + col1 = - - 10
----
-47
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4706
SELECT - 6 DIV - - COUNT( * ) AS col2, 61 AS col0 FROM tab2 cor0
----
-2
61

skipif mysql # not compatible
query II rowsort label-4706
SELECT - 6 / - - COUNT ( * ) AS col2, 61 AS col0 FROM tab2 cor0
----
-2
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4707
SELECT - CAST( NULL AS SIGNED ) * - 16 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT - CAST ( NULL AS INTEGER ) * - 16 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT - SUM( 87 ) * - 9 FROM tab0 AS cor0
----
2349

skipif mysql # not compatible
query I rowsort label-4708
SELECT - SUM ( 87 ) * - 9 FROM tab0 AS cor0
----
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - - COUNT( * ) * 64 AS col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4709
SELECT - - COUNT ( * ) * 64 AS col1 FROM tab0 AS cor0
----
192

query I rowsort
SELECT - + col2 * + 88 AS col2 FROM tab0 AS cor0
----
-4136
-8712
-880

query I rowsort
SELECT col2 * 11 + 94 AS col2 FROM tab0
----
1183
204
611

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4713
SELECT ALL CAST( - + 90 AS SIGNED ) + + COUNT( * ) * - 24 AS col0 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL CAST ( - + 90 AS INTEGER ) + + COUNT ( * ) * - 24 AS col0 FROM tab0
----
-162

query I rowsort
SELECT DISTINCT 8 * 14 + - + 39 FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4715
SELECT - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4715
SELECT - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2 cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT MAX( ALL + + 89 ) col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4716
SELECT MAX ( ALL + + 89 ) col0 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT + ( - COUNT( + + 16 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4717
SELECT + ( - COUNT ( + + 16 ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL ( - + MIN( ALL col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL ( - + MIN ( ALL col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IS NOT NULL OR NOT ( + col0 / - col2 < NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT ALL - 19 * - COUNT( * ) AS col1, - 18 - - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col1 / 86 + - col2 IS NOT NULL
----
0
-18

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL - 19 * - COUNT ( * ) AS col1, - 18 - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 / 86 + - col2 IS NOT NULL
----
0
-18

query I rowsort
SELECT - 72 + - col0 + + 32 + + 84 * + + col2 * col2 AS col1 FROM tab2 AS cor0
----
134296
282461
44350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - col2 col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT - - col1 * + col2 + + - col2 FROM tab1 cor0
----
1248
236
3128

query I rowsort
SELECT DISTINCT + + 77 AS col0 FROM tab0 AS cor0
----
77

query I rowsort
SELECT DISTINCT + col1 * 17 + col2 AS col1 FROM tab2 AS cor0
----
1197
1349
890

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT 1 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4727
SELECT 1 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN 77 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
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-4731
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab2 cor0
----
-3

query II rowsort
SELECT + col2 AS col1, - col2 * 14 * - + col1 AS col0 FROM tab2
----
23
16422
40
43120
58
54404

query I rowsort
SELECT DISTINCT - 5 * col0 AS col1 FROM tab2
----
-230
-320
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 12 * + - 62 FROM tab1
----
744
744
744

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + - 69 * + + col1 FROM tab2 AS cor0
----
-3519
-4623
-5313

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT + 95 DIV + col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + 95 / + col0 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT ALL - ( + - col2 ) AS col0 FROM tab1 cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 col2 FROM tab0 AS cor0
----
-77
-77
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 + + - col1 BETWEEN - - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL - MAX( ( + + ( 7 ) ) ) * - COUNT( * ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - MAX ( ( + + ( 7 ) ) ) * - COUNT ( * ) AS col2 FROM tab0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT DISTINCT - col0 DIV + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - col0 / + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT - - ( 31 ) + + col0 AS col0 FROM tab2 AS cor0
----
106
77
95

query I rowsort
SELECT DISTINCT col1 + - 43 FROM tab2 AS cor0
----
24
34
8

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 * - + col0 <= - + 99 * - col0 + 93 - - col0 + + 99 + - - col1 * - col2 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + ( + MIN( col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4748
SELECT + ( + MIN ( col0 ) ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 99 + + col1 * - col0 AS col1, 39 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1314
39
-1926
39
-196
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, + 82 AS col1 FROM tab0 AS cor0
----
1
82
21
82
81
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + 89 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - col0 * - col2 AS col0 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + + AVG ( DISTINCT - col1 ) FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4755
SELECT DISTINCT - 79 + + + col2 DIV - col0 AS col0 FROM tab0
----
-79
-80
-82

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - 79 + + + col2 / - col0 AS col0 FROM tab0
----
-79
-80
-82

query I rowsort
SELECT - + 12 + + - 97 + - + col0 AS col0 FROM tab0 AS cor0
----
-124
-196
-206

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT CAST( + 62 AS SIGNED ) AS col0 FROM tab1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-4758
SELECT CAST ( + 62 AS INTEGER ) AS col0 FROM tab1
----
62
62
62

query I rowsort
SELECT DISTINCT col0 + ( col2 ) AS col0 FROM tab1 cor0
----
144
147
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4760
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4762
SELECT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - - col2, - col1 )
----

skipif mysql # not compatible
query III rowsort label-4762
SELECT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - - col2, - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70 AS col1, col0 * col0 * - + 39 + + col2 + + 99 * + 43 * - col0 col2 FROM tab2 AS cor0
----
-70
-278323
-70
-432152
-70
-538592

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - SUM( ALL + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4765
SELECT - SUM ( ALL + col2 ) FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + col1 col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT - 73 FROM tab1 AS cor0 WHERE NOT 53 IS NULL
----
-73
-73
-73

query I rowsort
SELECT + col0 * col1 + - 70 AS col2 FROM tab2 AS cor0
----
2276
4858
4955

query I rowsort
SELECT - col0 * 79 + - 63 FROM tab0 AS cor0 WHERE NOT 6 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 55 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT + CAST( NULL AS SIGNED ) * 82 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-4771
SELECT + CAST ( NULL AS INTEGER ) * 82 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4772
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 71 + col2 - col1 - + col1 + col2 * - col1 * + - 58 * - col1 + - - 27 IN ( - col2 * col1 * + col1 * + col0 - - ( CAST( + col2 AS SIGNED ) ) / - - col1 + col2 * + - col2 * + + col2 / 53, + 74 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4772
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 71 + col2 - col1 - + col1 + col2 * - col1 * + - 58 * - col1 + - - 27 IN ( - col2 * col1 * + col1 * + col0 - - ( CAST ( + col2 AS INTEGER ) ) / - - col1 + col2 * + - col2 * + + col2 / 53, + 74 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4773
SELECT - - col1 DIV col2, col0 AS col1 FROM tab0 AS cor0
----
0
97
1
15
2
87

skipif mysql # not compatible
query II rowsort label-4773
SELECT - - col1 / col2, col0 AS col1 FROM tab0 AS cor0
----
0
97
1
15
2
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL - MAX( col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL - MAX ( col2 ) AS col1 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT col2 * + col1 * - - col2 * - col0 + - CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4775
SELECT col2 * + col1 * - - col2 * - col0 + - CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 1 * + + 23 + 79 + + 68 + + - col1 + + ( ( col2 ) ) * + 72 AS col2 FROM tab0 AS cor0
----
3473
7297
869

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL + + MIN( DISTINCT - 84 ) FROM tab1 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + + MIN ( DISTINCT - 84 ) FROM tab1 cor0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4778
SELECT - 45 DIV - + 14 + + col2 col2 FROM tab1
----
62
71
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4778
SELECT - 45 / - + 14 + + col2 col2 FROM tab1
----
62
71
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col0 * + + col0 * - col1 + - 20
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT + 25 DIV - COUNT( * ) col1 FROM tab1
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4781
SELECT + 25 / - COUNT ( * ) col1 FROM tab1
----
-8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 93 * - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT - COUNT( * ) - - + 55 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - COUNT ( * ) - - + 55 FROM tab0 AS cor0
----
52

query II rowsort
SELECT - col2, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT + CAST( + ( - - col0 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4785
SELECT + CAST ( + ( - - col0 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL col0 - + 47 FROM tab2 AS cor0
----
-1
17
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL 59 - - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL 59 - - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT 3 + + + COUNT( - ( + col0 ) ) col2 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4788
SELECT 3 + + + COUNT ( - ( + col0 ) ) col2 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4789
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + CAST( NULL AS SIGNED ) * - 66 * + + 58
----

skipif mysql # not compatible
query III rowsort label-4789
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + CAST ( NULL AS INTEGER ) * - 66 * + + 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4790
SELECT col2 + + 72 - + col0 * + CAST( + - col0 AS SIGNED ) col0, + col1 AS col1 FROM tab1
----
2769
14
7356
5
8421
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4790
SELECT col2 + + 72 - + col0 * + CAST ( + - col0 AS INTEGER ) col0, + col1 AS col1 FROM tab1
----
2769
14
7356
5
8421
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL - + COUNT( - - col1 ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - + COUNT ( - - col1 ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT - + ( - col0 ) AS col0, + col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4793
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT SUM( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT SUM ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-103

query II rowsort
SELECT ALL - col1 AS col1, - 55 AS col1 FROM tab2
----
-51
-55
-67
-55
-77
-55

query II rowsort
SELECT DISTINCT col0 * + col2 * + col2 * col2, + col0 FROM tab0
----
1557345
15
87000
87
94119003
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT COUNT( DISTINCT 71 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT COUNT ( DISTINCT 71 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - + 65 AS col2 FROM tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT + + 10 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4799
SELECT + + 10 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col1 FROM tab1 AS cor0 WHERE NOT ( col2 * 69 * - + col2 + - 93 ) IS NULL
----
-48

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL + 40 * + col2 + - - ( - - 92 ) FROM tab0 AS cor0
----
1972
4052
492

query I rowsort
SELECT DISTINCT ( + 16 ) FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT COUNT( * ) + + + 91 AS col1 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-4804
SELECT COUNT ( * ) + + + 91 AS col1 FROM tab0
----
94

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * - - 92 <= 84
----

query II rowsort
SELECT 43 + + 30, col2 FROM tab2
----
73
23
73
40
73
58

query I rowsort
SELECT ALL col2 * - ( col0 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT - COUNT( * ) + + 59 AS col0 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT - COUNT ( * ) + + 59 AS col0 FROM tab2
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4809
SELECT ( + col1 ) + col0 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT ( + col1 ) + col0 - + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 13 * - col2 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT ALL col1 + + col2 + - - col2 AS col0 FROM tab2 cor0
----
157
183
97

query I rowsort
SELECT ALL col0 * col2 - - col2 FROM tab1 AS cor0
----
4992
5074
6256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 + - - col0 - 23 col2 FROM tab0
----
-15
-5
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT - COUNT( * ) / + + ( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT - COUNT ( * ) / + + ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 * + - 57 AS col0 FROM tab0
----
-2679
-5643
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT DISTINCT - 16 * + + col0 * + CAST( + + 60 AS SIGNED ) AS col0 FROM tab2
----
-44160
-61440
-72000

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - 16 * + + col0 * + CAST ( + + 60 AS INTEGER ) AS col0 FROM tab2
----
-44160
-61440
-72000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 + - 31 + col0 col1 FROM tab0
----
-11
-21
-93

query I rowsort
SELECT - col0 + + - col2 + - - 2 + - col1 FROM tab0
----
-116
-141
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - 34 + MIN( DISTINCT + + 58 ) col1 FROM tab2
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4819
SELECT - 34 + MIN ( DISTINCT + + 58 ) col1 FROM tab2
----
24

query I rowsort
SELECT ALL col0 + + + 55 AS col1 FROM tab0
----
142
152
70

query I rowsort
SELECT DISTINCT - 83 + col1 AS col2 FROM tab0
----
-2
-62
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - COUNT( * ) + 18 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4822
SELECT - COUNT ( * ) + 18 FROM tab0 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + - 50 - - 35 AS col1 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + 38 * - 37 * - col1 - - 68 - + - 84 + - + col2 * + col1 + col1 FROM tab1
----
18506
63085
6892

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT DISTINCT SUM( + + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT SUM ( + + col1 ) AS col2 FROM tab1
----
66

query II rowsort
SELECT DISTINCT 33, - col0 * - - 85 - - col0 AS col2 FROM tab2
----
33
-3864
33
-5376
33
-6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT DISTINCT + - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col2, col0 * - - col2 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT - col0 * col1 DIV col0 * 59 - + - col0 AS col2 FROM tab0 AS cor0
----
-1152
-4764
38

skipif mysql # not compatible
query I rowsort label-4830
SELECT - col0 * col1 / col0 * 59 - + - col0 AS col2 FROM tab0 AS cor0
----
-1152
-4764
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + 31
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4832
SELECT + CAST( MIN( DISTINCT - - col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4832
SELECT + CAST ( MIN ( DISTINCT - - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4833
SELECT - + COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4833
SELECT - + COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-3
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 5 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + col2 - + 40 AS col1, - 57 * 25 AS col2 FROM tab0 WHERE NOT - col0 + + + col0 * 53 + + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - ( - ( - col1 ) ) ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4838
SELECT COUNT( * ) DIV + COUNT( DISTINCT - col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4838
SELECT COUNT ( * ) / + COUNT ( DISTINCT - col0 ) FROM tab0
----
1

query I rowsort
SELECT ALL 25 * col1 AS col0 FROM tab0
----
2025
25
525

query III rowsort
SELECT * FROM tab0 WHERE 18 IS NULL
----

query II rowsort
SELECT col1 AS col0, - col0 AS col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT 25 + - col1 FROM tab0 AS cor0
----
-56
24
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 + 88 col0 FROM tab1 cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT 63 - + col2 AS col2 FROM tab0 AS cor0
----
-36
16
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 9 - + 34 AND - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + COUNT( * ) + + 11 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-4846
SELECT + COUNT ( * ) + + 11 FROM tab2 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT + + col2 + - - col0 - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
62
93
99

skipif mysql # not compatible
query I rowsort label-4847
SELECT + + col2 + - - col0 - col0 / + col1 AS col2 FROM tab0 AS cor0
----
62
93
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - COUNT( * ) * - 76 AS col2 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - COUNT ( * ) * - 76 AS col2 FROM tab0 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT + SUM( + + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + SUM ( + + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4850
SELECT DISTINCT + - ( - ( + 12 ) ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT + - ( - ( + 12 ) ) / - COUNT ( * ) FROM tab2 AS cor0
----
-4

query II rowsort
SELECT DISTINCT ( - - 59 ) AS col0, ( - - 27 ) * 46 - - 44 FROM tab1
----
59
1286

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE 42 + - + col0 IS NULL
----

query I rowsort
SELECT ALL - 49 * - 57 FROM tab0
----
2793
2793
2793

query I rowsort
SELECT ALL ( - col1 ) + + 88 + 81 + + + ( col0 ) - - 78 * col2 * + col0 AS col0 FROM tab2
----
199836
339477
82688

query I rowsort
SELECT ALL + ( + - 39 ) FROM tab2
----
-39
-39
-39

query I rowsort
SELECT DISTINCT 13 + - col2 + - - col2 * + 54 FROM tab0
----
2504
5260
543

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4857
SELECT 29 / - COUNT( * ) * + 1 + + SUM( ALL 54 ) - + 28 + + CAST( NULL AS DECIMAL ) * - 43 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT 29 / - COUNT ( * ) * + 1 + + SUM ( ALL 54 ) - + 28 + + CAST ( NULL AS REAL ) * - 43 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4858
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) - + 40 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) - + 40 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT DISTINCT - 24 + col2 * + 27 + + + col2 FROM tab2 AS cor0
----
1096
1600
620

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 + + - col0 AND + col1
----

query I rowsort
SELECT + col0 * 80 * - col0 FROM tab2 AS cor0
----
-169280
-327680
-450000

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT DISTINCT + 95 * - - 92 + - COUNT( * ) FROM tab1 AS cor0
----
8737

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT + 95 * - - 92 + - COUNT ( * ) FROM tab1 AS cor0
----
8737

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT DISTINCT 98 DIV + 86 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT 98 / + 86 AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + 66 / col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2, - 86 AS col0 FROM tab0
----
10
-86
47
-86
99
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4866
SELECT CAST( col0 AS SIGNED ) * col1, - col2 * col2 + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1215
-2128
1827
-79
97
-9800

skipif mysql # not compatible
query II rowsort label-4866
SELECT CAST ( col0 AS INTEGER ) * col1, - col2 * col2 + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1215
-2128
1827
-79
97
-9800

query I rowsort
SELECT ALL + col1 * + - 82 AS col1 FROM tab1 AS cor0
----
-1148
-3854
-410

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT ALL + 64 DIV - 53 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL + 64 / - 53 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab2 AS cor0 WHERE NOT + 80 IS NULL
----
72
72
72

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2 cor0
----
53

query I rowsort
SELECT DISTINCT + - 74 AS col1 FROM tab1 AS cor0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL COUNT( * ) FROM tab1 WHERE + col1 / CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL COUNT ( * ) FROM tab1 WHERE + col1 / CAST ( NULL AS INTEGER ) < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT ( ( + CAST( COUNT( * ) AS SIGNED ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT ( ( + CAST ( COUNT ( * ) AS INTEGER ) ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + 95 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + 95 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col1 ) col2 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT DISTINCT + 34 + - col0 DIV - col1 FROM tab1
----
35
37
51

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT + 34 + - col0 / - col1 FROM tab1
----
35
37
51

query I rowsort
SELECT ( - ( + col2 ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL + COUNT( * ) + - + MIN( + + 8 ) + - 82 AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + COUNT ( * ) + - + MIN ( + + 8 ) + - 82 AS col0 FROM tab0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT - CAST( - + 85 AS SIGNED ) FROM tab0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4879
SELECT - CAST ( - + 85 AS INTEGER ) FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT COUNT( * ) + + SUM( + - col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT COUNT ( * ) + + SUM ( + - col0 ) FROM tab0
----
-196

query II rowsort
SELECT DISTINCT + - col1 AS col2, col0 + + 47 AS col1 FROM tab2 AS cor0
----
-51
93
-67
122
-77
111

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 20 > NULL )
----

query I rowsort
SELECT col0 + - + col1 * + ( - 11 ) AS col0 FROM tab2 AS cor0
----
607
812
911

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE ( + - col2 - col1 IS NULL )
----

query I rowsort
SELECT + 89 * + - col2 AS col1 FROM tab0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT COUNT( DISTINCT + ( - col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4886
SELECT COUNT ( DISTINCT + ( - col2 ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT MIN( + - col2 ) col0 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4887
SELECT MIN ( + - col2 ) col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - COUNT( * ) FROM tab0 cor0 WHERE ( - col0 ) NOT BETWEEN ( NULL ) AND - - 85
----
0

skipif mysql # not compatible
query I rowsort label-4888
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE ( - col0 ) NOT BETWEEN ( NULL ) AND - - 85
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 38 BETWEEN - col2 AND + col0 * + 9 * + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT ALL - col2 DIV col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - col2 / col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-21
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2, col0 / col1, - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT MAX( DISTINCT - 80 ) FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4892
SELECT MAX ( DISTINCT - 80 ) FROM tab2 cor0
----
-80

query I rowsort
SELECT ALL - - 88 - - col1 AS col1 FROM tab1 AS cor0
----
102
135
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT - CAST( - col0 AS SIGNED ) - - - 77 AS col0 FROM tab0 AS cor0
----
-62
10
20

skipif mysql # not compatible
query I rowsort label-4894
SELECT - CAST ( - col0 AS INTEGER ) - - - 77 AS col0 FROM tab0 AS cor0
----
-62
10
20

query I rowsort
SELECT + + 93 - 3 + - col1 FROM tab1 AS cor0
----
43
76
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT col0 - - col0 DIV + + col2 AS col0 FROM tab0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-4896
SELECT col0 - - col0 / + + col2 AS col0 FROM tab0
----
15
95
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4897
SELECT ALL + COUNT( * ) AS col1, + 15 FROM tab2
----
3
15

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL + COUNT ( * ) AS col1, + 15 FROM tab2
----
3
15

query I rowsort
SELECT col0 + - 54 AS col1 FROM tab2
----
-8
10
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT col1 + 5 DIV col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4899
SELECT col1 + 5 / col0 FROM tab2
----
51
67
77

query II rowsort
SELECT ALL col1, - col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4901
SELECT ALL * FROM tab2 WHERE NOT NULL = - - 43 + col2 * + - col0 * - CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-4901
SELECT ALL * FROM tab2 WHERE NOT NULL = - - 43 + col2 * + - col0 * - CAST ( NULL AS INTEGER ) * col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4902
SELECT + col0 AS col2, + col0 DIV - col1 col2 FROM tab2 AS cor0
----
46
0
64
0
75
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4902
SELECT + col0 AS col2, + col0 / - col1 col2 FROM tab2 AS cor0
----
46
0
64
0
75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - SUM( ALL - col1 ) * + 31 FROM tab2 AS cor0
----
6045

skipif mysql # not compatible
query I rowsort label-4903
SELECT - SUM ( ALL - col1 ) * + 31 FROM tab2 AS cor0
----
6045

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - COUNT( - col1 ) col1 FROM tab0 WHERE NOT col1 - + 51 NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4904
SELECT - COUNT ( - col1 ) col1 FROM tab0 WHERE NOT col1 - + 51 NOT BETWEEN - col1 AND NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + + 64 AS col2 FROM tab0
----
-23
-33
49

query III rowsort
SELECT * FROM tab2 WHERE NOT - 90 * - 67 NOT BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL MAX( DISTINCT + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL MAX ( DISTINCT + col1 ) AS col0 FROM tab1
----
47

query I rowsort
SELECT - col1 * ( - 56 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
2856
3752
4312

query I rowsort
SELECT ALL 46 FROM tab1 WHERE NULL NOT BETWEEN ( col0 ) AND - col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
8
8
8

query III rowsort
SELECT ALL * FROM tab1 WHERE 6 * - col0 BETWEEN - col2 + - col2 * 51 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4913
SELECT DISTINCT - CAST( 72 AS SIGNED ) + - col2 DIV 79 AS col2 FROM tab0
----
-72
-73

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT - CAST ( 72 AS INTEGER ) + - col2 / 79 AS col2 FROM tab0
----
-72
-73

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 + - col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT - SUM( col1 ) FROM tab0 WHERE col2 - col0 / 46 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT - SUM ( col1 ) FROM tab0 WHERE col2 - col0 / 46 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT + MIN( CAST( - col0 AS SIGNED ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4916
SELECT + MIN ( CAST ( - col0 AS INTEGER ) ) FROM tab1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - 69 AS col2 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - 69 AS col2 FROM tab1
----
210

query I rowsort
SELECT 28 * col0 + col1 FROM tab2
----
1339
1869
2167

query I rowsort
SELECT ALL + col2 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
705
870
9603

query III rowsort
SELECT * FROM tab2 WHERE + 87 * - col0 + + ( col1 - + 41 ) * 32 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 9 >= ( + ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 BETWEEN + col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT COUNT( col2 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4924
SELECT COUNT ( col2 ) col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 - col0 * + 71 )
----

query I rowsort
SELECT + col1 + + ( + col1 ) * col1 FROM tab1
----
210
2256
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4927
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) NOT IN ( 44 )
----

skipif mysql # not compatible
query III rowsort label-4927
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( 44 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 <= 73 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 - - col2 AS col0 FROM tab0 WHERE - col2 <> - col0 * + col2
----
-11
-34
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= + ( col1 )
----

query I rowsort
SELECT DISTINCT col0 * 53 FROM tab0 WHERE 4 * - 19 IS NULL
----

query I rowsort
SELECT 87 * col1 FROM tab2
----
4437
5829
6699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT + 80 * + 12 FROM tab0
----
960
960
960

query I rowsort
SELECT col0 * 8 AS col2 FROM tab1
----
408
680
728

query I rowsort
SELECT + col0 + + 38 FROM tab2 WHERE NULL IS NULL
----
102
113
84

query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab0 WHERE NOT ( - 14 * ( 56 ) + + col2 ) IS NULL
----
1
441
6561

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT MIN( DISTINCT 52 ) AS col2 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT MIN ( DISTINCT 52 ) AS col2 FROM tab2 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4941
SELECT CAST( - COUNT( * ) AS SIGNED ) * + MIN( DISTINCT 95 ) AS col0 FROM tab2 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-4941
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + MIN ( DISTINCT 95 ) AS col0 FROM tab2 cor0
----
-285

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 89 + + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * 22 NOT IN ( col2 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT DISTINCT + col0 DIV - col1 + - ( - col1 + 24 ) AS col0 FROM tab1
----
-13
-36
22

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + col0 / - col1 + - ( - col1 + 24 ) AS col0 FROM tab1
----
-13
-36
22

query I rowsort
SELECT DISTINCT + 73 + col1 AS col1 FROM tab2 WHERE NOT + 71 <> - 51 * 73 + + 72
----

query I rowsort
SELECT ALL 6 + - col0 FROM tab0
----
-81
-9
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT + ( + COUNT( * ) ) + 64 DIV + MIN( col1 + col2 ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-4947
SELECT + ( + COUNT ( * ) ) + 64 / + MIN ( col1 + col2 ) FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT - - COUNT( * ) + 14 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4948
SELECT - - COUNT ( * ) + 14 FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT 42 * col1 + - col2 FROM tab2 AS cor0
----
2119
2756
3194

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT COUNT( * ) - + ( - COUNT( + 34 ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT COUNT ( * ) - + ( - COUNT ( + 34 ) ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - ( col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab1 AS cor0 WHERE 3 NOT BETWEEN - 92 * col0 + + col0 AND ( + col1 )
----

query I rowsort
SELECT 54 + - 43 AS col1 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT - col0 * - 80 - + col1 AS col1 FROM tab1 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
4066
6795
7233

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT - 17 + COUNT( * ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4956
SELECT - 17 + COUNT ( * ) FROM tab1 AS cor0
----
-14

query I rowsort
SELECT - col2 + + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 80 - - col1 FROM tab0 AS cor0
----
-59
-79
1

query I rowsort
SELECT DISTINCT + - col2 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-624
-849
-9602

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - 47 AS col0 FROM tab2 AS cor0
----
-1
17
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT DISTINCT - col0 DIV 41 col1 FROM tab1 AS cor0 WHERE - col0 + - col2 DIV col1 IS NOT NULL
----
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4963
SELECT DISTINCT - col0 / 41 col1 FROM tab1 AS cor0 WHERE - col0 + - col2 / col1 IS NOT NULL
----
-1
-2

query I rowsort
SELECT ALL col1 - + + col0 FROM tab1
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 WHERE col1 - - col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( + 59 * + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + COUNT( * ) * + + 89 AS col2 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + COUNT ( * ) * + + 89 AS col2 FROM tab2
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col0 col0 FROM tab1 WHERE NOT - 68 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4969
SELECT * FROM tab1 WHERE NOT ( CAST( col2 AS SIGNED ) * - 72 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-4969
SELECT * FROM tab1 WHERE NOT ( CAST ( col2 AS INTEGER ) * - 72 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT COUNT( ALL - 4 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT COUNT ( ALL - 4 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( + CAST( - col1 AS SIGNED ) ) BETWEEN NULL AND ( - col1 * + col2 + + 8 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( + CAST ( - col1 AS INTEGER ) ) BETWEEN NULL AND ( - col1 * + col2 + + 8 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > - col0 / - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * - col0 * + col1 col1 FROM tab1 AS cor0
----
-33150
-333606
-55692

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( col0 + col0 ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4976
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab2 WHERE 45 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4977
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab2 WHERE 45 NOT BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 > NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col1 / + col1
----

query I rowsort
SELECT ALL ( + + 0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT ( - + col2 * 49 + col2 ) NOT BETWEEN - col2 AND ( col0 ) * 3 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - COUNT( * ) - - ( 84 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
75

skipif mysql # not compatible
query I rowsort label-4982
SELECT - COUNT ( * ) - - ( 84 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col0 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - ( + COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4984
SELECT - ( + COUNT ( * ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col2 / col0 - 79 FROM tab1 AS cor0 WHERE NOT col1 * + - col0 BETWEEN ( NULL ) AND 64
----

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 49 IS NOT NULL
----

query I rowsort
SELECT - col1 * - 44 AS col2 FROM tab1 AS cor0
----
2068
220
616

query I rowsort
SELECT DISTINCT + 7 FROM tab0 WHERE NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL MIN( ALL + - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL MIN ( ALL + - col0 ) AS col0 FROM tab0
----
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + + col0 AND + - 7
----

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT + COUNT( * ) + 87 - + - 43 FROM tab2
----
133

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + COUNT ( * ) + 87 - + - 43 FROM tab2
----
133

query I rowsort
SELECT 94 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL 11 * + - col1 AS col0 FROM tab2
----
-561
-737
-847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 33 col2 FROM tab1
----
1551
165
462

query I rowsort
SELECT ALL - 38 + - - col2 + + - col2 - - col1 * + col0 * col1 AS col1 FROM tab0
----
38329
59
98377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT DISTINCT CAST( + + 69 AS SIGNED ) + + 68 FROM tab2
----
137

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT CAST ( + + 69 AS INTEGER ) + + 68 FROM tab2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE + col0 * CAST( col1 AS SIGNED ) * col2 = - col2
----
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE + col0 * CAST ( col1 AS INTEGER ) * col2 = - col2
----
0

query I rowsort
SELECT ALL col0 + - - col1 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL 97 + + col0 FROM tab2
----
143
161
172

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL AND NOT ( - 64 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL + + COUNT( 69 ) + - COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL + + COUNT ( 69 ) + - COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE 44 = ( - - col0 )
----

query II rowsort
SELECT ALL - - 12 AS col2, - 35 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to a739adcf79627c1bc518a7acbd651d8f

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 11 * col2 NOT BETWEEN NULL AND col1 + 98
----

query I rowsort
SELECT 73 * - col0 FROM tab0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT - + 19 - - COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - + 19 - - COUNT ( * ) FROM tab2 AS cor0
----
-16

query I rowsort
SELECT ALL + 38 * - col1 + - - ( 64 ) AS col2 FROM tab1 AS cor0
----
-126
-1722
-468

onlyif mysql # aggregate syntax: 
query II rowsort label-5012
SELECT DISTINCT 81 AS col1, COUNT( * ) * + COUNT( * ) * 33 FROM tab2 AS cor0
----
81
297

skipif mysql # not compatible
query II rowsort label-5012
SELECT DISTINCT 81 AS col1, COUNT ( * ) * + COUNT ( * ) * 33 FROM tab2 AS cor0
----
81
297

query II rowsort
SELECT DISTINCT - 19 AS col1, ( - + col1 ) * col0 FROM tab2
----
-19
-2346
-19
-4928
-19
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT ALL + - 25 DIV col1 + + - col1 col0 FROM tab1 WHERE - 58 IS NOT NULL
----
-10
-15
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5014
SELECT ALL + - 25 / col1 + + - col1 col0 FROM tab1 WHERE - 58 IS NOT NULL
----
-10
-15
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5015
SELECT COUNT( * ) AS col2, + 11 AS col2 FROM tab2
----
3
11

skipif mysql # not compatible
query II rowsort label-5015
SELECT COUNT ( * ) AS col2, + 11 AS col2 FROM tab2
----
3
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5016
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( - col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5016
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( - col0 + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 74 <= ( 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - - col0 ) col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - MAX( + + 55 ) AS col0 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-5019
SELECT - MAX ( + + 55 ) AS col0 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT DISTINCT 33 * - 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL - MIN( DISTINCT - + 38 ) FROM tab1 cor0
----
38

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - MIN ( DISTINCT - + 38 ) FROM tab1 cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT - + CAST( + + 19 AS SIGNED ) AS col1 FROM tab0 cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-5022
SELECT - + CAST ( + + 19 AS INTEGER ) AS col1 FROM tab0 cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col2 + + ( 55 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + - col1 + + col2 * + - 76 AS col0 FROM tab1 AS cor0
----
-4484
-5168
-7296

query I rowsort
SELECT + - col2 + + + 69 AS col1 FROM tab0 AS cor0
----
-30
22
59

query II rowsort
SELECT DISTINCT + 80 * - 68, col2 + + - col2 AS col2 FROM tab2 AS cor0
----
-5440
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0 * + - col2 + col1 + + 17 * - col0, col0 * + col2 - 26 AS col1 FROM tab1 AS cor0
----
-5749
4870
-6455
4989
-7688
6162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5029
SELECT ALL * FROM tab0 WHERE + - col1 * CAST( NULL AS SIGNED ) - + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5029
SELECT ALL * FROM tab0 WHERE + - col1 * CAST ( NULL AS INTEGER ) - + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 78 * + col1 * - col1 AS col2, col1 + - + 20 FROM tab2
----
-202878
31
-350142
47
-462462
57

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col1 + 33 * + col2, - col0 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL + COUNT( - - col0 ) * 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL + COUNT ( - - col0 ) * 42 FROM tab2
----
126

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - 47 + col0 * col2 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + 38 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5034
SELECT + 38 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
114

query I rowsort
SELECT - col1 * + 67 AS col2 FROM tab0 AS cor0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT COUNT( * ) DIV + + 8 + - 59 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-58

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) / + + 8 + - 59 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL <= NULL )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT NULL <= NULL
----

query I rowsort
SELECT ALL 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query II rowsort
SELECT col1 + 52 AS col0, col1 FROM tab0
----
133
81
53
1
73
21

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT + SUM( - col1 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5042
SELECT + SUM ( - col1 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-192

query I rowsort
SELECT - 46 * - + 94 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + col0 ) + col2 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - ( 4 ) * - 60
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col1 ) col0, col2 FROM tab2 cor0
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 / - + col1 <= + ( + 10 )
----

query II rowsort
SELECT ALL + 28, + col2 FROM tab1 AS cor0 WHERE ( col1 ) = 57
----

query I rowsort
SELECT DISTINCT col0 * - 70 AS col0 FROM tab0
----
-1050
-6090
-6790

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT DISTINCT + 45 DIV col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT + 45 / col2 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5052
SELECT ALL 13 DIV MIN( ALL + col1 ) * + 72 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL 13 / MIN ( ALL + col1 ) * + 72 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + ( 87 ) AS col1 FROM tab1 WHERE NOT + + col1 NOT BETWEEN + col2 * + 63 * + 44 + + + 81 AND ( - 20 + - 99 )
----

query I rowsort
SELECT DISTINCT ( + + 32 ) AS col1 FROM tab1
----
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 47 * + + col0 AS col2 FROM tab0
----
4089
4559
705

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT col1 NOT IN ( + + 98 )
----

query I rowsort
SELECT + - 34 * - col1 - + - ( - col0 ) * 72 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1578
-1990
-3122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT - ( - col2 ) * - + col1 + 21 AS col2 FROM tab1 cor0 WHERE NOT ( + CAST( - col0 AS SIGNED ) <> 99 )
----

skipif mysql # not compatible
query I rowsort label-5059
SELECT - ( - col2 ) * - + col1 + 21 AS col2 FROM tab1 cor0 WHERE NOT ( + CAST ( - col0 AS INTEGER ) <> 99 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 IN ( - - 3 + 99 + col0 * 14 * - col2 * - 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL - COUNT( * ) + - SUM( - + col2 ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL - COUNT ( * ) + - SUM ( - + col2 ) FROM tab2
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT - CAST( SUM( DISTINCT 76 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5062
SELECT - CAST ( SUM ( DISTINCT 76 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT - MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + - 56 FROM tab1 cor0
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT DISTINCT + + 81 DIV - - 82 + + col0 + + col2 + - 81 col0 FROM tab2 AS cor0
----
-12
23
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5065
SELECT DISTINCT + + 81 / - - 82 + + col0 + + col2 + - 81 col0 FROM tab2 AS cor0
----
-12
23
52

query II rowsort
SELECT ALL + col0, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - 62 + + 43 * col1 AND - 79
----

query I rowsort
SELECT ( + col2 ) AS col2 FROM tab1 cor0 WHERE col1 * + 59 * + col2 - 88 * + col1 + + + 82 + + 50 * - - col0 <= col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( + - col2 BETWEEN - 68 AND NULL ) )
----

query I rowsort
SELECT ALL + 11 + + 51 AS col0 FROM tab1
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT DISTINCT 4 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT 4 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT + SUM( ALL - + col2 ) + COUNT( DISTINCT - col1 ) FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + SUM ( ALL - + col2 ) + COUNT ( DISTINCT - col1 ) FROM tab0
----
-153

query I rowsort
SELECT 82 * - + 59 - + col1 AS col0 FROM tab1
----
-4843
-4852
-4885

query I rowsort
SELECT + 70 - - + 63 AS col2 FROM tab1
----
133
133
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - col2 col0, - 53 FROM tab0
----
0
-53
0
-53
0
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT DISTINCT + 24 DIV col1 + + 64 AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT + 24 / col1 + + 64 AS col2 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - ( col0 )
----

query I rowsort
SELECT ALL + ( + 90 ) * + 67 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 166485c478c230b71cc193d7c05d061d

query II rowsort
SELECT + 65 + + 68, - col0 FROM tab2 AS cor0 WHERE NOT ( NOT + + col1 IS NULL )
----

query I rowsort
SELECT ALL - col0 * - + 11 * + - col0 FROM tab2 AS cor0
----
-23276
-45056
-61875

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - col2 + 78 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT + COUNT( * ) * + + 58 FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + COUNT ( * ) * + + 58 FROM tab1 AS cor0
----
174

query II rowsort
SELECT + + col1 * + col0 * + 24, col2 FROM tab0 AS cor0
----
2328
99
29160
47
43848
10

query I rowsort
SELECT ALL - + col1 * - 54 FROM tab2 AS cor0
----
2754
3618
4158

query I rowsort
SELECT ( - 71 ) FROM tab2
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + ( - SUM( ALL - col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5086
SELECT + ( - SUM ( ALL - col1 ) ) FROM tab0
----
103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > + - col1 + + + ( - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 27 * - + col2 * + col1 / - col2 AND + 64
----

query I rowsort
SELECT - ( col2 ) * + 77 * col1 * + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
18261320
20047874
4606371

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT DISTINCT + 18 DIV 3 FROM tab0, tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + 18 / 3 FROM tab0, tab0 AS cor0
----
6

query I rowsort
SELECT ALL - 70 * col1 + 2 + 58 AS col2 FROM tab2 AS cor0
----
-3510
-4630
-5330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5093
SELECT DISTINCT + MAX( CAST( + col1 AS SIGNED ) ) + - SUM( ALL + 20 ) DIV SUM( DISTINCT 25 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + MAX ( CAST ( + col1 AS INTEGER ) ) + - SUM ( ALL + 20 ) / SUM ( DISTINCT 25 ) FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + + 84 + MIN( ALL + 82 ) FROM tab1 AS cor0
----
166

skipif mysql # not compatible
query I rowsort label-5094
SELECT + + 84 + MIN ( ALL + 82 ) FROM tab1 AS cor0
----
166

query I rowsort
SELECT DISTINCT - col0 + ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 26 + - col1 FROM tab2 AS cor0
----
-25
-41
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT - MAX( ALL + col0 ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5099
SELECT - MAX ( ALL + col0 ) col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 65 * - 55 FROM tab2 AS cor0
----
-3575

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT + - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT + - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( - col1 ) - + col2 + col1 - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + AVG ( + 53 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT col2 DIV - 82 + - col2 AS col2 FROM tab0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-5105
SELECT col2 / - 82 + - col2 AS col2 FROM tab0
----
-10
-100
-47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL = col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT SUM( + + 58 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5108
SELECT SUM ( + + 58 ) FROM tab1 AS cor0
----
174

query I rowsort
SELECT - - ( - 3 ) - - - col0 FROM tab1 AS cor0
----
-54
-88
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 * 98 / - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - + COUNT( * ) - + COUNT( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5111
SELECT - + COUNT ( * ) - + COUNT ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT + COUNT( * ) + 5 + + 77 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT + COUNT ( * ) + 5 + + 77 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - 82 - + col2 AS col0, ( - col2 ) AS col2 FROM tab1 AS cor0
----
-141
-59
-150
-68
-178
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL + MIN( + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + MIN ( + - col1 ) FROM tab0
----
-81

query II rowsort
SELECT - col0 * + col1, 81 AS col2 FROM tab0 AS cor0
----
-1215
81
-1827
81
-97
81

query I rowsort
SELECT ALL col2 * + + col1 AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT col0 DIV + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5117
SELECT col0 / + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - - 56 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5118
SELECT - - 56 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
168

query I rowsort
SELECT DISTINCT + col2 * - + 68 AS col0 FROM tab2 AS cor0
----
-1564
-2720
-3944

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + 43 + - col2 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( 12 ) ) col2 FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5122
SELECT ALL CAST( NULL AS SIGNED ) AS col0, COUNT( + col1 ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5122
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, COUNT ( + col1 ) FROM tab0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT ALL 36 AS col2 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IN ( col2 * + + col2 )
----

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL 36 AS col2 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IN ( col2 * + + col2 )
----

query I rowsort
SELECT + 53 / - 93 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL - ( + - MIN( DISTINCT - - 25 ) ) * + 82 FROM tab0
----
2050

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL - ( + - MIN ( DISTINCT - - 25 ) ) * + 82 FROM tab0
----
2050

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + - col2 ) + + + col2 * - ( + 76 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT + MIN( ALL - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + MIN ( ALL - col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT - - SUM( - col0 ) * + COUNT( * ) AS col0 FROM tab0 WHERE NOT + + col0 NOT BETWEEN NULL AND CAST( - col1 AS SIGNED ) + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5128
SELECT - - SUM ( - col0 ) * + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + + col0 NOT BETWEEN NULL AND CAST ( - col1 AS INTEGER ) + - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78 col0, col1 + + 8 FROM tab2 cor0
----
-78
59
-78
75
-78
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT - ( + MIN( + + col2 ) ) + - 48 AS col1 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-5130
SELECT - ( + MIN ( + + col2 ) ) + - 48 AS col1 FROM tab2
----
-71

query III rowsort
SELECT * FROM tab0 WHERE col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT CAST( - AVG ( ALL 29 ) AS SIGNED ) FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-5132
SELECT CAST ( - AVG ( ALL 29 ) AS INTEGER ) FROM tab2
----
-29

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT + COUNT( * ) + - + ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT + COUNT ( * ) + - + ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + - 90 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT ALL + col2 DIV - col0 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5136
SELECT ALL + col2 / - col0 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-3
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 48 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 24 - - col1 + - col2 FROM tab2 cor0
----
33
52
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + COUNT( + col1 ) - 13 + + 50 AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5139
SELECT + COUNT ( + col1 ) - 13 + + 50 AS col2 FROM tab2 AS cor0
----
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 62 IN ( - ( + + col0 ), + col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - col0 * - 5 - - - 84 FROM tab2
----
12716
21666
5206

query I rowsort
SELECT - col2 - - - col2 FROM tab0
----
-198
-20
-94

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE + col2 NOT IN ( - col1 )
----
51
67
77

query I rowsort
SELECT ALL + + 16 - + + col2 FROM tab1 AS cor0
----
-43
-52
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + COUNT( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5145
SELECT + COUNT ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL col0 AS col1, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT + 96 * col2 + - col0 * col0 <= NULL
----

query I rowsort
SELECT ALL + + AVG ( DISTINCT ( - + 27 ) ) FROM tab1 AS cor0 WHERE NOT 53 >= NULL
----
NULL

query II rowsort
SELECT + 19, col0 FROM tab2 AS cor0
----
19
46
19
64
19
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL - - 79 * + - CAST( NULL AS SIGNED ) * + MAX( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - - 79 * + - CAST ( NULL AS INTEGER ) * + MAX ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - ( - 52 ) FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT + + COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + + SUM( ALL - 47 ) AS col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5153
SELECT + + SUM ( ALL - 47 ) AS col1 FROM tab2 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - MIN( - + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5154
SELECT - MIN ( - + col0 ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col2 FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab0
----
-49
-49
-49

query I rowsort
SELECT ALL + 41 * + 62 AS col1 FROM tab2
----
2542
2542
2542

query I rowsort
SELECT ALL - col0 * + 16 + - - ( + 24 ) FROM tab2 WHERE - col1 BETWEEN NULL AND - 45 * + - col0 * col2
----

query I rowsort
SELECT col0 + + 91 + + - 39 FROM tab2
----
116
127
98

query I rowsort
SELECT DISTINCT 83 * - col0 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT col2 + 16 AS col0 FROM tab2
----
39
56
74

query I rowsort
SELECT 0 + col1 * 40 AS col0 FROM tab0
----
3240
40
840

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - col0 NOT BETWEEN + + 82 + - col1 AND NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT CAST( NULL AS SIGNED ) + 6 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT CAST ( NULL AS INTEGER ) + 6 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5165
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5165
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL - COUNT( * ) * - 7 + + COUNT( * ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - COUNT ( * ) * - 7 + + COUNT ( * ) AS col2 FROM tab0
----
24

query I rowsort
SELECT DISTINCT - + col2 + + + 12 AS col0 FROM tab1 AS cor0
----
-47
-56
-84

query I rowsort
SELECT ALL + col1 * - + ( - col2 ) AS col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 - + - col2 AS col0 FROM tab2 WHERE NOT - col2 * 10 + + + col2 - - 23 + col1 / + - col1 * - col0 NOT IN ( ( + col0 ) * - col1 + col2 + 8 - + ( col0 ) + + ( - + col2 ) * - col2, + col1 )
----

query I rowsort
SELECT + + col0 + col2 * + + col1 - - 64 AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col0, + col0, ( + col0 ) )
----

query I rowsort
SELECT - - 44 + + - col0 FROM tab2 AS cor0
----
-2
-20
-31

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
71

query I rowsort
SELECT + + col1 * + col2 + col2 + + col1 * - col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 45 <> - 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 97 * col1 + + col1 + - col1 - - - 73 - 44 * ( + ( 93 ) ) FROM tab1 cor0
----
-4650
-5523
-8724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 col0 FROM tab2 AS cor0 WHERE ( col2 ) = ( + col2 )
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + - 5 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5

query I rowsort
SELECT DISTINCT + col1 * 7 AS col0 FROM tab1
----
329
35
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5180
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5180
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 38 * - + 99 * + - col0 - + 11 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5183
SELECT DISTINCT + CAST( NULL AS SIGNED ) * MIN( col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * MIN ( col2 ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * + col2 col0 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT - col2 * + - 40 - - col1 FROM tab1 AS cor0
----
2365
2767
3854

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < ( + + col1 + - 45 - - - 11 * - - 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 96 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT + 81 * COUNT( * ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT + 81 * COUNT ( * ) FROM tab2
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * - 29 + + col2 <= - 99 - + col0
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT MAX( ALL - 5 ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-5192
SELECT MAX ( ALL - 5 ) FROM tab0
----
-5

query I rowsort
SELECT ALL + 26 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > - 73
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - 59 AS col0 FROM tab0 AS cor0
----
-2773
-5841
-590

query I rowsort
SELECT - 82 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT CAST( col1 AS SIGNED ) + + - 73 FROM tab0
----
-52
-72
8

skipif mysql # not compatible
query I rowsort label-5197
SELECT CAST ( col1 AS INTEGER ) + + - 73 FROM tab0
----
-52
-72
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT DISTINCT 97 + COUNT( * ) AS col1, - COUNT( * ) AS col1 FROM tab2
----
100
-3

skipif mysql # not compatible
query II rowsort label-5198
SELECT DISTINCT 97 + COUNT ( * ) AS col1, - COUNT ( * ) AS col1 FROM tab2
----
100
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 88
----

query I rowsort
SELECT ALL - col1 - + col2 - + col0 + - + col2 * + + ( + ( + col2 ) ) * - col1 + + 66 AS col2 FROM tab1 AS cor0
----
128929
17322
217188

query I rowsort
SELECT DISTINCT 18 * - col2 AS col0 FROM tab0
----
-1782
-180
-846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5202
SELECT 50 DIV + COUNT( 16 ) col0 FROM tab0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5202
SELECT 50 / + COUNT ( 16 ) col0 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT DISTINCT COUNT( ALL + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT COUNT ( ALL + col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - ( + col1 ) * col0 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT + col1 * 1 * - 52 FROM tab0
----
-1092
-4212
-52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5207
SELECT - + col0 - + + 68 + col2 * - - 33 * + col1 + col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - col1 ) * - col2 / + col1 / + col2 * + col0 * + col0 BETWEEN CAST( NULL AS DECIMAL ) AND NULL )
----

skipif mysql # not compatible
query I rowsort label-5207
SELECT - + col0 - + + 68 + col2 * - - 33 * + col1 + col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - col1 ) * - col2 / + col1 / + col2 * + col0 * + col0 BETWEEN CAST ( NULL AS REAL ) AND NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 55 * + + col1 + - col0 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 16 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 70 / + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 BETWEEN NULL AND col2
----

query I rowsort
SELECT - 45 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT + 73 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT + 73 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + col0 IN ( 55, - 90 * + col1, + col2, - col0, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 53 + + 76 + + 7 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + + col1 ) >= col2
----

query I rowsort
SELECT + col1 * + col1 * 73 FROM tab2 AS cor0
----
189873
327697
432817

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - - COUNT( ALL col1 ) + - 32 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5218
SELECT - - COUNT ( ALL col1 ) + - 32 FROM tab1 AS cor0
----
-29

query II rowsort
SELECT DISTINCT + ( + col2 ), + col1 * + col1 + - - col0 * 94 FROM tab2 AS cor0
----
23
6925
40
11945
58
11539

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + MIN( + col1 ) + - - 75 AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5220
SELECT + MIN ( + col1 ) + - - 75 AS col1 FROM tab1
----
80

query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 * - col0 FROM tab1
----
-450
-6486
-910

query I rowsort
SELECT ALL + 96 + + + 91 FROM tab0
----
187
187
187

query I rowsort
SELECT - 15 FROM tab0 WHERE - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, ( + 73 ) AS col2 FROM tab1
----
-14
73
-47
73
-5
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + + COUNT( * ) AS col0 FROM tab0 WHERE + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT + + COUNT ( * ) AS col0 FROM tab0 WHERE + + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col2, - 21 AS col0 FROM tab0 AS cor0
----
37
-21
37
-21
37
-21

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 89 AS col2 FROM tab1 AS cor0
----
-89
-89
-89

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NULL AND NOT + 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT - SUM( DISTINCT + 89 ) AS col2 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - SUM ( DISTINCT + 89 ) AS col2 FROM tab0
----
-89

query I rowsort
SELECT DISTINCT + + 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT 36 + + COUNT( * ) col0 FROM tab1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5233
SELECT 36 + + COUNT ( * ) col0 FROM tab1
----
39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT ALL + col2 DIV + col1 - col2 FROM tab1 cor0
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL + col2 / + col1 - col2 FROM tab1 cor0
----
-48
-67
-90

query I rowsort
SELECT - + col2 + - col0 * 45 + + 46 AS col0 FROM tab1 AS cor0
----
-2345
-3838
-4117

query I rowsort
SELECT DISTINCT col2 * - col1 - + 34 AS col2 FROM tab1 AS cor0
----
-1378
-3230
-329

query I rowsort
SELECT ALL - col2 + col0 + - col1 FROM tab1 AS cor0
----
-24
-59
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, 6 col2 FROM tab2 AS cor0
----
51
6
67
6
77
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5240
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( + - 9 ) * 41 * - 64 + - + CAST( - + col0 AS SIGNED ) * + ( - col2 ) AND - 99 + - col1
----

skipif mysql # not compatible
query III rowsort label-5240
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( + - 9 ) * 41 * - 64 + - + CAST ( - + col0 AS INTEGER ) * + ( - col2 ) AND - 99 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - COUNT( * ) + + 61 col2 FROM tab1 WHERE NOT NULL IS NULL
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5241
SELECT DISTINCT - COUNT ( * ) + + 61 col2 FROM tab1 WHERE NOT NULL IS NULL
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5242
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( CAST( - ( - 94 ) AS SIGNED ), + 75, + + col1 * - - col1 + 44 - 97 + col2 * 3 )
----

skipif mysql # not compatible
query III rowsort label-5242
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( CAST ( - ( - 94 ) AS INTEGER ), + 75, + + col1 * - - col1 + 44 - 97 + col2 * 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT + COUNT( * ) * 65 AS col0 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5243
SELECT + COUNT ( * ) * 65 AS col0 FROM tab1
----
195

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT - col2 * + - CAST( - - ( - - CAST( col0 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-5245
SELECT - col2 * + - CAST ( - - ( - - CAST ( col0 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT + COUNT( * ) * + 91 col1 FROM tab0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5248
SELECT + COUNT ( * ) * + 91 col1 FROM tab0
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT ALL col1 DIV - ( + col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL col1 / - ( + col2 ) FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT DISTINCT + 73 DIV 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT + 73 / 99 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL - 7 * - - COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - 7 * - - COUNT ( * ) FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT + ( - COUNT( * ) ) FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + ( - COUNT ( * ) ) FROM tab0, tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT CAST( AVG ( ALL col2 ) AS SIGNED ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-5254
SELECT CAST ( AVG ( ALL col2 ) AS INTEGER ) FROM tab0
----
52

query I rowsort
SELECT + - 24 AS col2 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5256
SELECT - + CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT - + CAST ( NULL AS REAL ) * COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT + - 96 col2 FROM tab2 AS cor0 WHERE + 29 + CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5258
SELECT + - 96 col2 FROM tab2 AS cor0 WHERE + 29 + CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= + 96
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT ALL 85 + COUNT( * ) AS col0, - COUNT( * ) * - - 48 AS col2 FROM tab2
----
88
-144

skipif mysql # not compatible
query II rowsort label-5261
SELECT ALL 85 + COUNT ( * ) AS col0, - COUNT ( * ) * - - 48 AS col2 FROM tab2
----
88
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT + ( - col1 ) DIV - col2 * col1 + ( + 1 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5262
SELECT + ( - col1 ) / - col2 * col1 + ( + 1 ) FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL + MIN( + 74 ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + MIN ( + 74 ) FROM tab2
----
74

query I rowsort
SELECT ALL 74 + - 63 - - + 8 * + 94 * + + ( - + col2 ) * 71 FROM tab1
----
-3150117
-3630645
-5125621

query I rowsort
SELECT DISTINCT + ( + 57 ) + col1 FROM tab1
----
104
62
71

query II rowsort
SELECT + col1 + + col2 AS col0, + 59 AS col1 FROM tab1
----
110
59
115
59
64
59

query I rowsort
SELECT + - col1 * + col1 AS col2 FROM tab1 WHERE NULL BETWEEN ( 87 / + + col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL + ( 38 ) - + - col1 FROM tab2 AS cor0
----
105
115
89

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * - col1 IS NULL
----

query I rowsort
SELECT ALL - col2 - col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 87 * - 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT ALL + CAST( NULL AS SIGNED ) - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL + CAST ( NULL AS INTEGER ) - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - + 12 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5274
SELECT - COUNT( * ) / + - CAST( NULL AS SIGNED ) FROM tab0 WHERE + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT - COUNT ( * ) / + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col2 < NULL
----
NULL

query I rowsort
SELECT + + 8 - - - 17 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL - col1 * - 84 - - - 98 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-14
1666
6706

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT + + SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5278
SELECT + + SUM ( + col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT col1 * col2 + + 86 * 94 AS col1 FROM tab2 AS cor0
----
11164
11970
9257

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 33 IN ( + col0 + - col2 )
----

query I rowsort
SELECT + 57 AS col2 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE - - col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 54 AS col1, 22 AS col1 FROM tab1
----
-54
22
-54
22
-54
22

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= ( + 23 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5285
SELECT + CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5285
SELECT + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab0
----
NULL
3

query I rowsort
SELECT ( 12 ) * col0 FROM tab2
----
552
768
900

query I rowsort
SELECT - col2 * - 33 * + 63 FROM tab1
----
122661
141372
199584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * + - 92 * + col1 + + col0 AS col2 FROM tab1 cor0
----
-123597
-27055
-293941

query II rowsort
SELECT - col1 AS col0, 98 AS col2 FROM tab2 AS cor0
----
-51
98
-67
98
-77
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5291
SELECT DISTINCT - - col2 / 6 * - col0 / col2 + + - CAST( NULL AS DECIMAL ) + ( + + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - - col2 / 6 * - col0 / col2 + + - CAST ( NULL AS REAL ) + ( + + col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT - - col1 AS col1, 97 AS col2 FROM tab2 AS cor0
----
51
97
67
97
77
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5294
SELECT ALL * FROM tab0 WHERE - + 3 > 91 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5294
SELECT ALL * FROM tab0 WHERE - + 3 > 91 - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 <= col1 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT + SUM( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - 68 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT + SUM ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - 68 IS NULL
----
NULL

query II rowsort
SELECT - + col0 + + col2, col2 * + + col0 AS col1 FROM tab1 AS cor0
----
-23
6188
-26
5015
45
4896

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5298
SELECT ALL - col1 DIV CAST( - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5298
SELECT ALL - col1 / CAST ( - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT col0 * + col0 + - col1 + - - 82 FROM tab1 cor0
----
2669
7302
8316

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5300
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5300
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + 72 * - + 23 + + 26 + + - 98 AS col0 FROM tab1 AS cor0
----
-140832
-150768
-84528

query I rowsort
SELECT col2 + + 60 AS col1 FROM tab1 AS cor0
----
119
128
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT - + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
185

query II rowsort
SELECT ALL + 8 AS col2, - col1 * - col1 * - + 54 + col0 FROM tab2
----
8
-140408
8
-242331
8
-320102

query III rowsort
SELECT * FROM tab1 WHERE NULL = - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL SUM( - 19 ) * - + MAX( 2 ) col0 FROM tab0
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5307
SELECT ALL SUM ( - 19 ) * - + MAX ( 2 ) col0 FROM tab0
----
114

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 7 + - - 7 AS col0 FROM tab2
----
14
14
14

query I rowsort
SELECT ALL 1 + 35 FROM tab1
----
36
36
36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > col1
----

query II rowsort
SELECT - - col1 AS col0, col0 - ( col0 ) + + 43 FROM tab1 cor0
----
14
43
47
43
5
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT DISTINCT col2 DIV col2 + + col0 - + 70 FROM tab1 AS cor0
----
-18
16
22

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT col2 / col2 + + col0 - + 70 FROM tab1 AS cor0
----
-18
16
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5314
SELECT * FROM tab0 WHERE NOT - 72 / CAST( 19 AS SIGNED ) + + col2 + - + col1 / col1 * - col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-5314
SELECT * FROM tab0 WHERE NOT - 72 / CAST ( 19 AS INTEGER ) + + col2 + - + col1 / col1 * - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT - CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5315
SELECT - CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT ALL ( - CAST( MAX( DISTINCT col1 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL ( - CAST ( MAX ( DISTINCT col1 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col1 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT - + ( - + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * ( - 48 ) col0 FROM tab0
----
-1776
-1776
-1776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT 12 * - + COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-5321
SELECT 12 * - + COUNT ( * ) FROM tab0
----
-36

query I rowsort
SELECT ALL - 41 * - col0 AS col1 FROM tab0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + MIN( DISTINCT + 60 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5323
SELECT + MIN ( DISTINCT + 60 ) FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL 55 * + - COUNT( * ) * SUM( ALL + + 80 ) AS col0 FROM tab1 AS cor0
----
-39600

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL 55 * + - COUNT ( * ) * SUM ( ALL + + 80 ) AS col0 FROM tab1 AS cor0
----
-39600

query I rowsort
SELECT + col2 * col0 - ( + + col2 ) FROM tab0 AS cor0
----
658
860
9504

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE NOT - 11 / + 74 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + MAX( + + col0 ) + + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-5327
SELECT + MAX ( + + col0 ) + + COUNT ( * ) FROM tab0
----
100

query I rowsort
SELECT ( col1 ) + + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT + - col0 FROM tab2 WHERE - 15 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT SUM( - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5330
SELECT SUM ( - + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - col1 + + 92 FROM tab0 AS cor0 WHERE col0 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 38 FROM tab2 AS cor0 WHERE NOT + col0 * + col1 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 67 * + col0 AS col2 FROM tab1 AS cor0
----
3417
5695
6097

query I rowsort
SELECT ALL + col2 * - - col1 * + - 44 AS col1 FROM tab1 AS cor0
----
-12980
-140624
-59136

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - 52 > + 91 + + col2
----

query II rowsort
SELECT DISTINCT - 72, - col2 AS col2 FROM tab0 AS cor0
----
-72
-10
-72
-47
-72
-99

query I rowsort
SELECT DISTINCT - 74 * col0 * - col2 AS col2 FROM tab0
----
52170
64380
710622

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 * col1 + col0 + + 33 AND - col0 + 46 / col2 * - col2
----

query I rowsort
SELECT ALL + 40 * - col2 FROM tab2
----
-1600
-2320
-920

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 <= + 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + col1 + + 77 FROM tab0
----
518
6638
78

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE + col1 - + + col0 + - col1 + col1 <= col1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT - 4 + + SUM( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
219

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT - 4 + + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
219

query I rowsort
SELECT ( + 66 ) AS col1 FROM tab2
----
66
66
66

query I rowsort
SELECT ALL + 25 FROM tab0 WHERE col2 / col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / + + 75 * - col0 IS NOT NULL
----

query I rowsort
SELECT - + 7 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 / + + 52 IS NULL
----
-7
-7
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-5348
SELECT + 9 col0, col0 DIV + + 10 FROM tab2 AS cor0
----
9
4
9
6
9
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5348
SELECT + 9 col0, col0 / + + 10 FROM tab2 AS cor0
----
9
4
9
6
9
7

query II rowsort
SELECT DISTINCT - 47 AS col1, col2 FROM tab2 AS cor0
----
-47
23
-47
40
-47
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col2 ) col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + ( - - 65 ) AS col2 FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NOT ( ( NULL ) BETWEEN NULL AND - col1 * 30 * + 97 * + col2 + - + 38 - - - 27 * - 1 ) ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT - col1 DIV + + 94 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5353
SELECT - col1 / + + 94 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5354
SELECT + 72 AS col2, COUNT( * ) FROM tab2 AS cor0
----
72
3

skipif mysql # not compatible
query II rowsort label-5354
SELECT + 72 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
72
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col1 FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT COUNT( - 95 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5356
SELECT COUNT ( - 95 ), COUNT ( * ) FROM tab1
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - + 22 AS col1 FROM tab1 WHERE col2 + - col0 IS NOT NULL
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL - 81 * - COUNT( * ) AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL - 81 * - COUNT ( * ) AS col2 FROM tab0
----
243

query I rowsort
SELECT DISTINCT col2 + + - col1 - + col2 AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT DISTINCT - COUNT( col1 ), 91 AS col2 FROM tab0 AS cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-5361
SELECT DISTINCT - COUNT ( col1 ), 91 AS col2 FROM tab0 AS cor0
----
-3
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - - 8 col2 FROM tab1 AS cor0
----
3400
34216
5712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5363
SELECT - - 27 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5363
SELECT - - 27 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - + 1 / - col2 * - ( - - ( col0 ) ) * col2 + + 75 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 74 + col0 FROM tab2 AS cor0
----
120
138
149

query I rowsort
SELECT + col0 * col1 / - col2 AS col0 FROM tab1 cor0 WHERE NULL = 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT + + COUNT( * ) * + ( - - MAX( ALL - col0 ) ) + MIN( col2 ) FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5367
SELECT + + COUNT ( * ) * + ( - - MAX ( ALL - col0 ) ) + MIN ( col2 ) FROM tab0 cor0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT DISTINCT + col2 DIV - + col0 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5368
SELECT DISTINCT + col2 / - + col0 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 7 * + col1 * - col0 FROM tab1
----
2975
29939
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT 64 * - COUNT( * ) AS col2 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-5370
SELECT 64 * - COUNT ( * ) AS col2 FROM tab0
----
-192

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - + 22 / + - col2 * + col0 * col1 / - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0 AS col2, - 87 AS col1 FROM tab0
----
-15
-87
-87
-87
-97
-87

query I rowsort
SELECT DISTINCT 8 * + 21 FROM tab0
----
168

onlyif mysql # DIV for integer division: 
query II rowsort label-5374
SELECT - col2 DIV - - 23, 99 - - col2 AS col1 FROM tab1
----
-2
158
-2
167
-4
195

skipif mysql # not compatible
query II rowsort label-5374
SELECT - col2 / - - 23, 99 - - col2 AS col1 FROM tab1
----
-2
158
-2
167
-4
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + COUNT( * ) - + - 87 AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5375
SELECT + COUNT ( * ) - + - 87 AS col0 FROM tab2
----
90

query I rowsort
SELECT ALL 8 * - col1 FROM tab1 AS cor0
----
-112
-376
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-5377
SELECT col0 AS col1, + 26 DIV + ( - col1 ) AS col0 FROM tab1 cor0
----
51
-1
85
-5
91
0

skipif mysql # not compatible
query II rowsort label-5377
SELECT col0 AS col1, + 26 / + ( - col1 ) AS col0 FROM tab1 cor0
----
51
-1
85
-5
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT COUNT( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - - ( - 3 ) AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-5378
SELECT COUNT ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - - ( - 3 ) AND - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - SUM( ALL + 46 ) col0 FROM tab2 WHERE NOT - - col2 IS NULL
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5379
SELECT - SUM ( ALL + 46 ) col0 FROM tab2 WHERE NOT - - col2 IS NULL
----
-138

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT ( + 18 ) * - 2 + col1 AS col0 FROM tab1
----
-22
-31
11

query I rowsort
SELECT - ( + col1 ) * + col2 - + 56 FROM tab2 AS cor0
----
-1229
-3136
-3942

query I rowsort
SELECT DISTINCT + 3 * - + ( + - col2 ) FROM tab2 AS cor0
----
120
174
69

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL <> col1 * - col1
----

query II rowsort
SELECT ALL - col2 AS col2, - col1 AS col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT + COUNT( * ) / CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + COUNT ( * ) / CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT SUM( - col0 ) * 76 FROM tab0
----
-15124

skipif mysql # not compatible
query I rowsort label-5387
SELECT SUM ( - col0 ) * 76 FROM tab0
----
-15124

query I rowsort
SELECT DISTINCT col1 * + col1 + col1 * - 59 FROM tab1
----
-270
-564
-630

query I rowsort
SELECT DISTINCT + 79 + - col2 FROM tab0
----
-20
32
69

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5390
SELECT + CAST( NULL AS DECIMAL ), + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5390
SELECT + CAST ( NULL AS REAL ), + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - 87 * + 97 + ( - col2 ) FROM tab0
----
-8449
-8486
-8538

query I rowsort
SELECT ALL 82 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + ( - col0 ) * col2 FROM tab0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 13 col0 FROM tab2
----
-299
-520
-754

query I rowsort
SELECT DISTINCT - 8 * col1 AS col0 FROM tab1
----
-112
-376
-40

query III rowsort
SELECT * FROM tab1 WHERE NOT 13 * - 26 + 39 NOT IN ( + 63 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT - col1 * + col2 <= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 14 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT DISTINCT + COUNT( * ) DIV - 57 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + COUNT ( * ) / - 57 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT col1 - col0 DIV - 96 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5401
SELECT col1 - col0 / - 96 AS col1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT 38 DIV - col1 AS col2 FROM tab0
----
-1
-38
0

skipif mysql # not compatible
query I rowsort label-5402
SELECT 38 / - col1 AS col2 FROM tab0
----
-1
-38
0

query I rowsort
SELECT DISTINCT col1 * + col2 + + col1 AS col1 FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5404
SELECT COUNT( * ) DIV 77 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT COUNT ( * ) / 77 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( col0 / col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5406
SELECT ALL - MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) + 89 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - MAX ( DISTINCT + CAST ( NULL AS REAL ) ) + 89 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5407
SELECT * FROM tab1 WHERE NOT - col1 - + col2 NOT BETWEEN NULL AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5407
SELECT * FROM tab1 WHERE NOT - col1 - + col2 NOT BETWEEN NULL AND - CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + col0
----

query I rowsort
SELECT + col2 * 23 AS col1 FROM tab0
----
1081
2277
230

query I rowsort
SELECT ALL col2 + col0 * + col1 FROM tab2 WHERE NULL NOT BETWEEN col2 * + 42 - 25 AND ( 32 )
----

query I rowsort
SELECT ALL col2 + - 5 FROM tab0
----
42
5
94

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab1 WHERE NOT 61 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL + MAX( ALL + col1 ) * - 20 FROM tab0 AS cor0
----
-1620

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + MAX ( ALL + col1 ) * - 20 FROM tab0 AS cor0
----
-1620

query I rowsort
SELECT + col2 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 <= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT - 6 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT - 6 / + col1 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT - MIN( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - MIN ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT CAST( ( + 6 ) AS SIGNED ) FROM tab2
----
6
6
6

skipif mysql # not compatible
query I rowsort label-5418
SELECT CAST ( ( + 6 ) AS INTEGER ) FROM tab2
----
6
6
6

query I rowsort
SELECT 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL ( 18 ) FROM tab2
----
18
18
18

query I rowsort
SELECT 52 * - 84 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 8126c3bcd49d704a0dd2482eef46bcea

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col1 )
----

query I rowsort
SELECT 42 - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
123
43
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 32 * 70 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - - 36 * col1 AS col1 FROM tab1 cor0
----
1692
180
504

query I rowsort
SELECT ALL + 21 AS col1 FROM tab2 cor0
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT + col0 DIV 65 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5427
SELECT + col0 / 65 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL col1 + + 40 FROM tab2 AS cor0 WHERE col2 * - col0 NOT IN ( 32 )
----
107
117
91

query I rowsort
SELECT - 14 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 34 * 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT COUNT( * ) DIV 61 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5431
SELECT COUNT ( * ) / 61 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT - + ( col2 ) DIV 71 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT - + ( col2 ) / 71 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - 38 + 3 FROM tab0
----
-35
-35
-35

query I rowsort
SELECT + col1 + + + col0 + 75 * + 85 FROM tab2
----
6472
6516
6517

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL MAX( + 64 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL MAX ( + 64 ) FROM tab0
----
64

query I rowsort
SELECT DISTINCT + 63 + + + col2 - col1 AS col2 FROM tab2
----
26
35
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT DISTINCT - col0 * col0 col1 FROM tab1 WHERE ( CAST( col0 AS SIGNED ) + col1 ) IN ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5437
SELECT DISTINCT - col0 * col0 col1 FROM tab1 WHERE ( CAST ( col0 AS INTEGER ) + col1 ) IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 + col1 col2 FROM tab1
----
-22
-31
11

query I rowsort
SELECT ALL col1 + 81 FROM tab0 AS cor0 WHERE col1 + col2 / + col0 NOT BETWEEN + 5 AND NULL
----
82

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( col1 + 68 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 - + col1 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT DISTINCT MAX( ALL 86 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
86

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT MAX ( ALL 86 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT ALL - 59 + - COUNT( * ) FROM tab2 WHERE NOT + 17 NOT IN ( - col0 )
----
-59

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - 59 + - COUNT ( * ) FROM tab2 WHERE NOT + 17 NOT IN ( - col0 )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT DISTINCT COUNT( ALL - col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT COUNT ( ALL - col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT + - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-59
-68
-96

query I rowsort
SELECT col2 + + + 39 * col1 FROM tab2 cor0
----
2012
2671
3043

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL COUNT( * ) + 41 + - COUNT( col1 ) col0 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5448
SELECT ALL COUNT ( * ) + 41 + - COUNT ( col1 ) col0 FROM tab1 AS cor0
----
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 99 BETWEEN ( - + 86 * 6 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT DISTINCT - - MIN( ALL + col0 ) + + 85 FROM tab1 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT - - MIN ( ALL + col0 ) + + 85 FROM tab1 AS cor0
----
136

query I rowsort
SELECT DISTINCT - 92 - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-107
-179
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT DISTINCT - col2 DIV col2 col1 FROM tab0 cor0 WHERE col2 DIV + 11 NOT BETWEEN ( + col2 ) AND + 6
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5453
SELECT DISTINCT - col2 / col2 col1 FROM tab0 cor0 WHERE col2 / + 11 NOT BETWEEN ( + col2 ) AND + 6
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT CAST( + - 16 AS SIGNED ) * - col1 + + 78 FROM tab0 AS cor0
----
1374
414
94

skipif mysql # not compatible
query I rowsort label-5454
SELECT CAST ( + - 16 AS INTEGER ) * - col1 + + 78 FROM tab0 AS cor0
----
1374
414
94

query I rowsort
SELECT DISTINCT 1 - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 63 + col1 + - 3 > ( + col1 )
----
-45
-63
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-5456
SELECT - col2, 55 DIV + - col0 AS col1 FROM tab0 AS cor0
----
-10
0
-47
-3
-99
0

skipif mysql # not compatible
query II rowsort label-5456
SELECT - col2, 55 / + - col0 AS col1 FROM tab0 AS cor0
----
-10
0
-47
-3
-99
0

query I rowsort
SELECT DISTINCT - + 11 * 67 - - col2 FROM tab2 AS cor0
----
-679
-697
-714

query II rowsort
SELECT + col0 AS col0, col0 - + 61 FROM tab0 AS cor0
----
15
-46
87
26
97
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT DISTINCT - 49 * + COUNT( * ) - 7 AS col0 FROM tab0
----
-154

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - 49 * + COUNT ( * ) - 7 AS col0 FROM tab0
----
-154

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 NOT IN ( - col2 / - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - + col0 ) + - col0 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + ( - col0 ) - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( + - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 78 <> col1
----

query I rowsort
SELECT DISTINCT + 82 * + ( - col0 ) - + 43 * - ( ( + ( col2 ) ) ) AS col2 FROM tab2 AS cor0
----
-2783
-3528
-3656

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT DISTINCT - 22 + - + COUNT( * ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT - 22 + - + COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-25

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 * + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - + col1 ) ) * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-15

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab2 WHERE ( NULL ) IN ( + col2, 35 * col0 )
----

query I rowsort
SELECT - col1 * - - col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL SUM( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL SUM ( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - col2 * col0 - - 74 FROM tab0 cor0
----
-631
-796
-9529

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT + - 32 * + - COUNT( * ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT + - 32 * + - COUNT ( * ) FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + - COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5476
SELECT + - COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab1 cor0
----
-75

query II rowsort
SELECT 75 AS col2, col0 * + 9 FROM tab0
----
75
135
75
783
75
873

query I rowsort
SELECT 78 * + - col1 FROM tab1
----
-1092
-3666
-390

query I rowsort
SELECT ALL 1 * - 48 AS col2 FROM tab1
----
-48
-48
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5482
SELECT ALL COUNT( * ) + + 21 + + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) - - MIN( ( - col0 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL COUNT ( * ) + + 21 + + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) - - MIN ( ( - col0 ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - col1 NOT BETWEEN - 57 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT COUNT( + 64 ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5484
SELECT COUNT ( + 64 ) FROM tab2, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL + SUM( + col0 ) * 50 + - + COUNT( * ) AS col0 FROM tab2
----
9247

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL + SUM ( + col0 ) * 50 + - + COUNT ( * ) AS col0 FROM tab2
----
9247

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT IN ( 15, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 85 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 85 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT + 65 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5489
SELECT + 65 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT + 17 FROM tab2 cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( - 82 + - col1 * - col1 * - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 82 + - col1 * - col1 * - col1 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * + 69 AS col0 FROM tab1 AS cor0
----
-4071
-4692
-6624

query II rowsort
SELECT DISTINCT col1 * + 60, - col0 + - - col2 AS col0 FROM tab1 AS cor0
----
2820
-23
300
-26
840
45

query I rowsort
SELECT DISTINCT - 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - 35 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5496
SELECT + 87 * - + CAST( + MIN( + col2 ) AS SIGNED ) FROM tab1
----
-5133

skipif mysql # not compatible
query I rowsort label-5496
SELECT + 87 * - + CAST ( + MIN ( + col2 ) AS INTEGER ) FROM tab1
----
-5133

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 24 BETWEEN - + 33 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT - ( + COUNT( * ) ) * - 70 AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-5498
SELECT - ( + COUNT ( * ) ) * - 70 AS col2 FROM tab2
----
210

query II rowsort
SELECT ALL col1 - - 47, 88 * - - col2 AS col1 FROM tab2 AS cor0
----
114
5104
124
3520
98
2024

query I rowsort
SELECT + 11 * - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-561
-737
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL + MAX( - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + MAX ( - - col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) <> ( - 95 )
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL + MIN( ALL + 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + MIN ( ALL + 75 ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL SUM( - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL SUM ( - col0 ) AS col0 FROM tab0
----
-199

query II rowsort
SELECT + col0, + 85 FROM tab2
----
46
85
64
85
75
85

query I rowsort
SELECT + 27 * + col1 FROM tab0
----
2187
27
567

query I rowsort
SELECT - ( + 63 ) FROM tab1
----
-63
-63
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5510
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE - col1 <> - CAST( - col0 AS DECIMAL )
----
3

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE - col1 <> - CAST ( - col0 AS REAL )
----
3

query III rowsort
SELECT * FROM tab2 WHERE col0 >= - col0 OR + - col0 NOT BETWEEN NULL AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col1 AS col1, ( - + col2 ) * col2 * + col1 AS col0 FROM tab1 AS cor0
----
-14
-129024
-47
-217328
-5
-17405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT - + CAST( - 50 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-5513
SELECT - + CAST ( - 50 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + SUM( - 36 ) * - + 58 AS col0 FROM tab2
----
6264

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + SUM ( - 36 ) * - + 58 AS col0 FROM tab2
----
6264

query I rowsort
SELECT ALL + 61 AS col0 FROM tab0 WHERE ( NOT 12 * + + col0 + - 16 IS NOT NULL )
----

query I rowsort
SELECT ALL + ( + col2 ) * + col1 AS col0 FROM tab1
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col1 * - col0
----

query I rowsort
SELECT + 8 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
8
8
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT + 8 DIV - 34 + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5519
SELECT + 8 / - 34 + - COUNT ( * ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * + - col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + 36 * + 13 FROM tab0
----
468
468
468

query I rowsort
SELECT col2 * - + 69 AS col2 FROM tab0
----
-3243
-6831
-690

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT ALL + ( col2 ) + + + col2 DIV col2 AS col1 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + ( col2 ) + + + col2 / col2 AS col1 FROM tab2 AS cor0
----
24
41
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 - col0 + + col1 - - - 31 col2 FROM tab1 AS cor0
----
-14
22
29

query I rowsort
SELECT 70 * - ( - 78 ) AS col2 FROM tab1 cor0
----
5460
5460
5460

query I rowsort
SELECT ALL + 68 * + 17 + - 99 FROM tab0 AS cor0
----
1057
1057
1057

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 28 / col1 IS NULL OR + 62 IS NULL
----

query II rowsort
SELECT - - col1 AS col1, - col1 FROM tab0 WHERE - - col0 IS NULL
----

query I rowsort
SELECT ALL + 30 + + - col0 AS col2 FROM tab2
----
-16
-34
-45

query I rowsort
SELECT + ( - + col2 ) + col0 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 - - - 48 * + col0 > NULL
----

query I rowsort
SELECT + ( - 67 ) * col1 FROM tab1 cor0
----
-3149
-335
-938

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT - COUNT( * ) col1, 22 AS col1 FROM tab2 AS cor0
----
-3
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5535
SELECT - COUNT ( * ) col1, 22 AS col1 FROM tab2 AS cor0
----
-3
22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5536
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( 45 / - CAST( NULL AS DECIMAL ) / - col1 )
----

skipif mysql # not compatible
query III rowsort label-5536
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( 45 / - CAST ( NULL AS REAL ) / - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( col0 + + 24 * - col2 )
----

query II rowsort
SELECT - 58 AS col0, - col2 FROM tab1 AS cor0
----
-58
-59
-58
-68
-58
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 78 <= + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - ( 25 ) FROM tab0 AS cor0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-5542
SELECT + COUNT( * ) * + + 40 AS col0, - SUM( DISTINCT - + 98 ) FROM tab2
----
120
98

skipif mysql # not compatible
query II rowsort label-5542
SELECT + COUNT ( * ) * + + 40 AS col0, - SUM ( DISTINCT - + 98 ) FROM tab2
----
120
98

query II rowsort
SELECT - col2 * + col0 AS col0, 27 * - 43 + + col0 AS col0 FROM tab2
----
-1058
-1115
-2560
-1097
-4350
-1086

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT - ( - SUM( DISTINCT col0 ) ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT - ( - SUM ( DISTINCT col0 ) ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - - col0 * 10 + + + col0 FROM tab0 AS cor0
----
1067
165
957

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL + SUM( - - col2 ) AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + SUM ( - - col2 ) AS col0 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT + 42 + + COUNT( * ) col0 FROM tab1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5547
SELECT + 42 + + COUNT ( * ) col0 FROM tab1
----
45

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab2 WHERE - col0 * - col0 / col2 * + 58 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT - 93 AS col0, 25 * 62 AS col1 FROM tab1
----
-93
1550
-93
1550
-93
1550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab2 cor0
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ALL - 38 * - col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 74 + col1 * 55 AS col1 FROM tab1 AS cor0
----
2659
349
844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5554
SELECT - COUNT( * ) DIV + + 14 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT - COUNT ( * ) / + + 14 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + col1 + col0 * + 8 + + + 12 - + ( - + 38 ) * + + col2 FROM tab0 AS cor0
----
1109
1999
4551

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query II rowsort
SELECT DISTINCT + col0 * - - col2, col0 FROM tab1
----
4896
51
5015
85
6188
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab2 WHERE + ( + ( + + col2 ) ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT - MAX( ( 59 ) ) + - MIN( + col0 ) FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - MAX ( ( 59 ) ) + - MIN ( + col0 ) FROM tab2
----
-105

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 91 + + ( - col2 ) < ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - 31 ) + col1 + + - ( + - col1 ) FROM tab1 cor0
----
125
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT DISTINCT - col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - col2 / + col1 AS col2 FROM tab0 AS cor0
----
-99
0

query I rowsort
SELECT col1 * + 22 FROM tab1
----
1034
110
308

query I rowsort
SELECT DISTINCT + - col1 * - + col2 + - col1 AS col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT ALL + + col2 * - 12 FROM tab0 AS cor0
----
-1188
-120
-564

query I rowsort
SELECT DISTINCT 29 * - - col2 + - 86 * - col2 + - - 2 + 77 AS col0 FROM tab2 AS cor0
----
2724
4679
6749

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT ALL + col2 DIV 66 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + col2 / 66 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 6 * - - col2 AS col0 FROM tab2 AS cor0
----
138
240
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5569
SELECT DISTINCT - MAX( + 18 ) DIV - CAST( MAX( - + col0 ) AS SIGNED ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT - MAX ( + 18 ) / - CAST ( MAX ( - + col0 ) AS INTEGER ) FROM tab0
----
-1

query II rowsort
SELECT col1, 15 - - col0 FROM tab0
----
1
112
21
102
81
30

query II rowsort
SELECT col1, - 95 * - col1 FROM tab0
----
1
95
21
1995
81
7695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col2 FROM tab2
----
60
60
60

query II rowsort
SELECT col2 AS col0, col0 * col0 FROM tab2
----
23
2116
40
4096
58
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - col2 col0 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT DISTINCT + col1 * + CAST( - 11 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-11
-231
-891

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT + col1 * + CAST ( - 11 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT ALL - ( + 78 ) DIV 87 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - ( + 78 ) / 87 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT + CAST( NULL AS SIGNED ) / - + CAST( + 29 AS SIGNED ) * - - ( + CAST( + col2 AS SIGNED ) ) * - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT + CAST ( NULL AS INTEGER ) / - + CAST ( + 29 AS INTEGER ) * - - ( + CAST ( + col2 AS INTEGER ) ) * - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT + SUM( ALL + 67 ) AS col1 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5578
SELECT + SUM ( ALL + 67 ) AS col1 FROM tab0 AS cor0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT - + 59 + COUNT( * ) FROM tab0 cor0 WHERE NOT ( col1 ) <= ( NULL )
----
-59

skipif mysql # not compatible
query I rowsort label-5579
SELECT - + 59 + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( col1 ) <= ( NULL )
----
-59

query I rowsort
SELECT + ( + 40 ) AS col1 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ( + MIN( ALL - 79 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
-79

skipif mysql # not compatible
query I rowsort label-5581
SELECT ( + MIN ( ALL - 79 ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT ALL 33 DIV 55 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL 33 / 55 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col0 * + col2 / - 6
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( col1 ) + - col0 + - col1 - + - col1
----

query I rowsort
SELECT ALL 19 + - ( - - col1 ) FROM tab0 AS cor0
----
-2
-62
18

query I rowsort
SELECT - - 92 + + 27 AS col2 FROM tab0 AS cor0
----
119
119
119

query I rowsort
SELECT DISTINCT + col0 + + 55 FROM tab2 AS cor0
----
101
119
130

query I rowsort
SELECT ALL + 3 + col1 * - col2 FROM tab2 AS cor0
----
-1170
-3077
-3883

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * col1 < + + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + col0 ) + col2 * ( + + col2 ) NOT IN ( - 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 - col2 - + - col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL - ( - 57 ) AS col1 FROM tab2 WHERE NOT NULL > - ( - 96 ) + + + 76
----

query I rowsort
SELECT - - col1 * + col1 + 51 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0 AS col2, ( ( col0 ) ) AS col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - + col2 - col1 + - col2 FROM tab1 WHERE + 71 <= + ( col2 )
----
-206

query I rowsort
SELECT ( - - ( - 19 ) ) AS col2 FROM tab2 WHERE 19 <= - + col1
----

query I rowsort
SELECT + + col1 - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 - + 31 FROM tab0 AS cor0
----
-130
-41
-78

query I rowsort
SELECT + + 9 * - 71 - col0 AS col0 FROM tab1 AS cor0
----
-690
-724
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 * col1 col1, col1 FROM tab0 AS cor0
----
-210
21
-3807
81
-99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5601
SELECT DISTINCT - ( COUNT( * ) ), 39 AS col0 FROM tab0 AS cor0
----
-3
39

skipif mysql # not compatible
query II rowsort label-5601
SELECT DISTINCT - ( COUNT ( * ) ), 39 AS col0 FROM tab0 AS cor0
----
-3
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT DISTINCT + 48 * 28 DIV - col2 AS col1 FROM tab2 AS cor0
----
-23
-33
-58

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + 48 * 28 / - col2 AS col1 FROM tab2 AS cor0
----
-23
-33
-58

query II rowsort
SELECT ALL + col1 AS col0, - col2 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND col0
----

query I rowsort
SELECT col0 * + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
-3375
-658503
-912673

query I rowsort
SELECT DISTINCT - 79 * + col0 FROM tab2 AS cor0
----
-3634
-5056
-5925

query I rowsort
SELECT 21 * + col1 * - + col2 FROM tab0 AS cor0
----
-2079
-4410
-79947

query I rowsort
SELECT DISTINCT col1 * - - col0 AS col0 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 31 / + col2 + + - 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT + + MIN( DISTINCT - ( - - col1 ) ) FROM tab0 WHERE NOT - - col1 IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-5611
SELECT + + MIN ( DISTINCT - ( - - col1 ) ) FROM tab0 WHERE NOT - - col1 IS NULL
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT - COUNT( * ) AS col1, + 97 FROM tab2
----
-3
97

skipif mysql # not compatible
query II rowsort label-5612
SELECT - COUNT ( * ) AS col1, + 97 FROM tab2
----
-3
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT col2 * 85 * + ( col0 ) AS col1 FROM tab2
----
217600
369750
89930

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5615
SELECT + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 47 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT + COUNT( * ) * - 74 AS col0 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT + COUNT ( * ) * - 74 AS col0 FROM tab2
----
-222

query I rowsort
SELECT - col1 + col0 + - col2 * + + col2 AS col0 FROM tab2
----
-1613
-3356
-534

query III rowsort
SELECT * FROM tab2 WHERE col0 * ( 33 ) + col1 + - + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col1 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + ( + col1 ) + - col2 + + 61 + - col2 + 25 + - col2 + col1 * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL + 65 + + - MIN( DISTINCT - col1 ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
-178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5622
SELECT ALL + 65 + + - MIN ( DISTINCT - col1 ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col0 + col2 FROM tab1 cor0
----
51
147
85
144
91
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT ALL CAST( col1 AS SIGNED ) - + col1 + - 85 AS col1 FROM tab1
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL CAST ( col1 AS INTEGER ) - + col1 + - 85 AS col1 FROM tab1
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT COUNT( * ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5625
SELECT COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + + col1 * + 5 + + - col2 col2 FROM tab2
----
314
359
427

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL - MAX( ALL + - col0 ) + - 96 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - MAX ( ALL + - col0 ) + - 96 FROM tab1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT + 68 AS col1 FROM tab0 AS cor0 WHERE + CAST( col0 AS SIGNED ) IS NOT NULL
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5628
SELECT + 68 AS col1 FROM tab0 AS cor0 WHERE + CAST ( col0 AS INTEGER ) IS NOT NULL
----
68
68
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL - MAX( DISTINCT ( + 60 ) ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - MAX ( DISTINCT ( + 60 ) ) AS col2 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT + - 47 * + 95 AS col1 FROM tab2 AS cor0
----
-4465
-4465
-4465

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + MAX( - col1 ) * + COUNT( * ) + + COUNT( * ) * 17 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-5632
SELECT + MAX ( - col1 ) * + COUNT ( * ) + + COUNT ( * ) * 17 FROM tab0
----
48

query I rowsort
SELECT + 97 * + 52 + - + col2 * - - col1 + + 71 + 61 FROM tab0 AS cor0 WHERE NOT - 54 + col0 IS NULL
----
1369
4966
5077

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - 76 * - - 44 AND + - ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5635
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 / + - CAST( + - 77 AS SIGNED ) * - - ( CAST( NULL AS SIGNED ) ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5635
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 / + - CAST ( + - 77 AS INTEGER ) * - - ( CAST ( NULL AS INTEGER ) ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL + - COUNT( DISTINCT col0 )