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 ) AS col0 FROM tab2 AS cor0
----
-3

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

query I rowsort
SELECT - col0 * 19 AS col0 FROM tab1 AS cor0
----
-1615
-1729
-969

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT + SUM( DISTINCT - 43 ) AS col0 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + SUM ( DISTINCT - 43 ) AS col0 FROM tab1 AS cor0
----
-43

query II rowsort
SELECT ALL col2, 25 * - col2 AS col0 FROM tab0 AS cor0
----
10
-250
47
-1175
99
-2475

query I rowsort
SELECT ALL + 1 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 < col1 - + - 19
----
15
48
6

query I rowsort
SELECT DISTINCT - - 60 * + + col2 FROM tab0 AS cor0
----
2820
5940
600

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT - COUNT( * ) + 31 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5643
SELECT - COUNT ( * ) + 31 FROM tab0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + - + col2 * - col2 + + - col1 col0 FROM tab1
----
3530
4631
9256

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - COUNT( * ) + - - 83 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5646
SELECT - COUNT ( * ) + - - 83 FROM tab2
----
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT - CAST( NULL AS SIGNED ) + + AVG ( + col1 ) AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT ALL col2 * + + col0 * + 35 FROM tab1
----
171360
175525
216580

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL <> col1 * - col2 * + + 92 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col1 ) + - col1 col2 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT 91 * col0 * 67 AS col0 FROM tab2 AS cor0
----
280462
390208
457275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5653
SELECT DISTINCT - ( - CAST( - col1 AS DECIMAL ) ) FROM tab0 AS cor0 WHERE NOT + col2 * + 87 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT - ( - CAST ( - col1 AS REAL ) ) FROM tab0 AS cor0 WHERE NOT + col2 * + 87 IS NOT NULL
----

query I rowsort
SELECT ( + + ( + col2 ) ) * - - 14 + col1 + + 92 FROM tab2 AS cor0
----
465
729
971

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL - - COUNT( - 9 ) * + 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
594

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL - - COUNT ( - 9 ) * + 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - 13 + + - COUNT( * ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 13 + + - COUNT ( * ) FROM tab1
----
-16

query II rowsort
SELECT ALL 47 AS col0, 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 26 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL + - col1 * + col0 - + + 71 * 64 FROM tab2 AS cor0
----
-6890
-9472
-9569

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

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

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

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

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL >= + - col2 * + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT BETWEEN - 41 * - 88 AND + 34
----

query II rowsort
SELECT - ( - - col0 ), + 5 * - 28 * + col1 + + col0 + - 5 AS col1 FROM tab1 WHERE NULL <> - - col1 / + ( - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-5667
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
9

query II rowsort
SELECT + col0, + col0 * + col2 FROM tab2
----
46
1058
64
2560
75
4350

query I rowsort
SELECT - + col2 + + - 20 * 54 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1139
-1148
-1176

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT - COUNT( * ) AS col0, + 86 AS col2 FROM tab0 cor0
----
-3
86

skipif mysql # not compatible
query II rowsort label-5670
SELECT - COUNT ( * ) AS col0, + 86 AS col2 FROM tab0 cor0
----
-3
86

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

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

query I rowsort
SELECT + col0 * col2 + + - col1 AS col2 FROM tab0 cor0
----
624
849
9602

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT DISTINCT MIN( + ( - 9 ) ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT MIN ( + ( - 9 ) ) AS col1 FROM tab0 AS cor0
----
-9

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <= + 54
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT ALL - col1 * 66 DIV + 7 FROM tab0
----
-198
-763
-9

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL - col1 * 66 / + 7 FROM tab0
----
-198
-763
-9

query I rowsort
SELECT DISTINCT ( + col0 ) + + - col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT DISTINCT - 43 * - COUNT( * ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - 43 * - COUNT ( * ) FROM tab2
----
129

query I rowsort
SELECT ALL col0 + 43 AS col0 FROM tab1
----
128
134
94

query I rowsort
SELECT + col0 + - 99 + + 47 AS col2 FROM tab0 WHERE + + col0 * + + col0 - + col1 IS NOT NULL
----
-37
35
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT DISTINCT + col2 * 38 - - 54 DIV ( - ( - col1 ) ) + + + col1 AS col2 FROM tab2 AS cor0
----
1597
2271
926

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT + col2 * 38 - - 54 / ( - ( - col1 ) ) + + + col1 AS col2 FROM tab2 AS cor0
----
1597
2271
926

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5686
SELECT * FROM tab1 WHERE + + 51 NOT IN ( - CAST( NULL AS SIGNED ), - ( - 95 ) * col2 * 60 - - - col1 * - 93 + + + col1 + + - col0, - + col0 * - + col1, col2, - - col2 - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5686
SELECT * FROM tab1 WHERE + + 51 NOT IN ( - CAST ( NULL AS INTEGER ), - ( - 95 ) * col2 * 60 - - - col1 * - 93 + + + col1 + + - col0, - + col0 * - + col1, col2, - - col2 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL COUNT( * ) * - 77 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL COUNT ( * ) * - 77 FROM tab1
----
-231

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 17 FROM tab0 cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5690
SELECT DISTINCT col1 DIV col1 + + col1 + col1 + col2 FROM tab2 AS cor0
----
126
193
195

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT col1 / col1 + + col1 + col1 + col2 FROM tab2 AS cor0
----
126
193
195

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT ALL + col0 + - - col1 DIV - col1 FROM tab2 cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL + col0 + - - col1 / - col1 FROM tab2 cor0
----
45
63
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT ALL - 15 DIV - 21 - + MIN( ALL - + 78 ) + + COUNT( - col1 ) * + ( COUNT( * ) ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - 15 / - 21 - + MIN ( ALL - + 78 ) + + COUNT ( - col1 ) * + ( COUNT ( * ) ) FROM tab0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT ALL + 37 DIV + - col1 AS col2 FROM tab0
----
-1
-37
0

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + 37 / + - col1 AS col2 FROM tab0
----
-1
-37
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT CAST( NULL AS SIGNED ) * 53 * - - 57 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT CAST ( NULL AS INTEGER ) * 53 * - - 57 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL - 56 * - + 19 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3192

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - 56 * - + 19 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col0 AS col0 FROM tab2
----
51
46
67
75
77
64

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

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

query II rowsort
SELECT ALL + col0, col1 * - + col2 AS col2 FROM tab2 AS cor0
----
46
-1173
64
-3080
75
-3886

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

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

query I rowsort
SELECT DISTINCT + - 58 AS col2 FROM tab1 AS cor0
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT + 38 + + SUM( - + col2 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5705
SELECT + 38 + + SUM ( - + col2 ) FROM tab2 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT 82 + + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT 82 + + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 74 * col0 + - col0 FROM tab0
----
1095
6351
7081

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5709
SELECT ALL CAST( NULL AS SIGNED ) + col1 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5709
SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT ( ( COUNT( * ) ) ) AS col2, 78 col2 FROM tab0 AS cor0
----
3
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5711
SELECT ( ( COUNT ( * ) ) ) AS col2, 78 col2 FROM tab0 AS cor0
----
3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL + ( + COUNT( * ) ) - - 51 * - 61 FROM tab2 AS cor0
----
-3108

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + ( + COUNT ( * ) ) - - 51 * - 61 FROM tab2 AS cor0
----
-3108

query I rowsort
SELECT 71 - - 92 * + col0 FROM tab0 AS cor0
----
1451
8075
8995

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

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

query II rowsort
SELECT - col1 + col0 + col1 AS col1, + col1 * + col1 - col1 AS col0 FROM tab0 AS cor0
----
15
6480
87
420
97
0

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 29 * - - col1 FROM tab0 AS cor0
----
2349
29
609

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT DISTINCT - 39 * - COUNT( + col0 ) FROM tab0 cor0
----
117

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT - 39 * - COUNT ( + col0 ) FROM tab0 cor0
----
117

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, col0 * - 50 AS col0 FROM tab1 AS cor0
----
59
-4250
68
-4550
96
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT 29 * COUNT( * ) AS col2 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-5728
SELECT 29 * COUNT ( * ) AS col2 FROM tab1
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT COUNT( * ) * - - 28 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5730
SELECT COUNT ( * ) * - - 28 FROM tab2 AS cor0
----
84

query II rowsort
SELECT + col0 * + 39 AS col1, - col0 FROM tab0 AS cor0
----
3393
-87
3783
-97
585
-15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + col1 NOT BETWEEN + col0 * - col2 AND + col0 * - col2 * + col0 - + 40 / ( + - 14 )
----

query I rowsort
SELECT DISTINCT - - 56 AS col0 FROM tab0 AS cor0
----
56

query I rowsort
SELECT DISTINCT + col2 + - + 64 FROM tab2 AS cor0
----
-24
-41
-6

query I rowsort
SELECT DISTINCT + col1 + + 10 FROM tab1 AS cor0
----
15
24
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5736
SELECT DISTINCT - SUM( - col1 ) DIV COUNT( 30 ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - SUM ( - col1 ) / COUNT ( 30 ) FROM tab0 AS cor0
----
34

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

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

query I rowsort
SELECT ALL 17 * - col2 * - - 3 AS col2 FROM tab0 AS cor0
----
-2397
-5049
-510

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 / - - col1 NOT IN ( - 1 + col2, col2 + - col0 * + col2, - col2, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 / - - col1 NOT IN ( - 1 + col2, col2 + - col0 * + col2, - col2, col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT DISTINCT + - ( + 61 ) + 91 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 32 * 45 * - CAST( NULL AS SIGNED ) * - 66 * + + 41 = NULL
----

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + - ( + 61 ) + 91 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 32 * 45 * - CAST ( NULL AS INTEGER ) * - 66 * + + 41 = NULL
----

query I rowsort
SELECT + 75 + col1 FROM tab2 WHERE + col2 IS NOT NULL
----
126
142
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT ALL + CAST( NULL AS SIGNED ) * + + 56 * 52 + + - AVG ( 72 ) col0 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5744
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 56 * 52 + + - AVG ( 72 ) col0 FROM tab2, tab1 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - + col1 col1 FROM tab2
----
-612
-804
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + 48 * - 27 col0 FROM tab1
----
-1202
-1268
-1286

query I rowsort
SELECT ALL - 78 * - 66 - + + 57 + + col2 AS col1 FROM tab1 WHERE NOT 3 IS NOT NULL
----

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

query I rowsort
SELECT - 10 + - 59 * - col1 * - 96 FROM tab2
----
-288874
-379498
-436138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 57 + + - col1 col1 FROM tab0
----
-9
123
153

query I rowsort
SELECT - + 15 + - col0 AS col1 FROM tab1 AS cor0
----
-100
-106
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT + ( COUNT( * ) ) + - + COUNT( ALL 2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + ( COUNT ( * ) ) + - + COUNT ( ALL 2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 * - 30 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2430
-30
-630

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

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

query I rowsort
SELECT ALL 52 - - col2 AS col1 FROM tab0 AS cor0
----
151
62
99

query I rowsort
SELECT + col0 * - - col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5758
SELECT CAST( MIN( + + 11 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT CAST ( MIN ( + + 11 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + MIN( DISTINCT ( + + col2 ) ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5759
SELECT + MIN ( DISTINCT ( + + col2 ) ) FROM tab2 cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 54 * col1 + + col2 >= col2 + col0
----

query I rowsort
SELECT + col1 * - + 7 FROM tab2
----
-357
-469
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + - 59 - - COUNT( * ) col1 FROM tab0 WHERE NOT + 64 IS NULL
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5762
SELECT + - 59 - - COUNT ( * ) col1 FROM tab0 WHERE NOT + 64 IS NULL
----
-56

query II rowsort
SELECT + 60 AS col1, + col0 + - 87 FROM tab0
----
60
-72
60
0
60
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT COUNT( * ) * - + COUNT( + col2 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5764
SELECT COUNT ( * ) * - + COUNT ( + col2 ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT ( - - COUNT( * ) ) AS col2 FROM tab2 WHERE NOT + 44 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT ( - - COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT + 44 <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT + COUNT( - col1 ) FROM tab2 WHERE NOT NULL > + col0 * col2 + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5766
SELECT + COUNT ( - col1 ) FROM tab2 WHERE NOT NULL > + col0 * col2 + CAST ( NULL AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 * 9 col0 FROM tab2
----
-585
-585
-585

query I rowsort
SELECT ALL - 60 * col0 FROM tab1
----
-3060
-5100
-5460

query I rowsort
SELECT DISTINCT + col0 * - - col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL 59 * - + col0 * + 14 + + col0 FROM tab1 cor0
----
-42075
-70125
-75075

query II rowsort
SELECT - - col1 AS col1, col1 * 39 FROM tab1 AS cor0
----
14
546
47
1833
5
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT ALL + 17 + col1 + + col1 - + CAST( NULL AS SIGNED ) * + col1 - - 19 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-5772
SELECT ALL + 17 + col1 + + col1 - + CAST ( NULL AS INTEGER ) * + col1 - - 19 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT - col2 * - - 45 + - col0 + col1, + col1 AS col2 FROM tab2 AS cor0
----
-1030
51
-1787
77
-2618
67

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5775
SELECT + col1 col0 FROM tab1 AS cor0 WHERE ( - CAST ( col1 AS INTEGER ) ) + - ( - - col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 3 ) + - col0 col2 FROM tab1 cor0
----
-48
-82
-88

query I rowsort
SELECT col1 + + 8 + - col0 FROM tab2 AS cor0
----
0
13
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT ALL + - 51 - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) + + 29 AND - 34
----

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL + - 51 - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) + + 29 AND - 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT + 56 DIV - col1 + + col2 AS col2 FROM tab1 AS cor0
----
48
67
92

skipif mysql # not compatible
query I rowsort label-5779
SELECT + 56 / - col1 + + col2 AS col2 FROM tab1 AS cor0
----
48
67
92

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

query I rowsort
SELECT + col0 + - 64 * col0 + col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-5471
-6012
-898

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

query III rowsort
SELECT * FROM tab1 WHERE + - col1 BETWEEN col0 + - + 98 / ( + + 42 ) AND NULL
----

query I rowsort
SELECT ALL - 27 FROM tab2 WHERE - 46 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 84 + + col2 = col1 + - + ( + col2 ) * + col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * 30 * 6 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT MIN( + 18 ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5788
SELECT MIN ( + 18 ) AS col2 FROM tab0
----
18

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) - - col0 AS col0 FROM tab1 AS cor0
----
37
44
80

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

query I rowsort
SELECT ALL col0 - + - col1 AS col1 FROM tab0 cor0
----
108
96
98

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE 41 IS NULL
----

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

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

query I rowsort
SELECT - + col2 * - 90 FROM tab2 AS cor0
----
2070
3600
5220

query I rowsort
SELECT ALL col0 + col1 + + + 45 * - col0 * - - 91 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 + + - 66 FROM tab0 AS cor0
----
15
-51
87
21
97
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL - MIN( ALL - 73 ) * - 83 FROM tab0 AS cor0
----
-6059

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - MIN ( ALL - 73 ) * - 83 FROM tab0 AS cor0
----
-6059

query II rowsort
SELECT DISTINCT col2 AS col1, col2 - - + ( + 4 ) FROM tab2 AS cor0
----
23
27
40
44
58
62

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 92 / - col0 > + - 83 / + - 73
----
87
21
10
97
1
99

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

query I rowsort
SELECT + 31 * - col2 * + col2 AS col1 FROM tab0
----
-303831
-3100
-68479

query I rowsort
SELECT ALL - col0 * - 10 AS col0 FROM tab1
----
510
850
910

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5803
SELECT DISTINCT - 99 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT - 99 * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL ( - col2 ) * 41 * - - 51 FROM tab1
----
-123369
-142188
-200736

query I rowsort
SELECT + col0 * 74 * col0 * - col0 FROM tab2
----
-19398656
-31218750
-7202864

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT DISTINCT 99 * - COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT 99 * - COUNT ( * ) FROM tab0
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5807
SELECT ALL - 44 DIV - COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL - 44 / - COUNT ( * ) FROM tab0 AS cor0
----
14

query I rowsort
SELECT ALL - - 37 AS col1 FROM tab1 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab1 cor0 WHERE NOT - col2 / + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab1 cor0 WHERE NOT - col2 / + col0 IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL + MAX( ALL - 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL + MAX ( ALL - 45 ) FROM tab2
----
-45

query I rowsort
SELECT DISTINCT - 95 * - col0 AS col0 FROM tab0
----
1425
8265
9215

query II rowsort
SELECT + - col1, - col2 * - col0 AS col1 FROM tab0 AS cor0
----
-1
9603
-21
870
-81
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5814
SELECT CAST( + MIN( DISTINCT 30 ) AS SIGNED ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5814
SELECT CAST ( + MIN ( DISTINCT 30 ) AS INTEGER ) FROM tab1 AS cor0
----
30

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 / - 89 * - ( + - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT DISTINCT col2 * col1 + + + col2 DIV - 46 FROM tab0 cor0
----
210
3806
97

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT col2 * col1 + + + col2 / - 46 FROM tab0 cor0
----
210
3806
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL MAX( DISTINCT + + 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
98

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL MAX ( DISTINCT + + 98 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
98

query I rowsort
SELECT ALL 3 * col0 AS col2 FROM tab2
----
138
192
225

query I rowsort
SELECT DISTINCT - 99 * - 38 FROM tab2
----
3762

query I rowsort
SELECT ALL col2 * + + ( - - 63 ) AS col0 FROM tab2
----
1449
2520
3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT - 18 + - + CAST( + 50 AS SIGNED ) + - + 87 FROM tab1
----
-155
-155
-155

skipif mysql # not compatible
query I rowsort label-5823
SELECT - 18 + - + CAST ( + 50 AS INTEGER ) + - + 87 FROM tab1
----
-155
-155
-155

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5825
SELECT ALL - COUNT( * ) * - - 45 / CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - MIN( - 99 ) AS col1 FROM tab1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-5825
SELECT ALL - COUNT ( * ) * - - 45 / CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - MIN ( - 99 ) AS col1 FROM tab1
----
NULL
99

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

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

query I rowsort
SELECT ALL - 9 AS col0 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT + col1 + + ( - - 0 ) FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT 91 + + MIN( ALL - col0 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-5829
SELECT 91 + + MIN ( ALL - col0 ) FROM tab0
----
-6

query I rowsort
SELECT DISTINCT - - col2 - - - col0 + - 31 + - col0 * col2 - - - col1 FROM tab0 AS cor0
----
-785
-9633
-999

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT + MIN( - ( - col0 ) ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT + MIN ( - ( - col0 ) ) FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT + 51 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE + 37 <= + 87
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT 47 * - COUNT( * ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-5833
SELECT 47 * - COUNT ( * ) FROM tab2
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT ALL 3 DIV + + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL 3 / + + col0 AS col1 FROM tab1
----
0
0
0

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + 88 AS col2 FROM tab1 AS cor0 WHERE NOT col2 >= + 63
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT - 8 DIV + 57 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5842
SELECT - 8 / + 57 FROM tab0
----
0
0
0

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - 76, + col1, + + 23 )
----

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

query I rowsort
SELECT DISTINCT - 70 + 36 AS col0 FROM tab2
----
-34

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

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - + CAST ( NULL AS REAL ) + ( + 16 ) FROM tab1 cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT 27 * + ( - - col1 ) AS col1 FROM tab0
----
2187
27
567

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT 86 + - + COUNT( * ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5853
SELECT 86 + - + COUNT ( * ) FROM tab2 AS cor0
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5854
SELECT DISTINCT - + ( CAST( NULL AS DECIMAL ) ) * 19, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5854
SELECT DISTINCT - + ( CAST ( NULL AS REAL ) ) * 19, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + 94 + + 1 col1 FROM tab1 AS cor0
----
-4793
-7989
-8553

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

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT ALL 27 DIV col0 * + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL 27 / col0 * + col0 AS col1 FROM tab2
----
0
0
0

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

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

query II rowsort
SELECT ALL + - 4, col1 FROM tab2 AS cor0
----
-4
51
-4
67
-4
77

onlyif mysql # DIV for integer division: 
query II rowsort label-5861
SELECT DISTINCT + ( - 29 ) DIV - 3, + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
9
-1

skipif mysql # not compatible
query II rowsort label-5861
SELECT DISTINCT + ( - 29 ) / - 3, + col0 / - col0 AS col0 FROM tab0 AS cor0
----
9
-1

query I rowsort
SELECT - col0 FROM tab2 WHERE ( - 86 * 93 ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 66 - + 54 FROM tab2 WHERE NOT - 45 + + 51 IN ( + col2 * col0 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5864
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( ( + col1 ) ) / col2 + col1 ) <= ( CAST( 39 AS SIGNED ) )
----
91
47
68

skipif mysql # not compatible
query III rowsort label-5864
SELECT DISTINCT * FROM tab1 WHERE NOT ( - ( ( + col1 ) ) / col2 + col1 ) <= ( CAST ( 39 AS INTEGER ) )
----
91
47
68

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

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

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

query I rowsort
SELECT ALL + col0 - + ( col1 + - col0 ) AS col1 FROM tab1
----
135
165
88

query I rowsort
SELECT 16 FROM tab0 WHERE NULL IS NULL
----
16
16
16

query I rowsort
SELECT + ( 11 ) AS col1 FROM tab2
----
11
11
11

query I rowsort
SELECT DISTINCT col2 - col0 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * 16 AS col2 FROM tab0 WHERE col2 * col2 IS NOT NULL
----
1584
160
752

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE ( - col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT CAST( col1 AS SIGNED ) FROM tab2 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-5873
SELECT CAST ( col1 AS INTEGER ) FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT DISTINCT 85 * - COUNT( * ) FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT 85 * - COUNT ( * ) FROM tab1
----
-255

query I rowsort
SELECT + 13 - col2 FROM tab1
----
-46
-55
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5876
SELECT DISTINCT + 36 * CAST( 6 AS SIGNED ) AS col0 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT + 36 * CAST ( 6 AS INTEGER ) AS col0 FROM tab1
----
216

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT COUNT( * ) + - COUNT( + 81 ) FROM tab2 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5879
SELECT COUNT ( * ) + - COUNT ( + 81 ) FROM tab2 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + ( MIN( DISTINCT 94 ) ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-5880
SELECT + ( MIN ( DISTINCT 94 ) ) FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL COUNT( DISTINCT + 39 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL COUNT ( DISTINCT + 39 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 73 * - 77 AS col1 FROM tab0 AS cor0
----
-5621

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 = - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - col2 + - 56 FROM tab1
----
-3537
-4680
-9272

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT + COUNT( - col0 ) FROM tab0 WHERE NOT ( 34 * + col0 ) IN ( col0 + 20 )
----
3

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT + COUNT ( - col0 ) FROM tab0 WHERE NOT ( 34 * + col0 ) IN ( col0 + 20 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT col1 DIV col2 + + col2 DIV col0 AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
1
2
4

skipif mysql # not compatible
query I rowsort label-5886
SELECT col1 / col2 + + col2 / col0 AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
1
2
4

query I rowsort
SELECT + ( 85 ) FROM tab2
----
85
85
85

query III rowsort
SELECT * FROM tab2 WHERE + 13 IS NULL
----

query I rowsort
SELECT DISTINCT ( 89 ) + 80 AS col0 FROM tab0
----
169

query I rowsort
SELECT - ( 65 ) FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + 91 + - 33 FROM tab2 cor0
----
58
58
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT - - 11 - + MIN( + col0 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5893
SELECT - - 11 - + MIN ( + col0 ) FROM tab1 AS cor0
----
-40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < - col2 + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 16 ) < ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + col1 / + col2 - + 8 FROM tab1 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT + ( - COUNT( ALL + 79 ) ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 45 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5897
SELECT + ( - COUNT ( ALL + 79 ) ) AS col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 45 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT DISTINCT + COUNT( * ) + 71 FROM tab1 cor0
----
74

skipif mysql # not compatible
query I rowsort label-5898
SELECT DISTINCT + COUNT ( * ) + 71 FROM tab1 cor0
----
74

query I rowsort
SELECT + 37 - 81 FROM tab2 AS cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT col1 DIV ( ( - col1 ) ) + - 43 FROM tab2 AS cor0 WHERE ( ( 15 ) ) <= ( col2 - - 40 )
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-5900
SELECT col1 / ( ( - col1 ) ) + - 43 FROM tab2 AS cor0 WHERE ( ( 15 ) ) <= ( col2 - - 40 )
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT MIN( col2 ) FROM tab0 AS cor0 WHERE + 42 BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT MIN ( col2 ) FROM tab0 AS cor0 WHERE + 42 BETWEEN col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE col1 > ( - col0 * - CAST( - 33 AS SIGNED ) )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE col1 > ( - col0 * - CAST ( - 33 AS INTEGER ) )
----
51
67
77

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

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

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

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

query I rowsort
SELECT - col2 + - 35 * - col1 FROM tab1
----
116
1577
394

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL - COUNT( * ) - 2 AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - COUNT ( * ) - 2 AS col2 FROM tab1
----
-5

query I rowsort
SELECT ALL col1 * 93 + - 74 FROM tab0
----
1879
19
7459

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT - 11 + - SUM( DISTINCT + 56 ) - + MIN( ALL col0 ) FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-5910
SELECT - 11 + - SUM ( DISTINCT + 56 ) - + MIN ( ALL col0 ) FROM tab0
----
-82

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

query I rowsort
SELECT ALL col2 * + col1 + col2 FROM tab1 WHERE - col1 IS NOT NULL
----
1440
3264
354

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 = + 99 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * 20 AS col2 FROM tab2 AS cor0
----
1160
460
800

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - SUM( col1 ) * + - MIN( DISTINCT - ( col1 ) ) AS col0 FROM tab2
----
-15015

skipif mysql # not compatible
query I rowsort label-5916
SELECT - SUM ( col1 ) * + - MIN ( DISTINCT - ( col1 ) ) AS col0 FROM tab2
----
-15015

query II rowsort
SELECT ALL col1, 23 AS col0 FROM tab2
----
51
23
67
23
77
23

query I rowsort
SELECT DISTINCT + + 43 * 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3870

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - col0 ) col2 FROM tab0 WHERE NOT - - col2 >= ( col2 * - col1 )
----

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

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

query I rowsort
SELECT ALL col1 * + - ( - 20 ) FROM tab1 AS cor0
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT DISTINCT + COUNT( DISTINCT col0 ) * 31 * 58 + 18 AS col2 FROM tab0 AS cor0
----
5412

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT + COUNT ( DISTINCT col0 ) * 31 * 58 + 18 AS col2 FROM tab0 AS cor0
----
5412

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

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

query I rowsort
SELECT + col0 * + - col2 + + col0 FROM tab0 cor0
----
-690
-783
-9506

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT + col2 DIV col0 + + + col2 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-5927
SELECT + col2 / col0 + + + col2 FROM tab1 AS cor0
----
59
68
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT + - MAX( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT + - MAX ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
23

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

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

query I rowsort
SELECT ALL - 0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT + COUNT( * ) col2 FROM tab2 AS cor0 WHERE ( - col0 + 59 * col2 ) NOT IN ( col1 + - col1 * col1 ) OR NOT - 5 / - 37 NOT BETWEEN NULL AND ( NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5931
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( - col0 + 59 * col2 ) NOT IN ( col1 + - col1 * col1 ) OR NOT - 5 / - 37 NOT BETWEEN NULL AND ( NULL )
----
3

query I rowsort
SELECT ALL - col0 + + 65 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT SUM( col1 ) + ( 10 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-5936
SELECT SUM ( col1 ) + ( 10 ) FROM tab1
----
76

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col1 ) ) * - 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab0 WHERE NOT ( - col1 ) = NULL
----

query I rowsort
SELECT DISTINCT - 10 + + - col2 + 70 AS col0 FROM tab2 WHERE NULL >= NULL
----

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

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

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

query I rowsort
SELECT DISTINCT 16 + + - col1 AS col0 FROM tab1
----
-31
11
2

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5944
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NULL >= col2 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5944
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NULL >= col2 * CAST ( NULL AS REAL )
----

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

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

query I rowsort
SELECT ALL - - col1 + + 53 AS col1 FROM tab1 AS cor0
----
100
58
67

query I rowsort
SELECT - - 4 + ( - col2 ) + - col2 * + - col0 FROM tab1 AS cor0
----
4804
4960
6124

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 * + 26 > ( + ( - col0 ) * col0 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 - + 51 AS col2 FROM tab2 AS cor0
----
-115
-126
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT SUM( + - 88 ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-5951
SELECT SUM ( + - 88 ) FROM tab2 AS cor0
----
-264

query I rowsort
SELECT - 41 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( + col2 )
----

query II rowsort
SELECT DISTINCT + 89 AS col1, - col2 + + + 48 AS col0 FROM tab0
----
89
-51
89
1
89
38

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT - 55 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 3 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL + 44 * SUM( DISTINCT + - col2 ) + - COUNT( * ) FROM tab2 AS cor0
----
-5327

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL + 44 * SUM ( DISTINCT + - col2 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-5327

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5961
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED ) + + col2 + + col2 / - + col1 + col1
----

skipif mysql # not compatible
query III rowsort label-5961
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER ) + + col2 + + col2 / - + col1 + col1
----

query II rowsort
SELECT DISTINCT col1 * col1, + col1 FROM tab0 cor0
----
1
1
441
21
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + SUM( ALL + - ( - + 48 ) ) AS col2 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5963
SELECT + SUM ( ALL + - ( - + 48 ) ) AS col2 FROM tab0 AS cor0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT - col1 * - CAST( col2 AS SIGNED ) * + 44 FROM tab0
----
167508
4356
9240

skipif mysql # not compatible
query I rowsort label-5964
SELECT - col1 * - CAST ( col2 AS INTEGER ) * + 44 FROM tab0
----
167508
4356
9240

query I rowsort
SELECT DISTINCT - 45 * + + col0 + + 96 AS col2 FROM tab1
----
-2199
-3729
-3999

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT ALL - - ( ( + + COUNT( * ) ) ) DIV + ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
-1

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + 70 AS col0 FROM tab2 AS cor0 WHERE ( 88 IS NULL )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT COUNT( * ) DIV + 24 * + - 76 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5972
SELECT COUNT ( * ) / + 24 * + - 76 AS col2 FROM tab1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5974
SELECT ALL COUNT( ALL - + CAST( - + col2 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL COUNT ( ALL - + CAST ( - + col2 AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT col1 * - + 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-5975
SELECT col1 * - + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT 3 DIV + + 21 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5976
SELECT 3 / + + 21 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 col0 FROM tab0 WHERE NOT ( - col1 ) BETWEEN - col2 AND col1
----
-20
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5978
SELECT - 26 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT - 26 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> ( - - col1 * + 81 + 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT SUM( + col0 ) + + + COUNT( * ) * + MIN( - - col2 ) col0 FROM tab0
----
229

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

query I rowsort
SELECT ALL + col1 + 10 AS col0 FROM tab1
----
15
24
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + ( + - col2 ) * + - col2 * - col2 col0 FROM tab0 AS cor0
----
-1021
-103904
-970300

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL COUNT( - col1 ) FROM tab2 WHERE NOT + 0 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL COUNT ( - col1 ) FROM tab2 WHERE NOT + 0 < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT COUNT( * ) * 65 AS col0 FROM tab2, tab0 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT COUNT ( * ) * 65 AS col0 FROM tab2, tab0 AS cor0
----
585

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 < col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL + - ( - - COUNT( * ) ) + 38 col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5987
SELECT ALL + - ( - - COUNT ( * ) ) + 38 col1 FROM tab1 AS cor0
----
35

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

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

query II rowsort
SELECT - col0 AS col2, + col1 AS col0 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT ALL col1 * + 77 AS col0 FROM tab1
----
1078
3619
385

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

query I rowsort
SELECT ALL 71 * - - 50 FROM tab1
----
3550
3550
3550

query I rowsort
SELECT + + 54 FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT + - 14 * 16 - + - 67 + - 51 FROM tab0 AS cor0
----
-208
-208
-208

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

query I rowsort
SELECT - + 45 * + 75 FROM tab0 AS cor0
----
-3375
-3375
-3375

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5998
SELECT DISTINCT + col1 FROM tab2 WHERE + 5 BETWEEN - - col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT + col1 FROM tab2 WHERE + 5 BETWEEN - - col2 AND CAST ( NULL AS INTEGER )
----

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

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

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

query I rowsort
SELECT 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

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

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

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

query I rowsort
SELECT + ( - col2 ) * col1 + - + col2 * col0 * + + col2 AS col2 FROM tab2 AS cor0
----
-105480
-25507
-256186

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT DISTINCT + col2 * 73 DIV - col0 FROM tab2 AS cor0
----
-36
-45
-56

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT + col2 * 73 / - col0 FROM tab2 AS cor0
----
-36
-45
-56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 5 + - - col2 BETWEEN - col0 + - 32 AND - - ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 62 AS col2, + 44 FROM tab1 AS cor0
----
62
44

query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab1 cor0 WHERE NOT - col2 * + col0 IS NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT 82 + - COUNT( * ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-6010
SELECT 82 + - COUNT ( * ) AS col0 FROM tab2
----
79

query I rowsort
SELECT DISTINCT 75 * + + ( + col2 ) AS col0 FROM tab0
----
3525
7425
750

query I rowsort
SELECT DISTINCT col2 * + + col0 + + col2 AS col1 FROM tab2
----
1081
2600
4408

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT ( 0 ) DIV - - ( 70 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6013
SELECT ( 0 ) / - - ( 70 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT ( NULL = col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6015
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) IN ( + col1, + col2, - + col1 * + CAST( NULL AS SIGNED ), - + col1 * + - 49 - col2 )
----

skipif mysql # not compatible
query III rowsort label-6015
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IN ( + col1, + col2, - + col1 * + CAST ( NULL AS INTEGER ), - + col1 * + - 49 - col2 )
----

query I rowsort
SELECT + + 33 + - col0 AS col1 FROM tab1 WHERE + 17 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - 47 * + col0 + col2 col2 FROM tab0 cor0
----
4186
4755
767

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6019
SELECT ALL CAST( - col1 AS DECIMAL ) * + 20 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL CAST ( - col1 AS REAL ) * + 20 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT 86 * COUNT( * ) + + 79 FROM tab1 AS cor0
----
337

skipif mysql # not compatible
query I rowsort label-6021
SELECT 86 * COUNT ( * ) + + 79 FROM tab1 AS cor0
----
337

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

query II rowsort
SELECT + col2 * col0 * col1 AS col1, + col0 FROM tab1 cor0
----
25075
85
290836
91
68544
51

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 + 24 + + + 27 <= - 70 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6026
SELECT - - 36 AS col2, + COUNT( ALL + col0 ) * - CAST( NULL AS SIGNED ) + - COUNT( * ) * + + 14 AS col1 FROM tab0 AS cor0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-6026
SELECT - - 36 AS col2, + COUNT ( ALL + col0 ) * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + + 14 AS col1 FROM tab0 AS cor0
----
36
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 8 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT DISTINCT CAST( - 26 AS SIGNED ) FROM tab0 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT CAST ( - 26 AS INTEGER ) FROM tab0 cor0
----
-26

query I rowsort
SELECT 15 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6031
SELECT DISTINCT 26 * - + CAST( NULL AS SIGNED ) * + - AVG ( ALL + CAST( - col0 AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT 26 * - + CAST ( NULL AS INTEGER ) * + - AVG ( ALL + CAST ( - col0 AS REAL ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - 73 + + col1, 99, col2 )
----

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

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

skipif mysql # not compatible
query I rowsort label-6034
SELECT CAST ( NULL AS INTEGER ) * - MAX ( + - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT - - ( + 30 ) DIV COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
30

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

query I rowsort
SELECT DISTINCT + + 56 * - - ( + - col1 ) FROM tab1 AS cor0
----
-2632
-280
-784

query I rowsort
SELECT DISTINCT col0 - + 91 + - - 95 FROM tab0 AS cor0 WHERE 49 - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT COUNT( + ( - 62 ) ) + - 12 AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6038
SELECT COUNT ( + ( - 62 ) ) + - 12 AS col2 FROM tab0
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NOT - 79 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 / - - col1 * + + col1 + + col0 IS NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT DISTINCT + + CAST( + 10 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
10

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

query I rowsort
SELECT DISTINCT + - 28 FROM tab0 cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT - col0 DIV + 27 + + 17 col0 FROM tab0 AS cor0 WHERE - col1 + - + 36 >= - col2
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6045
SELECT - col0 / + 27 + + 17 col0 FROM tab0 AS cor0 WHERE - col1 + - + 36 >= - col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL - 3 * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - 3 * COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT ALL + ( col0 ) * + col2 DIV - col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + ( col0 ) * + col2 / - col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT + CAST( - 49 AS SIGNED ) - col1 FROM tab1
----
-54
-63
-96

skipif mysql # not compatible
query I rowsort label-6048
SELECT + CAST ( - 49 AS INTEGER ) - col1 FROM tab1
----
-54
-63
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT DISTINCT 33 DIV - col1 FROM tab0
----
-1
-33
0

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT 33 / - col1 FROM tab0
----
-1
-33
0

query I rowsort
SELECT + 38 + + col2 + col1 FROM tab0
----
138
166
69

query I rowsort
SELECT + col2 * + 80 + + - 53 AS col2 FROM tab0
----
3707
747
7867

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 69 + + - 97 <= + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT + 85 * + - COUNT( * ) FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-6054
SELECT + 85 * + - COUNT ( * ) FROM tab0
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-6055
SELECT ALL - ( 75 ) AS col0, - MIN( - 90 ) FROM tab0
----
-75
90

skipif mysql # not compatible
query II rowsort label-6055
SELECT ALL - ( 75 ) AS col0, - MIN ( - 90 ) FROM tab0
----
-75
90

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

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + 0 * - col2 - col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 > + col0 + - 46
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE + + 30 * + col2 IN ( - 92, 4 + + - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE + + 30 * + col2 IN ( - 92, 4 + + - 86 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6061
SELECT DISTINCT + col2, + col0 DIV + col0 AS col1 FROM tab2
----
23
1
40
1
58
1

skipif mysql # not compatible
query II rowsort label-6061
SELECT DISTINCT + col2, + col0 / + col0 AS col1 FROM tab2
----
23
1
40
1
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT ALL ( + SUM( DISTINCT + ( - col2 ) ) ) col0 FROM tab2
----
-121

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

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

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

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT MIN ( ALL + - col2 ) FROM tab2
----
-58

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 31 + + - col1 col1 FROM tab0 AS cor0
----
2676
3006
384

query II rowsort
SELECT ALL - 84 + col2 AS col2, col0 * + ( + + col2 ) FROM tab2 AS cor0
----
-26
4350
-44
2560
-61
1058

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( - 67 * - - col0 * - + 32 ) = - 16
----
0

skipif mysql # not compatible
query I rowsort label-6073
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( - 67 * - - col0 * - + 32 ) = - 16
----
0

query I rowsort
SELECT + + col2 + - col0 + col1 FROM tab1 AS cor0
----
-21
24
59

query I rowsort
SELECT + 25 + - + col1 FROM tab0 AS cor0
----
-56
24
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 + 52 AS col1, col2 col0 FROM tab1 AS cor0
----
103
96
137
59
143
68

query I rowsort
SELECT ALL - + col1 * + 69 FROM tab1 AS cor0
----
-3243
-345
-966

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6079
SELECT - col0 DIV - + col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6079
SELECT - col0 / - + col1 FROM tab0
----
0
4
97

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

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

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

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

query I rowsort
SELECT + col0 - - 35 * + col2 AS col1 FROM tab0 AS cor0
----
1660
3562
437

query I rowsort
SELECT + + col1 - + col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT col0 - 53 AS col2 FROM tab2 AS cor0
----
-7
11
22

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

query I rowsort
SELECT ALL + 46 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query II rowsort
SELECT - col0 * + col2 * + + ( + 42 ), col1 FROM tab1
----
-205632
14
-210630
5
-259896
47

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

query I rowsort
SELECT - col2 * + - 19 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT + - col0 * - 82 AS col0 FROM tab1 AS cor0
----
4182
6970
7462

query I rowsort
SELECT ALL - 7 + - 62 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6093
SELECT - CAST( NULL AS DECIMAL ) * - AVG ( + - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT - CAST ( NULL AS REAL ) * - AVG ( + - col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6094
SELECT ALL - 41 DIV - 20 AS col1, col2 * + + col2 + - col1 + - 76 * + - 0 AS col0 FROM tab0 AS cor0
----
2
2128
2
79
2
9800

skipif mysql # not compatible
query II rowsort label-6094
SELECT ALL - 41 / - 20 AS col1, col2 * + + col2 + - col1 + - 76 * + - 0 AS col0 FROM tab0 AS cor0
----
2
2128
2
79
2
9800

onlyif mysql # DIV for integer division: 
query I rowsort label-6095
SELECT ALL col0 DIV + + 58 col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6095
SELECT ALL col0 / + + 58 col0 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6096
SELECT - MIN( - CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6096
SELECT - MIN ( - CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15

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

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - col1 / - col1 AS col2 FROM tab2 AS cor0
----
1

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 76 IS NULL
----

query I rowsort
SELECT ALL 88 + - + col1 + - col2 AS col2 FROM tab1
----
-22
-27
24

query I rowsort
SELECT DISTINCT - 28 * - 9 AS col2 FROM tab2
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT DISTINCT 6 DIV + ( + 35 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT 6 / + ( + 35 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT SUM( DISTINCT + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6103
SELECT SUM ( DISTINCT + col1 ) FROM tab0
----
103

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

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

query I rowsort
SELECT + 87 AS col2 FROM tab1 cor0
----
87
87
87

query II rowsort
SELECT - + col1 + - 44, col2 AS col1 FROM tab1 AS cor0
----
-49
59
-58
96
-91
68

query I rowsort
SELECT ALL + 77 * col0 AS col1 FROM tab2 AS cor0
----
3542
4928
5775

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6109
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND - 96 * col1 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6109
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND - 96 * col1 * + CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND 12
----

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

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

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

query I rowsort
SELECT col2 + - 0 + 23 FROM tab0
----
122
33
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6114
SELECT ALL + CAST( NULL AS DECIMAL ) col1 FROM tab2 WHERE NOT + + col0 * + col0 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6114
SELECT ALL + CAST ( NULL AS REAL ) col1 FROM tab2 WHERE NOT + + col0 * + col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6115
SELECT - col1 * col2 DIV - + col2 + - - col0 * col1 FROM tab1
----
430
4324
728

skipif mysql # not compatible
query I rowsort label-6115
SELECT - col1 * col2 / - + col2 + - - col0 * col1 FROM tab1
----
430
4324
728

query I rowsort
SELECT - 40 + - col2 AS col1 FROM tab0
----
-139
-50
-87

query I rowsort
SELECT 4 FROM tab0, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

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

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

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

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

query I rowsort
SELECT 20 * col2 AS col1 FROM tab1
----
1180
1360
1920

query I rowsort
SELECT ALL - 85 * col2 FROM tab0
----
-3995
-8415
-850

query I rowsort
SELECT ALL col0 * - - 38 * - col1 + + 51 AS col0 FROM tab1 AS cor0
----
-16099
-162475
-27081

query I rowsort
SELECT ALL 14 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> col0
----

query I rowsort
SELECT DISTINCT - + col0 * - col2 * + + 5 * + col0 FROM tab0 cor0
----
378450
4657455
52875

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 4 * - - ( + - 4 ) + + 88 + 48 * + - col2 IS NOT NULL
----

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

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

query I rowsort
SELECT - col0 * - col0 FROM tab2 AS cor0 WHERE NOT - 33 IS NOT NULL
----

query I rowsort
SELECT ( col2 ) + - 44 AS col0 FROM tab0
----
-34
3
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 + + col0 col0 FROM tab0
----
101
111
29

query I rowsort
SELECT - - 50 FROM tab1 WHERE NOT + + col0 + col2 <> NULL
----

query I rowsort
SELECT ALL col2 * - col0 * + + col1 AS col2 FROM tab0
----
-18270
-57105
-9603

query III rowsort
SELECT DISTINCT 67, col1 AS col0, + - col0 * - 8 AS col2 FROM tab1
----
9 values hashing to 2e62839dc566291942ac19b355a94977

query I rowsort
SELECT DISTINCT + 20 + + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-46
116
86

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

query I rowsort
SELECT DISTINCT + col0 * - + ( + col0 ) FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL + 80 + - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
89

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL + 80 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = col2
----
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = col2
----
0

query I rowsort
SELECT ALL - 91 + + col2 AS col1 FROM tab1 AS cor0
----
-23
-32
5

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

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

query I rowsort
SELECT DISTINCT - - 35 - + col0 FROM tab0 AS cor0
----
-52
-62
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT + COUNT( * ), + 78 AS col1 FROM tab0
----
3
78

skipif mysql # not compatible
query II rowsort label-6143
SELECT + COUNT ( * ), + 78 AS col1 FROM tab0
----
3
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6144
SELECT DISTINCT col0, CAST( NULL AS SIGNED ) + - 49 * + + col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6144
SELECT DISTINCT col0, CAST ( NULL AS INTEGER ) + - 49 * + + col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6146
SELECT ALL 90 DIV - col0 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL 90 / - col0 AS col1 FROM tab1
----
-1
-1
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6148
SELECT - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6148
SELECT - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
NULL
3

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 77 BETWEEN NULL AND ( + - ( - 43 ) - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6154
SELECT DISTINCT * FROM tab1 WHERE - 31 + - 47 NOT BETWEEN - - CAST( 69 AS SIGNED ) * + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6154
SELECT DISTINCT * FROM tab1 WHERE - 31 + - 47 NOT BETWEEN - - CAST ( 69 AS INTEGER ) * + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6157
SELECT ALL - 97 AS col2 FROM tab1 AS cor0 WHERE NOT col1 = + col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - 97 AS col2 FROM tab1 AS cor0 WHERE NOT col1 = + col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT DISTINCT CAST( + - 74 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT CAST ( + - 74 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + COUNT( * ) * 95 * + 98 AS col0 FROM tab1 AS cor0
----
27930

skipif mysql # not compatible
query I rowsort label-6159
SELECT + COUNT ( * ) * 95 * + 98 AS col0 FROM tab1 AS cor0
----
27930

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

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

query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6163
SELECT 5 * - col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-230
NULL
-320
NULL
-375
NULL

skipif mysql # not compatible
query II rowsort label-6163
SELECT 5 * - col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-230
NULL
-320
NULL
-375
NULL

query I rowsort
SELECT ALL col1 * - - 45 + - 85 + col0 * + col2 * - 84 AS col1 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT + 2 * COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT + 2 * COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE ( NOT col1 + col2 < - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT col1 + col2 < - col2 )
----
3

query I rowsort
SELECT DISTINCT 81 + 9 FROM tab1
----
90

query I rowsort
SELECT + col1 + - ( - 58 ) - - + col2 AS col0 FROM tab2
----
132
175
183

query I rowsort
SELECT ALL 8 + - ( + 82 ) FROM tab0
----
-74
-74
-74

query II rowsort
SELECT ALL - ( col0 ) + + 27 AS col1, 3 FROM tab0 AS cor0
----
-60
3
-70
3
12
3

query I rowsort
SELECT - 2 * + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-128
-150
-92

query I rowsort
SELECT + 67 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT ( + - col1 ) * - - col1 * 87 FROM tab0
----
-38367
-570807
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT ALL + 23 DIV - 54 * - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + 23 / - 54 * - col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT DISTINCT - 29 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT - 29 / - col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6176
SELECT DISTINCT COUNT( * ) - + COUNT( * ) DIV - - 57 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) / - - 57 AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 - - 48 AS col1 FROM tab1 AS cor0
----
133
139
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL + COUNT( * ) - 29 FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL + COUNT ( * ) - 29 FROM tab2 cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT DISTINCT ( - - col0 ) * + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT ( - - col0 ) * + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + - 44 FROM tab1 AS cor0 WHERE ( NULL ) <= col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6183
SELECT COUNT( ALL + col0 ) col0, - 71 col1 FROM tab0
----
3
-71

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

query I rowsort
SELECT + col2 * + 82 AS col1 FROM tab1
----
4838
5576
7872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 * + col1 + + col1 * + col0 * - ( col2 ) * - ( 80 ) * col0 - + + 4 col0 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT - 33 * - ( + col2 ) FROM tab2
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL + ( + - CAST( + - 44 AS SIGNED ) ) col2 FROM tab2
----
44
44
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6187
SELECT ALL + ( + - CAST ( + - 44 AS INTEGER ) ) col2 FROM tab2
----
44
44
44

query I rowsort
SELECT DISTINCT ( - 73 ) FROM tab2
----
-73

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - + 28 ) col1, col2 FROM tab2 AS cor0
----
-28
23
-28
40
-28
58

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

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

query II rowsort
SELECT 12 AS col1, + 80 + - col0 FROM tab2
----
12
16
12
34
12
5

query II rowsort
SELECT + col1 AS col2, - col2 + + + 88 FROM tab1
----
14
-8
47
20
5
29

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

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

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

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

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

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

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

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

query I rowsort
SELECT 48 + ( - 28 ) FROM tab0 AS cor0
----
20
20
20

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

query II rowsort
SELECT - 35, 79 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT col0 + col1 + + - col2 - - 31 + 88 AS col2 FROM tab2
----
193
203
220

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT - COUNT( * ) + + + 29 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6203
SELECT - COUNT ( * ) + + + 29 FROM tab1
----
26

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

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

query I rowsort
SELECT DISTINCT col0 + - col2 * + col0 AS col1 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT + 23 AS col0 FROM tab1 WHERE - col2 + - col2 NOT IN ( + - col1 + - + col1, ( - col2 ), col1 )
----
23
23
23

query I rowsort
SELECT ALL col1 + - 42 + col2 AS col1 FROM tab1
----
22
68
73

query I rowsort
SELECT ALL 95 - - - 41 + col2 * - + col1 * - + col2 FROM tab0 AS cor0
----
178983
2154
9855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6209
SELECT ALL - col1 * + CAST( - - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - col1 * + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6210
SELECT MIN ( DISTINCT ( - col1 ) ) col1 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL - - 21 - + col2 AS col1, + col2 FROM tab2 AS cor0
----
-19
40
-2
23
-37
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT COUNT( + 50 ) - COUNT( * ) col1 FROM tab2 cor0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6213
SELECT + COUNT( * ) - - ( + - SUM( DISTINCT + CAST( 92 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6213
SELECT + COUNT ( * ) - - ( + - SUM ( DISTINCT + CAST ( 92 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 61 col0 FROM tab0 AS cor0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT DISTINCT - - col2 - + 62 * + 71 FROM tab0 AS cor0 WHERE NOT + CAST( - - 87 AS SIGNED ) > - + col2
----

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT - - col2 - + 62 * + 71 FROM tab0 AS cor0 WHERE NOT + CAST ( - - 87 AS INTEGER ) > - + col2
----

query I rowsort
SELECT DISTINCT - 57 + - 45 FROM tab1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT + SUM( ALL - + col2 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT + SUM ( ALL - + col2 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - + col0 + 41 AS col0 FROM tab2 AS cor0
----
17
18
24

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

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

query I rowsort
SELECT + - 21 AS col1 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT - - col2 * + + col2 * + ( - 71 ) FROM tab0 AS cor0
----
-156839
-695871
-7100

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * + + col0 + - + 7 + - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT + MAX( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6224
SELECT + MAX ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - ( - ( - col0 ) ) * 79 / - col0 IS NULL
----
-1
-21
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT + COUNT( * ) * 76 * - COUNT( * ) AS col1 FROM tab2
----
-684

skipif mysql # not compatible
query I rowsort label-6228
SELECT + COUNT ( * ) * 76 * - COUNT ( * ) AS col1 FROM tab2
----
-684

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT DISTINCT - 84 * - MIN( ALL - col0 ) FROM tab0
----
-8148

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT - 84 * - MIN ( ALL - col0 ) FROM tab0
----
-8148

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT DISTINCT - 43 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-43
3

skipif mysql # not compatible
query II rowsort label-6232
SELECT DISTINCT - 43 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-43
3

query I rowsort
SELECT ALL - col1 / + - 20 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - - ( 29 ) AND + + col1 * 42 - - 89 / 51
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT + col1 / + - col0 + + CAST( NULL AS SIGNED ) + col0 - + col0 * + ( - + col2 ) * col2 * 28 * + 86 / + - col0 FROM tab2 AS cor0 WHERE NOT ( - + 96 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT + col1 / + - col0 + + CAST ( NULL AS INTEGER ) + col0 - + col0 * + ( - + col2 ) * col2 * 28 * + 86 / + - col0 FROM tab2 AS cor0 WHERE NOT ( - + 96 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT ALL - - ( + col2 ) DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL - - ( + col2 ) / col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - 25 FROM tab1
----
1275
2125
2275

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

query II rowsort
SELECT ALL - col1 + + 36 AS col0, col0 FROM tab0 cor0
----
-45
15
15
87
35
97

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

query I rowsort
SELECT + 62 * + 91 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + ( 70 ) AS col0 FROM tab0
----
117
169
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - 88 + + COUNT( ALL - - col1 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-6242
SELECT - 88 + + COUNT ( ALL - - col1 ) FROM tab2
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 52 + + col1 + + col2 + + col0 col0 FROM tab1
----
2650
409
889

query I rowsort
SELECT - col1 * - + 16 + - + col0 * - col2 FROM tab2
----
1874
3792
5422

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * + - col2 * - ( - 51 ) IS NULL
----

query I rowsort
SELECT col1 + + - col1 - col1 + - 78 * - col0 FROM tab2
----
3537
4915
5783

query I rowsort
SELECT DISTINCT 87 + - ( + 91 ) * - 63 AS col1 FROM tab2
----
5820

query I rowsort
SELECT + col2 + - + col0 + ( - 62 ) AS col2 FROM tab1 AS cor0
----
-17
-85
-88

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE col1 + - 20 * + col0 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 74 * 45 AS col0 FROM tab2 cor0
----
3330

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab0, tab2 AS cor0
----
72

query I rowsort
SELECT - 92 + + 14 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query II rowsort
SELECT - - ( 56 ), - 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 59d1db22ba676cca73bd7d075a64364a

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT COUNT( * ) * + ( + 92 ) AS col2 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT COUNT ( * ) * + ( + 92 ) AS col2 FROM tab2 AS cor0
----
276

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6256
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col0 NOT BETWEEN col1 + - col0 - col2 + - + 49 AND 4 - - col0 + + CAST( + + col1 AS SIGNED ) + - - col2 * 15 / - col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6256
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col0 NOT BETWEEN col1 + - col0 - col2 + - + 49 AND 4 - - col0 + + CAST ( + + col1 AS INTEGER ) + - - col2 * 15 / - col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + + col0 * - 69 AS col1 FROM tab1 cor0
----
-3519
-5865
-6279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6259
SELECT DISTINCT COUNT( * ) DIV - 93, + ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) col0 FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6259
SELECT DISTINCT COUNT ( * ) / - 93, + ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
0
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 * col2 * + + col1 IS NULL
----

query I rowsort
SELECT ( - 25 ) AS col0 FROM tab0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT - MIN( DISTINCT 26 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT - MIN ( DISTINCT 26 ) FROM tab1
----
-26

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

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

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

query II rowsort
SELECT DISTINCT - 49, + col2 - - 64 * - + col2 * col0 AS col2 FROM tab1
----
-49
-313248
-49
-320901
-49
-395964

query I rowsort
SELECT ALL ( 37 ) AS col2 FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT + 90 * + ( + - 29 ) AS col1 FROM tab2
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL 78 * + + COUNT( + col2 ) AS col2 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL 78 * + + COUNT ( + col2 ) AS col2 FROM tab1
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT DISTINCT - 64 DIV - col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT - 64 / - col2 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT DISTINCT 21 DIV + col2 + 2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT 21 / + col2 + 2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT ( - + 97 ) FROM tab2
----
-97

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 33 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 88 >= NULL
----

query I rowsort
SELECT - 53 FROM tab1 AS cor0 WHERE col0 * + col1 <= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * - col0 col2 FROM tab1 AS cor0
----
4368
510
765

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT + 70 + - - COUNT( * ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6278
SELECT + 70 + - - COUNT ( * ) FROM tab0 AS cor0
----
73

query II rowsort
SELECT + col0 * 61 * - - col0 + - + col2 AS col0, + col1 * col1 - + 7 AS col0 FROM tab1 AS cor0
----
158565
189
440666
18
505073
2202

query I rowsort
SELECT col1 + - - col2 * - 96 FROM tab1 AS cor0
----
-5659
-6481
-9202

query I rowsort
SELECT - col2 * - + 56 AS col2 FROM tab0
----
2632
5544
560

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

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

query III rowsort
SELECT * FROM tab1 WHERE - + 45 NOT BETWEEN NULL AND - 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT col0 - CAST( + col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6284
SELECT col0 - CAST ( + col0 AS INTEGER ) FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query II rowsort label-6285
SELECT ALL + 66 + + 19 AS col0, col0 / + - col2 FROM tab0 AS cor0
----
85
-8
85
0
85
0

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

query I rowsort
SELECT DISTINCT + + ( + + col0 ) + - 58 - 23 FROM tab2 AS cor0
----
-17
-35
-6

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

query I rowsort
SELECT + 62 * + 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8394bb62a864ffb02a6d97e9f52bdaf7

query I rowsort
SELECT DISTINCT - col1 * + 86 AS col2 FROM tab1 AS cor0
----
-1204
-4042
-430

query I rowsort
SELECT DISTINCT col1 * - 84 - col0 FROM tab0 AS cor0
----
-181
-1851
-6819

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

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

query I rowsort
SELECT - col0 * - + col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - COUNT( * ) * - + 56 FROM tab0 AS cor0 WHERE NOT ( - + col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6294
SELECT - COUNT ( * ) * - + 56 FROM tab0 AS cor0 WHERE NOT ( - + col2 IS NOT NULL )
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6296
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6297
SELECT - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT NULL < - col2 * + - col1 + + - ( - + col2 )
----

skipif mysql # not compatible
query I rowsort label-6297
SELECT - + CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT NULL < - col2 * + - col1 + + - ( - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 43 col0 FROM tab2
----
-1978
-2752
-3225

query II rowsort
SELECT DISTINCT + col1 * + - 91, - col1 AS col2 FROM tab1
----
-1274
-14
-4277
-47
-455
-5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6301
SELECT ALL + COUNT( * ) DIV 18 AS col0 FROM tab0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6302
SELECT col1 * col0 AS col1, CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
1215
15
1827
87
97
97

skipif mysql # not compatible
query II rowsort label-6302
SELECT col1 * col0 AS col1, CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
1215
15
1827
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT + 56 * + MAX( + 33 ) FROM tab2
----
1848

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT + 56 * + MAX ( + 33 ) FROM tab2
----
1848

query I rowsort
SELECT - 24 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

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

query I rowsort
SELECT ( - - 27 ) FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + + col2 + ( - col0 ) FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - + 37 - - 10 AS col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT + col1 * 91 AS col2 FROM tab0 AS cor0
----
1911
7371
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6310
SELECT 60 - ( + CAST( - + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
111
145
151

skipif mysql # not compatible
query I rowsort label-6310
SELECT 60 - ( + CAST ( - + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
111
145
151

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT col1 DIV 37 * - col2 + 21 FROM tab1
----
-47
21
21

skipif mysql # not compatible
query I rowsort label-6311
SELECT col1 / 37 * - col2 + 21 FROM tab1
----
-47
21
21

query I rowsort
SELECT 27 + col0 - ( + col2 ) AS col0 FROM tab0
----
-5
104
25

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col2 col0 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT 95 + col2 FROM tab2
----
118
135
153

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6317
SELECT ALL col1 DIV + - 45 + + ( - col2 ) AS col1, col1 col2 FROM tab2
----
-24
51
-41
77
-59
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6317
SELECT ALL col1 / + - 45 + + ( - col2 ) AS col1, col1 col2 FROM tab2
----
-24
51
-41
77
-59
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 = 68
----
91
47
68

query I rowsort
SELECT 75 + 19 AS col2 FROM tab1
----
94
94
94

query I rowsort
SELECT col1 + - - 78 FROM tab0
----
159
79
99

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL = 36
----

query II rowsort
SELECT + col2 AS col0, col1 * + col0 FROM tab1 cor0
----
59
425
68
4277
96
714

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

skipif mysql # not compatible
query III rowsort label-6323
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT + col1 + + - col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL + COUNT( * ) * - 77 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL + COUNT ( * ) * - 77 FROM tab0
----
-231

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

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

query I rowsort
SELECT DISTINCT + 95 + 61 AS col0 FROM tab1
----
156

query I rowsort
SELECT DISTINCT + - 98 + - 23 FROM tab0 AS cor0
----
-121

query II rowsort
SELECT col0, - 10 - 11 + - - 84 AS col0 FROM tab2 AS cor0
----
46
63
64
63
75
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL - MAX( ALL + col2 ) + 59 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-40

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - MAX ( ALL + col2 ) + 59 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-40

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 98 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 / 6 ) <= ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT DISTINCT + col2 FROM tab0 WHERE + CAST( - col0 AS SIGNED ) + 76 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + col2 FROM tab0 WHERE + CAST ( - col0 AS INTEGER ) + 76 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6339
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( ( - CAST( - col1 AS SIGNED ) ) * - 94 + + 7 * col0 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6339
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( ( - CAST ( - col1 AS INTEGER ) ) * - 94 + + 7 * col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL ( COUNT( * ) ) * 4 col0 FROM tab2
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6340
SELECT ALL ( COUNT ( * ) ) * 4 col0 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT DISTINCT + 17 + COUNT( * ) AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT + 17 + COUNT ( * ) AS col2 FROM tab0
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6342
SELECT - 78 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 78 * CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - 34 FROM tab2
----
17
33
43

query I rowsort
SELECT ALL + 58 * ( + col2 ) FROM tab2
----
1334
2320
3364

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) BETWEEN ( NULL ) AND - 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 65 * + col1 AS col0 FROM tab1
----
3055
325
910

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( NULL ) > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT COUNT( * ) + 11 AS col0 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-6349
SELECT COUNT ( * ) + 11 AS col0 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT MAX( col1 ) + - 70 AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-6350
SELECT MAX ( col1 ) + - 70 AS col0 FROM tab2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT ALL - MIN( ALL CAST( 77 AS SIGNED ) ) * 42 AS col0 FROM tab2
----
-3234

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL - MIN ( ALL CAST ( 77 AS INTEGER ) ) * 42 AS col0 FROM tab2
----
-3234

query I rowsort
SELECT 54 + col2 AS col0 FROM tab1
----
113
122
150

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT ALL + 32 DIV + col2 AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + 32 / + col2 AS col2 FROM tab0
----
0
0
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT col2 DIV 90 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6355
SELECT col2 / 90 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT + col1 DIV + 15 FROM tab1
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6356
SELECT + col1 / + 15 FROM tab1
----
0
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT - 51 DIV - col2 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6357
SELECT - 51 / - col2 AS col1 FROM tab2
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT ALL + col0 DIV col1 + col1 * col1 AS col2 FROM tab0
----
445
6561
98

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL + col0 / col1 + col1 * col1 AS col2 FROM tab0
----
445
6561
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6361
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( + col1 )
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6363
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - CAST( + col1 AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6363
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - CAST ( + col1 AS REAL ) <= NULL
----

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

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * 34 + + col2 * 48 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT COUNT( * ) FROM tab0 WHERE NOT col2 NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT COUNT ( * ) FROM tab0 WHERE NOT col2 NOT IN ( - col1 )
----
0

query I rowsort
SELECT ALL + 65 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6368
SELECT COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
1

skipif mysql # not compatible
query I rowsort label-6368
SELECT COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT - MAX( - col2 ) FROM tab1 WHERE NOT 60 * - col2 + + col0 NOT BETWEEN NULL AND + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT - MAX ( - col2 ) FROM tab1 WHERE NOT 60 * - col2 + + col0 NOT BETWEEN NULL AND + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT COUNT( * ) * ( + COUNT( * ) * + 16 ) AS col2 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-6370
SELECT COUNT ( * ) * ( + COUNT ( * ) * + 16 ) AS col2 FROM tab2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-6371
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6372
SELECT CAST( NULL AS SIGNED ) * - AVG ( ALL 53 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT CAST ( NULL AS INTEGER ) * - AVG ( ALL 53 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6373
SELECT DISTINCT - SUM( DISTINCT 75 ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT - SUM ( DISTINCT 75 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT - col2 DIV - 52 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6374
SELECT - col2 / - 52 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT - + SUM( - col2 ) * + ( + 68 ) AS col1 FROM tab0 AS cor0
----
10608

skipif mysql # not compatible
query I rowsort label-6375
SELECT - + SUM ( - col2 ) * + ( + 68 ) AS col1 FROM tab0 AS cor0
----
10608

query I rowsort
SELECT DISTINCT ( ( col2 ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 36 NOT IN ( - col0 )
----

query I rowsort
SELECT + 43 FROM tab1 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT 88 NOT IN ( 44 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT + MIN( + 85 ) AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-6383
SELECT + MIN ( + 85 ) AS col1 FROM tab1
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6384
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) + + 9 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6384
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS REAL ) + + 9 IS NOT NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT + col2 - col2 IN ( - col1 )
----
14
47
5

query I rowsort
SELECT + col1 * - + 34 AS col1 FROM tab0
----
-2754
-34
-714

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

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT + 58 * - - col1 + + 71 AS col0 FROM tab1
----
2797
361
883

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 77 IS NULL
----

query I rowsort
SELECT - + 48 + - - col1 AS col0 FROM tab0 AS cor0
----
-27
-47
33

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 19 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT 39 * + COUNT( * ) + 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
440

skipif mysql # not compatible
query I rowsort label-6395
SELECT 39 * + COUNT ( * ) + 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab0 WHERE + - col2 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-6396
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE + - col2 IS NOT NULL
----
6

query I rowsort
SELECT ALL 32 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL - - col2 - + col1 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT - + col0 + 4 DIV - - col1 AS col1 FROM tab0 AS cor0
----
-15
-87
-93

skipif mysql # not compatible
query I rowsort label-6399
SELECT - + col0 + 4 / - - col1 AS col1 FROM tab0 AS cor0
----
-15
-87
-93

query I rowsort
SELECT + 39 * + 8 AS col0 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
312
312
312

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 97 NOT BETWEEN col0 + - 40 AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT + - col1 + + col0 DIV - - col2 + col0 * 43 FROM tab0 AS cor0
----
3728
4170
564

skipif mysql # not compatible
query I rowsort label-6403
SELECT + - col1 + + col0 / - - col2 + col0 * 43 FROM tab0 AS cor0
----
3728
4170
564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + - col0 col2 FROM tab2 AS cor0
----
17
23
24

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

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

query I rowsort
SELECT ALL 91 FROM tab1 AS cor0 WHERE NOT + col1 + + 76 BETWEEN ( col0 + col0 ) AND - col1
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6407
SELECT - ( - + COUNT( * ) ) + + 8 * - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT - ( - + COUNT ( * ) ) + + 8 * - COUNT ( * ) * CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 54 - + col1 FROM tab1
----
40
49
7

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT - 69 * CAST( - - 22 AS SIGNED ) * - - 61 AS col1 FROM tab1
----
-92598
-92598
-92598

skipif mysql # not compatible
query I rowsort label-6411
SELECT - 69 * CAST ( - - 22 AS INTEGER ) * - - 61 AS col1 FROM tab1
----
-92598
-92598
-92598

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL 21 * + ( COUNT( * ) ) col1 FROM tab2 WHERE NOT ( 71 ) IS NULL
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6412
SELECT ALL 21 * + ( COUNT ( * ) ) col1 FROM tab2 WHERE NOT ( 71 ) IS NULL
----
63

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab2 WHERE NOT col2 * - 8 = + col0 * - 15
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT ( - MAX( ALL - - col1 ) ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6414
SELECT DISTINCT ( - MAX ( ALL - - col1 ) ) col1 FROM tab2
----
-77

query I rowsort
SELECT DISTINCT 13 FROM tab1 WHERE NOT - col1 * - 70 IS NULL
----
13

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + 91 * 17 - col0 / 38 IS NOT NULL
----

query I rowsort
SELECT - 95 * - col2 AS col0 FROM tab1 WHERE NOT - col0 * + + 49 = + col0
----
5605
6460
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT DISTINCT - 35 DIV + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - 35 / + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE + col0 * col1 <= col1 + - 62 * - col1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 45 * + col0 col1, 76 + col0 * - ( + 56 ) AS col1 FROM tab1 AS cor0
----
-2295
-2780
-3825
-4684
-4095
-5020

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

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

query I rowsort
SELECT ALL - 61 * + col0 FROM tab0 AS cor0
----
-5307
-5917
-915

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 15 * + col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + + col2 <= + col2
----

query I rowsort
SELECT ALL - col2 + + ( 83 ) - col1 AS col1 FROM tab1 AS cor0
----
-27
-32
19

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

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

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

query I rowsort
SELECT DISTINCT + + col2 * - - ( 27 ) + 60 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 / + col2 IS NULL
----
1329
2733
330

query I rowsort
SELECT - 95 + 75 AS col2 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - 99 + + + 32 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + + col0 + col1 + - 43 AS col0 FROM tab1 AS cor0
----
22
47
95

query II rowsort
SELECT DISTINCT + + 75, 53 AS col0 FROM tab1 AS cor0
----
75
53

query I rowsort
SELECT + col1 * - 36 + - col2 FROM tab2 AS cor0
----
-1859
-2470
-2812

query I rowsort
SELECT - col2 + + + col1 AS col1 FROM tab2
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 3 > NULL
----

query I rowsort
SELECT + ( - + 68 ) AS col1 FROM tab2
----
-68
-68
-68

query II rowsort
SELECT DISTINCT + col0, 53 FROM tab2
----
46
53
64
53
75
53

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

query I rowsort
SELECT + 28 * 67 + - col1 AS col2 FROM tab0 AS cor0
----
1795
1855
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT + - COUNT( * ) + + - 97 AS col0 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + - COUNT ( * ) + + - 97 AS col0 FROM tab2 AS cor0
----
-100

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

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

skipif mysql # not compatible
query I rowsort label-6444
SELECT + - COUNT ( * ) * - ( - - COUNT ( * ) ) FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT MIN( DISTINCT + - col2 ) + - SUM( ALL 6 ) FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-6445
SELECT MIN ( DISTINCT + - col2 ) + - SUM ( ALL 6 ) FROM tab1
----
-114

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 46 IS NULL AND NOT 0 / - 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL = ( - + 21 )
----

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

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

query I rowsort
SELECT DISTINCT - - 62 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT ( - CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6450
SELECT ( - CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 76 * col0 * col1 FROM tab1 AS cor0
----
32300
325052
54264

onlyif mysql # aggregate syntax: 
query II rowsort label-6452
SELECT DISTINCT + COUNT( * ) AS col0, MAX( + col0 ) AS col0 FROM tab0
----
3
97

skipif mysql # not compatible
query II rowsort label-6452
SELECT DISTINCT + COUNT ( * ) AS col0, MAX ( + col0 ) AS col0 FROM tab0
----
3
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6453
SELECT DISTINCT - col0, - CAST( NULL AS SIGNED ) * + 39 + + 64 * + + 40 AS col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-6453
SELECT DISTINCT - col0, - CAST ( NULL AS INTEGER ) * + 39 + + 64 * + + 40 AS col1 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6454
SELECT DISTINCT 66 * + + ( + COUNT( * ) ) AS col2, - 30 + - CAST( NULL AS SIGNED ) * - 79 - + 59 FROM tab0
----
198
NULL

skipif mysql # not compatible
query II rowsort label-6454
SELECT DISTINCT 66 * + + ( + COUNT ( * ) ) AS col2, - 30 + - CAST ( NULL AS INTEGER ) * - 79 - + 59 FROM tab0
----
198
NULL

query I rowsort
SELECT ALL col2 * - + 14 AS col1 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT 38 - + - col0 + + + 52 NOT BETWEEN ( + col1 * col2 + + col1 / + col0 ) AND 53 + col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT - - SUM( ALL - 91 ) FROM tab2 WHERE NOT 31 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT - - SUM ( ALL - 91 ) FROM tab2 WHERE NOT 31 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / - col2 < ( - - 84 )
----

query I rowsort
SELECT ALL 80 * - + col2 * + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-391680
-401200
-495040

query I rowsort
SELECT + + col0 * - 30 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
2465
3366
3458

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT + CAST( + MIN( DISTINCT + - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6462
SELECT + CAST ( + MIN ( DISTINCT + - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6463
SELECT DISTINCT - 4 DIV - - MAX( DISTINCT + col2 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - 4 / - - MAX ( DISTINCT + col2 ) FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - 51 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT + - col2 > - 38
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6466
SELECT DISTINCT col1 DIV + + ( col0 ) AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT col1 / + + ( col0 ) AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6467
SELECT DISTINCT + 4 / 87 * col0 * - CAST( NULL AS SIGNED ) + + 3 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + 4 / 87 * col0 * - CAST ( NULL AS INTEGER ) + + 3 FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL MIN ( 42 ) FROM tab1 AS cor0
----
42

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

query I rowsort
SELECT ALL - + 92 AS col0 FROM tab1 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL - MIN( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL - MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - - 48 AS col1 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT + 22 + COUNT( * ) FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-6473
SELECT + 22 + COUNT ( * ) FROM tab0
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT COUNT( * ) * 55 * + 63 + - 16 FROM tab0
----
10379

skipif mysql # not compatible
query I rowsort label-6475
SELECT COUNT ( * ) * 55 * + 63 + - 16 FROM tab0
----
10379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT 2 + - ( - - 66 ) + - 9 * - + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6476
SELECT 2 + - ( - - 66 ) + - 9 * - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6477
SELECT ALL 14 * CAST( NULL AS SIGNED ) + col1, - col1 col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6477
SELECT ALL 14 * CAST ( NULL AS INTEGER ) + col1, - col1 col2 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + + col1 col1 FROM tab1
----
17
50
8

query I rowsort
SELECT ALL 24 + - + 10 FROM tab0 AS cor0
----
14
14
14

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 >= NULL
----

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

query I rowsort
SELECT 4 - col0 * col2 AS col0 FROM tab2
----
-1054
-2556
-4346

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

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

query I rowsort
SELECT ALL + 45 FROM tab1 AS cor0 WHERE NULL <> + col0 * - - col2 * 69
----

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

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

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

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

query I rowsort
SELECT DISTINCT + + ( - 98 ) FROM tab0 cor0
----
-98

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

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT + col2 / + 70 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL 11 / col0 * 27 AS col1 FROM tab1 AS cor0 WHERE 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6492
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1, col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query II rowsort label-6492
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1, col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6493
SELECT - 43, - col1 DIV + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-43
0
-43
0
-43
0

skipif mysql # not compatible
query II rowsort label-6493
SELECT - 43, - col1 / + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-43
0
-43
0
-43
0

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

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

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

query I rowsort
SELECT - 95 * + col1 * + 87 FROM tab2
----
-421515
-553755
-636405

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT - 1 DIV - 66 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT - 1 / - 66 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL + COUNT( ALL - 76 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + COUNT ( ALL - 76 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

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

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

query I rowsort
SELECT ALL ( + col2 ) + - ( - 91 ) FROM tab1
----
150
159
187

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT - SUM( - + 95 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
855

skipif mysql # not compatible
query I rowsort label-6503
SELECT - SUM ( - + 95 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL MIN( 87 ) + + + COUNT( + col0 ) AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL MIN ( 87 ) + + + COUNT ( + col0 ) AS col0 FROM tab2
----
90

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT + ( + - col0 ) + - - col0 > col1
----
-15
-87
-97

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 cor0 WHERE col2 - 14 * col1 <> NULL
----

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

query I rowsort
SELECT ALL + 43 + - - col0 AS col2 FROM tab2 AS cor0
----
107
118
89

query I rowsort
SELECT col0 * + col0 * + 89 AS col0 FROM tab2
----
188324
364544
500625

query I rowsort
SELECT DISTINCT - ( + - col1 ) + col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT ALL SUM( col1 ), 43 AS col2 FROM tab2
----
195
43

skipif mysql # not compatible
query II rowsort label-6512
SELECT ALL SUM ( col1 ), 43 AS col2 FROM tab2
----
195
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT DISTINCT + MIN( ALL col0 ) * - 3 AS col1 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT + MIN ( ALL col0 ) * - 3 AS col1 FROM tab1
----
-153

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + 72 * - 49 IS NULL
----

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

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

query I rowsort
SELECT ALL - + col1 + col2 + - col1 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT - col1 * col0 + - - col0 * - ( + col0 ) - - 20 AS col1 FROM tab1 cor0
----
-12538
-3295
-7630

query I rowsort
SELECT col2 * + - 2 - 50 FROM tab0 AS cor0
----
-144
-248
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6519
SELECT + CAST( NULL AS SIGNED ) AS col0, 88 + - 53 + - - ( - + col2 ) - - - col1 FROM tab1 cor0
----
NULL
-29
NULL
-75
NULL
-80

skipif mysql # not compatible
query II rowsort label-6519
SELECT + CAST ( NULL AS INTEGER ) AS col0, 88 + - 53 + - - ( - + col2 ) - - - col1 FROM tab1 cor0
----
NULL
-29
NULL
-75
NULL
-80

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

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

query I rowsort
SELECT DISTINCT + - 28 AS col2 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT + MIN( - + 40 ) col1 FROM tab1 cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6523
SELECT + MIN ( - + 40 ) col1 FROM tab1 cor0
----
-40

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT DISTINCT + COUNT( * ) + - 93 AS col1 FROM tab1 WHERE + - 0 * + + col2 BETWEEN - col0 AND - + col1
----
-93

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT + COUNT ( * ) + - 93 AS col1 FROM tab1 WHERE + - 0 * + + col2 BETWEEN - col0 AND - + col1
----
-93

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

query I rowsort
SELECT DISTINCT col1 + - col0 + - - col0 / - col1 AS col1 FROM tab0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6529
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + 7 AND + 96 * + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6529
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + 7 AND + 96 * + col1 + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - col0 AS col2, 19 - + + col2 FROM tab0
----
-15
-28
-87
9
-97
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT - MAX( ALL + + col2 ) * - 78 + - - 34 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
7620

skipif mysql # not compatible
query I rowsort label-6532
SELECT - MAX ( ALL + + col2 ) * - 78 + - - 34 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
7620

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT ALL col2 * + col2 + - col0 * + - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0 WHERE + col0 + + col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL col2 * + col2 + - col0 * + - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0 WHERE + col0 + + col0 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT ALL - 10 * + MIN( ALL + 85 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-850

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL - 10 * + MIN ( ALL + 85 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-850

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 6 + + col0 col0 FROM tab1 AS cor0
----
-269
-317
-525

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

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

query I rowsort
SELECT ALL + col2 + - - ( - + col1 ) - + 61 - 56 FROM tab0 cor0
----
-128
-151
-19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 20 - + - 91 * + + col1 BETWEEN - + 76 AND ( - + 40 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6546
SELECT CAST( col0 AS SIGNED ) + - 13 AS col0, - col1 * col2 AS col2 FROM tab2
----
33
-1173
51
-3080
62
-3886

skipif mysql # not compatible
query II rowsort label-6546
SELECT CAST ( col0 AS INTEGER ) + - 13 AS col0, - col1 * col2 AS col2 FROM tab2
----
33
-1173
51
-3080
62
-3886

query I rowsort
SELECT ALL - col0 * 31 AS col2 FROM tab0
----
-2697
-3007
-465

query I rowsort
SELECT ALL col2 * - - 6 AS col2 FROM tab2
----
138
240
348

query I rowsort
SELECT - 24 + + + col2 * + - col1 FROM tab0
----
-123
-234
-3831

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * + - 26 * 66 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6552
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - CAST( - col0 AS SIGNED ) * + - col0 AS col1, - 53 * + col2 FROM tab1
----
NULL
-3127
NULL
-3604
NULL
-5088

skipif mysql # not compatible
query II rowsort label-6552
SELECT DISTINCT CAST ( NULL AS REAL ) + - CAST ( - col0 AS INTEGER ) * + - col0 AS col1, - 53 * + col2 FROM tab1
----
NULL
-3127
NULL
-3604
NULL
-5088

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT col0 + 40 DIV - col1 col1 FROM tab1
----
49
77
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6553
SELECT col0 + 40 / - col1 col1 FROM tab1
----
49
77
91

query I rowsort
SELECT ALL 49 * col1 * col0 + + ( - + col0 ) AS col1 FROM tab0
----
4656
59520
89436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 - col0 col1 FROM tab2 cor0
----
-10
1
19

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT - COUNT( - 20 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6558
SELECT - COUNT ( - 20 ) AS col2 FROM tab0
----
-3

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query II rowsort
SELECT DISTINCT - + ( - 82 ), col0 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
82
2162
82
4160
82
5700

query I rowsort
SELECT ALL + + 4 AS col2 FROM tab0 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6564
SELECT + MIN( ALL + + col2 ) AS col2, + 64 AS col2 FROM tab2 cor0
----
23
64

skipif mysql # not compatible
query II rowsort label-6564
SELECT + MIN ( ALL + + col2 ) AS col2, + 64 AS col2 FROM tab2 cor0
----
23
64

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

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

skipif mysql # not compatible
query I rowsort label-6566
SELECT COUNT ( DISTINCT + 16 ) FROM tab1
----
1

query I rowsort
SELECT ( + col0 ) * 23 AS col2 FROM tab2
----
1058
1472
1725

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

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + COUNT ( ALL - col1 ) / - + MIN ( DISTINCT col1 ) AS col1 FROM tab2
----
0

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

skipif mysql # not compatible
query I rowsort label-6569
SELECT + SUM ( DISTINCT - 44 ) AS col1 FROM tab2
----
-44

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

skipif mysql # not compatible
query I rowsort label-6570
SELECT - CAST ( + + ( - + 17 ) AS INTEGER ) AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
17
17
17

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

skipif mysql # not compatible
query I rowsort label-6571
SELECT MAX ( DISTINCT - 42 ) AS col1 FROM tab0
----
-42

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

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT - MAX ( + col1 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT ALL - ( - + col0 ) + - col2 * - + 75 AS col1 FROM tab0
----
3540
7522
837

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 72 * + + 50 + + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + 34 FROM tab0
----
1598
3366
340

query I rowsort
SELECT ALL 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE col1 * 20 < - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6580
SELECT + 83 + + col1 DIV ( col0 ) FROM tab2 AS cor0
----
83
84
84

skipif mysql # not compatible
query I rowsort label-6580
SELECT + 83 + + col1 / ( col0 ) FROM tab2 AS cor0
----
83
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL - ( - COUNT( * ) ) * + 63 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL - ( - COUNT ( * ) ) * + 63 FROM tab0 AS cor0
----
189

query I rowsort
SELECT - + 68 * - col2 + + col2 FROM tab1 cor0
----
4071
4692
6624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6583
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-6583
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT col2, col0 * - col2 FROM tab0 AS cor0
----
10
-870
47
-705
99
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT MAX( ALL + + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT MAX ( ALL + + col1 ) AS col1 FROM tab1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6586
SELECT + 1 - + - SUM( DISTINCT + CAST( 69 AS SIGNED ) ) FROM tab1 WHERE col0 IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-6586
SELECT + 1 - + - SUM ( DISTINCT + CAST ( 69 AS INTEGER ) ) FROM tab1 WHERE col0 IS NOT NULL
----
70

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

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

query I rowsort
SELECT ALL col2 + + - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT col0 * + col2 - 58 FROM tab0 AS cor0
----
647
812
9545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT ALL + + ( - - col0 ) * + - CAST( - col0 AS SIGNED ) - + col0 - col1 + - + 42 AS col0 FROM tab1 AS cor0
----
2494
7093
8101

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL + + ( - - col0 ) * + - CAST ( - col0 AS INTEGER ) - + col0 - col1 + - + 42 AS col0 FROM tab1 AS cor0
----
2494
7093
8101

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

query I rowsort
SELECT DISTINCT col0 * + 55 AS col1 FROM tab0 cor0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT ALL SUM( DISTINCT + 26 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL SUM ( DISTINCT + 26 ) FROM tab2
----
26

query II rowsort
SELECT - col0 AS col0, col1 * - col2 FROM tab0
----
-15
-3807
-87
-210
-97
-99

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 71 NOT BETWEEN NULL AND + - col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - 71 col1 FROM tab1 AS cor0
----
3337
355
994

query I rowsort
SELECT col2 * + 11 AS col1 FROM tab0 AS cor0
----
1089
110
517

query I rowsort
SELECT 56 * + 78 FROM tab1, tab2 AS cor0
----
9 values hashing to ea7de11f398d25449fedf96950ce3c07

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + MAX( - 1 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6603
SELECT + MAX ( - 1 ) AS col1 FROM tab1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 33 AND + 97
----
0

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 33 AND + 97
----
0

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + - 18 - - 1 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 AS col0, - 87 + col2 col0 FROM tab1 AS cor0 WHERE NOT + 45 * col2 IS NULL
----
51
9
85
-28
91
-19

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

query I rowsort
SELECT ALL 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query II rowsort
SELECT col1, col2 * - - 83 AS col2 FROM tab0
----
1
8217
21
830
81
3901

query I rowsort
SELECT ALL + col0 - - - 24 FROM tab0 AS cor0
----
-9
63
73

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - col2 + - col0
----

query I rowsort
SELECT DISTINCT + - 82 - col1 FROM tab1 AS cor0
----
-129
-87
-96

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6619
SELECT DISTINCT + - CAST( + MIN( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT + - CAST ( + MIN ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + col1 * col1 + + - col0 FROM tab0
----
-96
354
6546

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT - 56 DIV + - col2 FROM tab1 WHERE ( NOT + 94 IS NULL ) OR - + col0 = - 98
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT - 56 / + - col2 FROM tab1 WHERE ( NOT + 94 IS NULL ) OR - + col0 = - 98
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6622
SELECT DISTINCT + 10 AS col0, - col0 DIV + col2 FROM tab2
----
10
-1
10
-2

skipif mysql # not compatible
query II rowsort label-6622
SELECT DISTINCT + 10 AS col0, - col0 / + col2 FROM tab2
----
10
-1
10
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT + COUNT( - - col0 ) DIV - ( 22 ) + - 41 AS col1 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-6623
SELECT + COUNT ( - - col0 ) / - ( 22 ) + - 41 AS col1 FROM tab1
----
-41

query I rowsort
SELECT ALL + ( + ( + col1 ) ) * - col2 + - col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT - col1 + - col1 * 11 FROM tab1
----
-168
-564
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + - col0 col2 FROM tab2
----
56
59
90

query I rowsort
SELECT - 16 * + col2 FROM tab1
----
-1088
-1536
-944

query I rowsort
SELECT ALL - 71 + - - ( + - ( - col0 ) ) FROM tab0
----
-56
16
26

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( + + col1 ) > col1 + - + ( col2 )
----
15
81
47
87
21
10

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6631
SELECT DISTINCT MAX ( + col0 ) col1 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6632
SELECT ALL - col0 AS col1, - CAST( + 22 AS SIGNED ) * - col2 - col1 + + + col1 + - col1 + - + ( + col2 ) * col1 * - - col0 AS col2 FROM tab2 cor0
----
-46
-53503
-64
-196317
-75
-290241

skipif mysql # not compatible
query II rowsort label-6632
SELECT ALL - col0 AS col1, - CAST ( + 22 AS INTEGER ) * - col2 - col1 + + + col1 + - col1 + - + ( + col2 ) * col1 * - - col0 AS col2 FROM tab2 cor0
----
-46
-53503
-64
-196317
-75
-290241

query I rowsort
SELECT 29 FROM tab1 AS cor0 WHERE NOT - 39 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= col2 * - + 41
----

query I rowsort
SELECT DISTINCT - col1 * + - 16 FROM tab1 cor0
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL + MIN( - 99 ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + MIN ( - 99 ) FROM tab2 AS cor0
----
-99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) + 71 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) + 71 FROM tab2 AS cor0
----
70

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

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

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

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

query I rowsort
SELECT + + col2 + 75 * + col1 AS col1 FROM tab2 AS cor0
----
3848
5083
5815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT ALL AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 14 * + col2 AS col2 FROM tab1
----
1344
826
952

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 38 + + col2 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT ( col0 ) DIV - col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT ( col0 ) / - col1 AS col1 FROM tab2
----
-1
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL COUNT( * ) + - 65 AS col1 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL COUNT ( * ) + - 65 AS col1 FROM tab0
----
-62

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6649
SELECT DISTINCT 40 + - + col1 + col0 + 11 + col2 * - col1 AS col2, col1 AS col0 FROM tab2 WHERE - 60 < + + 97 + + 27 + CAST( + col2 AS SIGNED )
----
-1127
51
-3042
77
-3827
67

skipif mysql # not compatible
query II rowsort label-6649
SELECT DISTINCT 40 + - + col1 + col0 + 11 + col2 * - col1 AS col2, col1 AS col0 FROM tab2 WHERE - 60 < + + 97 + + 27 + CAST ( + col2 AS INTEGER )
----
-1127
51
-3042
77
-3827
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab2 WHERE - + 33 / - 88 * 13 = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT DISTINCT - ( - CAST( + 30 AS SIGNED ) ) + - col1 FROM tab1 AS cor0
----
-17
16
25

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT - ( - CAST ( + 30 AS INTEGER ) ) + - col1 FROM tab1 AS cor0
----
-17
16
25

query I rowsort
SELECT - - 20 AS col1 FROM tab2 AS cor0
----
20
20
20

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL - COUNT( * ) * + - COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6655
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) col2 FROM tab2
----
9

query I rowsort
SELECT - 81 + - col2 AS col1 FROM tab0
----
-128
-180
-91

query I rowsort
SELECT - col1 + + 15 + 24 + + 7 AS col0 FROM tab0
----
-35
25
45

query I rowsort
SELECT - 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT ALL + 97 DIV - + col2 + + 53 AS col0 FROM tab0 cor0
----
44
51
53

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + 97 / - + col2 + + 53 AS col0 FROM tab0 cor0
----
44
51
53

onlyif mysql # DIV for integer division: 
query II rowsort label-6660
SELECT DISTINCT + col1 - 72 + + - 63 DIV col2 AS col0, col1 * 14 FROM tab0 AS cor0
----
-57
294
-71
14
8
1134

skipif mysql # not compatible
query II rowsort label-6660
SELECT DISTINCT + col1 - 72 + + - 63 / col2 AS col0, col1 * 14 FROM tab0 AS cor0
----
-57
294
-71
14
8
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT ALL + COUNT( * ) - 68 + 9 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL + COUNT ( * ) - 68 + 9 FROM tab2 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + - col0 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3
7
79

query I rowsort
SELECT DISTINCT 37 + 2 FROM tab0 AS cor0
----
39

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

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

query I rowsort
SELECT ALL - col0 * - 8 * - - col2 * 98 - 82 - + 51 FROM tab2 AS cor0
----
2006907
3410267
829339

query I rowsort
SELECT - + col0 * + 39 * + col1 * - + 81 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT ALL + 34 / + col2 + 96, 62 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 - col0 * + + col0 AS col2 FROM tab1
----
-2652
-7310
-8372

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT DISTINCT + 86 AS col2, + COUNT( * ) AS col0 FROM tab0
----
86
3

skipif mysql # not compatible
query II rowsort label-6670
SELECT DISTINCT + 86 AS col2, + COUNT ( * ) AS col0 FROM tab0
----
86
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT + MAX( + + col0 ) * + SUM( DISTINCT + + col2 ) AS col1 FROM tab0
----
15132

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT + MAX ( + + col0 ) * + SUM ( DISTINCT + + col2 ) AS col1 FROM tab0
----
15132

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6674
SELECT + ( + COUNT( * ) ) DIV + 69 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT + ( + COUNT ( * ) ) / + 69 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab1 AS cor0 WHERE NOT ( 24 ) / 90 * + 11 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT DISTINCT - ( + CAST( + - col0 AS SIGNED ) ) col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6676
SELECT DISTINCT - ( + CAST ( + - col0 AS INTEGER ) ) col2 FROM tab0 AS cor0
----
15
87
97

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

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

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

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

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

query I rowsort
SELECT - 99 * + col1 * + 1 FROM tab2
----
-5049
-6633
-7623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 - - - ( + col0 ) col0 FROM tab2 cor0
----
1127
3016
3811

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT - 19 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6683
SELECT - 19 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-57

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

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

query I rowsort
SELECT - col0 * + + col2 + ( 61 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-2499
-4289
-997

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6689
SELECT DISTINCT - - COUNT( * ), 83 + + + COUNT( * ) DIV + COUNT( * ) + + 91 col1 FROM tab1 cor0
----
3
175

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6689
SELECT DISTINCT - - COUNT ( * ), 83 + + + COUNT ( * ) / + COUNT ( * ) + + 91 col1 FROM tab1 cor0
----
3
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT 32 * ( + + MAX( DISTINCT 68 ) ) AS col0 FROM tab2
----
2176

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT 32 * ( + + MAX ( DISTINCT 68 ) ) AS col0 FROM tab2
----
2176

query I rowsort
SELECT col0 + - 34 AS col1 FROM tab2
----
12
30
41

query I rowsort
SELECT ALL + 83 * + 5 + - col0 AS col2 FROM tab1
----
324
330
364

query II rowsort
SELECT DISTINCT + 91 * col1, + col0 FROM tab1
----
1274
51
4277
91
455
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 5 + col0 col1 FROM tab2
----
102
146
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT DISTINCT 57 + COUNT( DISTINCT - col0 ) AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT 57 + COUNT ( DISTINCT - col0 ) AS col0 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ( + 1 ) + - ( + COUNT( * ) ) * + COUNT( * ) FROM tab0
----
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT - col2 * ( 57 ) + - 2 DIV col2 FROM tab2
----
-1311
-2280
-3306

skipif mysql # not compatible
query I rowsort label-6697
SELECT - col2 * ( 57 ) + - 2 / col2 FROM tab2
----
-1311
-2280
-3306

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6700
SELECT ALL + 48 DIV col2 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + 48 / col2 AS col1 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT - 1 - col0 AS col0 FROM tab2 cor0
----
-47
-65
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 51 + - col0 + - col1, - col2 col2 FROM tab2 cor0
----
-46
-23
-90
-40
-91
-58

query I rowsort
SELECT ALL + - 18 - col1 AS col1 FROM tab1 AS cor0
----
-23
-32
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6704
SELECT DISTINCT + COUNT( * ) + - MIN( ALL col2 ) + - CAST( COUNT( - 89 ) AS SIGNED ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT + COUNT ( * ) + - MIN ( ALL col2 ) + - CAST ( COUNT ( - 89 ) AS INTEGER ) FROM tab2 AS cor0
----
-23

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

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

query I rowsort
SELECT ALL ( - 71 ) * - col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6708
SELECT CAST ( col1 AS INTEGER ) col1 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 67 * + - col1 col2 FROM tab1
----
-13132
-148003
-1675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT 66 DIV - COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-6710
SELECT 66 / - COUNT ( * ) FROM tab2
----
-22

query I rowsort
SELECT 91 * + col1 FROM tab1
----
1274
4277
455

query I rowsort
SELECT col0 * - 78 FROM tab1
----
-3978
-6630
-7098

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 9 / col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + col2 ) col1, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 33 col1, - 19 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 9656a3488157159759a081248473ecee

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6718
SELECT DISTINCT 45 * - CAST( - 86 AS SIGNED ) + + CAST( col2 AS DECIMAL ) col1, col1 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + 97 AND - - 22
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6718
SELECT DISTINCT 45 * - CAST ( - 86 AS INTEGER ) + + CAST ( col2 AS REAL ) col1, col1 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + 97 AND - - 22
----

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

query I rowsort
SELECT - col0 + - col0 + + col0 * - col1 * + 47 * + col1 * - col2 FROM tab1 AS cor0
----
45101850
5892455
642456542

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

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

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

query I rowsort
SELECT - - col1 + + 92 + + 99 * 27 AS col2 FROM tab0 AS cor0
----
2766
2786
2846

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + + + col1 col0 FROM tab0
----
-624
-849
-9602

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

query I rowsort
SELECT DISTINCT + 69 + - col2 - 72 FROM tab0
----
-102
-13
-50

query II rowsort
SELECT DISTINCT col0, 34 AS col2 FROM tab0
----
15
34
87
34
97
34

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT - ( col2 ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT + COUNT( * ) col0 FROM tab2 WHERE NULL IS NULL
----
3

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

query II rowsort
SELECT + 22 AS col2, 66 FROM tab0
----
22
66
22
66
22
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6732
SELECT DISTINCT 15 + ( - - ( ( + + COUNT( * ) ) ) ) + COUNT( * ) AS col2, - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
21
-3

skipif mysql # not compatible
query II rowsort label-6732
SELECT DISTINCT 15 + ( - - ( ( + + COUNT ( * ) ) ) ) + COUNT ( * ) AS col2, - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
21
-3

query I rowsort
SELECT DISTINCT col1 * + - 83 * - col2 - - 30 * col2 AS col1 FROM tab2 AS cor0
----
256840
324278
98049

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

query I rowsort
SELECT ALL - 13 + + col0 AS col0 FROM tab2
----
33
51
62

query I rowsort
SELECT ALL - 64 * + col1 * - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-197120
-248704
-75072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6737
SELECT ALL - CAST( + - col0 AS SIGNED ) * + - col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL - CAST ( + - col0 AS INTEGER ) * + - col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + 95 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT DISTINCT + 41 DIV col2 AS col2 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-6739
SELECT DISTINCT + 41 / col2 AS col2 FROM tab0
----
0
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 38 * col1 * - col1 IS NOT NULL
----

query II rowsort
SELECT + 7, 68 AS col1 FROM tab1
----
7
68
7
68
7
68

query II rowsort
SELECT 75, - 94 + + 42 AS col1 FROM tab0
----
75
-52
75
-52
75
-52

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col2 / + col1 + - - col1 = + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE col2 / + col1 + - - col1 = + + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * col2 col1 FROM tab2 AS cor0
----
-1720
-2494
-989

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT ( 61 ) * - - 80 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT ( 61 ) * - - 80 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + + 25 * - col0 FROM tab0 AS cor0
----
2425
30375
45675

query II rowsort
SELECT DISTINCT - 51 + + 47, - 83 * - - col2 AS col0 FROM tab1 AS cor0
----
-4
-4897
-4
-5644
-4
-7968

query I rowsort
SELECT DISTINCT ( + 65 ) AS col0 FROM tab1 cor0
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + - col1 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL 25 * COUNT( * ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL 25 * COUNT ( * ) AS col2 FROM tab2
----
75

query I rowsort
SELECT ALL + 78 * col1 + - col1 AS col0 FROM tab1
----
1078
3619
385

query I rowsort
SELECT col1 * + 25 + + col2 AS col2 FROM tab0
----
124
2072
535

onlyif mysql # aggregate syntax: 
query II rowsort label-6756
SELECT DISTINCT + MIN( - ( - 4 ) ), - ( - ( 67 ) ) AS col1 FROM tab1
----
4
67

skipif mysql # not compatible
query II rowsort label-6756
SELECT DISTINCT + MIN ( - ( - 4 ) ), - ( - ( 67 ) ) AS col1 FROM tab1
----
4
67

query I rowsort
SELECT ALL - 82 + - + col1 + col1 AS col1 FROM tab0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT col2 + + 2 FROM tab0
----
101
12
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 + + + 89 col1 FROM tab2
----
158
193
222

query I rowsort
SELECT DISTINCT + 13 + - 60 + + col2 FROM tab2
----
-24
-7
11

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN col1 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT + COUNT( * ) * - 73 * + - 89 - - 40 FROM tab2
----
19531

skipif mysql # not compatible
query I rowsort label-6762
SELECT + COUNT ( * ) * - 73 * + - 89 - - 40 FROM tab2
----
19531

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

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

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

query II rowsort
SELECT - col0 AS col0, ( - ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6766
SELECT DISTINCT - SUM( - 93 ) DIV 25 * 64 - - 7 AS col0 FROM tab1 AS cor0
----
711

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - SUM ( - 93 ) / 25 * 64 - - 7 AS col0 FROM tab1 AS cor0
----
711

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT ( + - col2 ) DIV - 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6767
SELECT ( + - col2 ) / - 90 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 43 FROM tab2 AS cor0 WHERE NOT - 62 * + 2 * ( - col2 ) - + - ( + + col2 ) IS NULL
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL - - 71 * + COUNT( * ) + + - 53 FROM tab1 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - - 71 * + COUNT ( * ) + + - 53 FROM tab1 AS cor0
----
160

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 + - 75 + 39 NOT BETWEEN NULL AND - 64
----

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

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

query I rowsort
SELECT ALL + col2 * 24 * col2 AS col0 FROM tab2 AS cor0
----
12696
38400
80736

query I rowsort
SELECT - - 69 FROM tab2 AS cor0
----
69
69
69

query II rowsort
SELECT col2 AS col2, + col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6776
SELECT ALL + MIN ( DISTINCT - col0 ) col2 FROM tab1
----
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT DISTINCT - MAX( ALL - 46 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT - MAX ( ALL - 46 ) FROM tab0
----
46

query I rowsort
SELECT 81 * - - col1 * + - 85 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 31 * 62 AS col1 FROM tab0
----
-1922
-1922
-1922

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

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

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

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE + 35 >= - col2 + + 94
----
-97

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

skipif mysql # not compatible
query I rowsort label-6785
SELECT + CAST ( CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 - - + 1 AS col1 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT + col1 * + 35 * + - 8 AS col2 FROM tab2
----
-14280
-18760
-21560

query I rowsort
SELECT DISTINCT - col2 + - - 82 FROM tab1
----
-14
14
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT ALL + 47 + + + 3 - + + CAST( - col0 AS SIGNED ) + + col2 * col0 AS col2 FROM tab0
----
1007
770
9750

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL + 47 + + + 3 - + + CAST ( - col0 AS INTEGER ) + + col2 * col0 AS col2 FROM tab0
----
1007
770
9750

query I rowsort
SELECT 2 - - + col2 FROM tab2 AS cor0
----
25
42
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT + CAST( + col0 AS SIGNED ) * ( - col0 ) * + - 18 + + + col0 AS col2 FROM tab1 AS cor0
----
130135
149149
46869

skipif mysql # not compatible
query I rowsort label-6792
SELECT + CAST ( + col0 AS INTEGER ) * ( - col0 ) * + - 18 + + + col0 AS col2 FROM tab1 AS cor0
----
130135
149149
46869

query I rowsort
SELECT DISTINCT - col2 + - - 71 FROM tab1 AS cor0
----
-25
12
3

query I rowsort
SELECT ALL + col1 * - - col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 43 + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 + - - col1 NOT BETWEEN 92 AND col1 * + + 85
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 col0 FROM tab0 AS cor0
----
94
94
94

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - 33 * + col1
----

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

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

query I rowsort
SELECT ALL - col1 * - 52 AS col1 FROM tab0
----
1092
4212
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 col2 FROM tab1 WHERE - col0 - - - col2 < - col0 + + + ( - - col0 )
----
-23
-26
45

query II rowsort
SELECT - 29 AS col1, col1 AS col2 FROM tab2
----
-29
51
-29
67
-29
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6805
SELECT col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + - CAST( NULL AS DECIMAL ) AND + - 84
----

skipif mysql # not compatible
query I rowsort label-6805
SELECT col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + - CAST ( NULL AS REAL ) AND + - 84
----

query I rowsort
SELECT DISTINCT col0 * - + 42 + + col0 FROM tab0
----
-3567
-3977
-615

query III rowsort
SELECT ALL - 27 AS col1, - col2 AS col1, + ( + col2 ) AS col1 FROM tab0
----
9 values hashing to 925748a119f098f88d36026adf77d418

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL SUM( DISTINCT 22 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL SUM ( DISTINCT 22 ) FROM tab1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6809
SELECT ( + 54 ) * COUNT( * ) DIV + + MIN( 37 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6809
SELECT ( + 54 ) * COUNT ( * ) / + + MIN ( 37 ) FROM tab2
----
4

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

query I rowsort
SELECT + col1 + col2 + - - 58 FROM tab2 AS cor0
----
132
175
183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6813
SELECT DISTINCT COUNT( * ) DIV CAST( - - 28 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT COUNT ( * ) / CAST ( - - 28 AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 75 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6816
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) DIV + 15 FROM tab1 cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) / + 15 FROM tab1 cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + + col0 col0 FROM tab2
----
-2070
-4032
-5550

query I rowsort
SELECT + + col2 FROM tab0 WHERE + ( + - col0 ) - 92 >= NULL
----

query I rowsort
SELECT + - 46 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL col2 + col1 + col0 AS col0 FROM tab1
----
149
161
206

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE + - 94 / + - col2 <= + col0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( + - col1, col2 + + 21 + - col0, - col1 * + - 94 + - col0 )
----

query I rowsort
SELECT DISTINCT + 51 + + ( 19 ) FROM tab2 AS cor0
----
70

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

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

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

query I rowsort
SELECT DISTINCT col2 * 92 AS col1 FROM tab0
----
4324
9108
920

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6827
SELECT * FROM tab1 WHERE - col2 * - + 51 + col2 BETWEEN + 6 + - CAST( NULL AS DECIMAL ) * - col1 AND - 10
----

skipif mysql # not compatible
query III rowsort label-6827
SELECT * FROM tab1 WHERE - col2 * - + 51 + col2 BETWEEN + 6 + - CAST ( NULL AS REAL ) * - col1 AND - 10
----

query II rowsort
SELECT ALL 3, - col1 * - 66 AS col0 FROM tab2
----
3
3366
3
4422
3
5082

query I rowsort
SELECT DISTINCT col2 + 95 FROM tab1
----
154
163
191

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ( MAX( col2 ) ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6830
SELECT ( MAX ( col2 ) ) col0 FROM tab2
----
58

query I rowsort
SELECT ALL - 75 FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NULL ) OR NULL >= NULL
----

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

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

query I rowsort
SELECT 20 * + 12 + col0 FROM tab2
----
286
304
315

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) NOT IN ( 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT - 65 + - CAST( col1 + CAST( 2 AS SIGNED ) AS SIGNED ) FROM tab2
----
-118
-134
-144

skipif mysql # not compatible
query I rowsort label-6837
SELECT - 65 + - CAST ( col1 + CAST ( 2 AS INTEGER ) AS INTEGER ) FROM tab2
----
-118
-134
-144

query I rowsort
SELECT col0 * + 98 + col0 AS col1 FROM tab0
----
1485
8613
9603

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT DISTINCT + ( + COUNT( * ) ) / CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col2 NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT + ( + COUNT ( * ) ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col2 NOT IN ( col0 )
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 >= col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT - COUNT( * ) * MIN( ALL + col2 ) AS col1 FROM tab1 WHERE col2 + 43 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT - COUNT ( * ) * MIN ( ALL + col2 ) AS col1 FROM tab1 WHERE col2 + 43 = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6846
SELECT DISTINCT COUNT( * ) * ( - 42 ) - CAST( NULL AS DECIMAL ) * ( + 0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT COUNT ( * ) * ( - 42 ) - CAST ( NULL AS REAL ) * ( + 0 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 * col0 FROM tab2 WHERE NULL NOT IN ( 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT 13 - MIN( ALL + col2 + + col0 ) AS col0 FROM tab1
----
-131

skipif mysql # not compatible
query I rowsort label-6848
SELECT 13 - MIN ( ALL + col2 + + col0 ) AS col0 FROM tab1
----
-131

query I rowsort
SELECT ALL - ( - col2 ) * - col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab1 WHERE NOT + 10 <> - col0
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT + col0 <= ( - col2 + - col2 )
----
1
21
81

query I rowsort
SELECT col2 - + col0 FROM tab1 AS cor0 WHERE + 40 * col2 IS NULL
----

query I rowsort
SELECT 98 * - 70 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT 93 + SUM( ALL col1 ) * + 58 FROM tab1 AS cor0
----
3921

skipif mysql # not compatible
query I rowsort label-6854
SELECT 93 + SUM ( ALL col1 ) * + 58 FROM tab1 AS cor0
----
3921

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6855
SELECT - COUNT ( * ) + COUNT ( * ) col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT ALL CAST( col2 AS SIGNED ) + + 50 FROM tab0 WHERE NOT ( 91 ) IS NULL
----
149
60
97

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL CAST ( col2 AS INTEGER ) + + 50 FROM tab0 WHERE NOT ( 91 ) IS NULL
----
149
60
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6857
SELECT DISTINCT - COUNT( * ) DIV - 15 + MIN( DISTINCT col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT - COUNT ( * ) / - 15 + MIN ( DISTINCT col0 ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT DISTINCT - 44 + - ( + MAX( ALL ( + col1 ) ) ) FROM tab0 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT - 44 + - ( + MAX ( ALL ( + col1 ) ) ) FROM tab0 AS cor0
----
-125

query I rowsort
SELECT 9 / - col0 - + col1 FROM tab2 AS cor0 WHERE + col0 * col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT + COUNT( col2 ) * 58 AS col1 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-6860
SELECT + COUNT ( col2 ) * 58 AS col1 FROM tab0 AS cor0
----
174

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 cor0 WHERE ( - col0 ) NOT IN ( col1 )
----
23
40
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL MIN( col0 ) - 78 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL MIN ( col0 ) - 78 FROM tab2 AS cor0
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT - + COUNT( * ) * 40 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-6865
SELECT - + COUNT ( * ) * 40 FROM tab2 AS cor0
----
-120

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

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

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

query I rowsort
SELECT ALL col1 * - 15 AS col2 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT ALL 82 - - 53 FROM tab0
----
135
135
135

query I rowsort
SELECT 87 - + + 51 AS col0 FROM tab0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT COUNT( * ) * + 62 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT COUNT ( * ) * + 62 FROM tab2
----
186

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

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

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

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT COUNT ( * ) / - ( + COUNT ( + col2 ) ) AS col1 FROM tab1
----
-1

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

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( - col1 * - ( col2 ) ) IN ( col0 + - ( 93 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6876
SELECT ALL CAST( MAX( 70 ) AS SIGNED ) FROM tab0 WHERE NOT - col2 IS NULL
----
70

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL CAST ( MAX ( 70 ) AS INTEGER ) FROM tab0 WHERE NOT - col2 IS NULL
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE - col2 IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6877
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE - col2 IN ( col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 - + col2 * 75 < + col0 * ( 27 ) - - 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 67 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT 13 * col2 IN ( + col1 )
----
-1541
-2680
-3886

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT - ( MAX( DISTINCT + 40 ) ) FROM tab2 cor0 WHERE NULL NOT IN ( - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT - ( MAX ( DISTINCT + 40 ) ) FROM tab2 cor0 WHERE NULL NOT IN ( - 49 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6882
SELECT - CAST( 11 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-6882
SELECT - CAST ( 11 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col2 * col2 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col0 * - + col1 AS col0 FROM tab1
----
425
4277
714

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

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

query I rowsort
SELECT ( + 84 ) FROM tab1 WHERE NOT ( - - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6888
SELECT DISTINCT COUNT( * ) DIV + MIN( 7 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT COUNT ( * ) / + MIN ( 7 ) FROM tab2
----
0

query I rowsort
SELECT col2 + - - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
104
133
69

query I rowsort
SELECT col0 * - - 59 AS col2 FROM tab1 AS cor0
----
3009
5015
5369

query II rowsort
SELECT DISTINCT - 53, ( col2 ) FROM tab1 AS cor0
----
-53
59
-53
68
-53
96

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

query II rowsort
SELECT ALL col1 AS col2, + col1 - + + 60 AS col1 FROM tab1 AS cor0
----
14
-46
47
-13
5
-55

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT + 41 * 2 IN ( - 10 + col1 / col0 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT MAX( 90 ) * - 30 FROM tab2 AS cor0
----
-2700

skipif mysql # not compatible
query I rowsort label-6895
SELECT MAX ( 90 ) * - 30 FROM tab2 AS cor0
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6896
SELECT - col0 col1, - CAST( + col0 AS SIGNED ) * 34 FROM tab1 AS cor0
----
-51
-1734
-85
-2890
-91
-3094

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6896
SELECT - col0 col1, - CAST ( + col0 AS INTEGER ) * 34 FROM tab1 AS cor0
----
-51
-1734
-85
-2890
-91
-3094

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= + col2
----

query I rowsort
SELECT 21 AS col2 FROM tab2 WHERE NOT 29 * + col0 NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - 43 * col2 * + - 75 * - + ( + 92 ) FROM tab0
----
-13944900
-29373300
-2967000

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6902
SELECT COUNT( * ) + + + 67 AS col1, - 41 col2 FROM tab0
----
70
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6902
SELECT COUNT ( * ) + + + 67 AS col1, - 41 col2 FROM tab0
----
70
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL 20 + - - CAST( - col2 AS SIGNED ) FROM tab2
----
-20
-3
-38

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 20 + - - CAST ( - col2 AS INTEGER ) FROM tab2
----
-20
-3
-38

query III rowsort
SELECT * FROM tab0 WHERE + 6 <> + - 70 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT - COUNT( * ) + COUNT( * ) + 29 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-6905
SELECT - COUNT ( * ) + COUNT ( * ) + 29 FROM tab0
----
29

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

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

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

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

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

query I rowsort
SELECT ALL - + 61 * 52 AS col0 FROM tab0 AS cor0
----
-3172
-3172
-3172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT DISTINCT col0 + - ( + CAST( col2 AS SIGNED ) ) AS col1 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT col0 + - ( + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1
----
-45
23
26

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( col1 * - - col2 / col0 + - col0 ) BETWEEN ( NULL ) AND - 88 * + col2
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT COUNT( * ) * - 37 col1 FROM tab0
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6915
SELECT COUNT ( * ) * - 37 col1 FROM tab0
----
-111

query I rowsort
SELECT DISTINCT AVG ( + col0 ) AS col1 FROM tab2 WHERE NULL < ( col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - - col2 col0 FROM tab2 AS cor0
----
-17
-23
-24

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 * - col2 >= ( 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - AVG ( + 51 ) - + 43 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 44 )
----
NULL

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

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

query I rowsort
SELECT 49 * + col1 FROM tab2
----
2499
3283
3773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col1 FROM tab1 WHERE ( col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL 39 * - COUNT( * ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL 39 * - COUNT ( * ) FROM tab0
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * - - col2 col0 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT + 45 * - ( - - col2 ) FROM tab2
----
-1035
-1800
-2610

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT col1 DIV 18 DIV + col0 * col1 * 64 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6927
SELECT col1 / 18 / + col0 * col1 * 64 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 72 * - 10 AS col0 FROM tab0
----
-720
-720
-720

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 - + ( + col1 ) BETWEEN + + 98 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 - + ( + col1 ) BETWEEN + + 98 AND NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6933
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col0, col2 + CAST( + - 84 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6933
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col0, col2 + CAST ( + - 84 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT ALL - col1 DIV + col2 * - 33 DIV - + 29 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL - col1 / + col2 * - 33 / - + 29 FROM tab0 AS cor0
----
-1
-2
0

query II rowsort
SELECT col1 AS col2, + col0 * col2 + 27 + col1 AS col0 FROM tab0 AS cor0
----
1
9631
21
918
81
813

query I rowsort
SELECT ALL - 84 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query III rowsort
SELECT DISTINCT col0 * + col2 AS col2, col0 AS col2, + 88 AS col1 FROM tab1
----
9 values hashing to f72d1781ad185652a46eca80b3c19e18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6939
SELECT col0 + - + 34 + 27 * + - col1 + + 1 * + 80 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT col0 + - + 34 + 27 * + - col1 + + 1 * + 80 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL COUNT( * ) + ( - 78 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( - col2 )
----
-78

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL COUNT ( * ) + ( - 78 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND ( - col2 )
----
-78

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6942
SELECT - 72 + col0 - - + CAST( + col2 AS SIGNED ) DIV col2 AS col1 FROM tab1 AS cor0
----
-20
14
20

skipif mysql # not compatible
query I rowsort label-6942
SELECT - 72 + col0 - - + CAST ( + col2 AS INTEGER ) / col2 AS col1 FROM tab1 AS cor0
----
-20
14
20

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6945
SELECT DISTINCT - col2, 61 * - col0 + + 98 DIV - col2 AS col1 FROM tab0
----
-10
-5316
-47
-917
-99
-5917

skipif mysql # not compatible
query II rowsort label-6945
SELECT DISTINCT - col2, 61 * - col0 + + 98 / - col2 AS col1 FROM tab0
----
-10
-5316
-47
-917
-99
-5917

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

query II rowsort
SELECT + col2, col1 * col0 FROM tab0
----
10
1827
47
1215
99
97

query II rowsort
SELECT + col2, col0 * - 99 AS col1 FROM tab1
----
59
-8415
68
-9009
96
-5049

query II rowsort
SELECT ALL + 11 - + col1 + - + col1 AS col2, 25 FROM tab2 WHERE + + col2 IS NOT NULL
----
-123
25
-143
25
-91
25

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - - col2 BETWEEN + col2 * col0 AND ( + + 66 - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - - col2 + CAST ( NULL AS REAL ) + - + col1 + - - 71 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 65 * col2 + + + col2 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT ALL ( + col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL col0 * + - 86 FROM tab1
----
-4386
-7310
-7826

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 82 * col2 > ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT 83 * + + COUNT( ALL 86 ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-6958
SELECT 83 * + + COUNT ( ALL 86 ) FROM tab1
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT ALL - + col1 * - + col1 + 62 DIV 38 + - 30 FROM tab0 AS cor0
----
-28
412
6532

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL - + col1 * - + col1 + 62 / 38 + - 30 FROM tab0 AS cor0
----
-28
412
6532

query I rowsort
SELECT DISTINCT col1 - + - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
117
125
74

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

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

query I rowsort
SELECT ALL + + 29 + - + 85 FROM tab2 AS cor0
----
-56
-56
-56

query II rowsort
SELECT ALL - 5 - 79 AS col1, + col0 FROM tab1 AS cor0
----
-84
51
-84
85
-84
91

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 85 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 43 * col1 * + - col2 FROM tab0 AS cor0
----
-163701
-4257
-9030

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6968
SELECT DISTINCT + COUNT( * ) AS col1, 28 FROM tab1
----
3
28

skipif mysql # not compatible
query II rowsort label-6968
SELECT DISTINCT + COUNT ( * ) AS col1, 28 FROM tab1
----
3
28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT - 90 DIV + 28 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6970
SELECT - 90 / + 28 FROM tab2
----
-3
-3
-3

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT SUM( - - 53 ) AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-6973
SELECT SUM ( - - 53 ) AS col2 FROM tab0
----
159

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 > NULL
----

query I rowsort
SELECT + col1 * 55 AS col1 FROM tab2 AS cor0
----
2805
3685
4235

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

skipif mysql # not compatible
query I rowsort label-6976
SELECT + MAX ( - 67 ) FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
-3

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

query I rowsort
SELECT DISTINCT + 36 * - col1 + + 75 FROM tab1
----
-105
-1617
-429

query II rowsort
SELECT ALL - - 81 AS col2, 64 AS col0 FROM tab2 WHERE NOT col0 >= - ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT DISTINCT CAST( - 99 AS SIGNED ) * + - 36 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3564

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT CAST ( - 99 AS INTEGER ) * + - 36 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3564

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6981
SELECT + CAST( NULL AS DECIMAL ) AS col0, + 72 col0 FROM tab0 AS cor0
----
NULL
72
NULL
72
NULL
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6981
SELECT + CAST ( NULL AS REAL ) AS col0, + 72 col0 FROM tab0 AS cor0
----
NULL
72
NULL
72
NULL
72

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

query II rowsort
SELECT + 20, + col0 FROM tab2 AS cor0
----
20
46
20
64
20
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6984
SELECT MAX ( ALL + col1 ) col0 FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT + col2 AS col1, - 69 FROM tab2 AS cor0
----
23
-69
40
-69
58
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6986
SELECT - 34 DIV + + COUNT( * ) FROM tab2 AS cor0
----
-11

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT ALL + col2 DIV - - col1 + + 44 FROM tab0 AS cor0
----
143
44
44

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL + col2 / - - col1 + + 44 FROM tab0 AS cor0
----
143
44
44

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 + - + 78 col1 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT + col1 + 20 * col2 AS col0 FROM tab2
----
1227
511
877

onlyif mysql # DIV for integer division: 
query III rowsort label-6991
SELECT DISTINCT + col2 + 99 * + col2 AS col0, ( 51 ) DIV - 33 + - + 9 * - 97 AS col2, + col0 * - + col2 FROM tab2
----
9 values hashing to b4c23a9dadd7a1150c8609ec1c67aa6e

skipif mysql # not compatible
query III rowsort label-6991
SELECT DISTINCT + col2 + 99 * + col2 AS col0, ( 51 ) / - 33 + - + 9 * - 97 AS col2, + col0 * - + col2 FROM tab2
----
9 values hashing to b4c23a9dadd7a1150c8609ec1c67aa6e

query I rowsort
SELECT DISTINCT - + 43 FROM tab1 WHERE ( NOT ( NULL ) <= 81 - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT - COUNT( * ) + ( COUNT( * ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6993
SELECT - COUNT ( * ) + ( COUNT ( * ) ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT DISTINCT - col1 + CAST( + col1 AS SIGNED ) * - col2 + + col2 AS col2 FROM tab0
----
-1
-221
-3841

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT - col1 + CAST ( + col1 AS INTEGER ) * - col2 + + col2 AS col2 FROM tab0
----
-1
-221
-3841

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT + + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE + col2 * col1 + 72 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6997
SELECT + + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 * col1 + 72 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT - + COUNT( * ) * - 49 + + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
488

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT - + COUNT ( * ) * - 49 + + 47 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
488

query I rowsort
SELECT + + 34 * + + ( - - 24 ) AS col1 FROM tab0 cor0 WHERE NOT ( + col2 ) * col1 + - col0 IS NULL
----
816
816
816

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

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

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

query II rowsort
SELECT ALL col0 AS col0, col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT + ( + ( - - col2 ) ) FROM tab0
----
10
47
99

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 >= - col0 + + + 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7009
SELECT DISTINCT COUNT( * ), + ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-7009
SELECT DISTINCT COUNT ( * ), + ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT DISTINCT + COUNT( * ) + - 66 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT + COUNT ( * ) + - 66 FROM tab1
----
-63

query I rowsort
SELECT col2 + + 96 AS col0 FROM tab0 AS cor0
----
106
143
195

query I rowsort
SELECT ALL + 29 AS col2 FROM tab2 AS cor0
----
29
29
29

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

query I rowsort
SELECT - col0 * 98 + col0 FROM tab0 cor0
----
-1455
-8439
-9409

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

query II rowsort
SELECT DISTINCT + col0 AS col0, + 74 AS col1 FROM tab2
----
46
74
64
74
75
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 14 = - + col1
----
85
5
59
91
47
68

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7019
SELECT + 71 DIV + COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 71 / + COUNT ( DISTINCT + col1 ) AS col1 FROM tab0
----
23

query III rowsort
SELECT * FROM tab0 WHERE - col0 <= - 29
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7021
SELECT DISTINCT + 99 DIV + 73 + + 47 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + 99 / + 73 + + 47 FROM tab2
----
48

query I rowsort
SELECT - + col1 AS col1 FROM tab1 WHERE - - col2 IN ( - col1, col1 + - - 92 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( - - 98 + - - col0 * 22 ) AND NOT + ( CAST( col0 AS SIGNED ) ) * + col2 * + CAST( 10 AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( - - 98 + - - col0 * 22 ) AND NOT + ( CAST ( col0 AS INTEGER ) ) * + col2 * + CAST ( 10 AS INTEGER ) < NULL
----
0

query I rowsort
SELECT ALL - 33 - + + ( - - 35 ) FROM tab0
----
-68
-68
-68

query I rowsort
SELECT ALL col0 + + col2 - - 72 FROM tab0 AS cor0
----
134
169
268

query I rowsort
SELECT DISTINCT - + col0 - col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7027
SELECT + CAST( 32 AS SIGNED ) + + 33 AS col1 FROM tab0 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-7027
SELECT + CAST ( 32 AS INTEGER ) + + 33 AS col1 FROM tab0 AS cor0
----
65
65
65

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

query I rowsort
SELECT - ( col2 ) + 7 * + col0 FROM tab0 cor0
----
58
580
599

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

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

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

query I rowsort
SELECT ALL 36 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL + 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT COUNT( * ) FROM tab1 WHERE NOT + - col2 + + 23 NOT BETWEEN + col0 AND - 72 * + - 6
----
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT COUNT ( * ) FROM tab1 WHERE NOT + - col2 + + 23 NOT BETWEEN + col0 AND - 72 * + - 6
----
0

query I rowsort
SELECT + - 35 * col0 AS col0 FROM tab1 AS cor0
----
-1785
-2975
-3185

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

skipif mysql # not compatible
query I rowsort label-7036
SELECT + + MIN ( - col0 ) FROM tab0 AS cor0
----
-97

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

query I rowsort
SELECT - - 60 AS col1 FROM tab0 cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + MAX( + col1 ) * - + 76 FROM tab0 AS cor0
----
-6156

skipif mysql # not compatible
query I rowsort label-7039
SELECT + MAX ( + col1 ) * - + 76 FROM tab0 AS cor0
----
-6156

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 52 * + col1 > NULL
----

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

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

query I rowsort
SELECT 41 FROM tab0 WHERE NOT NULL BETWEEN - 96 * - col1 + - col2 AND - + 91 * col1 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT + 26 col2 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + col0 / + + col2 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7046
SELECT + 26 col2 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + col0 / + + col2 ) IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-7048
SELECT CAST ( + + 45 AS INTEGER ) FROM tab2
----
45
45
45

query II rowsort
SELECT 88 AS col0, - 42 FROM tab1
----
88
-42
88
-42
88
-42

query I rowsort
SELECT - col2 * - 51 + col0 + col2 FROM tab2 AS cor0
----
1242
2144
3091

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - col2 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT col2 * + - 75 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT DISTINCT + 28 + + + 70 + ( + 30 ) * - + 77 FROM tab0
----
-2212

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT 68 + COUNT( * ) * + 97 AS col2 FROM tab1
----
359

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT 68 + COUNT ( * ) * + 97 AS col2 FROM tab1
----
359

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT DISTINCT 6 * + MAX( col0 ) + + 90 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
636

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT 6 * + MAX ( col0 ) + + 90 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
636

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7058
SELECT DISTINCT - + col1 / + col0 col0 FROM tab0 cor0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT 1 + + COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7059
SELECT 1 + + COUNT ( * ) FROM tab2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT ALL MAX( DISTINCT - 37 ) * + 88, COUNT( * ) AS col0 FROM tab0
----
-3256
3

skipif mysql # not compatible
query II rowsort label-7060
SELECT ALL MAX ( DISTINCT - 37 ) * + 88, COUNT ( * ) AS col0 FROM tab0
----
-3256
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT - ( COUNT( * ) ) * + MIN( - + 81 ) AS col1 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT - ( COUNT ( * ) ) * + MIN ( - + 81 ) AS col1 FROM tab2
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT DISTINCT - col2 + - col2 + 93 + col2 DIV + col2 FROM tab1
----
-24
-42
-98

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - col2 + - col2 + 93 + col2 / + col2 FROM tab1
----
-24
-42
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + COUNT( * ) + 4 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7063
SELECT + COUNT ( * ) + 4 FROM tab1
----
7

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

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

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT ( + COUNT ( * ) ) / - - MAX ( DISTINCT col1 ) FROM tab1
----
0

query I rowsort
SELECT col1 * + + col1 + + - col1 FROM tab1
----
182
20
2162

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT 52 DIV - ( + col1 ) + + 62 FROM tab2
----
61
62
62

skipif mysql # not compatible
query I rowsort label-7067
SELECT 52 / - ( + col1 ) + + 62 FROM tab2
----
61
62
62

query I rowsort
SELECT + ( col0 ) * - col0 + + col0 FROM tab1
----
-2550
-7140
-8190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7069
SELECT DISTINCT COUNT( * ) DIV + + COUNT( * ) + - - MAX( - + ( - - 51 ) ) + + - COUNT( * ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) + - - MAX ( - + ( - - 51 ) ) + + - COUNT ( * ) FROM tab0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT ALL 1 DIV 99 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL 1 / 99 AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT - 9 AS col1, col2 FROM tab1
----
-9
59
-9
68
-9
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7072
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) - - + col1 + + col2 >= col2
----

skipif mysql # not compatible
query III rowsort label-7072
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) - - + col1 + + col2 >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7073
SELECT ALL - col1 DIV 11 - + - ( + 52 ) + - 64 + col1 + - 76 * col2 * - ( - 18 ) * col1 + - col2 - 40 + - col0 + + 77 + - + 79 FROM tab0 cor0
----
-135681
-287411
-5208018

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL - col1 / 11 - + - ( + 52 ) + - 64 + col1 + - 76 * col2 * - ( - 18 ) * col1 + - col2 - 40 + - col0 + + 77 + - + 79 FROM tab0 cor0
----
-135681
-287411
-5208018

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

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

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

query I rowsort
SELECT ALL 46 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query III rowsort
SELECT ALL + 30, + col1 AS col0, col1 AS col2 FROM tab0 AS cor0
----
9 values hashing to 8eec0db95ed9b1c038c3a2870a91a798

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

query I rowsort
SELECT + ( + 2 ) FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT 82 AS col2 FROM tab1 cor0
----
82
82
82

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7082
SELECT ALL - col2 DIV - 15 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL - col2 / - 15 FROM tab2 AS cor0
----
1
2
3

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

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

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + ( + 21 ) * col1 FROM tab0
----
1701
21
441

query I rowsort
SELECT ALL 92 + + 23 AS col2 FROM tab2
----
115
115
115

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT - SUM( ALL - ( + 84 ) ) col0 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7091
SELECT - SUM ( ALL - ( + 84 ) ) col0 FROM tab1 AS cor0
----
252

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT + + 60 - 93 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT ALL - col1 + + 1 * + - col0 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - col2 * - - 25 AS col1 FROM tab1 AS cor0
----
-1475
-1700
-2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - - col2 col0 FROM tab2 AS cor0
----
104
133
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7099
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT - + 72 AS col0 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL col0 - + + 18 FROM tab0 AS cor0
----
-3
69
79

query I rowsort
SELECT ALL ( + col2 ) - - + col0 AS col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL + 71 * COUNT( * ) AS col2 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL + 71 * COUNT ( * ) AS col2 FROM tab1
----
213

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN - col0 + + col0 * - 11 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE 49 IS NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT ALL MAX( DISTINCT col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL MAX ( DISTINCT col0 ) FROM tab0
----
97

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

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

query II rowsort
SELECT DISTINCT col2, 18 * + + 16 * - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT col2 * 31 + + 0 AS col1 FROM tab0 AS cor0
----
1457
3069
310

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT + - 69 FROM tab0 cor0
----
-69
-69
-69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - 98 + + ( 75 ) + col1, - 75 + - 95 + - col1, - + col2 - - col2 + 95, + 0 + + col0 - + col1 / - col2, + - col2 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7114
SELECT ALL 90 + + CAST ( NULL AS INTEGER ) - - + col2 col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 <= + 6
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT 88 * - col0 * - - 82 FROM tab0
----
-108240
-627792
-699952

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT ALL 0 * - 47 + + - col0 * - col0 DIV - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL 0 * - 47 + + - col0 * - col0 / - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL COUNT( * ) * + 54 AS col2 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL COUNT ( * ) * + 54 AS col2 FROM tab2
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT DISTINCT - col0 DIV - ( + 37 ) AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT - col0 / - ( + 37 ) AS col0 FROM tab2
----
1
2

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7121
SELECT + COUNT( ALL - - 54 ) + + - 18 + + + 5 DIV - 20 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7121
SELECT + COUNT ( ALL - - 54 ) + + - 18 + + + 5 / - 20 FROM tab1 AS cor0
----
-15

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 25 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 - + 56 * + col2 FROM tab0 AS cor0
----
-2551
-539
-5543

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7125
SELECT * FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) <= + + col1 + + 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7125
SELECT * FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) <= + + col1 + + 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL - 40 - + ( - + 65 ) - col2 + - col2 * col2 + col2 * - col1 * 42 FROM tab0 AS cor0
----
-14033
-162125
-8905

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7132
SELECT ( - col0 ) / - ( + col2 ) FROM tab1
----
0
1
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7134
SELECT - MAX( - - ( + - ( - CAST( NULL AS SIGNED ) ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT - MAX ( - - ( + - ( - CAST ( NULL AS INTEGER ) ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - COUNT( * ) * - 18 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-7135
SELECT - COUNT ( * ) * - 18 FROM tab0
----
54

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

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

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

query II rowsort
SELECT + + col2 AS col1, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

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

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

query I rowsort
SELECT ALL + 6 * col2 AS col0 FROM tab0
----
282
594
60

query I rowsort
SELECT - col0 * + col0 AS col0 FROM tab0 WHERE NOT - + 9 <= - col1
----
-225
-7569

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

query I rowsort
SELECT 91 * col1 AS col0 FROM tab2 AS cor0
----
4641
6097
7007

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

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT + 35 / + 27 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col2 + + + 97 + col1 + 58 AS col0 FROM tab2 AS cor0
----
164
183
192

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

query I rowsort
SELECT - 18 * 6 * 43 + col2 AS col1 FROM tab0 AS cor0
----
-4545
-4597
-4634

query I rowsort
SELECT col1 * - + 21 AS col2 FROM tab0
----
-1701
-21
-441

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT + col1 DIV + 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7151
SELECT + col1 / + 87 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7152
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 >= ( CAST( NULL AS SIGNED ) * - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7152
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 >= ( CAST ( NULL AS INTEGER ) * - col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7153
SELECT ALL + COUNT( * ) + - MAX( DISTINCT + - CAST( + - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT + - CAST ( + - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-94

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT - CAST( 91 AS SIGNED ) + - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7155
SELECT - CAST ( 91 AS INTEGER ) + - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab0 cor0 WHERE NOT + col0 + - + col2 * + + col0 - - col2 <= NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT 81 DIV col2 DIV - col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7158
SELECT 81 / col2 / - col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 61 AS col1 FROM tab2 cor0
----
-61
-61
-61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT ALL col2 * 41 DIV col1 + + - ( col1 ) col2 FROM tab0 AS cor0
----
-2
-58
4058

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7162
SELECT ALL col2 * 41 / col1 + + - ( col1 ) col2 FROM tab0 AS cor0
----
-2
-58
4058

query I rowsort
SELECT ALL col1 - - - 69 FROM tab2 AS cor0
----
-18
-2
8

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + 79 IS NOT NULL
----

query I rowsort
SELECT - 45 AS col1 FROM tab1 WHERE NOT - + col1 * - col1 BETWEEN + col0 + + 54 * + col2 - - col2 / + + col0 AND col2 + - - col2
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT ALL - COUNT( ALL - - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL - COUNT ( ALL - - col1 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + - 67 * - col2 FROM tab2 AS cor0
----
1541
2680
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 83 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + ( + col2 ) AS col2, 85 FROM tab2 AS cor0
----
23
85
40
85
58
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT DISTINCT - COUNT( * ) * + 49 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT - COUNT ( * ) * + 49 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT ALL + CAST( ( - col2 ) AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL + CAST ( ( - col2 ) AS INTEGER ) FROM tab1
----
-59
-68
-96

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 3 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT SUM( DISTINCT - 9 ) * - - 60 AS col1 FROM tab0 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-7175
SELECT SUM ( DISTINCT - 9 ) * - - 60 AS col1 FROM tab0 AS cor0
----
-540

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + col1 * col0 col0 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # DIV for integer division: 
query II rowsort label-7178
SELECT DISTINCT + + col1 AS col2, - col0 DIV col2 * - + 5 col1 FROM tab2 AS cor0
----
51
10
67
5
77
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7178
SELECT DISTINCT + + col1 AS col2, - col0 / col2 * - + 5 col1 FROM tab2 AS cor0
----
51
10
67
5
77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT 47 * - MIN( col1 ) col1 FROM tab2 AS cor0
----
-2397

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7179
SELECT 47 * - MIN ( col1 ) col1 FROM tab2 AS cor0
----
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 0 IS NULL
----

query I rowsort
SELECT ALL - 16 * ( + - col1 ) AS col2 FROM tab1
----
224
752
80

query I rowsort
SELECT DISTINCT 10 + - + 3 AS col1 FROM tab0
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7183
SELECT + - 35 FROM tab0 WHERE NULL > - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7183
SELECT + - 35 FROM tab0 WHERE NULL > - CAST ( NULL AS REAL )
----

query I rowsort
SELECT col1 + - 2 * + col1 AS col0 FROM tab0
----
-1
-21
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT COUNT( * ) + - MAX( ALL 55 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-7186
SELECT COUNT ( * ) + - MAX ( ALL 55 ) FROM tab0
----
-52

query I rowsort
SELECT + 29 + + col0 AS col1 FROM tab1
----
114
120
80

query II rowsort
SELECT + - col2 + + - col1 + - 66 * 29 + - col0 AS col0, col0 AS col0 FROM tab0 AS cor0
----
-2032
87
-2057
15
-2111
97

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

query I rowsort
SELECT col0 - 97 * - - col2 FROM tab2
----
-2185
-3816
-5551

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT - COUNT( ALL - col0 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7191
SELECT - COUNT ( ALL - col0 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7193
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - col1 + - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - col1 + - CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 25 / col1 <> NULL
----

query I rowsort
SELECT ALL - + ( 1 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----

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

query II rowsort
SELECT - 3, 18 AS col0 FROM tab0
----
-3
18
-3
18
-3
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT - COUNT( * ) * + 78 AS col1 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-7198
SELECT - COUNT ( * ) * + 78 AS col1 FROM tab2
----
-234

onlyif mysql # DIV for integer division: 
query II rowsort label-7199
SELECT ALL - 88 AS col1, - 90 DIV - 14 FROM tab1
----
-88
6
-88
6
-88
6

skipif mysql # not compatible
query II rowsort label-7199
SELECT ALL - 88 AS col1, - 90 / - 14 FROM tab1
----
-88
6
-88
6
-88
6

query I rowsort
SELECT DISTINCT - col1 * + col0 * ( col0 ) FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT + + 4 * - - 11 AS col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT ALL + - 41 AS col1 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 13 AS col2, + col0 * + 13 + - 7 col2 FROM tab0 AS cor0
----
13
1124
13
1254
13
188

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

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 29 * col0 + + col1 * + + ( - ( + 94 ) ) FROM tab2 AS cor0
----
-6128
-8473
-9094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7208
SELECT DISTINCT ( - SUM( ALL 49 ) ) + + - COUNT( - 97 ) + SUM( + CAST( + 47 AS SIGNED ) ) DIV SUM( + 28 ) AS col1 FROM tab1 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT ( - SUM ( ALL 49 ) ) + + - COUNT ( - 97 ) + SUM ( + CAST ( + 47 AS INTEGER ) ) / SUM ( + 28 ) AS col1 FROM tab1 AS cor0
----
-149

query II rowsort
SELECT DISTINCT col2 * + - col0 AS col1, 46 + col0 AS col1 FROM tab0 cor0
----
-705
61
-870
133
-9603
143

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

query I rowsort
SELECT DISTINCT - + 58 * col1 AS col0 FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT + MAX( - + CAST( - - 69 AS SIGNED ) ) + 41 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7212
SELECT + MAX ( - + CAST ( - - 69 AS INTEGER ) ) + 41 FROM tab0 AS cor0
----
-28

query II rowsort
SELECT ALL ( + col1 ) AS col0, - col2 FROM tab1 cor0
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7214
SELECT 5 DIV COUNT( + 62 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7214
SELECT 5 / COUNT ( + 62 ) FROM tab2
----
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL - COUNT ( * ) + CAST ( COUNT ( DISTINCT + + 10 ) AS INTEGER ) FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT COUNT( * ) + - - 44 FROM tab1 WHERE 0 + + col1 NOT BETWEEN 81 + + 32 * + col2 * - 19 AND + - col0
----
47

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT COUNT ( * ) + - - 44 FROM tab1 WHERE 0 + + col1 NOT BETWEEN 81 + + 32 * + col2 * - 19 AND + - col0
----
47

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

query I rowsort
SELECT ALL + 67 + - + 75 AS col0 FROM tab1
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL - - COUNT( * ) FROM tab0 WHERE 92 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE 92 IS NULL
----
0

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

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

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

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

query I rowsort
SELECT col2 + + 32 FROM tab2 AS cor0
----
55
72
90

query I rowsort
SELECT ALL + col1 * - 45 FROM tab0 AS cor0
----
-3645
-45
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * - ( col2 ) col1 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( - + 82 ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7227
SELECT - COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( - + 82 ) IS NULL
----
-9

query I rowsort
SELECT + 79 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

query I rowsort
SELECT DISTINCT - + 83 AS col1 FROM tab1 AS cor0
----
-83

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7232
SELECT ALL - + col2 * + + col2 DIV + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL - + col2 * + + col2 / + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT ALL - col2 DIV + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - col2 / + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT COUNT( * ) AS col2 FROM tab0 WHERE 47 NOT BETWEEN - col2 * + + col1 + + col1 * - col0 * + - 63 AND - col1 AND NOT ( NULL ) BETWEEN 10 AND 35
----
0

skipif mysql # not compatible
query I rowsort label-7235
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE 47 NOT BETWEEN - col2 * + + col1 + + col1 * - col0 * + - 63 AND - col1 AND NOT ( NULL ) BETWEEN 10 AND 35
----
0

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

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

query I rowsort
SELECT 22 FROM tab0 WHERE NOT - + 36 IS NULL
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT + 32 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7240
SELECT DISTINCT - 61 / - col1 + + 13 + + col2 + CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT 30 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - 61 / - col1 + + 13 + + col2 + CAST ( NULL AS REAL ) FROM tab2 WHERE NOT 30 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 * - ( + col0 ) col0 FROM tab1
----
3366
5610
6006

query I rowsort
SELECT + 17 * - 7 * + 72 FROM tab2
----
-8568
-8568
-8568

query I rowsort
SELECT ALL + col0 * - - 88 AS col2 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NOT - 27 * - 99 IS NULL
----
51
67
77

query I rowsort
SELECT ALL col0 FROM tab0 cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7246
SELECT COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 77 <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7246
SELECT COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 77 <> NULL
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7247
SELECT ALL COUNT( * ) AS col2, COUNT( * ) DIV - 5 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-7247
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) / - 5 FROM tab2 AS cor0
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 72 + + 66 col1 FROM tab2
----
1722
2946
4242

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

query I rowsort
SELECT ALL 18 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL col1 + + 17 FROM tab1
----
22
31
64

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

query I rowsort
SELECT - 8 / + col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ALL - COUNT( DISTINCT col2 ) FROM tab2 cor0 WHERE + col0 / - col1 + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL - COUNT ( DISTINCT col2 ) FROM tab2 cor0 WHERE + col0 / - col1 + + col2 IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - + 14 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7256
SELECT - + 14 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
42

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN 91 AND NULL
----

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

query I rowsort
SELECT col2 + - - col0 AS col0 FROM tab1
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col0 col0 FROM tab2
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT ALL - 71 + - - COUNT( 7 ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - 71 + - - COUNT ( 7 ) FROM tab2
----
-68

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

query I rowsort
SELECT ALL + col2 * col2 * - col2 * + col0 * + - 50 AS col2 FROM tab2 AS cor0
----
204800000
27984100
731670000

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT - col2 DIV - + 56 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7265
SELECT - col2 / - + 56 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
1

query I rowsort
SELECT DISTINCT col0 * - 63 + 43 - 9 FROM tab0 AS cor0
----
-5447
-6077
-911

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7268
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-7268
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT - 17 + 35 * + + col2 + col2 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - 27 AS col0 FROM tab2 AS cor0 WHERE NOT ( + + ( - col2 ) ) - + col2 + - - col1 < - 43 * col1 + col2
----
-27
-27
-27

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 24 = + 33 + + + col1
----

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

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT col0 * - 86, + 4 AS col0 FROM tab2
----
-3956
4
-5504
4
-6450
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL + 5 * + MIN( DISTINCT + - col1 ) FROM tab1
----
-235

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL + 5 * + MIN ( DISTINCT + - col1 ) FROM tab1
----
-235

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

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

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

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

query I rowsort
SELECT - 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT + 89 * - col0 + - 55 FROM tab0
----
-1390
-7798
-8688

query I rowsort
SELECT DISTINCT - + 28 + - 38 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT ALL COUNT( * ) + + ( + 61 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL COUNT ( * ) + + ( + 61 ) FROM tab2
----
64

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

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

query I rowsort
SELECT DISTINCT - - ( + 51 ) + - - col2 FROM tab2 AS cor0
----
109
74
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( 83 ) col0 FROM tab1 AS cor0
----
83

query II rowsort
SELECT ALL - col1, + 3 * col2 AS col2 FROM tab2
----
-51
69
-67
174
-77
120

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT DISTINCT - col1 + + + col0 DIV + 30 + + col2 AS col2 FROM tab2
----
-27
-35
-7

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - col1 + + + col0 / + 30 + + col2 AS col2 FROM tab2
----
-27
-35
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE + 25 <> - col2 + - col1 * col0 * - col0 / - 2
----
-3

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE + 25 <> - col2 + - col1 * col0 * - col0 / - 2
----
-3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7292
SELECT + 8 * - col2 - - + col2 * CAST( NULL AS DECIMAL ) + - - 20 + + + 11 * 75, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7292
SELECT + 8 * - col2 - - + col2 * CAST ( NULL AS REAL ) + - - 20 + + + 11 * 75, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 AS col2 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL + 22 + 26 FROM tab2
----
48
48
48

query I rowsort
SELECT - col0 * - 42 + + - col1 * + col0 FROM tab1 AS cor0
----
-455
1428
3145

query I rowsort
SELECT + 75 + + ( - + 92 ) * ( - col0 ) * col1 AS col2 FROM tab0 cor0
----
111855
168159
8999

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - COUNT( * ) * - 91 * COUNT( * ) FROM tab1
----
819

skipif mysql # not compatible
query I rowsort label-7300
SELECT - COUNT ( * ) * - 91 * COUNT ( * ) FROM tab1
----
819

query I rowsort
SELECT col1 + + 20 FROM tab2 WHERE NOT - + col1 NOT BETWEEN - col2 AND + - 30
----

query I rowsort
SELECT ALL + col1 * + col1 - - 86 FROM tab2 AS cor0
----
2687
4575
6015

query I rowsort
SELECT + col1 * - 62 AS col2 FROM tab1 AS cor0
----
-2914
-310
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 35
----
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 35
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7305
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) / - - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 16 * 39 * + ( + col2 ) FROM tab1 AS cor0
----
36816
42432
59904

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT - + SUM( ALL - 12 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7307
SELECT - + SUM ( ALL - 12 ) FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + 4 * COUNT( * ) * - - 62 FROM tab1 cor0
----
744

skipif mysql # not compatible
query I rowsort label-7308
SELECT + 4 * COUNT ( * ) * - - 62 FROM tab1 cor0
----
744

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

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL ( + COUNT ( + + ( - col2 ) ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7310
SELECT ALL COUNT( * ), + 74 AS col0 FROM tab1
----
3
74

skipif mysql # not compatible
query II rowsort label-7310
SELECT ALL COUNT ( * ), + 74 AS col0 FROM tab1
----
3
74

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 56 * - + col0 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT DISTINCT 17 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - COUNT( * ) + - 92 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7314
SELECT - COUNT ( * ) + - 92 FROM tab2 AS cor0
----
-95

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT col1 + CAST( 71 AS SIGNED ) FROM tab2
----
122
138
148

skipif mysql # not compatible
query I rowsort label-7316
SELECT col1 + CAST ( 71 AS INTEGER ) FROM tab2
----
122
138
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 * + col0 - + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 * + col0 - + 17 )
----
0

query I rowsort
SELECT ALL + 15 * + col1 AS col1 FROM tab2
----
1005
1155
765

query I rowsort
SELECT col1 * + 29 + col2 * col1 FROM tab0
----
128
6156
819

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * 97 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( 17 - - 74 ) AND 57
----

query I rowsort
SELECT col1 + + 15 AS col0 FROM tab1 WHERE + col0 BETWEEN 52 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7323
SELECT DISTINCT + MIN( ALL - col1 ) DIV 27 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + MIN ( ALL - col1 ) / 27 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT - col0 DIV - 54 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7324
SELECT - col0 / - 54 AS col2 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7325
SELECT 84 DIV COUNT( * ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-7325
SELECT 84 / COUNT ( * ) AS col1 FROM tab2
----
28

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7326
SELECT 21 / + col0 col1 FROM tab0
----
0
0
1

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

query I rowsort
SELECT DISTINCT col2 + - ( col2 ) FROM tab1 WHERE + col2 <> ( 57 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT COUNT( * ) + - 98 AS col2 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-7330
SELECT COUNT ( * ) + - 98 AS col2 FROM tab2
----
-95

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 29 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7332
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-7332
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT COUNT( * ) + 44 * + 31 AS col2 FROM tab1
----
1367

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT COUNT ( * ) + 44 * + 31 AS col2 FROM tab1
----
1367

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE - col2 > ( col1 * 40 )
----

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

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

query I rowsort
SELECT ( + 54 ) * + col0 - col2 * col1 AS col0 FROM tab1
----
1410
1718
4295

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - COUNT( * ) * 78 col1 FROM tab0
----
-234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7337
SELECT - COUNT ( * ) * 78 col1 FROM tab0
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + col1 col1 FROM tab1
----
-29
-62
-71

query I rowsort
SELECT DISTINCT - col1 * - 61 + col1 FROM tab1
----
2914
310
868

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT - 39 * - ( - 53 DIV + 72 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT - 39 * - ( - 53 / + 72 ) AS col2 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( NULL ) = 42
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col2 ) col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + 85 * col1 + 36 <> - col2 / + col0
----

query I rowsort
SELECT ALL - 33 * - col0 FROM tab1
----
1683
2805
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - MIN( col1 ) FROM tab2 WHERE NOT col2 / - col1 = col2
----
-51

skipif mysql # not compatible
query I rowsort label-7347
SELECT - MIN ( col1 ) FROM tab2 WHERE NOT col2 / - col1 = col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT COUNT( + col2 ) AS col0 FROM tab2 WHERE NOT ( col2 ) = + 49 + - col0
----
3

skipif mysql # not compatible
query I rowsort label-7348
SELECT COUNT ( + col2 ) AS col0 FROM tab2 WHERE NOT ( col2 ) = + 49 + - col0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 43 * ( + col0 ) + - col2 NOT BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL COUNT( * ) + 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
103

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL COUNT ( * ) + 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
103

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

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

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

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

query I rowsort
SELECT ALL - + 36 * ( + ( col0 ) ) FROM tab1 AS cor0
----
-1836
-3060
-3276

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 13 * col2 BETWEEN ( NULL ) AND ( + 78 )
----

query I rowsort
SELECT ALL - - 98 AS col1 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7359
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( CAST( + ( col0 ) AS SIGNED ) ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( + ( col0 ) AS INTEGER ) ) >= ( NULL )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 91 ) NOT BETWEEN col0 * + 52 + - 24 / col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7362
SELECT + SUM( ALL 8 ) DIV - 64 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7362
SELECT + SUM ( ALL 8 ) / - 64 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL SUM( - 17 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL SUM ( - 17 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT DISTINCT - ( MAX( 48 ) ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT - ( MAX ( 48 ) ) FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT MIN( - + 52 ) col2 FROM tab0
----
-52

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

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT ( + col1 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * - 69 AS col1 FROM tab0 WHERE + col2 * col2 IS NOT NULL
----
1449
5589
69

query I rowsort
SELECT - ( - col2 ) * - col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + ( - 92 ) - + col2 col2 FROM tab0
----
-110
-21
-58

query III rowsort
SELECT * FROM tab1 WHERE + 90 BETWEEN 4 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT - 3 + - SUM( DISTINCT - col2 ) * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 35 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT - 3 + - SUM ( DISTINCT - col2 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 35 ) <> NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT + COUNT( * ) * - 57 + + COUNT( * ) col0 FROM tab2 AS cor0
----
-168

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

query I rowsort
SELECT ALL - 27 * 40 * 83 AS col2 FROM tab2 AS cor0
----
-89640
-89640
-89640

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT - 58 DIV + col1 + + 80 + 91 AS col2 FROM tab0 AS cor0
----
113
169
171

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 58 / + col1 + + 80 + 91 AS col2 FROM tab0 AS cor0
----
113
169
171

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

query I rowsort
SELECT DISTINCT ( - + 39 ) * 88 + ( - 20 ) FROM tab2
----
-3452

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( ( 85 ) BETWEEN col2 + 3 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( ( 85 ) BETWEEN col2 + 3 AND NULL )
----
0

query I rowsort
SELECT ALL + 6 + - - col1 * - col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-128967
-17314
-217231

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT ALL col2 * + + col0 - - 2 DIV col1 AS col0 FROM tab2 cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL col2 * + + col0 - - 2 / col1 AS col0 FROM tab2 cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * col0 * - + col2 * - 16 col1 FROM tab1 AS cor0
----
6971904
7141360
8811712

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

query II rowsort
SELECT - col1 AS col0, + col1 * - col0 FROM tab1 AS cor0
----
-14
-714
-47
-4277
-5
-425

query I rowsort
SELECT DISTINCT + - col2 * - col0 - col1 + col0 - + col0 FROM tab1 AS cor0
----
4882
5010
6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + 67 * col1 col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 85 )
----

query I rowsort
SELECT DISTINCT - 52 + col2 FROM tab1 AS cor0 WHERE ( col0 ) < NULL
----

query I rowsort
SELECT ALL - col1 - + - col1 * + - 59 * + col0 FROM tab0 AS cor0
----
-107814
-5724
-71766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT + 41 / ( + 90 ) + ( + 53 ) * - col1 FROM tab1 WHERE NULL IN ( - ( ( col0 ) ) * CAST( + col0 + + 20 / 37 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7391
SELECT + 41 / ( + 90 ) + ( + 53 ) * - col1 FROM tab1 WHERE NULL IN ( - ( ( col0 ) ) * CAST ( + col0 + + 20 / 37 AS INTEGER ) )
----

query I rowsort
SELECT - col0 - + 11 FROM tab1
----
-102
-62
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7393
SELECT 1 DIV + - MAX( 52 ) + - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7393
SELECT 1 / + - MAX ( 52 ) + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

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

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

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT + ( 80 ) NOT IN ( - col1 / + col2 )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 / - 7 * + - 73 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + SUM( + + 54 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
486

skipif mysql # not compatible
query I rowsort label-7401
SELECT + SUM ( + + 54 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
486

query II rowsort
SELECT + 12, 98 AS col0 FROM tab1
----
12
98
12
98
12
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT COUNT( ALL + + 21 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7403
SELECT COUNT ( ALL + + 21 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN + - col2 AND ( 19 * + + 13 + 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7406
SELECT - 99 AS col0, CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-99
NULL
-99
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-7406
SELECT - 99 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-99
NULL
-99
NULL
-99
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT - 33 - - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 / + - 58 ) IN ( - 49 )
----
-30

skipif mysql # not compatible
query I rowsort label-7409
SELECT - 33 - - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 / + - 58 ) IN ( - 49 )
----
-30

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7411
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) col2 FROM tab1
----
3
3

query I rowsort
SELECT ALL - col0 + + + 40 FROM tab0
----
-47
-57
25

query I rowsort
SELECT ALL + + 30 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT DISTINCT COUNT( ALL + - col2 ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT COUNT ( ALL + - col2 ) FROM tab0 WHERE NULL IS NULL
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7416
SELECT DISTINCT - 39 * - CAST( NULL AS SIGNED ) * + + COUNT( * ) + - ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT - 39 * - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 6 * - col1 * - - col2 / - col0 + 74 FROM tab0 WHERE 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT DISTINCT 78 + + - 20 * + - CAST( NULL AS SIGNED ) + col1 + - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT 78 + + - 20 * + - CAST ( NULL AS INTEGER ) + col1 + - col1 AS col0 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7420
SELECT + 31 + + CAST( + 82 AS SIGNED ) + + + col1 * + - col2 - - col2 FROM tab2 AS cor0
----
-1037
-2927
-3715

skipif mysql # not compatible
query I rowsort label-7420
SELECT + 31 + + CAST ( + 82 AS INTEGER ) + + + col1 * + - col2 - - col2 FROM tab2 AS cor0
----
-1037
-2927
-3715

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) * 95 IN ( + col2 + col1 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 10 + col1 * - col0 AS col0 FROM tab0
----
-1205
-1817
-87

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 - col0 col0 FROM tab0
----
-1230
-1914
-194

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < - 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL COUNT( * ) + 65 AS col0 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL COUNT ( * ) + 65 AS col0 FROM tab1 AS cor0
----
68

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 58 + ( + - ( - col2 ) ) > 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) * col0 = + - col1
----

query I rowsort
SELECT - col2 + + - 24 + - col2 FROM tab0 AS cor0
----
-118
-222
-44

query I rowsort
SELECT ALL - col0 * 77 AS col1 FROM tab2 AS cor0 WHERE ( - col1 + + + col0 ) IN ( 21 + + col1 + - - col0 + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT DISTINCT - COUNT( ALL col2 ) * + COUNT( * ) AS col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT - COUNT ( ALL col2 ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT DISTINCT CAST( - + 36 AS SIGNED ) AS col0 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT CAST ( - + 36 AS INTEGER ) AS col0 FROM tab2
----
-36

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7439
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - + col0 * + CAST( NULL AS SIGNED ) - + col2 * - + 30 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7439
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - + col0 * + CAST ( NULL AS INTEGER ) - + col2 * - + 30 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT DISTINCT - ( - + COUNT( * ) ) * COUNT( - col0 ) - - COUNT( * ) col1 FROM tab2 AS cor0
----
12

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

query I rowsort
SELECT - 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: 
query II rowsort label-7442
SELECT + COUNT( DISTINCT 76 ) col1, COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
1
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7442
SELECT + COUNT ( DISTINCT 76 ) col1, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
1
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL + COUNT( DISTINCT - col2 ) + SUM( - col0 ) + + 7 * - COUNT( * ) * + 13 FROM tab0 AS cor0
----
-469

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL + COUNT ( DISTINCT - col2 ) + SUM ( - col0 ) + + 7 * - COUNT ( * ) * + 13 FROM tab0 AS cor0
----
-469

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7445
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( 27 AS DECIMAL ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-7445
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( 27 AS REAL ) NOT BETWEEN NULL AND + col1
----

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

query I rowsort
SELECT - 67 + + - col1 + + col0 FROM tab0 AS cor0
----
-1
-133
29

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL < - 97
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <> ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT + MAX( ALL - col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7451
SELECT + MAX ( ALL - col2 ) col2 FROM tab2
----
-23

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + 78 AS col2 FROM tab0
----
165
175
93

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 + col2 ) = - col0 * - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT 7 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7456
SELECT 7 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT - MAX( + col0 ) + 60 - + SUM( + col1 ) AS col1 FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-7457
SELECT - MAX ( + col0 ) + 60 - + SUM ( + col1 ) AS col1 FROM tab2 AS cor0
----
-210

query I rowsort
SELECT col2 + - - 44 * + - col0 FROM tab0 AS cor0
----
-3818
-4169
-613

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT ALL 94 + CAST( NULL AS SIGNED ) * + - 96 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL 94 + CAST ( NULL AS INTEGER ) * + - 96 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 81 AS col2, 60 col2 FROM tab0 AS cor0
----
81
60
81
60
81
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN - 45 AND ( 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7463
SELECT ALL col0, + col2, - CAST( - col0 AS SIGNED ) * - + col1 col1 FROM tab2 AS cor0
----
9 values hashing to c0fa8e61b3ea22b6fc26308a1517f02d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7463
SELECT ALL col0, + col2, - CAST ( - col0 AS INTEGER ) * - + col1 col1 FROM tab2 AS cor0
----
9 values hashing to c0fa8e61b3ea22b6fc26308a1517f02d

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT DISTINCT + - 15 * - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1485
150
705

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT + - 15 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1485
150
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT ALL AVG ( + 97 ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL AVG ( + 97 ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7469
SELECT * FROM tab0 WHERE NOT NULL < - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7469
SELECT * FROM tab0 WHERE NOT NULL < - - CAST ( NULL AS REAL )
----

query I rowsort
SELECT 81 AS col2 FROM tab0 WHERE NOT + col1 - col2 - + + col1 <= + + col0
----

query I rowsort
SELECT ALL + 2 AS col2 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT ALL col2 * + - CAST( + 13 AS SIGNED ) AS col0 FROM tab1
----
-1248
-767
-884

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL col2 * + - CAST ( + 13 AS INTEGER ) AS col0 FROM tab1
----
-1248
-767
-884

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7474
SELECT 32 DIV - col0 * + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7474
SELECT 32 / - col0 * + col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT 27 IS NULL
----
51
85
91

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

query I rowsort
SELECT DISTINCT - + col1 * 43 AS col1 FROM tab1 AS cor0
----
-2021
-215
-602

onlyif mysql # DIV for integer division: 
query I rowsort label-7478
SELECT ALL 17 DIV + 65 + + 97 AS col1 FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL 17 / + 65 + + 97 AS col1 FROM tab0 AS cor0
----
97
97
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT col0 * + 34 NOT BETWEEN col1 AND NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-7481
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 39 * - col0 IS NULL
----

query II rowsort
SELECT DISTINCT + col1, col1 + + col0 AS col0 FROM tab1 cor0
----
14
65
47
138
5
90

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

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

query I rowsort
SELECT col0 + col1 * 76 AS col2 FROM tab1
----
1115
3663
465

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

query I rowsort
SELECT DISTINCT + 31 + col1 FROM tab0 WHERE + col0 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT - COUNT( * ) + - 15 AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-7487
SELECT - COUNT ( * ) + - 15 AS col0 FROM tab1
----
-18

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

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

query I rowsort
SELECT ALL col1 + - col1 * - col0 - - 2 AS col0 FROM tab2 AS cor0
----
2399
5007
5094

query I rowsort
SELECT DISTINCT col0 * col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = 44
----

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

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

query I rowsort
SELECT ALL - 60 * - col0 AS col1 FROM tab2 cor0
----
2760
3840
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 79 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 79 IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-7495
SELECT - + AVG ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL + + MIN( 54 ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL + + MIN ( 54 ) AS col2 FROM tab1 AS cor0
----
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL col1 * 76 + - - col0 + - col1 AS col0 FROM tab2 WHERE NOT ( + + ( - CAST( NULL AS SIGNED ) ) ) <= - col2 + col1
----

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL col1 * 76 + - - col0 + - col1 AS col0 FROM tab2 WHERE NOT ( + + ( - CAST ( NULL AS INTEGER ) ) ) <= - col2 + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL SUM( DISTINCT + 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL SUM ( DISTINCT + 55 ) FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7501
SELECT ALL * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) BETWEEN + - ( - 46 ) + - + 75 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7501
SELECT ALL * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) BETWEEN + - ( - 46 ) + - + 75 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 WHERE NULL <= + + col2
----
0

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 WHERE NULL <= + + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7503
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 87 IN ( - col0 * CAST( + col0 AS SIGNED ) * - col1 * col0 / - 35 - - - ( 70 ) * + 14 + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7503
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 87 IN ( - col0 * CAST ( + col0 AS INTEGER ) * - col1 * col0 / - 35 - - - ( 70 ) * + 14 + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - 52 - col0 AS col0 FROM tab0 AS cor0
----
-2459
-5245
-607

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 cor0 WHERE NOT - 77 BETWEEN NULL AND - - 51 / col1
----

query I rowsort
SELECT - 8 FROM tab1 AS cor0 WHERE NOT - 98 IS NULL
----
-8
-8
-8

query II rowsort
SELECT + 7, - col1 + - 37 AS col0 FROM tab2 cor0
----
7
-104
7
-114
7
-88

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

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

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

query I rowsort
SELECT ALL - - 81 + col2 - + col0 FROM tab0 cor0
----
113
4
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL COUNT( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE 37 >= 2
----
3

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE 37 >= 2
----
3

query I rowsort
SELECT ALL 23 + + 72 * col1 FROM tab2 AS cor0
----
3695
4847
5567

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT DISTINCT + 47 + col0 DIV col0 col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7513
SELECT DISTINCT + 47 + col0 / col0 col0 FROM tab1 AS cor0
----
48

query II rowsort
SELECT ALL + - ( - col2 ) AS col2, 25 * col2 FROM tab0 cor0
----
10
250
47
1175
99
2475

query I rowsort
SELECT ALL col2 + - 40 * - col0 + - col2 AS col0 FROM tab0 AS cor0
----
3480
3880
600

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

query I rowsort
SELECT col1 * + col1 + + + col0 AS col1 FROM tab2 AS cor0
----
2647
4564
5993

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT col2 DIV + + 15 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-7518
SELECT col2 / + + 15 FROM tab1
----
3
4
6

query I rowsort
SELECT DISTINCT - col0 * - - 11 * + col2 * col0 FROM tab1
----
-2746656
-4689025
-6194188

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

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

query I rowsort
SELECT ALL - col0 - 86 FROM tab2 AS cor0
----
-132
-150
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL COUNT( * ) - + CAST( + SUM( + - col2 ) AS SIGNED ) + - - 29 AS col1 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL COUNT ( * ) - + CAST ( + SUM ( + - col2 ) AS INTEGER ) + - - 29 AS col1 FROM tab2 AS cor0
----
153

query II rowsort
SELECT + col0 + col0 * col1, - 80 * - + 65 + + - col0 AS col2 FROM tab1 AS cor0
----
4368
5109
510
5115
765
5149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7525
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7525
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT + MAX( ALL + 36 ) * + - COUNT( * ) AS col2 FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7526
SELECT + MAX ( ALL + 36 ) * + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-108

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 60 NOT BETWEEN NULL AND - 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - 28 ) * + 59 > - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT COUNT( * ) col0, 62 col1 FROM tab0
----
3
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7530
SELECT COUNT ( * ) col0, 62 col1 FROM tab0
----
3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT - 96 * COUNT( * ) col0 FROM tab2
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7531
SELECT DISTINCT - 96 * COUNT ( * ) col0 FROM tab2
----
-288

query I rowsort
SELECT ALL col0 * - 20 AS col1 FROM tab1
----
-1020
-1700
-1820

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

query I rowsort
SELECT ALL 33 + - col0 AS col0 FROM tab0
----
-54
-64
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT - 36 + - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7536
SELECT - 36 + - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 61
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 4 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - + 97 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT - + 0 AS col0 FROM tab1 AS cor0 WHERE - 91 * + ( + ( col0 ) ) < - col2 + + col0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7541
SELECT + 59 * COUNT ( * ) * - 9 - COUNT ( * ) col2 FROM tab2 AS cor0
----
-1596

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col2 NOT IN ( 32 * col1, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7543
SELECT ALL + CAST( + col2 AS SIGNED ) * 46 FROM tab0
----
2162
4554
460

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + CAST ( + col2 AS INTEGER ) * 46 FROM tab0
----
2162
4554
460

query I rowsort
SELECT ALL - 57 + + 67 FROM tab2
----
10
10
10

query II rowsort
SELECT + col1 + - col1, col1 * col0 AS col0 FROM tab0
----
0
1215
0
1827
0
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT 34 * MAX( - col1 ) FROM tab1
----
-170

skipif mysql # not compatible
query I rowsort label-7547
SELECT 34 * MAX ( - col1 ) FROM tab1
----
-170

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( + col0 ) + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < - + col2
----

query I rowsort
SELECT DISTINCT - col0 * - - 45 * + - col0 FROM tab2 AS cor0 WHERE ( col2 * - col0 + 31 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT COUNT( * ), 61 col1 FROM tab2 AS cor0
----
3
61

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 11 - 56 IN ( col0 + - col1, - 33 + + + col2 * 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 * col0 + 96 * - col1 col2 FROM tab2
----
-13536
-13632
-9312

query I rowsort
SELECT ALL + col1 + - + 12 AS col1 FROM tab2
----
39
55
65

query I rowsort
SELECT + + col1 * + ( - + col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-178929
-2100
-9801

query II rowsort
SELECT col2 + + + 42 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
141
1
52
21
89
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 23 ) + col2 col0, col2 AS col1 FROM tab2
----
46
23
63
40
81
58

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) <> + + col0 + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT ALL + 98 - - + ( + + COUNT( - 92 ) ) DIV + 28 AS col2 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL + 98 - - + ( + + COUNT ( - 92 ) ) / + 28 AS col2 FROM tab0 AS cor0
----
98

query I rowsort
SELECT ALL 60 + - col1 + col0 * + 60 FROM tab1 AS cor0
----
3106
5155
5473

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

skipif mysql # not compatible
query III rowsort label-7567
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( 46 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + COUNT( * ) * + 21 AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7569
SELECT + COUNT ( * ) * + 21 AS col1 FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT + COUNT( * ) * + 48 AS col1 FROM tab2 cor0
----
144

skipif mysql # not compatible
query I rowsort label-7570
SELECT + COUNT ( * ) * + 48 AS col1 FROM tab2 cor0
----
144

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 WHERE NOT ( ( + ( + + 48 ) * - col0 + + 13 BETWEEN NULL AND ( - 98 * col2 ) ) )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) ) / + MAX( col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / + MAX ( col1 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT + ( + - MAX( DISTINCT + + col0 ) ) - - + 4 AS col2 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-7573
SELECT + ( + - MAX ( DISTINCT + + col0 ) ) - - + 4 AS col2 FROM tab2
----
-71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT ALL col1 DIV - - col0 + 85 AS col2 FROM tab2
----
85
86
86

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL col1 / - - col0 + 85 AS col2 FROM tab2
----
85
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - + 84 * - col2 col0 FROM tab0 WHERE + 86 - col1 IS NULL
----

query II rowsort
SELECT DISTINCT col1, - ( col0 ) FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT ALL 88 + - 86 * - col2 AS col1 FROM tab1
----
5162
5936
8344

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT SUM( col1 ) + + 88 + - - 64 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT SUM ( col1 ) + + 88 + - - 64 FROM tab0
----
255

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

query I rowsort
SELECT DISTINCT ( 42 ) * 85 * col0 AS col1 FROM tab2 AS cor0
----
164220
228480
267750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT ALL + col1 / + CAST( 6 AS SIGNED ) / - - CAST( NULL AS SIGNED ) 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-7582
SELECT ALL + col1 / + CAST ( 6 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + + col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT DISTINCT + COUNT( ALL - + col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT + COUNT ( ALL - + col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7585
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col0, 42 + 59, 74 + 63 / + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7585
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col0, 42 + 59, 74 + 63 / + CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT ALL - 73 DIV + ( - 78 ) * - - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - 73 / + ( - 78 ) * - - col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - 62 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT + 78 * - 22 - - 43 - + + 12 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - - CAST( - col1 AS SIGNED ) AND + + col2
----
-1685
-1685
-1685

skipif mysql # not compatible
query I rowsort label-7590
SELECT + 78 * - 22 - - 43 - + + 12 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN - - CAST ( - col1 AS INTEGER ) AND + + col2
----
-1685
-1685
-1685

query I rowsort
SELECT - 50 * col1 * - col0 FROM tab2 cor0
----
117300
246400
251250

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7593
SELECT ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7594
SELECT DISTINCT - col0 * 45 AS col0, col0 + col1 DIV 33 AS col1 FROM tab0 AS cor0
----
-3915
87
-4365
97
-675
17

skipif mysql # not compatible
query II rowsort label-7594
SELECT DISTINCT - col0 * 45 AS col0, col0 + col1 / 33 AS col1 FROM tab0 AS cor0
----
-3915
87
-4365
97
-675
17

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

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

query I rowsort
SELECT - - 33 AS col0 FROM tab1 AS cor0
----
33
33
33

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

query I rowsort
SELECT - 45 AS col1 FROM tab2 cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL + MIN( col0 ) + + 18 AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + MIN ( col0 ) + + 18 AS col2 FROM tab1
----
69

query I rowsort
SELECT ALL + 68 FROM tab1 WHERE ( 70 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT ALL - 1 + ( col1 ) * - - 73 + - 48 DIV ( ( + - col1 ) ) * - - ( col0 ) * - col1 - - col0 * - 57 + + - col2 FROM tab1
----
-4124
-6102
-8365

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL - 1 + ( col1 ) * - - 73 + - 48 / ( ( + - col1 ) ) * - - ( col0 ) * - col1 - - col0 * - 57 + + - col2 FROM tab1
----
-4124
-6102
-8365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT ALL + COUNT( - - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL + COUNT ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 68 ) + col2 * + col0 * + 89 col2 FROM tab0 AS cor0
----
62813
77498
854735

query II rowsort
SELECT - - col1 + + ( - col0 ) AS col0, - col2 AS col1 FROM tab0 AS cor0
----
-66
-10
-96
-99
66
-47

query I rowsort
SELECT 20 + 29 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT + col2 * - + 78 AS col2 FROM tab0 AS cor0
----
-3666
-7722
-780

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7608
SELECT ALL + + col0 / + col1 col1 FROM tab2 cor0
----
0
0
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT - SUM( ALL - col2 ) + - COUNT( * ) AS col0 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT - SUM ( ALL - col2 ) + - COUNT ( * ) AS col0 FROM tab0
----
153

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 71 + - 76 AS col0 FROM tab1 AS cor0
----
-5

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

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

query II rowsort
SELECT DISTINCT + 41, - col2 + - + col0 AS col0 FROM tab1
----
41
-144
41
-147
41
-159

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

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

skipif mysql # not compatible
query I rowsort label-7617
SELECT + COUNT ( * ) / - 79 AS col1 FROM tab2
----
0

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

query I rowsort
SELECT DISTINCT + 85 * col1 FROM tab1
----
1190
3995
425

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + ( + 87 ) * + COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
783

skipif mysql # not compatible
query I rowsort label-7620
SELECT + ( + 87 ) * + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL - CAST( - 86 AS SIGNED ) * + col0 AS col1 FROM tab1
----
4386
7310
7826

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - CAST ( - 86 AS INTEGER ) * + col0 AS col1 FROM tab1
----
4386
7310
7826

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7623
SELECT ALL + 28 AS col0, + CAST( SUM( + + 92 ) AS SIGNED ) AS col1 FROM tab0
----
28
276

skipif mysql # not compatible
query II rowsort label-7623
SELECT ALL + 28 AS col0, + CAST ( SUM ( + + 92 ) AS INTEGER ) AS col1 FROM tab0
----
28
276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 12 * - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7626
SELECT ALL - 17 * - - MIN( DISTINCT + + CAST( + col2 AS SIGNED ) ) * + - 51 FROM tab1 AS cor0
----
51153

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - 17 * - - MIN ( DISTINCT + + CAST ( + col2 AS INTEGER ) ) * + - 51 FROM tab1 AS cor0
----
51153

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT DISTINCT + + 77 DIV - - col2 AS col0 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT + + 77 / - - col2 AS col0 FROM tab0 AS cor0
----
0
1
7

query I rowsort
SELECT - 85 AS col2 FROM tab2 cor0
----
-85
-85
-85

query II rowsort
SELECT DISTINCT - col0, - 67 * 96 AS col2 FROM tab1 AS cor0
----
-51
-6432
-85
-6432
-91
-6432

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

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

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

query I rowsort
SELECT DISTINCT col0 + col1 + - col0 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 47 * + - 76 * + col1 * + col2 + 41 AS col2 FROM tab1
----
-1053699
-11416071
-4800727

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT + col2 IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col0 + - col0 * - 73 + - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3621
6035
6461

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7637
SELECT ALL * FROM tab1 cor0 WHERE 42 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7637
SELECT ALL * FROM tab1 cor0 WHERE 42 >= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + - 76 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT MIN( 46 ) AS col0 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7641
SELECT MIN ( 46 ) AS col0 FROM tab1 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col0 FROM tab0
----
-87

query I rowsort
SELECT 69 * - ( + col2 ) FROM tab2
----
-1587
-2760
-4002

query I rowsort
SELECT ( - - 16 ) * - col2 AS col2 FROM tab2
----
-368
-640
-928

query I rowsort
SELECT col2 * + 3 AS col2 FROM tab2
----
120
174
69

query I rowsort
SELECT col1 * + 50 AS col0 FROM tab1
----
2350
250
700

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( 12 ) + + col1 * + + 15 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT - 0 * + col2 DIV - ( - col1 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT - 0 * + col2 / - ( - col1 ) AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 3 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + + 68, col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE + col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 NOT BETWEEN + + 91 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7655
SELECT * FROM tab2 WHERE + col2 - - - col1 * - col2 IN ( + - col0, - CAST( NULL AS SIGNED ) + 0 + - col1, 17 * - + col0 + col0 + + col2, + col0 + + col0 + - 34 + - col0 + col0 + - + col0 - col2 + + CAST( NULL AS SIGNED ) * 48 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-7655
SELECT * FROM tab2 WHERE + col2 - - - col1 * - col2 IN ( + - col0, - CAST ( NULL AS INTEGER ) + 0 + - col1, 17 * - + col0 + col0 + + col2, + col0 + + col0 + - 34 + - col0 + col0 + - + col0 - col2 + + CAST ( NULL AS INTEGER ) * 48 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL + 91 + - + MIN( + + 84 ) + + 23 AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL + 91 + - + MIN ( + + 84 ) + + 23 AS col0 FROM tab0
----
30

query I rowsort
SELECT DISTINCT col0 * - + 69 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT 40 + - col0 AS col0 FROM tab1
----
-11
-45
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL COUNT( * ) + 72 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL COUNT ( * ) + 72 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - MIN( ALL - - col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT - MIN ( ALL - - col2 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col1 + col2 - + col1 AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( ( col2 ) ) ) > NULL
----

query I rowsort
SELECT DISTINCT - col1 - col1 * - 57 + - - col0 FROM tab1 AS cor0
----
2723
365
835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT DISTINCT CAST( + col1 AS SIGNED ) + + 89 FROM tab0
----
110
170
90

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + + 89 FROM tab0
----
110
170
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL - + 53 + - 44 + ( + + ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL - + 53 + - 44 + ( + + ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT MIN( - col0 ) + 37 AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7667
SELECT MIN ( - col0 ) + 37 AS col0 FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7668
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + CAST( - col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7668
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + CAST ( - col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT col2 DIV + + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7669
SELECT col2 / + + col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 48 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 48 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 77 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 77 BETWEEN + + col0 AND ( + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 39 * + col0 FROM tab0
----
3393
3783
585

query III rowsort
SELECT * FROM tab1 WHERE NULL > NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT MIN( DISTINCT - col0 ) col2 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7675
SELECT MIN ( DISTINCT - col0 ) col2 FROM tab1
----
-91

query I rowsort
SELECT DISTINCT + col2 * - 93 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT 46 * + 74 FROM tab1
----
3404
3404
3404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 23 AS col1, - col0 + 0 - - col1 col2 FROM tab2
----
23
-8
23
13
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT COUNT( * ) * 7 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7679
SELECT COUNT ( * ) * 7 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL - SUM( ALL + - 71 ) FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - SUM ( ALL + - 71 ) FROM tab2 AS cor0
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7681
SELECT ALL + 22 AS col2, + SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-7681
SELECT ALL + 22 AS col2, + SUM ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7682
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT + 62 + + COUNT( * ) col2 FROM tab1
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7683
SELECT DISTINCT + 62 + + COUNT ( * ) col2 FROM tab1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7684
SELECT DISTINCT + col1 FROM tab0 WHERE ( NOT - CAST( col0 AS SIGNED ) <> NULL )
----

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT + col1 FROM tab0 WHERE ( NOT - CAST ( col0 AS INTEGER ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 + col1, col1 * - col2 AS col1 FROM tab1 AS cor0
----
138
-3196
65
-1344
90
-295

query I rowsort
SELECT ALL 15 - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32
1
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 48 col1 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT MAX( - 91 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7690
SELECT MAX ( - 91 ) FROM tab1
----
-91

query I rowsort
SELECT 22 * - + col0 FROM tab1
----
-1122
-1870
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT ( + MAX( ALL + ( + 84 ) ) ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT ( + MAX ( ALL + ( + 84 ) ) ) AS col1 FROM tab1
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7693
SELECT DISTINCT col0 + - + CAST( + - col2 AS SIGNED ) DIV + 29 AS col2 FROM tab2
----
46
65
77

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT col0 + - + CAST ( + - col2 AS INTEGER ) / + 29 AS col2 FROM tab2
----
46
65
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL + MAX( DISTINCT - col2 ) * - 12 AS col0 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL + MAX ( DISTINCT - col2 ) * - 12 AS col0 FROM tab0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT ( + CAST( - 8 AS SIGNED ) ) FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-7695
SELECT ( + CAST ( - 8 AS INTEGER ) ) FROM tab1
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col1 * + + col0 col0 FROM tab0 WHERE + + 6 + + col0 IS NOT NULL
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT - ( + col0 ) <= + + ( + col1 ) AND NOT col0 - + - 26 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 96 + + col1 FROM tab0
----
117
177
97

query I rowsort
SELECT ALL - col0 + - 6 AS col0 FROM tab2 AS cor0
----
-52
-70
-81

query I rowsort
SELECT - - 40 + + col1 FROM tab0 AS cor0
----
121
41
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT CAST( NULL AS SIGNED ) + - 82 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT CAST ( NULL AS INTEGER ) + - 82 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( 55 + + 33, col2, - 81, + col1, - - col2, col0 + + - 94 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT DISTINCT - 35 - + - 43 + 37 DIV - col0 AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT - 35 - + - 43 + 37 / - col0 AS col2 FROM tab1
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7704
SELECT DISTINCT + 8 DIV + MAX( col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT + 8 / + MAX ( col2 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT ( COUNT( * ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7705
SELECT DISTINCT ( COUNT ( * ) ) col0 FROM tab2
----
3

query II rowsort
SELECT - - col0 AS col2, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - col0 + - col0 - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, + col2 col1 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ALL - col1 * col1 - + 45 FROM tab2 cor0
----
-2646
-4534
-5974

query II rowsort
SELECT ALL + col2 AS col0, ( + col2 ) FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - - 34 * - + col2 FROM tab1 AS cor0
----
-2006
-2312
-3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 42, - col0 * 6 * + col1 AS col1, - col2 col1 FROM tab2 AS cor0
----
9 values hashing to 30ee4ed698fac26bb8ec62268532ceb3

query II rowsort
SELECT ALL + 90 AS col2, - col2 FROM tab2 AS cor0
----
90
-23
90
-40
90
-58

query II rowsort
SELECT col0 AS col1, 72 AS col2 FROM tab1 AS cor0
----
51
72
85
72
91
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab2 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL - MIN( - ( col2 ) ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL - MIN ( - ( col2 ) ) AS col0 FROM tab2
----
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + - - col0 * + + col2 / - 29 BETWEEN NULL AND + + 3 + 41
----

query I rowsort
SELECT - col2 * + col0 * 36 * + 81 AS col1 FROM tab1
----
-14276736
-14623740
-18044208

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT col2 DIV + ( - - col2 ) col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7719
SELECT col2 / + ( - - col2 ) col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE + 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT + + CAST( - 31 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-7722
SELECT + + CAST ( - 31 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-31
-31
-31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= col0 * - + col2 + + 94 + + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL - ( + MAX( col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL - ( + MAX ( col1 ) ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT + - col1, 29 AS col1 FROM tab1 AS cor0
----
-14
29
-47
29
-5
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL col0 - - CAST( NULL AS SIGNED ) - - - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL col0 - - CAST ( NULL AS INTEGER ) - - - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 51 + + - 99 + + + col0 FROM tab2 cor0
----
2293
3229
3801

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 96 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT - + ( + - COUNT( * ) ) + + 22 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7729
SELECT - + ( + - COUNT ( * ) ) + + 22 FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL + 32 * - + col0 + + + 37 FROM tab0
----
-2747
-3067
-443

query II rowsort
SELECT + 65 * col2 + ( - - col2 ) AS col1, + 37 AS col0 FROM tab1
----
3894
37
4488
37
6336
37

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ( + + col0 ) * - - 32 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE + col2 > + - col2
----
51
67
77

query I rowsort
SELECT DISTINCT 87 - col1 FROM tab1 AS cor0
----
40
73
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - + ( + ( - col2 ) ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT + 93 DIV + - 6 FROM tab0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-7737
SELECT + 93 / + - 6 FROM tab0
----
-15
-15
-15

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 1 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT col2 * - + 9 FROM tab2
----
-207
-360
-522

query I rowsort
SELECT ( - ( col0 ) ) AS col1 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + 17 * + 32 * col2 * - + col1 AS col2 FROM tab1 AS cor0
----
-160480
-1738624
-731136

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL COUNT( * ) * + + 71 AS col2 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL COUNT ( * ) * + + 71 AS col2 FROM tab2 cor0
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7743
SELECT DISTINCT + SUM( ALL - col0 ) DIV 96 col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7743
SELECT DISTINCT + SUM ( ALL - col0 ) / 96 col1 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7744
SELECT DISTINCT + SUM( col0 ) DIV + - COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT + SUM ( col0 ) / + - COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT - + MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - + MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
97

query II rowsort
SELECT + 95 AS col0, + 55 AS col2 FROM tab2
----
95
55
95
55
95
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7747
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) col1 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7747
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab2
----
3
3

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col1 IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT col2, + col1 AS col2 FROM tab1 WHERE NULL = + + 65
----

query I rowsort
SELECT + ( - 86 ) * - 69 FROM tab0
----
5934
5934
5934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT + CAST( - col0 AS SIGNED ) * col2 * col2 AS col0 FROM tab1
----
-295885
-420784
-470016

skipif mysql # not compatible
query I rowsort label-7751
SELECT + CAST ( - col0 AS INTEGER ) * col2 * col2 AS col0 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7752
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0, + 31 + 51 AS col1 FROM tab1 AS cor0
----
NULL
82
NULL
82
NULL
82

skipif mysql # not compatible
query II rowsort label-7752
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, + 31 + 51 AS col1 FROM tab1 AS cor0
----
NULL
82
NULL
82
NULL
82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 57 <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + col1 + - - col0 * - col0 * col1 - + + 87 FROM tab2
----
-107901
-315325
-376828

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab1 WHERE - col2 * col1 IS NOT NULL
----
-81

query I rowsort
SELECT ALL + + ( - 97 ) + 36 AS col1 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT DISTINCT + col0 + - col0 + - CAST( - 36 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + col0 + - col0 + - CAST ( - 36 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT + - MAX( + + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT + - MAX ( + + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - ( SUM( DISTINCT - - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7761
SELECT - ( SUM ( DISTINCT - - col1 ) ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + 5 * + + col1 AS col0 FROM tab0 AS cor0
----
105
405
5

query II rowsort
SELECT DISTINCT + 95 - + - 8 AS col0, col2 * - + col0 * + 27 AS col0 FROM tab1 AS cor0
----
103
-132192
103
-135405
103
-167076

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7764
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT DISTINCT COUNT( + 65 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT COUNT ( + 65 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT ALL + 91 + + MIN( + - col1 ) AS col1 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL + 91 + + MIN ( + - col1 ) AS col1 FROM tab2 AS cor0
----
14

query II rowsort
SELECT + col2 AS col0, + 38 * - 49 - col0 AS col1 FROM tab1
----
59
-1947
68
-1953
96
-1913

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT + ( SUM( + - 86 ) ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-7768
SELECT + ( SUM ( + - 86 ) ) FROM tab2
----
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, + col2 col0 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT + col1 + - + 19 FROM tab1
----
-14
-5
28

query I rowsort
SELECT col1 * col2 - + - 72 AS col1 FROM tab0
----
171
282
3879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL + col0 * - + col2 + + col1 * + - col2 * - + CAST( 19 AS SIGNED ) FROM tab0
----
-7722
3120
71628

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + col0 * - + col2 + + col1 * + - col2 * - + CAST ( 19 AS INTEGER ) FROM tab0
----
-7722
3120
71628

query I rowsort
SELECT DISTINCT - 92 * + + col0 * - + col1 + - + col1 AS col0 FROM tab1 AS cor0
----
39095
393437
65674

query I rowsort
SELECT - 75 + - 81 AS col0 FROM tab2 AS cor0
----
-156
-156
-156

query II rowsort
SELECT - col0, col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab2 AS cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7778
SELECT ALL COUNT( * ) AS col2, 66 + 54 FROM tab0 AS cor0
----
3
120

skipif mysql # not compatible
query II rowsort label-7778
SELECT ALL COUNT ( * ) AS col2, 66 + 54 FROM tab0 AS cor0
----
3
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT ( COUNT( DISTINCT + col0 ) ) AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7779
SELECT ( COUNT ( DISTINCT + col0 ) ) AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT + 14 - + COUNT( * ) AS col2 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-7780
SELECT + 14 - + COUNT ( * ) AS col2 FROM tab1
----
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + ( + col0 ) ) NOT BETWEEN NULL AND - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - 4 - COUNT( * ) * + 96 AS col0 FROM tab0
----
-292

skipif mysql # not compatible
query I rowsort label-7782
SELECT - 4 - COUNT ( * ) * + 96 AS col0 FROM tab0
----
-292

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + ( 1 ) NOT BETWEEN - 2 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL 93 - - MIN( DISTINCT col0 ) AS col0 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL 93 - - MIN ( DISTINCT col0 ) AS col0 FROM tab1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT COUNT( * ) + 95 AS col1 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-7785
SELECT COUNT ( * ) + 95 AS col1 FROM tab1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7786
SELECT DISTINCT * FROM tab2 WHERE col2 - - 36 NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7786
SELECT DISTINCT * FROM tab2 WHERE col2 - - 36 NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( + 95 ) AS col0 FROM tab1
----
95
95
95

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 63 ) IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 + 33 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT COUNT( * ) FROM tab0 WHERE NOT - ( col1 ) - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7790
SELECT COUNT ( * ) FROM tab0 WHERE NOT - ( col1 ) - col1 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT DISTINCT + ( col2 ) FROM tab1 WHERE - col0 + CAST( NULL AS SIGNED ) * - 9 = ( - 1 - + ( 38 ) )
----

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT + ( col2 ) FROM tab1 WHERE - col0 + CAST ( NULL AS INTEGER ) * - 9 = ( - 1 - + ( 38 ) )
----

query I rowsort
SELECT DISTINCT col1 + - 21 * - col2 AS col2 FROM tab0
----
1068
2080
231

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT ALL - col0 + + 73 DIV + col1 AS col1 FROM tab0
----
-15
-24
-84

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - col0 + + 73 / + col1 AS col1 FROM tab0
----
-15
-24
-84

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT SUM( 20 ) AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7795
SELECT SUM ( 20 ) AS col2 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + COUNT( * ) + 88 AS col0 FROM tab1 WHERE col0 / col1 >= + col0
----
88

skipif mysql # not compatible
query I rowsort label-7796
SELECT + COUNT ( * ) + 88 AS col0 FROM tab1 WHERE col0 / col1 >= + col0
----
88

query I rowsort
SELECT 8 - 72 AS col0 FROM tab0
----
-64
-64
-64

query I rowsort
SELECT 43 * + col1 FROM tab2 WHERE NOT - col0 + col2 * - 13 <> ( NULL )
----

query I rowsort
SELECT ALL + 28 + 35 * + 88 FROM tab1
----
3108
3108
3108

query I rowsort
SELECT DISTINCT + col1 * 79 FROM tab1 WHERE 76 BETWEEN col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT - AVG ( ALL col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE ( NULL ) > ( 91 * + 79 + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT - AVG ( ALL col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE ( NULL ) > ( 91 * + 79 + 72 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col0 FROM tab2
----
24

query I rowsort
SELECT + ( + col1 ) - col1 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col1 / 76 BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 22 * col2 AS col2 FROM tab0
----
1034
2178
220

query I rowsort
SELECT ALL ( + col2 ) * + col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + 2 + ( - col0 ) AS col1 FROM tab2
----
-44
-62
-73

query I rowsort
SELECT DISTINCT + col2 * 36 AS col2 FROM tab2 WHERE - col0 NOT IN ( 3 )
----
1440
2088
828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 + col2 col0 FROM tab1
----
155
164
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT COUNT( * ) + - 47 * + 42 col1 FROM tab0 AS cor0
----
-1971

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7810
SELECT COUNT ( * ) + - 47 * + 42 col1 FROM tab0 AS cor0
----
-1971

query I rowsort
SELECT col2 + + 31 AS col2 FROM tab1 AS cor0
----
127
90
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 - 56 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 16 + + 26 AS col2 FROM tab0
----
42

query III rowsort
SELECT * FROM tab1 WHERE 81 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7816
SELECT DISTINCT CAST( NULL AS SIGNED ) * 67 + SUM( - 49 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 67 + SUM ( - 49 ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col2 / - col0 AND 13 * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7818
SELECT + + CAST( NULL AS SIGNED ) * COUNT( * ) - 25 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT + + CAST ( NULL AS INTEGER ) * COUNT ( * ) - 25 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 - col2 * + 87 FROM tab1 cor0
----
-5074
-5848
-8256

query I rowsort
SELECT DISTINCT - col0 + - 65 * - 13 AS col0 FROM tab1 cor0
----
754
760
794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT ALL + MIN( col1 ) + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL + MIN ( col1 ) + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 + - 2 col1 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT 93 + + COUNT( * ) col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7823
SELECT DISTINCT 93 + + COUNT ( * ) col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT - - 35 * - col0 - 27 FROM tab0 AS cor0
----
-3072
-3422
-552

query I rowsort
SELECT + col1 + 97 FROM tab2 AS cor0
----
148
164
174

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL + MAX( + col1 ) * 91 + 28 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4305

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + MAX ( + col1 ) * 91 + 28 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4305

query I rowsort
SELECT DISTINCT + 23 - col2 AS col1 FROM tab2 AS cor0
----
-17
-35
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7829
SELECT - col2 DIV - + col0 + + 62 AS col0 FROM tab1
----
62
62
63

skipif mysql # not compatible
query I rowsort label-7829
SELECT - col2 / - + col0 + + 62 AS col0 FROM tab1
----
62
62
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL COUNT( - + 88 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL COUNT ( - + 88 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7831
SELECT * FROM tab0 WHERE ( ( col0 ) * 31 ) < CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7831
SELECT * FROM tab0 WHERE ( ( col0 ) * 31 ) < CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT - col2 + - col2 + + 86 AS col0 FROM tab1
----
-106
-32
-50

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND + col0 / 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col2 FROM tab2
----
-121

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 15 ) <> ( 99 )
----

query I rowsort
SELECT ( + col2 ) * + 99 FROM tab0
----
4653
9801
990

query I rowsort
SELECT + col2 * + 33 * col2 FROM tab1
----
114873
152592
304128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT CAST( - 3 AS SIGNED ) AS col1 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7838
SELECT CAST ( - 3 AS INTEGER ) AS col1 FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT ALL COUNT( * ) * + 87 AS col0 FROM tab0 WHERE NOT col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL COUNT ( * ) * + 87 AS col0 FROM tab0 WHERE NOT col0 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7840
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col1 + 39 <= col1 * 92 AND NOT 16 * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7840
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col1 + 39 <= col1 * 92 AND NOT 16 * col2 IS NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( 55 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT - CAST( NULL AS SIGNED ) * + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7843
SELECT - CAST ( NULL AS INTEGER ) * + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col1 + + - ( col2 ) )
----

query I rowsort
SELECT ALL + 42 * - 8 FROM tab1 cor0
----
-336
-336
-336

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 * - + col2 * col0 - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + - col0 AND + 36 * ( col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 82 * - col0 FROM tab2 AS cor0 WHERE NOT - ( + - col0 ) * + col2 < col1
----
-3772
-5248
-6150

query II rowsort
SELECT DISTINCT col2, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query II rowsort
SELECT ALL + + 70, + 35 AS col0 FROM tab1 AS cor0
----
70
35
70
35
70
35

query II rowsort
SELECT DISTINCT + - col0 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL - 73 AS col0 FROM tab0 cor0
----
-73
-73
-73

query I rowsort
SELECT 13 * + col1 * + ( + col2 ) AS col1 FROM tab1
----
17472
3835
41548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7855
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 + - 68 - 6 * 49 ) NOT BETWEEN col1 / col1 AND + 23 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL ( - - COUNT( * ) ) * ( - + 66 ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL ( - - COUNT ( * ) ) * ( - + 66 ) AS col1 FROM tab1
----
-198

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7858
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + - CAST( col0 AS DECIMAL ) BETWEEN ( - col2 ) AND ( - 25 )
----

skipif mysql # not compatible
query III rowsort label-7858
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + - CAST ( col0 AS REAL ) BETWEEN ( - col2 ) AND ( - 25 )
----

query I rowsort
SELECT col1 * + + col1 FROM tab0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT ALL + col2 DIV + - col2 + col0 AS col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + col2 / + - col2 + col0 AS col0 FROM tab0
----
14
86
96

query I rowsort
SELECT 30 AS col2 FROM tab2 AS cor0 WHERE ( NOT col1 IS NULL )
----
30
30
30

query I rowsort
SELECT col1 + + 31 - + 59 * + + 67 * - col2 - col0 AS col0 FROM tab2 cor0
----
158164
229297
90955

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT - + 6 + col1 * + col0 NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + col0 ) AND ( col2 )
----

query I rowsort
SELECT DISTINCT + + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7866
SELECT - 17 col2, col0 / + col2 - + col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-17
NULL
-17
NULL
-17
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7866
SELECT - 17 col2, col0 / + col2 - + col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-17
NULL
-17
NULL
-17
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 5 IN ( + col2 * + - col0 + - ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7868
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col1 BETWEEN ( NULL ) AND 71
----

skipif mysql # not compatible
query III rowsort label-7868
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 BETWEEN ( NULL ) AND 71
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 cor0 WHERE + col1 NOT IN ( col2 / + + col0 )
----
-51
-67
-77

query I rowsort
SELECT - + ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, 38 * - 8 * 37 col0 FROM tab1 cor0
----
-14
-11248
-47
-11248
-5
-11248

query I rowsort
SELECT DISTINCT + - 32 - - col1 FROM tab0 AS cor0
----
-11
-31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( - ( - + col0 ) / + 49 ) BETWEEN ( NULL ) AND - ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( - ( - + col0 ) / + 49 ) BETWEEN ( NULL ) AND - ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7874
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 / - CAST( NULL AS SIGNED ) + - col1 IS NULL AND NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7874
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 / - CAST ( NULL AS INTEGER ) + - col1 IS NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 76 * + col1 * 28 ) < ( ( + col1 ) )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 18 * + ( + + 88 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT 60 DIV - - col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-7878
SELECT 60 / - - col2 AS col2 FROM tab0
----
0
1
6

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 / + col0 * - col2 * - 5 ) = ( col1 + col2 )
----

query I rowsort
SELECT col2 * - 24 * col0 AS col2 FROM tab1
----
-117504
-120360
-148512

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 66 * - col0 NOT IN ( - 54 + - col1 - + ( col0 ) )
----

query I rowsort
SELECT - col2 * + 83 * col1 FROM tab1 cor0
----
-111552
-24485
-265268

query II rowsort
SELECT DISTINCT - - col0 AS col2, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query II rowsort
SELECT DISTINCT - 88 AS col2, col1 FROM tab1 AS cor0
----
-88
14
-88
47
-88
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT + + MAX( + - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7885
SELECT + + MAX ( + - col1 ) FROM tab0 AS cor0
----
-1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 28 = ( NULL )
----

query II rowsort
SELECT ( 2 ) AS col2, 58 FROM tab0
----
2
58
2
58
2
58

query I rowsort
SELECT - 70 * 64 FROM tab1
----
-4480
-4480
-4480

query II rowsort
SELECT + ( - 99 ), + 2 * 36 + - col1 AS col0 FROM tab2 AS cor0
----
-99
-5
-99
21
-99
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT - + CAST( - - MAX( - + col2 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7890
SELECT DISTINCT - + CAST ( - - MAX ( - + col2 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT - MAX( 80 ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - MAX ( 80 ) FROM tab0 AS cor0
----
-80

query I rowsort
SELECT ( - ( - 92 ) ) * + ( - col1 ) + + - 37 FROM tab0 AS cor0
----
-129
-1969
-7489

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT col0 DIV col2 * + - col1 FROM tab2 AS cor0
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-7893
SELECT col0 / col2 * + - col1 FROM tab2 AS cor0
----
-102
-67
-77

query I rowsort
SELECT + AVG ( DISTINCT + col0 ) * + + AVG ( + 53 ) FROM tab0 WHERE NULL <> - 53
----
NULL

query I rowsort
SELECT ALL - col1 * - + col1 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7896
SELECT ALL - 27 * + col1 * - CAST( + + ( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) + - CAST( NULL AS SIGNED ) * + - col1 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL - 27 * + col1 * - CAST ( + + ( - CAST ( NULL AS INTEGER ) ) AS REAL ) + - CAST ( NULL AS INTEGER ) * + - col1 + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - + col1 + col1 * - + 33 AS col1 FROM tab0
----
-2673
-33
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-7898
SELECT 92 + - col0 + - - 0 DIV 69 FROM tab0
----
-5
5
77

skipif mysql # not compatible
query I rowsort label-7898
SELECT 92 + - col0 + - - 0 / 69 FROM tab0
----
-5
5
77

query III rowsort
SELECT * FROM tab1 WHERE + col2 - col0 IS NULL
----

query I rowsort
SELECT - col1 + - ( + col1 ) FROM tab0 AS cor0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col2 + + - 8 AS col2 FROM tab1 AS cor0
----
14
88
47
60
5
51

query I rowsort
SELECT - 87 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT ALL - 85 FROM tab0, tab2 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT - 81 + + + col0 * + 11 + 99 FROM tab2
----
524
722
843

onlyif mysql # aggregate syntax: 
query II rowsort label-7905
SELECT + ( - 49 ) col1, + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-49
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7905
SELECT + ( - 49 ) col1, + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-49
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= + 44
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > col2 * col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 34 + + 38 NOT BETWEEN NULL AND + 72
----

query II rowsort
SELECT ALL + col1 * + 38, col2 * col0 + col2 * + + col0 AS col0 FROM tab1 AS cor0
----
1786
12376
190
10030
532
9792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7910
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL + 69 * - - ( - col2 ) FROM tab1 cor0
----
-4071
-4692
-6624

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 20 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7913
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( CAST( NULL AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-7913
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( CAST ( NULL AS INTEGER ), col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT DISTINCT - COUNT( * ) DIV - 51 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT - COUNT ( * ) / - 51 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7915
SELECT col1 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7915
SELECT col1 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT col1 * - col0 * + 93 FROM tab2
----
-218178
-458304
-467325

query I rowsort
SELECT col0 * + 71 FROM tab2
----
3266
4544
5325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT ALL + COUNT( - - col0 ) * - CAST( - - 96 AS SIGNED ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + COUNT ( - - col0 ) * - CAST ( - - 96 AS INTEGER ) FROM tab2
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT DISTINCT + col1 DIV + + 83 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT + col1 / + + 83 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT DISTINCT COUNT( * ) * - 6 AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT COUNT ( * ) * - 6 AS col0 FROM tab2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT 98 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7922
SELECT 98 / + col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT DISTINCT - + MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7923
SELECT DISTINCT - + MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 93 * + 15 AS col1 FROM tab1 AS cor0
----
-1395
-1395
-1395

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7925
SELECT + + col0 col0, + col2 * + 0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 >= col2 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7925
SELECT + + col0 col0, + col2 * + 0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 >= col2 * - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7926
SELECT DISTINCT - COUNT( * ) AS col1, 41 FROM tab0
----
-3
41

skipif mysql # not compatible
query II rowsort label-7926
SELECT DISTINCT - COUNT ( * ) AS col1, 41 FROM tab0
----
-3
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 43 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + - 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 * + col2 AND + - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - + col2
----

query I rowsort
SELECT col2 + + col0 + col0 + col2 + + col2 AS col2 FROM tab1 AS cor0
----
347
386
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7932
SELECT - + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7932
SELECT - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT 64 DIV 40 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7933
SELECT 64 / 40 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL - 56 * - COUNT( * ) + - - 58 FROM tab2 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL - 56 * - COUNT ( * ) + - - 58 FROM tab2 AS cor0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT + MIN( ALL - - ( + col2 ) ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7935
SELECT + MIN ( ALL - - ( + col2 ) ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ALL + col0 + + col1 + - col2 * + + 40 * col2 FROM tab0
----
-3892
-391942
-88264

query I rowsort
SELECT ALL col0 + - col0 + + col1 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE 76 / - - 58 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT - - col1 + - - col1 AS col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ALL + + col2 * col0 * - - col0 AS col2 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7942
SELECT - COUNT( + col0 ) + - - CAST( NULL AS SIGNED ), 79 col0 FROM tab2
----
NULL
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7942
SELECT - COUNT ( + col0 ) + - - CAST ( NULL AS INTEGER ), 79 col0 FROM tab2
----
NULL
79

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab2 cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * 29 + + 36 FROM tab2
----
1370
1892
2211

query I rowsort
SELECT ALL 16 - - 35 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT ALL - col2 / 90 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 + + col1 AND NULL
----

query I rowsort
SELECT - 26 * + + col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

query II rowsort
SELECT - col0, col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + 32 * + 64 NOT IN ( - + 85, 73, - 64 )
----

query II rowsort
SELECT + col2 AS col2, + 89 FROM tab1 AS cor0
----
59
89
68
89
96
89

query I rowsort
SELECT DISTINCT + col1 * - - 73 FROM tab0 AS cor0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT DISTINCT + + COUNT( ALL 22 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + + COUNT ( ALL 22 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7953
SELECT DISTINCT 16 DIV - col2 - + col1, - 49 AS col1 FROM tab2 AS cor0
----
-51
-49
-67
-49
-77
-49

skipif mysql # not compatible
query II rowsort label-7953
SELECT DISTINCT 16 / - col2 - + col1, - 49 AS col1 FROM tab2 AS cor0
----
-51
-49
-67
-49
-77
-49

query II rowsort
SELECT - 95 AS col1, + 6 FROM tab2 cor0
----
-95
6
-95
6
-95
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7955
SELECT DISTINCT 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-7955
SELECT DISTINCT COUNT ( ALL CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
0

query I rowsort
SELECT ALL + 48 * + - 64 FROM tab1
----
-3072
-3072
-3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7957
SELECT - 90 DIV + COUNT( * ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-7957
SELECT - 90 / + COUNT ( * ) AS col1 FROM tab0
----
-30

query I rowsort
SELECT + 38 * col0 * - ( - col0 ) FROM tab1
----
274550
314678
98838

query I rowsort
SELECT col2 * - + 36 AS col1 FROM tab2 AS cor0
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT ALL - COUNT( * ) * COUNT( DISTINCT - col2 ) * + ( ( + COUNT( * ) ) ) DIV - 98 + + MAX( + - col0 ) + - 60 FROM tab1 cor0
----
-111

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT - col2 ) * + ( ( + COUNT ( * ) ) ) / - 98 + + MAX ( + - col0 ) + - 60 FROM tab1 cor0
----
-111

query III rowsort
SELECT * FROM tab2 WHERE NOT 31 / 24 * + + col1 + - - 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7962
SELECT ALL COUNT( DISTINCT CAST( - 3 AS SIGNED ) ) AS col2, COUNT( * ) FROM tab2
----
1
3

skipif mysql # not compatible
query II rowsort label-7962
SELECT ALL COUNT ( DISTINCT CAST ( - 3 AS INTEGER ) ) AS col2, COUNT ( * ) FROM tab2
----
1
3

query I rowsort
SELECT DISTINCT col0 * col0 + + col1 FROM tab2
----
2167
4173
5692

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT MAX( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7964
SELECT MAX ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7965
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7965
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 + + + 94 FROM tab0 AS cor0
----
136
256
96

query II rowsort
SELECT col2, 86 AS col0 FROM tab1 AS cor0
----
59
86
68
86
96
86

query I rowsort
SELECT ALL + + 34 + + + 20 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT + SUM( ALL + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT + SUM ( ALL + col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT col2 * - col1 + + 4 FROM tab1
----
-1340
-291
-3192

query II rowsort
SELECT DISTINCT col2, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT + col2 * col0 + + col1 + - - col1 + - col0 + - + 70 AS col2 FROM tab0
----
755
782
9438

query I rowsort
SELECT ALL 8 + 97 FROM tab0
----
105
105
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT - ( + CAST( - + 67 AS SIGNED ) ) * + CAST( + 18 AS SIGNED ) FROM tab1
----
1206
1206
1206

skipif mysql # not compatible
query I rowsort label-7975
SELECT - ( + CAST ( - + 67 AS INTEGER ) ) * + CAST ( + 18 AS INTEGER ) FROM tab1
----
1206
1206
1206

query I rowsort
SELECT DISTINCT - col0 * + 52 * + + col1 + col1 FROM tab2
----
-121941
-256179
-261233

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT + COUNT( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7977
SELECT + COUNT ( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT DISTINCT - ( + + CAST( 90 AS SIGNED ) ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT - ( + + CAST ( 90 AS INTEGER ) ) FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * - 8 AS col1 FROM tab2 AS cor0
----
184
320
464

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * - 8 AS col1 FROM tab2 AS cor0
----
184
320
464

query I rowsort
SELECT ALL 23 * 75 - - ( - + col1 ) * - 2 * - + 35 * + col1 AS col0 FROM tab0 AS cor0
----
-29145
-457545
1655

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7981
SELECT ALL - CAST( 72 AS SIGNED ), + 83 * - + 10 col1 FROM tab1 AS cor0
----
-72
-830
-72
-830
-72
-830

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7981
SELECT ALL - CAST ( 72 AS INTEGER ), + 83 * - + 10 col1 FROM tab1 AS cor0
----
-72
-830
-72
-830
-72
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE + col1 * + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 * + + col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7984
SELECT ALL 79 * + col2 DIV col2 AS col2 FROM tab0 cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL 79 * + col2 / col2 AS col2 FROM tab0 cor0
----
79
79
79

query I rowsort
SELECT DISTINCT ( + ( col1 ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL + MIN( + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL + MIN ( + col2 ) AS col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7987
SELECT + COUNT( * ) AS col1, + 75 FROM tab2
----
3
75

skipif mysql # not compatible
query II rowsort label-7987
SELECT + COUNT ( * ) AS col1, + 75 FROM tab2
----
3
75

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + + 8 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 32, - col2 col0 FROM tab1
----
-32
-59
-32
-68
-32
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT DISTINCT + 82 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT + 82 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT + col2 + + col2 AS col2, - 59 + + col1 FROM tab1
----
118
-54
136
-12
192
-45

query I rowsort
SELECT - 67 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + + col2 ) + - col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT - COUNT( col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7993
SELECT - COUNT ( col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT ALL + col2 + CAST( - col2 AS SIGNED ) + 68 AS col2 FROM tab1 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + col2 + CAST ( - col2 AS INTEGER ) + 68 AS col2 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT + + col0 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-624
-849
-9602

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 / + - col1 <= - - 7 + + 30 + 87
----

query I rowsort
SELECT - 83 * + + 5 AS col2 FROM tab1 AS cor0
----
-415
-415
-415

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT - - ( - col1 ) DIV + + col0 - + col2 FROM tab2 cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-7998
SELECT - - ( - col1 ) / + + col0 - + col2 FROM tab2 cor0
----
-24
-41
-58

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 + - 86 = - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT DISTINCT + 81 * - COUNT( * ) * - MIN( + ( 14 ) ) AS col1 FROM tab1
----
3402

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT + 81 * - COUNT ( * ) * - MIN ( + ( 14 ) ) AS col1 FROM tab1
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - MIN( - 50 ) AS col1 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-8001
SELECT - MIN ( - 50 ) AS col1 FROM tab2
----
50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 56 * + 97 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 26 + 49 col2 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT - COUNT( * ) DIV - COUNT( * ) + + 27 col0 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8004
SELECT - COUNT ( * ) / - COUNT ( * ) + + 27 col0 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL 21 - - MIN( + - col1 ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL 21 - - MIN ( + - col1 ) FROM tab1 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT - 6 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT - 6 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8007
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - 18 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT - + col0 * col2 * + col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT - + col0 * col2 * + col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 4, - col1 AS col0 FROM tab2 AS cor0
----
4
-51
4
-67
4
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8011
SELECT ALL - - CAST( NULL AS SIGNED ) col0, - 32 AS col2 FROM tab2 AS cor0
----
NULL
-32
NULL
-32
NULL
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8011
SELECT ALL - - CAST ( NULL AS INTEGER ) col0, - 32 AS col2 FROM tab2 AS cor0
----
NULL
-32
NULL
-32
NULL
-32

query II rowsort
SELECT - 40 AS col0, col2 * col2 AS col0 FROM tab1 AS cor0
----
-40
3481
-40
4624
-40
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT - MAX( + col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8013
SELECT - MAX ( + col0 ) FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL ( + MIN( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL ( + MIN ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - ( 31 ) ) * col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 51 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT ALL 8 * - - col1 * + - ( - col1 ) + + 96 * + CAST( NULL AS SIGNED ) * col0 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL 8 * - - col1 * + - ( - col1 ) + + 96 * + CAST ( NULL AS INTEGER ) * col0 * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 36 AS col2 FROM tab1 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT + - COUNT( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8020
SELECT DISTINCT + - COUNT ( DISTINCT + col1 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + - 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT COUNT( 56 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8022
SELECT COUNT ( 56 ) FROM tab1
----
3

query I rowsort
SELECT ALL + 98 + + 13 FROM tab2
----
111
111
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL + COUNT( * ) + - - 84 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + COUNT ( * ) + - - 84 FROM tab1
----
87

query I rowsort
SELECT col1 * - + 36 AS col0 FROM tab0
----
-2916
-36
-756

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8026
SELECT ALL COUNT( * ) + - + CAST( + - CAST( NULL AS DECIMAL ) AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL COUNT ( * ) + - + CAST ( + - CAST ( NULL AS REAL ) AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT - CAST( + + col0 AS SIGNED ) * - 66 - + + col0 AS col0 FROM tab0 AS cor0
----
5655
6305
975

skipif mysql # not compatible
query I rowsort label-8027
SELECT - CAST ( + + col0 AS INTEGER ) * - 66 - + + col0 AS col0 FROM tab0 AS cor0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL - - COUNT( * ) - - ( - MAX( + + 50 ) ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - - COUNT ( * ) - - ( - MAX ( + + 50 ) ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
153

query I rowsort
SELECT + 88 * - 18 + 43 FROM tab1 AS cor0
----
-1541
-1541
-1541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 56 col0 FROM tab0 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8031
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * - ( - col1 ) AS col2, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8031
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * - ( - col1 ) AS col2, + col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8032
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) col2, + 20 AS col0 FROM tab2
----
NULL
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8032
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) col2, + 20 AS col0 FROM tab2
----
NULL
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT ALL - ( + col0 ) DIV col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - ( + col0 ) / col1 FROM tab0
----
-4
-97
0

query I rowsort
SELECT ALL - col2 + - - col1 * - + col0 AS col1 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) AS col2, - 60 AS col2 FROM tab2
----
0
-60

skipif mysql # not compatible
query II rowsort label-8035
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) AS col2, - 60 AS col2 FROM tab2
----
0
-60

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE + - 80 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - 25 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT DISTINCT - - MAX( DISTINCT + + ( - col1 ) ) * - 92 AS col0 FROM tab2 AS cor0
----
4692

skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT - - MAX ( DISTINCT + + ( - col1 ) ) * - 92 AS col0 FROM tab2 AS cor0
----
4692

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL - ( + 45 ) * + COUNT( * ) FROM tab1 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL - ( + 45 ) * + COUNT ( * ) FROM tab1 cor0
----
-135

query I rowsort
SELECT 71 * + col0 AS col0 FROM tab0
----
1065
6177
6887

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT SUM( + 58 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-8041
SELECT SUM ( + 58 ) FROM tab2
----
174

query I rowsort
SELECT + - 20 + - 96 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-116
-116
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT + 53 * - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT + 53 * - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - ( + - 86 ) * - - col1, col0 FROM tab1 AS cor0
----
1204
51
4042
91
430
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 col2 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL 42 AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 14 * - col2
----

query II rowsort
SELECT - col1 AS col1, 33 FROM tab1 AS cor0
----
-14
33
-47
33
-5
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL - 61 * + - COUNT( * ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - 61 * + - COUNT ( * ) FROM tab1
----
183

query II rowsort
SELECT col2 AS col2, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT 85, ( + col0 ) FROM tab1
----
85
51
85
85
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT + - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8052
SELECT + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * - - 0 + - - ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT DISTINCT - COUNT( * ) AS col2, + 16 FROM tab2
----
-3
16

skipif mysql # not compatible
query II rowsort label-8054
SELECT DISTINCT - COUNT ( * ) AS col2, + 16 FROM tab2
----
-3
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT + ( MIN( 31 ) ) AS col2 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT + ( MIN ( 31 ) ) AS col2 FROM tab1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8056
SELECT ALL - ( + - AVG ( DISTINCT + col0 ) ) + - - CAST( NULL AS SIGNED ) + + COUNT( - ( + + 96 ) ) + - + COUNT( * ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL - ( + - AVG ( DISTINCT + col0 ) ) + - - CAST ( NULL AS INTEGER ) + + COUNT ( - ( + + 96 ) ) + - + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 36, col0 * + col0 + - ( - col2 ), - col1, - - 4 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8058
SELECT - CAST( NULL AS SIGNED ) col0, COUNT( * ) FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN + ( + + 52 ) AND + col0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8058
SELECT - CAST ( NULL AS INTEGER ) col0, COUNT ( * ) FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN + ( + + 52 ) AND + col0
----
NULL
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8059
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) + col0 + + 0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL + ( + CAST ( NULL AS REAL ) ) + col0 + + 0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8060
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) * - 96 FROM tab2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-8060
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) * - 96 FROM tab2
----
9
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NULL BETWEEN - 60 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8062
SELECT + + col0 AS col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8062
SELECT + + col0 AS col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

query I rowsort
SELECT ALL + + col1 + + - col2 + + col2 * - col0 * 41 FROM tab1 cor0
----
-200818
-205669
-253729

query I rowsort
SELECT ALL + 1 - + - col0 * + col1 FROM tab2 AS cor0
----
2347
4929
5026

query I rowsort
SELECT + col2 * + ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT ALL 45 DIV + 12 AS col0 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL 45 / + 12 AS col0 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col2 + + col1 + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col2 + + col1 + - col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT ALL - 92 DIV + col1 FROM tab1 AS cor0
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - 92 / + col1 FROM tab1 AS cor0
----
-1
-18
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * + 65 - col2 * - col0 + - + col2 col2 FROM tab2
----
-2550
-4035
-778

query III rowsort
SELECT * FROM tab0 WHERE + col2 + col1 + - col2 IS NULL
----

query I rowsort
SELECT col0 - + 37 AS col1 FROM tab0
----
-22
50
60

query III rowsort
SELECT * FROM tab0 WHERE + - 11 NOT IN ( col2 / - - 52 / - 22, + col0, - ( - col1 ) / + 21, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT ( - CAST( NULL AS SIGNED ) ) - + 18 + + COUNT( * ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT ( - CAST ( NULL AS INTEGER ) ) - + 18 + + COUNT ( * ) * COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 89 ) * col0 col2 FROM tab2
----
4094
5696
6675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8075
SELECT ALL - 59 DIV COUNT( * ) AS col2 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - 59 / COUNT ( * ) AS col2 FROM tab2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8076
SELECT DISTINCT + + col2 / col0, + ( CAST( NULL AS SIGNED ) ) * - CAST( + 43 AS SIGNED ) + + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8076
SELECT DISTINCT + + col2 / col0, + ( CAST ( NULL AS INTEGER ) ) * - CAST ( + 43 AS INTEGER ) + + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 80 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 6 * - - col1 * ( + 21 ) + + ( 20 ) + - col1 AS col2 FROM tab2 AS cor0
----
6395
8395
9645

query I rowsort
SELECT ALL 98 AS col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ALL col1 / 83 AS col2 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND + col0 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab0 cor0
----
36
36
36

query I rowsort
SELECT col0 - 3 + + 64 * - - col0 AS col1 FROM tab0 WHERE NOT - col0 NOT IN ( - col0 - + ( + col0 ) + - col1 )
----

query I rowsort
SELECT + col1 * + col0 + + - col1 AS col2 FROM tab1
----
420
4230
700

onlyif mysql # DIV for integer division: 
query II rowsort label-8085
SELECT DISTINCT col1 + 19 DIV col1 AS col0, - 55 FROM tab0
----
20
-55
21
-55
81
-55

skipif mysql # not compatible
query II rowsort label-8085
SELECT DISTINCT col1 + 19 / col1 AS col0, - 55 FROM tab0
----
20
-55
21
-55
81
-55

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab0 WHERE - col2 IS NOT NULL
----
-32

query III rowsort
SELECT * FROM tab1 WHERE - ( - ( - col0 ) ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT - col0 * - col1 + - CAST( NULL AS SIGNED ) - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT - col0 * - col1 + - CAST ( NULL AS INTEGER ) - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 32 + 32 FROM tab0
----
0

query I rowsort
SELECT col0 * + col1 + + 60 AS col2 FROM tab0 AS cor0
----
1275
157
1887

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 94 NOT IN ( - col1, + 95, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + col1 ) * 49 * - + ( + 45 ) + - ( - 90 ) FROM tab0 AS cor0
----
-178515
-2115
-46215

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT + 68 - + + COUNT( * ) + - + MAX( DISTINCT + col1 ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-8093
SELECT + 68 - + + COUNT ( * ) + - + MAX ( DISTINCT + col1 ) FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT COUNT( * ) + - - 44 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8094
SELECT COUNT ( * ) + - - 44 FROM tab0 AS cor0
----
47

query I rowsort
SELECT DISTINCT + + col2 * + 11 AS col0 FROM tab0 AS cor0
----
1089
110
517

query I rowsort
SELECT ALL - - ( 88 ) - + 48 AS col1 FROM tab1 AS cor0
----
40
40
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - 97
----

query I rowsort
SELECT + col0 * col2 * + col2 AS col1 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT DISTINCT - 10 * - col0 AS col0 FROM tab1
----
510
850
910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8101
SELECT col1 * + col1, + ( CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
196
NULL
2209
NULL
25
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8101
SELECT col1 * + col1, + ( CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
196
NULL
2209
NULL
25
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 35 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT DISTINCT + 40 DIV col1 FROM tab1 AS cor0
----
0
2
8

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT + 40 / col1 FROM tab1 AS cor0
----
0
2
8

query I rowsort
SELECT + + col2 - - - col2 FROM tab0 AS cor0 WHERE NOT + 32 / - col2 - col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8106
SELECT DISTINCT - COUNT( * ) col2, + 27 FROM tab2 AS cor0 WHERE NOT NULL <> ( 90 / - - 61 )
----
0
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8106
SELECT DISTINCT - COUNT ( * ) col2, + 27 FROM tab2 AS cor0 WHERE NOT NULL <> ( 90 / - - 61 )
----
0
27

query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + - col2 AND - - 95 - col0
----
85

query I rowsort
SELECT ( - col0 ) * - col1 * col0 FROM tab1
----
36125
36414
389207

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT + 62 DIV - col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 62 / - col2 FROM tab0
----
-1
-6
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8112
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ), 64 AS col2 FROM tab1
----
0
64

skipif mysql # not compatible
query II rowsort label-8112
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), 64 AS col2 FROM tab1
----
0
64

query I rowsort
SELECT - - col1 FROM tab1 WHERE - 7 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT DISTINCT + 85 * - 69 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT ALL + - SUM( ALL + - 14 ) AS col2, + SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 3 > NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8116
SELECT ALL + - SUM ( ALL + - 14 ) AS col2, + SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT + 3 > NULL
----
NULL
NULL

query I rowsort
SELECT - 6 * + + col1 + col1 AS col0 FROM tab1 AS cor0
----
-235
-25
-70

query I rowsort
SELECT + 29 + 26 FROM tab1 AS cor0
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + 10 > + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8120
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT 87 + COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT 87 + COUNT ( * ) FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - + MIN( 98 ) - ( MAX( + + col1 ) ) AS col1 FROM tab0 AS cor0
----
-179

skipif mysql # not compatible
query I rowsort label-8123
SELECT - + MIN ( 98 ) - ( MAX ( + + col1 ) ) AS col1 FROM tab0 AS cor0
----
-179

query I rowsort
SELECT DISTINCT - col1 - - col1 * 38 AS col2 FROM tab1 AS cor0
----
1739
185
518

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL - - COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - - COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + ( 18 ) AS col0 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - + ( - + col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT ALL CAST( - 16 AS SIGNED ) col2 FROM tab0
----
-16
-16
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8128
SELECT ALL CAST ( - 16 AS INTEGER ) col2 FROM tab0
----
-16
-16
-16

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + MIN( - 69 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + MIN ( - 69 ) FROM tab2
----
-69

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 75, + col2 col1 FROM tab1 AS cor0 WHERE NOT col1 + 41 IS NULL
----
75
59
75
68
75
96

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col0 + col2 * + - col0 + col0 / col1 - ( + - col0 ) + - + 95 BETWEEN col1 AND - col0 + 31
----
51
85
91

query I rowsort
SELECT - + ( 53 ) FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL - - col1 * col1 - + col0 AS col2 FROM tab1 AS cor0
----
-60
145
2118

query II rowsort
SELECT + 60 AS col1, 57 FROM tab1 AS cor0
----
60
57
60
57
60
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col1 FROM tab2 cor0 WHERE + 20 IS NOT NULL
----
69

query II rowsort
SELECT + 25 * + col1 AS col1, - 71 AS col1 FROM tab2 AS cor0
----
1275
-71
1675
-71
1925
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8139
SELECT + + COUNT( * ) FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN + col0 + - + col2 AND 15 * + col0 * col2 / col0 * + + col2
----
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 + - + col2 AND 15 * + col0 * col2 / col0 * + + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT + + MIN( 3 ) * - - 6 AS col0 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-8140
SELECT + + MIN ( 3 ) * - - 6 AS col0 FROM tab1 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT 0 + + - SUM( DISTINCT - 50 ) FROM tab1 cor0 WHERE NOT - col1 BETWEEN ( - 60 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT 0 + + - SUM ( DISTINCT - 50 ) FROM tab1 cor0 WHERE NOT - col1 BETWEEN ( - 60 ) AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8142
SELECT DISTINCT COUNT( * ) * - COUNT( - col0 ) AS col0, 43 DIV + ( 27 ) col0 FROM tab2 AS cor0
----
-9
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8142
SELECT DISTINCT COUNT ( * ) * - COUNT ( - col0 ) AS col0, 43 / + ( 27 ) col0 FROM tab2 AS cor0
----
-9
1

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab1 cor0
----
88

query I rowsort
SELECT - + 38 * 64 * col2 AS col0 FROM tab1 cor0
----
-143488
-165376
-233472

query I rowsort
SELECT - - col2 * ( + 31 ) - - ( - 49 ) FROM tab2 AS cor0
----
1191
1749
664

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8146
SELECT col1 / col2 + + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT col1 / col2 + + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 67 AS col0 FROM tab0 WHERE NULL <= + + col0 + - 66
----

query I rowsort
SELECT DISTINCT 77 + + + col1 FROM tab0
----
158
78
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 81 + + + 8 FROM tab2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8151
SELECT ALL - col1 + col1 + CAST( NULL AS SIGNED ) * + - col2 / + 30 + + 16, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8151
SELECT ALL - col1 + col1 + CAST ( NULL AS INTEGER ) * + - col2 / + 30 + + 16, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT + 45 + col1 FROM tab1
----
50
59
92

query I rowsort
SELECT DISTINCT - col2 + - 42 AS col0 FROM tab0 AS cor0
----
-141
-52
-89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT + 29 + 25 * - - col2 + - + CAST( - 40 AS SIGNED ) FROM tab1
----
1544
1769
2469

skipif mysql # not compatible
query I rowsort label-8155
SELECT + 29 + 25 * - - col2 + - + CAST ( - 40 AS INTEGER ) FROM tab1
----
1544
1769
2469

query I rowsort
SELECT - - ( - + ( col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT - + 84 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8157
SELECT - + 84 / + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT - + CAST( + 88 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 + - col1 * - col2 IS NULL
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-8158
SELECT - + CAST ( + 88 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 + - col1 * - col2 IS NULL
----
-88
-88
-88

query I rowsort
SELECT - + ( 65 ) AS col0 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL + + 36 AS col1 FROM tab0 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT ALL - 73 AS col0, MIN( DISTINCT - + 21 ) + + + 77 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-8161
SELECT ALL - 73 AS col0, MIN ( DISTINCT - + 21 ) + + + 77 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
-73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + - MIN( ALL - col1 ) * - + 56 FROM tab1 AS cor0
----
-2632

skipif mysql # not compatible
query I rowsort label-8162
SELECT + - MIN ( ALL - col1 ) * - + 56 FROM tab1 AS cor0
----
-2632

onlyif mysql # aggregate syntax: 
query II rowsort label-8163
SELECT COUNT( * ) AS col1, + ( + - COUNT( * ) ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-8163
SELECT COUNT ( * ) AS col1, + ( + - COUNT ( * ) ) AS col1 FROM tab2
----
3
-3

query II rowsort
SELECT DISTINCT 78, - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col2, col1 * + + col1 AS col1 FROM tab0
----
-15
6561
-87
441
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL - COUNT( * ) * MAX( + + col2 ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL - COUNT ( * ) * MAX ( + + col2 ) FROM tab2
----
-174

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL AND NULL <= + col1
----

query I rowsort
SELECT 7 * col1 AS col1 FROM tab0
----
147
567
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT - MIN( + 45 ) FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT - MIN ( + 45 ) FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT SUM( + 80 ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-8170
SELECT SUM ( + 80 ) FROM tab1
----
240

query II rowsort
SELECT col1 * col2 * col2 * - - ( - 50 ), col1 AS col0 FROM tab2
----
-11269400
67
-1348950
51
-6160000
77

query I rowsort
SELECT + col1 * 60 AS col1 FROM tab2
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL + MAX( ALL col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + MAX ( ALL col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT COUNT( ALL - - 13 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8174
SELECT COUNT ( ALL - - 13 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL + SUM( col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + SUM ( col2 ) FROM tab2 cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT ( - col0 ) DIV - - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8176
SELECT ( - col0 ) / - - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT - ( - ( - COUNT( ALL + - col0 ) ) ) * + COUNT( * ) * - 29 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-8177
SELECT - ( - ( - COUNT ( ALL + - col0 ) ) ) * + COUNT ( * ) * - 29 FROM tab2
----
261

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 33 < - - col1
----

query I rowsort
SELECT DISTINCT - col0 * + 17 + col1 FROM tab1 AS cor0
----
-1440
-1500
-853

query I rowsort
SELECT DISTINCT ( + + col2 ) + - - col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ALL + - ( COUNT( - + 49 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL + - ( COUNT ( - + 49 ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - 64 AS col1 FROM tab1 AS cor0
----
64
64
64

query II rowsort
SELECT ALL - 44, col1 FROM tab1 AS cor0
----
-44
14
-44
47
-44
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 81 BETWEEN - 82 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8185
SELECT DISTINCT + col1 * - - 87 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + col1 * - - 87 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT ALL - - 49, COUNT( * ) AS col1 FROM tab1 AS cor0
----
49
3

skipif mysql # not compatible
query II rowsort label-8186
SELECT ALL - - 49, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
49
3

query I rowsort
SELECT DISTINCT col0 * 11 FROM tab0 AS cor0
----
1067
165
957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + + 33 col1, 75 AS col1 FROM tab0
----
2871
75
3201
75
495
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT col2 DIV - + 43 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8189
SELECT col2 / - + 43 FROM tab0
----
-1
-2
0

query I rowsort
SELECT + + ( - + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL MAX( 44 ) + + 32 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL MAX ( 44 ) + + 32 FROM tab1 AS cor0
----
76

query I rowsort
SELECT - col0 + + + 7 + col0 * 45 - 46 AS col0 FROM tab1 AS cor0
----
2205
3701
3965

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < - + col2 + col1
----

query I rowsort
SELECT - col0 + - - 66 AS col1 FROM tab0 AS cor0
----
-21
-31
51

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + + 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT 1 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 60 ) FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8200
SELECT DISTINCT + COUNT( * ) AS col2, 92 AS col1 FROM tab0 AS cor0
----
3
92

skipif mysql # not compatible
query II rowsort label-8200
SELECT DISTINCT + COUNT ( * ) AS col2, 92 AS col1 FROM tab0 AS cor0
----
3
92

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8202
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( - + col1 AS SIGNED ) >= + col2
----
97
1
99

skipif mysql # not compatible
query III rowsort label-8202
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( - + col1 AS INTEGER ) >= + col2
----
97
1
99

query I rowsort
SELECT ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL + SUM( - - 80 ) AS col0 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + SUM ( - - 80 ) AS col0 FROM tab0 AS cor0
----
240

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8205
SELECT DISTINCT - col0 AS col2, col2 + ( + + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-8205
SELECT DISTINCT - col0 AS col2, col2 + ( + + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ( - 81 ) AS col1 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT - SUM( ALL - - ( + col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT - SUM ( ALL - - ( + col1 ) ) AS col1 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT ALL 25 * - col1 * + - CAST( - col1 AS SIGNED ) FROM tab2
----
-112225
-148225
-65025

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL 25 * - col1 * + - CAST ( - col1 AS INTEGER ) FROM tab2
----
-112225
-148225
-65025

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + col1 ) - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT COUNT( * ) * 38 col0 FROM tab2
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8210
SELECT COUNT ( * ) * 38 col0 FROM tab2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL + COUNT( * ) + - + MIN( + + 33 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + COUNT ( * ) + - + MIN ( + + 33 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + 1 + - + col2 AS col0 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT 55 + - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8213
SELECT 55 + - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8214
SELECT - 7 + + - COUNT( * ) * - CAST( 83 AS SIGNED ) + - 63, + COUNT( 46 ) AS col0 FROM tab0 AS cor0
----
179
3

skipif mysql # not compatible
query II rowsort label-8214
SELECT - 7 + + - COUNT ( * ) * - CAST ( 83 AS INTEGER ) + - 63, + COUNT ( 46 ) AS col0 FROM tab0 AS cor0
----
179
3

query I rowsort
SELECT + ( + 47 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT COUNT( * ) * - COUNT( * ) + - 91 FROM tab0, tab0 AS cor0
----
-172

skipif mysql # not compatible
query I rowsort label-8217
SELECT COUNT ( * ) * - COUNT ( * ) + - 91 FROM tab0, tab0 AS cor0
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT - - COUNT( * ) * - 76 AS col2 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8218
SELECT - - COUNT ( * ) * - 76 AS col2 FROM tab1 AS cor0
----
-228

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 98 + - 73 AS col2 FROM tab2 AS cor0
----
-171
-171
-171

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8221
SELECT ALL + + col1 DIV col1 DIV - col2 - + col0 * - + col2 + + CAST( - 52 AS SIGNED ) * - 48 AS col0 FROM tab1 AS cor0
----
7392
7511
8684

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + + col1 / col1 / - col2 - + col0 * - + col2 + + CAST ( - 52 AS INTEGER ) * - 48 AS col0 FROM tab1 AS cor0
----
7392
7511
8684

onlyif mysql # DIV for integer division: 
query II rowsort label-8222
SELECT ALL + + 28, - col0 DIV + + 98 col2 FROM tab0 AS cor0
----
28
0
28
0
28
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8222
SELECT ALL + + 28, - col0 / + + 98 col2 FROM tab0 AS cor0
----
28
0
28
0
28
0

query I rowsort
SELECT - 3 + - - 7 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + + 76 * - col2 FROM tab2 cor0
----
-1748
-3040
-4408

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE + col1 - col2 = - col0
----

query I rowsort
SELECT - col1 + col0 * + 30 * 73 FROM tab2 AS cor0
----
100689
140083
164183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT DISTINCT 70 + + + CAST( - 15 AS SIGNED ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT 70 + + + CAST ( - 15 AS INTEGER ) FROM tab2
----
55

query III rowsort
SELECT * FROM tab2 WHERE - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 18 * - - col1 FROM tab2
----
1206
1386
918

query II rowsort
SELECT DISTINCT col0 AS col2, + 86 + - col2 FROM tab2
----
46
63
64
46
75
28

query I rowsort
SELECT ALL - 25 * - 15 - - col1 AS col0 FROM tab0
----
376
396
456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + col1 + + + 62 col1 FROM tab1
----
4339
487
776

query I rowsort
SELECT col1 * - col0 * + - col1 AS col2 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab0 WHERE - + col0 IS NULL
----

query I rowsort
SELECT + + 81 AS col1 FROM tab0 cor0
----
81
81
81

query I rowsort
SELECT ALL - 36 * col2 - + col1 + - + 70 - - ( 35 ) AS col0 FROM tab1 cor0
----
-2164
-2530
-3505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - - col1 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-8238
SELECT + col1 DIV col2 col2, col1 DIV col2 AS col2 FROM tab2 AS cor0
----
1
1
1
1
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8238
SELECT + col1 / col2 col2, col1 / col2 AS col2 FROM tab2 AS cor0
----
1
1
1
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL MAX( + - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL MAX ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - 89 * + col2 AS col1 FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL - + COUNT( ALL + col1 ) col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8241
SELECT ALL - + COUNT ( ALL + col1 ) col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT + ( - ( - COUNT( * ) ) ) DIV - 3 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8242
SELECT + ( - ( - COUNT ( * ) ) ) / - 3 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT DISTINCT + + ( - col0 ) DIV - - col1 AS col1 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT + + ( - col0 ) / - - col1 AS col1 FROM tab2 cor0
----
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT + col0 * + - CAST( 50 AS SIGNED ) FROM tab1 AS cor0
----
-2550
-4250
-4550

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT + col0 * + - CAST ( 50 AS INTEGER ) FROM tab1 AS cor0
----
-2550
-4250
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL + COUNT( - col2 ) * - + ( 38 ) FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + COUNT ( - col2 ) * - + ( 38 ) FROM tab1 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-8247
SELECT ALL - COUNT( * ), + 35 + + 39 col1 FROM tab2
----
-3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8247
SELECT ALL - COUNT ( * ), + 35 + + 39 col1 FROM tab2
----
-3
74

query II rowsort
SELECT ALL 91, + col1 FROM tab0
----
91
1
91
21
91
81

query I rowsort
SELECT ( - 82 ) FROM tab0 WHERE NOT - + col2 IS NULL
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT DISTINCT 37 + - - COUNT( * ) AS col1 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT 37 + - - COUNT ( * ) AS col1 FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL - col0 AS col1, - 21 FROM tab0
----
-15
-21
-87
-21
-97
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8253
SELECT DISTINCT - - CAST( + ( + ( COUNT( * ) ) ) AS SIGNED ) / - COUNT( * ) + + MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT - - CAST ( + ( + ( COUNT ( * ) ) ) AS INTEGER ) / - COUNT ( * ) + + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + - 91 AS col1 FROM tab2 cor0
----
4186
5824
6825

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 38 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 90, col1 AS col0 FROM tab2 cor0
----
-90
51
-90
67
-90
77

query II rowsort
SELECT col1 + + + col0 * + - 93 * - col1 AS col1, 63 * col0 + - - col0 AS col0 FROM tab0 AS cor0
----
113076
960
169932
5568
9022
6208

query I rowsort
SELECT DISTINCT + ( + 36 ) FROM tab1 AS cor0
----
36

query I rowsort
SELECT + 91 * - col0 AS col0 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT DISTINCT + col0 + - col2 DIV ( + col1 ) FROM tab0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT + col0 + - col2 / ( + col1 ) FROM tab0
----
-2
15
87

query I rowsort
SELECT DISTINCT + 65 * col1 AS col1 FROM tab2
----
3315
4355
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + + ( col2 ) * col1 col2 FROM tab1
----
1253
204
3105

query I rowsort
SELECT + 81 + 81 FROM tab0
----
162
162
162

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - 34 AS col2 FROM tab2
----
-1564
-2176
-2550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT DISTINCT - CAST( ( 38 ) AS SIGNED ) * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8266
SELECT DISTINCT - CAST ( ( 38 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN - col2 AND ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 96 + col2 <= NULL
----

query I rowsort
SELECT DISTINCT 50 * 14 FROM tab1
----
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8270
SELECT DISTINCT COUNT( * ) DIV - 32 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT COUNT ( * ) / - 32 FROM tab1
----
0

query I rowsort
SELECT + 41 FROM tab2 WHERE col1 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 80 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT - 30 DIV col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT - 30 / col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NULL IN ( 1 )
----

query I rowsort
SELECT AVG ( DISTINCT - 66 ) AS col1 FROM tab0 WHERE NOT 73 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8278
SELECT 29 DIV COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8278
SELECT 29 / COUNT ( * ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8279
SELECT col2 DIV 25 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-8279
SELECT col2 / 25 FROM tab1
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT 35 * - COUNT( + col1 * col1 ) FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-8280
SELECT 35 * - COUNT ( + col1 * col1 ) FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL ( COUNT( * ) ) + 99 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL ( COUNT ( * ) ) + 99 FROM tab2
----
102

query I rowsort
SELECT ALL 99 + col2 AS col0 FROM tab2
----
122
139
157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) BETWEEN ( col2 ) AND 18 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) * + 33 AS col1 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8284
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * + 33 AS col1 FROM tab1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8285
SELECT DISTINCT col1 + + col1 DIV 67 FROM tab0 AS cor0
----
1
21
82

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT col1 + + col1 / 67 FROM tab0 AS cor0
----
1
21
82

query I rowsort
SELECT ( 42 ) AS col0 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT ALL 28 * - col0 AS col2 FROM tab0 AS cor0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + COUNT( ALL + 15 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-8288
SELECT + COUNT ( ALL + 15 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT DISTINCT - 87 + - 24 FROM tab2 AS cor0 CROSS JOIN tab0
----
-111

query I rowsort
SELECT col1 * - col2 FROM tab1 AS cor0 WHERE NOT col2 * col1 IN ( + col2 + 90 * 92 )
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 AS cor0 WHERE NOT 44 > NULL
----

query I rowsort
SELECT ALL - + 46 * + col0 AS col2 FROM tab2 AS cor0
----
-2116
-2944
-3450

query I rowsort
SELECT - col2 / ( - 77 * - col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8294
SELECT MAX( DISTINCT 5 ) DIV SUM( DISTINCT 57 ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8294
SELECT MAX ( DISTINCT 5 ) / SUM ( DISTINCT 57 ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 93 * + 7 FROM tab1 AS cor0
----
651
651
651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT COUNT( * ) DIV 50 col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8296
SELECT COUNT ( * ) / 50 col2 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT DISTINCT - MAX( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 WHERE NOT col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT + + MAX( ALL col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8299
SELECT + + MAX ( ALL col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + col1 * 11 AS col1 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT + - MIN( + 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT + - MIN ( + 8 ) FROM tab2 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - COUNT( ALL - 82 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8302
SELECT - COUNT ( ALL - 82 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT DISTINCT col0 / CAST( NULL AS SIGNED ) FROM tab2 WHERE col1 / - 72 < NULL
----

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT col0 / CAST ( NULL AS INTEGER ) FROM tab2 WHERE col1 / - 72 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT 76 + COUNT( * ) col2 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8304
SELECT 76 + COUNT ( * ) col2 FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT - 20 + COUNT( * ) + 76 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-8305
SELECT - 20 + COUNT ( * ) + 76 FROM tab0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT + 38 + - COUNT( * ) DIV 62 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-8306
SELECT + 38 + - COUNT ( * ) / 62 FROM tab0
----
38

query I rowsort
SELECT + 52 + - 70 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT ALL + col1 / col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 72
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE + col2 NOT IN ( col1 + + col2 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT DISTINCT col0 DIV + + 71 + col1 FROM tab2 AS cor0
----
51
68
77

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT col0 / + + 71 + col1 FROM tab2 AS cor0
----
51
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT - + COUNT( * ) * - 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
639

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT - + COUNT ( * ) * - 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
639

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8314
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT CAST( 38 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8314
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT CAST ( 38 AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL + col2 + + - col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT 62 * col1 * + - col1 AS col0 FROM tab2
----
-161262
-278318
-367598

query I rowsort
SELECT + col0 - + 40 AS col0 FROM tab0
----
-25
47
57

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - col0 + col0 col2 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT ALL - col2 * + ( col1 ) FROM tab0 AS cor0 WHERE ( + 66 * 72 / col2 ) = ( - 1 )
----

query I rowsort
SELECT - col0 + + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + + 70 AS col1 FROM tab2 cor0
----
70
70
70

query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-108
-96
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT DISTINCT + 42 DIV - col1 * + - col0 + - col2 - col0 FROM tab2 cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT + 42 / - col1 * + - col0 + - col2 - col0 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT ALL + - 12 FROM tab1 AS cor0 WHERE NOT + 93 IS NULL
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 97 + - ( col0 ) + col0 col2 FROM tab2 AS cor0
----
2231
3880
5626

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT - 83 / + - 50 + - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT - 83 / + - 50 + - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + + - 21 / - 73 ) >= NULL
----

query I rowsort
SELECT DISTINCT + ( - 27 ) FROM tab1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8332
SELECT - 91 DIV + ( COUNT( * ) ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-8332
SELECT - 91 / + ( COUNT ( * ) ) FROM tab1
----
-30

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * - col0 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT - SUM( - 31 ) AS col2 FROM tab0 AS cor0 WHERE ( 92 ) BETWEEN col0 AND - col2 * + 27 - - col1 * col0
----
31

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT - SUM ( - 31 ) AS col2 FROM tab0 AS cor0 WHERE ( 92 ) BETWEEN col0 AND - col2 * + 27 - - col1 * col0
----
31

query I rowsort
SELECT - col1 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT - - MAX( ALL + + 91 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
91

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT - - MAX ( ALL + + 91 ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL + COUNT( DISTINCT col1 ) AS col2 FROM tab1 WHERE NOT - col2 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + COUNT ( DISTINCT col1 ) AS col2 FROM tab1 WHERE NOT - col2 NOT IN ( col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query II rowsort
SELECT col0, col1 * + + col2 FROM tab1 cor0
----
51
1344
85
295
91
3196

query I rowsort
SELECT DISTINCT + - 27 * - - 35 + col2 AS col2 FROM tab0 AS cor0
----
-846
-898
-935

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * 61 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + 99 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND col2 + - 65
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 / - col2 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8345
SELECT ALL + 51 AS col1, + CAST( - - 18 AS SIGNED ) FROM tab2 AS cor0
----
51
18
51
18
51
18

skipif mysql # not compatible
query II rowsort label-8345
SELECT ALL + 51 AS col1, + CAST ( - - 18 AS INTEGER ) FROM tab2 AS cor0
----
51
18
51
18
51
18

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + col0 * 52 * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 WHERE - col0 NOT BETWEEN + col0 AND NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT 73 AS col1, - COUNT( * ) FROM tab0
----
73
-3

skipif mysql # not compatible
query II rowsort label-8348
SELECT 73 AS col1, - COUNT ( * ) FROM tab0
----
73
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8349
SELECT + 13 AS col1, + CAST( + 15 AS SIGNED ) DIV + COUNT( DISTINCT - - col0 ) FROM tab1
----
13
5

skipif mysql # not compatible
query II rowsort label-8349
SELECT + 13 AS col1, + CAST ( + 15 AS INTEGER ) / + COUNT ( DISTINCT - - col0 ) FROM tab1
----
13
5

query III rowsort
SELECT * FROM tab2 WHERE - 78 BETWEEN + 72 + - ( 62 ) AND ( col1 )
----

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab1
----
-86

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL BETWEEN 75 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT + COUNT( * ) + + SUM( 9 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT + COUNT ( * ) + + SUM ( 9 ) FROM tab1
----
30

query I rowsort
SELECT col2 + 67 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 37, - col0 col1 FROM tab0 AS cor0
----
-37
-15
-37
-87
-37
-97

query I rowsort
SELECT - 90 * - ( + 79 ) + - col2 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
16911
7210
9319

query I rowsort
SELECT + 91 + + 32 FROM tab0 AS cor0
----
123
123
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8358
SELECT DISTINCT - - col2 * + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT - - col2 * + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 / + col2 + 73 - col1 + + col1 + + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - col1 ) + - - col0 + 27 * - - ( + col2 ) FROM tab2
----
1067
1574
616

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 92 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - 7 * - + 33 + col1 FROM tab0 AS cor0
----
232
252
312

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 * col2 ) NOT IN ( + col2 + + - 42 + col2 * 58 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 92 - + col0 + ( 60 ) AS col0 FROM tab1 AS cor0
----
101
61
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8365
SELECT 73 col2 FROM tab1 cor0 WHERE - ( - - 33 ) + CAST( 55 AS SIGNED ) - col1 + - col1 * + col1 * 84 IS NOT NULL
----
73
73
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8365
SELECT 73 col2 FROM tab1 cor0 WHERE - ( - - 33 ) + CAST ( 55 AS INTEGER ) - col1 + - col1 * + col1 * 84 IS NOT NULL
----
73
73
73

query I rowsort
SELECT col1 * - col1 * col1 - - col0 AS col1 FROM tab1 AS cor0
----
-103732
-2693
-40

query I rowsort
SELECT ALL - 24 FROM tab0 AS cor0 WHERE + col1 IN ( + col1 )
----
-24
-24
-24

query II rowsort
SELECT ALL - col0, + col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

query II rowsort
SELECT 40 AS col0, + col0 AS col0 FROM tab1
----
40
51
40
85
40
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 96 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL - MIN( + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - MIN ( + col2 ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT - - ( + 85 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT DISTINCT - - COUNT( DISTINCT + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT - - COUNT ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( col1 * - - col1 * - - col2 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT + - 98 DIV + 43 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8378
SELECT + - 98 / + 43 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL + COUNT( + - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + COUNT ( + - col1 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL ( - 7 ) AS col1, - col2 FROM tab0 AS cor0
----
-7
-10
-7
-47
-7
-99

query I rowsort
SELECT + col1 + ( + col0 ) * col1 FROM tab1
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8382
SELECT * FROM tab1 WHERE + CAST( - - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8382
SELECT * FROM tab1 WHERE + CAST ( - - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - + 56 FROM tab1
----
12
3
40

query II rowsort
SELECT + 46 + + col1 * - col1 AS col0, + col1 FROM tab1
----
-150
14
-2163
47
21
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT - CAST( + 66 AS SIGNED ) AS col1 FROM tab1 WHERE + 68 IS NOT NULL
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-8385
SELECT - CAST ( + 66 AS INTEGER ) AS col1 FROM tab1 WHERE + 68 IS NOT NULL
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL + COUNT( ALL col1 ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL + COUNT ( ALL col1 ) + COUNT ( * ) FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT DISTINCT - col1 DIV - + col0 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - col1 / - + col0 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + col2 / + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT - COUNT( * ) - + 99 AS col2 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - COUNT ( * ) - + 99 AS col2 FROM tab2 AS cor0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT - - MIN( DISTINCT + + CAST( + - 59 AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

skipif mysql # not compatible
query I rowsort label-8390
SELECT - - MIN ( DISTINCT + + CAST ( + - 59 AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT DISTINCT + 51 DIV col0 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT + 51 / col0 FROM tab0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * + + 3 col1 FROM tab2
----
201
201
201

query I rowsort
SELECT DISTINCT col0 * col1 + - col0 + + 86 FROM tab1
----
426
4272
749

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT ALL + COUNT( DISTINCT 3 ) col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN + 3 AND ( + col1 )
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8394
SELECT ALL + COUNT ( DISTINCT 3 ) col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN + 3 AND ( + col1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL - + SUM( col0 ) FROM tab2 cor0 WHERE + col0 NOT IN ( - 42 * - - col1 + + - col2 + + col1 + ( - col2 ), - 59 / - + 9 )
----
-185

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL - + SUM ( col0 ) FROM tab2 cor0 WHERE + col0 NOT IN ( - 42 * - - col1 + + - col2 + + col1 + ( - col2 ), - 59 / - + 9 )
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL - 50 - MAX( DISTINCT + col1 ) FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL - 50 - MAX ( DISTINCT + col1 ) FROM tab1 cor0
----
-97

query II rowsort
SELECT ALL + - col0, - 10 * col2 - col0 + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + + 50 + + + col1 + + col2 <= - col2
----
-51
-1107
-85
-734
-91
-839

query I rowsort
SELECT - - 70 + + col1 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT ALL + col0 - - - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT ALL - col2 * col0 * 92 DIV - 2 FROM tab1 AS cor0
----
225216
230690
284648

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - col2 * col0 * 92 / - 2 FROM tab1 AS cor0
----
225216
230690
284648

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT DISTINCT - + COUNT( * ) AS col1, - 60 + - COUNT( * ) FROM tab0 cor0
----
-3
-63

skipif mysql # not compatible
query II rowsort label-8401
SELECT DISTINCT - + COUNT ( * ) AS col1, - 60 + - COUNT ( * ) FROM tab0 cor0
----
-3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ( + MAX( ALL - ( - col1 ) ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8402
SELECT ( + MAX ( ALL - ( - col1 ) ) ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT - COUNT( + col2 ) DIV 59 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - COUNT ( + col2 ) / 59 FROM tab1
----
0

query I rowsort
SELECT + col1 * + - col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8405
SELECT + CAST( NULL AS DECIMAL ) * - col1 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT + CAST ( NULL AS REAL ) * - col1 * + col2 FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - 75 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col2 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL - COUNT( + 12 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL - COUNT ( + 12 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 87 * + col2 * + col0 AS col0 FROM tab2 AS cor0
----
222720
378450
92046

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 15 * + col2 + + col1 NOT BETWEEN + - col0 + - ( 67 ) AND NULL
----

query I rowsort
SELECT - col0 + - ( + ( + 72 ) ) FROM tab1
----
-123
-157
-163

query I rowsort
SELECT + col0 * - col2 + col0 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT 66 * + - col1 + 13 + col0 DIV + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-3041
-311
-897

skipif mysql # not compatible
query I rowsort label-8414
SELECT 66 * + - col1 + 13 + col0 / + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-3041
-311
-897

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND + col0 + - 33 )
----

query I rowsort
SELECT DISTINCT - + 6 AS col2 FROM tab1 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 26 col0 FROM tab2 AS cor0
----
1040
1508
598

query II rowsort
SELECT + col2, col1 + 64 AS col1 FROM tab1 AS cor0
----
59
69
68
111
96
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT col1 * - ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT col1 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab1 WHERE - ( - + col1 ) + - col1 IS NULL
----

query I rowsort
SELECT col2 * - 60 * - col0 FROM tab1
----
293760
300900
371280

query I rowsort
SELECT DISTINCT + 62 + + 43 FROM tab2
----
105

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - col2 AND - col2 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL COUNT( * ) * + COUNT( * ) * - 55 AS col1 FROM tab0 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - 55 AS col1 FROM tab0 AS cor0
----
-495

query I rowsort
SELECT - col0 * - + ( 53 ) FROM tab0
----
4611
5141
795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8427
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) + 96 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) + 96 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - col0 * + col1 * - col1, col0 FROM tab1 AS cor0
----
-201019
91
-2125
85
-9996
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 82 * col0 * + 92 * - col0 col0 FROM tab2 AS cor0
----
15963104
30900224
42435000

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col0
----

query I rowsort
SELECT ALL 22 * col1 FROM tab1 AS cor0
----
1034
110
308

query I rowsort
SELECT DISTINCT + 13 * col2 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + MIN( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8433
SELECT + MIN ( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL - - COUNT( * ) * 9 col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8434
SELECT ALL - - COUNT ( * ) * 9 col1 FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT - ( 74 ) * + - 6 + - - MAX( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
519

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - ( 74 ) * + - 6 + - - MAX ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
519

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + SUM( + + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8436
SELECT + SUM ( + + col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT MAX( 29 ) AS col2 FROM tab1 cor0
----
29

skipif mysql # not compatible
query I rowsort label-8437
SELECT MAX ( 29 ) AS col2 FROM tab1 cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT ALL - + col0 * 57 DIV 30 FROM tab1 AS cor0
----
-161
-172
-96

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - + col0 * 57 / 30 FROM tab1 AS cor0
----
-161
-172
-96

query II rowsort
SELECT DISTINCT col1, - 3 FROM tab0
----
1
-3
21
-3
81
-3

query II rowsort
SELECT ALL - 0, col2 AS col0 FROM tab2
----
0
23
0
40
0
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col2 + + 53 col2 FROM tab2
----
51
30
67
-5
77
13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + + + ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT - MAX( + col1 ) * + 41 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT - MAX ( + col1 ) * + 41 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT - COUNT( * ) * + - MAX( + 79 ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT - COUNT ( * ) * + - MAX ( + 79 ) FROM tab0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT + MAX( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8445
SELECT + MAX ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 67 * + col0, ( + - col2 ) col1 FROM tab1
----
3417
-96
5695
-59
6097
-68

query II rowsort
SELECT - ( col0 ) AS col0, + 46 FROM tab2 AS cor0
----
-46
46
-64
46
-75
46

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 18 * 82 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 88 col0 FROM tab0 cor0
----
88
88
88

query I rowsort
SELECT DISTINCT + 40 + - col2 AS col0 FROM tab0
----
-59
-7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT 34 * - + 82 + - - COUNT( * ) - ( - COUNT( * ) ) - + COUNT( * ) * 42 col0 FROM tab1
----
-2908

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8453
SELECT 34 * - + 82 + - - COUNT ( * ) - ( - COUNT ( * ) ) - + COUNT ( * ) * 42 col0 FROM tab1
----
-2908

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8454
SELECT * FROM tab2 WHERE col2 * ( col0 ) + - col2 * + + CAST( NULL AS DECIMAL ) + + 60 + col1 >= - + col1 + - 63
----

skipif mysql # not compatible
query III rowsort label-8454
SELECT * FROM tab2 WHERE col2 * ( col0 ) + - col2 * + + CAST ( NULL AS REAL ) + + 60 + col1 >= - + col1 + - 63
----

query I rowsort
SELECT 99 * - + col1 AS col0 FROM tab2
----
-5049
-6633
-7623

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col2 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 + - + 38 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT 72 AS col1, + COUNT( * ) + - 6 FROM tab1
----
72
-3

skipif mysql # not compatible
query II rowsort label-8458
SELECT 72 AS col1, + COUNT ( * ) + - 6 FROM tab1
----
72
-3

query I rowsort
SELECT ALL + col2 - - 15 FROM tab0 AS cor0
----
114
25
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8460
SELECT DISTINCT - 50, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-8460
SELECT DISTINCT - 50, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-50
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - - col2 col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT DISTINCT + 86 - COUNT( * ) * - 38 * + COUNT( * ) FROM tab2 cor0
----
428

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + 86 - COUNT ( * ) * - 38 * + COUNT ( * ) FROM tab2 cor0
----
428

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT - 74 - + col1 DIV - 92 FROM tab2
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-8463
SELECT - 74 - + col1 / - 92 FROM tab2
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT + col0 DIV col0 * - col1 col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8464
SELECT + col0 / col0 * - col1 col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT + 67 * - - MAX( DISTINCT + col1 ) AS col1 FROM tab2
----
5159

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + 67 * - - MAX ( DISTINCT + col1 ) AS col1 FROM tab2
----
5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - + col0 col0, + col1 col2 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT DISTINCT + 92 * + 35 AS col2 FROM tab1 AS cor0
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT COUNT( + col2 ) FROM tab1 AS cor0 WHERE NOT + col2 * - 6 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8468
SELECT COUNT ( + col2 ) FROM tab1 AS cor0 WHERE NOT + col2 * - 6 * + col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE - col1 < col0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL SUM( ALL - 74 ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL SUM ( ALL - 74 ) FROM tab1
----
-222

query II rowsort
SELECT DISTINCT 6 * - col2 * col0, 79 AS col2 FROM tab0
----
-4230
79
-5220
79
-57618
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8472
SELECT - 2 col2, CAST( + col0 AS SIGNED ) FROM tab2
----
-2
46
-2
64
-2
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8472
SELECT - 2 col2, CAST ( + col0 AS INTEGER ) FROM tab2
----
-2
46
-2
64
-2
75

query I rowsort
SELECT ALL ( 39 ) AS col2 FROM tab0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT COUNT( * ) * - 24 AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT COUNT ( * ) * - 24 AS col0 FROM tab1
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 + col0 IN ( 12 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL - 38 * - COUNT( * ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL - 38 * - COUNT ( * ) FROM tab0
----
114

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 >= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + col0 * 67 / - - col1 AND + - col2
----

query I rowsort
SELECT - + col1 - - 48 FROM tab2 WHERE NOT NULL = 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT DISTINCT ( + col0 ) DIV - col2 + + col0 FROM tab0 AS cor0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT ( + col0 ) / - col2 + + col0 FROM tab0 AS cor0
----
15
79
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8481
SELECT DISTINCT 15 DIV - CAST( - 11 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT 15 / - CAST ( - 11 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1

query II rowsort
SELECT + + col2 AS col1, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT + 1 * - col0 + - + 81 FROM tab2 cor0
----
-127
-145
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT ( ( + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT ( ( + COUNT ( * ) ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8485
SELECT ALL + 81 * COUNT( * ) DIV + 43 + MIN( col1 ) + + + MIN( DISTINCT - - col0 ) AS col0 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + 81 * COUNT ( * ) / + 43 + MIN ( col1 ) + + + MIN ( DISTINCT - - col0 ) AS col0 FROM tab1
----
61

query I rowsort
SELECT ALL ( - 18 ) AS col0 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - 40 + + col2 + - col0 AS col2 FROM tab2
----
-57
-63
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8488
SELECT ALL - + 58, + col2 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-58
NULL
-58
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL - + 58, + col2 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-58
NULL
-58
NULL
-58
NULL

query I rowsort
SELECT DISTINCT col2 + - 99 * col1 FROM tab1 AS cor0
----
-1290
-436
-4585

query I rowsort
SELECT - col1 / + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT ALL CAST( + + col1 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 97 - + col1 = - col0 * + col1 * + - col1 + + col1
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL CAST ( + + col1 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 97 - + col1 = - col0 * + col1 * + - col1 + + col1
----
1
441
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT - MAX( + - col1 ), + COUNT( * ) AS col2 FROM tab0
----
1
3

skipif mysql # not compatible
query II rowsort label-8492
SELECT - MAX ( + - col1 ), + COUNT ( * ) AS col2 FROM tab0
----
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * + col2 * - col2 col2 FROM tab2
----
-113600
-238844
-37559

query I rowsort
SELECT ALL + col2 + + 14 AS col1 FROM tab2
----
37
54
72

query I rowsort
SELECT ( - col0 ) FROM tab1 WHERE + ( col0 ) IS NULL
----

query I rowsort
SELECT ALL + col2 + col2 * + col2 - col1 FROM tab0 AS cor0
----
2175
89
9899

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( - col0 ) ) - + 21 / 48 * - 8 - ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 88 - col1 AS col2 FROM tab1 AS cor0
----
41
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT SUM( - + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8499
SELECT SUM ( - + col2 ) AS col1 FROM tab1
----
-223

query I rowsort
SELECT ALL ( - + 11 ) + + 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 WHERE NOT - 19 + + col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN - 27 + col0 + - col0 * col0 / col0 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN - 27 + col0 + - col0 * col0 / col0 AND col1
----
0

query II rowsort
SELECT + + col0 AS col1, - 94 FROM tab1 AS cor0
----
51
-94
85
-94
91
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col1 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + + 66 AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + COUNT( * ) * - 28 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8507
SELECT + COUNT ( * ) * - 28 FROM tab1 AS cor0
----
-84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 65 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + col1 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col0 * + col2 )
----

query I rowsort
SELECT + + ( + + 24 ) FROM tab0 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT - 91, - SUM( ALL - + 10 ) + + ( - 84 ) AS col1 FROM tab2 AS cor0
----
-91
-54

skipif mysql # not compatible
query II rowsort label-8511
SELECT - 91, - SUM ( ALL - + 10 ) + + ( - 84 ) AS col1 FROM tab2 AS cor0
----
-91
-54

query II rowsort
SELECT + + col1 AS col2, - 80 * + ( + col0 ) FROM tab0 cor0
----
1
-7760
21
-6960
81
-1200

query I rowsort
SELECT DISTINCT - col2 * 14 FROM tab0
----
-1386
-140
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 * - 36 BETWEEN NULL AND - 0 + col1
----
0

skipif mysql # not compatible
query I rowsort label-8514
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 * - 36 BETWEEN NULL AND - 0 + col1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + col0 + 21 - - - col1
----

query I rowsort
SELECT ALL - + 99 AS col0 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT + + 95 * + 77 FROM tab0 AS cor0
----
7315
7315
7315

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 1 * - col2 * + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - - COUNT( DISTINCT col1 ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8519
SELECT - - COUNT ( DISTINCT col1 ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( + col1 )
----

query I rowsort
SELECT + col2 + - + col2 * col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL - + 17 - - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL - + 17 - - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL MIN( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL MIN ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8524
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * + - col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + - col0 >= - col0
----
15
87
97

query I rowsort
SELECT DISTINCT ( + 89 ) + + col1 FROM tab1
----
103
136
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 + + 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + 63 FROM tab1
----
14
63
47
63
5
63

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE - col2 + + + 78 * - 15 IN ( col1 )
----

query II rowsort
SELECT - + 90 - - col1 AS col0, col1 AS col0 FROM tab0 cor0
----
-69
21
-89
1
-9
81

query I rowsort
SELECT ALL col0 * 14 FROM tab2 cor0
----
1050
644
896

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 79 * col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT COUNT( ALL - + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8535
SELECT COUNT ( ALL - + col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8536
SELECT + COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-8536
SELECT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8538
SELECT col1 * + col0, - CAST( - + 34 AS SIGNED ) * + - col0 + 40 AS col2 FROM tab1
----
425
-2850
4277
-3054
714
-1694

skipif mysql # not compatible
query II rowsort label-8538
SELECT col1 * + col0, - CAST ( - + 34 AS INTEGER ) * + - col0 + 40 AS col2 FROM tab1
----
425
-2850
4277
-3054
714
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL - MAX( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8539
SELECT ALL - MAX ( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT 85 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT SUM( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT SUM ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8542
SELECT DISTINCT SUM( ALL + col0 ) AS col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
227
NULL

skipif mysql # not compatible
query II rowsort label-8542
SELECT DISTINCT SUM ( ALL + col0 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
227
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT MIN( ALL - 99 ), 47 AS col1 FROM tab2 cor0
----
-99
47

skipif mysql # not compatible
query II rowsort label-8543
SELECT MIN ( ALL - 99 ), 47 AS col1 FROM tab2 cor0
----
-99
47

query III rowsort
SELECT * FROM tab1 WHERE NOT - 52 <= 81
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8546
SELECT DISTINCT ( + CAST( ( + COUNT( + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT ( + CAST ( ( + COUNT ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8547
SELECT + + col1 + CAST( + col0 AS DECIMAL ) / + - col0 * - - ( + - col2 ) + + 70 AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8547
SELECT + + col1 + CAST ( + col0 AS REAL ) / + - col0 * - - ( + - col2 ) + + 70 AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query II rowsort
SELECT 6, 67 AS col0 FROM tab1
----
6
67
6
67
6
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT - col0 + - - CAST( - col1 AS SIGNED ) + + 6 col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8549
SELECT - col0 + - - CAST ( - col1 AS INTEGER ) + + 6 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( + + col2 ) - - + col0 + - 37 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / + 96 + + - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 38 + + col2 - + + col2 AS col2, - 69 FROM tab2 cor0
----
38
-69
38
-69
38
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 * 41 + + col2 ) NOT BETWEEN 44 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL 83 + + CAST( NULL AS SIGNED ) + - 22 + - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL 83 + + CAST ( NULL AS INTEGER ) + - 22 + - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT + col2 + + 14 * col2 DIV col2 - 87 * + col2 + col0 FROM tab2
----
-1918
-3362
-4899

skipif mysql # not compatible
query I rowsort label-8556
SELECT + col2 + + 14 * col2 / col2 - 87 * + col2 + col0 FROM tab2
----
-1918
-3362
-4899

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = + 24 / + CAST( NULL AS SIGNED ) / - 6
----

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = + 24 / + CAST ( NULL AS INTEGER ) / - 6
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL - 63 + - - 51 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT + col2 * col2 * 72 FROM tab1 AS cor0
----
250632
332928
663552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8562
SELECT 34 FROM tab1 AS cor0 WHERE CAST( + ( - + 7 ) AS SIGNED ) > col2
----

skipif mysql # not compatible
query I rowsort label-8562
SELECT 34 FROM tab1 AS cor0 WHERE CAST ( + ( - + 7 ) AS INTEGER ) > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - COUNT( + + 50 ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8563
SELECT - COUNT ( + + 50 ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - 15 - + col0 FROM tab2 AS cor0
----
-61
-79
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( 98 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( 98 IS NULL )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT ALL + col2 DIV 93 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + col2 / 93 FROM tab1
----
0
0
1

query II rowsort
SELECT + 96 AS col1, + 57 * - + 46 FROM tab1 AS cor0
----
96
-2622
96
-2622
96
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT MAX( DISTINCT + 11 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-8568
SELECT MAX ( DISTINCT + 11 ) FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL MIN( + 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL MIN ( + 5 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT DISTINCT - SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + ( 62 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 35 * - col2 AND col1
----

query I rowsort
SELECT ALL + col1 * + col0 * + - col2 FROM tab2 AS cor0 WHERE NOT - 13 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT 18 * col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col1, col0 AS col2 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8576
SELECT - COUNT( ALL - CAST( NULL AS DECIMAL ) ) * - - 46 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8576
SELECT - COUNT ( ALL - CAST ( NULL AS REAL ) ) * - - 46 AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT col0, + 99 FROM tab2 AS cor0
----
46
99
64
99
75
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL - + SUM( ALL - + col2 ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8578
SELECT ALL - + SUM ( ALL - + col2 ) col1 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 20 * col2 col0 FROM tab2
----
1235
506
864

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) + + ( - col2 ) * - - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) + + ( - col2 ) * - - col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 + + col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col0 FROM tab2 WHERE 52 IS NULL
----

query I rowsort
SELECT 41 + + 71 + - 30 * - col1 FROM tab1
----
1522
262
532

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT 27 DIV col2 + col2 FROM tab0
----
12
47
99

skipif mysql # not compatible
query I rowsort label-8585
SELECT 27 / col2 + col2 FROM tab0
----
12
47
99

query I rowsort
SELECT ALL + col0 * - col0 + + col1 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8587
SELECT - COUNT( * ) * + COUNT( * ) * - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT - COUNT ( * ) * + COUNT ( * ) * - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8588
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8588
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8589
SELECT + col1 * col2 AS col2, - col2 + CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
1344
-192
295
-118
3196
-136

skipif mysql # not compatible
query II rowsort label-8589
SELECT + col1 * col2 AS col2, - col2 + CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
1344
-192
295
-118
3196
-136

query I rowsort
SELECT - col0 + 14 FROM tab1 AS cor0 WHERE col1 * 79 IS NOT NULL
----
-37
-71
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8591
SELECT DISTINCT COUNT( * ) AS col1, - 61 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-61

skipif mysql # not compatible
query II rowsort label-8591
SELECT DISTINCT COUNT ( * ) AS col1, - 61 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-61

query I rowsort
SELECT ALL + - 57 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT - 13 + col1 FROM tab0
----
-12
68
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 28 col2 FROM tab1
----
113
119
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT - 93 DIV - col0 + - - 72 FROM tab2
----
73
73
74

skipif mysql # not compatible
query I rowsort label-8595
SELECT - 93 / - col0 + - - 72 FROM tab2
----
73
73
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8596
SELECT - MIN( DISTINCT + ( + 88 ) ) DIV 97 * + MAX( + - col2 ) + 24 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-8596
SELECT - MIN ( DISTINCT + ( + 88 ) ) / 97 * + MAX ( + - col2 ) + 24 FROM tab2
----
24

query I rowsort
SELECT - 89 + + col0 AS col0 FROM tab0 cor0
----
-2
-74
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT - col0 + col0 - - + col0 * - - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8598
SELECT - col0 + col0 - - + col0 * - - col2 / - col2 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + 56 - + col2 FROM tab1 AS cor0
----
-12
-3
-40

query I rowsort
SELECT col2 * 31 + + col1 + + col1 - - 46 AS col1 FROM tab2 cor0 WHERE NULL > - 56 * col1
----

query II rowsort
SELECT + + col1 + - col1 + - col2, + 89 AS col0 FROM tab2 AS cor0
----
-23
89
-40
89
-58
89

query I rowsort
SELECT DISTINCT - col1 - + - col0 FROM tab2 cor0
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----

query I rowsort
SELECT ( + - col0 ) * - 60 FROM tab0
----
5220
5820
900

query I rowsort
SELECT col1 * - 33 AS col2 FROM tab1
----
-1551
-165
-462

query I rowsort
SELECT + 79 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8607
SELECT DISTINCT + COUNT( DISTINCT + - col2 ) AS col0, 2 FROM tab0
----
3
2

skipif mysql # not compatible
query II rowsort label-8607
SELECT DISTINCT + COUNT ( DISTINCT + - col2 ) AS col0, 2 FROM tab0
----
3
2

query I rowsort
SELECT DISTINCT + 68 * - col2 AS col0 FROM tab1
----
-4012
-4624
-6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * - col1 col1 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab2
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - COUNT( - 40 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8612
SELECT - COUNT ( - 40 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT ALL AVG ( ALL - col0 ) FROM tab0 WHERE NOT + 27 NOT IN ( - col2 * col0 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL = + - col1 ) OR NOT ( - - col1 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 < - 62
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 * + 64 AND - 59
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL SUM( ALL + col0 ) * 92 FROM tab0 AS cor0
----
18308

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL SUM ( ALL + col0 ) * 92 FROM tab0 AS cor0
----
18308

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL + MAX( DISTINCT + 18 ) AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL + MAX ( DISTINCT + 18 ) AS col2 FROM tab2 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8621
SELECT DISTINCT + COUNT( DISTINCT - 0 ) FROM tab1 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT + COUNT ( DISTINCT - 0 ) FROM tab1 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - ( + 29 ) FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + + COUNT( * ) * + 26 * 27 AS col2 FROM tab2 AS cor0
----
2106

skipif mysql # not compatible
query I rowsort label-8623
SELECT + + COUNT ( * ) * + 26 * 27 AS col2 FROM tab2 AS cor0
----
2106

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8624
SELECT * FROM tab0 cor0 WHERE col0 * 9 IN ( + col0, col0 * CAST( - + ( + - col2 ) AS SIGNED ), + 68 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-8624
SELECT * FROM tab0 cor0 WHERE col0 * 9 IN ( + col0, col0 * CAST ( - + ( + - col2 ) AS INTEGER ), + 68 * - col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * + - 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 + ( - col0 ) + - 5 AS col0, 35 FROM tab2
----
-5
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8627
SELECT + CAST( NULL AS SIGNED ) AS col2, - 89 * + - col2 AS col2 FROM tab2
----
NULL
2047
NULL
3560
NULL
5162

skipif mysql # not compatible
query II rowsort label-8627
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 89 * + - col2 AS col2 FROM tab2
----
NULL
2047
NULL
3560
NULL
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT COUNT( * ) + - - 25 FROM tab2 WHERE - 96 IS NULL
----
25

skipif mysql # not compatible
query I rowsort label-8628
SELECT COUNT ( * ) + - - 25 FROM tab2 WHERE - 96 IS NULL
----
25

query I rowsort
SELECT DISTINCT col2 + col1 + + col0 * + col1 * + col2 + + col1 * + 43 FROM tab2
----
200548
294456
56225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT CAST( - 61 AS SIGNED ) AS col1 FROM tab0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-8630
SELECT CAST ( - 61 AS INTEGER ) AS col1 FROM tab0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT COUNT( * ) + + - 21 + COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT COUNT ( * ) + + - 21 + COUNT ( * ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT DISTINCT - 31 col1, ( + - SUM( DISTINCT col1 ) ) FROM tab2 AS cor0
----
-31
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8632
SELECT DISTINCT - 31 col1, ( + - SUM ( DISTINCT col1 ) ) FROM tab2 AS cor0
----
-31
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL OR NOT - CAST( NULL AS SIGNED ) + - 21 + - - 26 / - + col2 + - + col2 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8633
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL OR NOT - CAST ( NULL AS INTEGER ) + - 21 + - - 26 / - + col2 + - + col2 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL MIN( ALL - col1 ) + + + SUM( - + ( - col1 ) ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL MIN ( ALL - col1 ) + + + SUM ( - + ( - col1 ) ) FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT - - SUM( + 7 ) AS col1 FROM tab1 AS cor0 WHERE + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT - - SUM ( + 7 ) AS col1 FROM tab1 AS cor0 WHERE + col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT + 94 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8636
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT + 94 + - col2 IS NOT NULL
----
0

query I rowsort
SELECT col1 * - 1 + col0 AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - ( 6 ) FROM tab2
----
-6

query II rowsort
SELECT - col1 AS col1, + 59 FROM tab1
----
-14
59
-47
59
-5
59

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8641
SELECT ALL + + COUNT( * ) * + COUNT( * ) * 98, MIN( - col1 ) AS col2 FROM tab0 AS cor0
----
882
-81

skipif mysql # not compatible
query II rowsort label-8641
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) * 98, MIN ( - col1 ) AS col2 FROM tab0 AS cor0
----
882
-81

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 65 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT DISTINCT - col2 DIV 99 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT - col2 / 99 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 cor0 WHERE + col0 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 41 BETWEEN + col2 * - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 41 BETWEEN + col2 * - col1 AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT DISTINCT + COUNT( * ) DIV - 44 + - + COUNT( * ) + + 99 AS col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT + COUNT ( * ) / - 44 + - + COUNT ( * ) + + 99 AS col2 FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT COUNT( ALL + - col2 ) * + + COUNT( * ) - + + 79 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT COUNT ( ALL + - col2 ) * + + COUNT ( * ) - + + 79 FROM tab2 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT ALL + 75 / - col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + 75 / - col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <= col1
----
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + + 60 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - - 19 AS col2 FROM tab2 AS cor0
----
1216
1425
874

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - - 19 AS col2 FROM tab2 AS cor0
----
1216
1425
874

query II rowsort
SELECT + + col0 * + 35, - 84 AS col1 FROM tab2 cor0
----
1610
-84
2240
-84
2625
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT ALL - col2 DIV - 86 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - col2 / - 86 FROM tab1 cor0
----
0
0
1

query II rowsort
SELECT ALL + col2 AS col2, ( + col2 ) - col1 * - col1 AS col0 FROM tab1
----
59
84
68
2277
96
292

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE col1 - - col2 * - 41 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE col1 - - col2 * - 41 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT COUNT( * ) AS col1 FROM tab2 WHERE col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8657
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE col0 >= NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + - - 62 >= NULL
----

query I rowsort
SELECT ALL 16 * - - col0 AS col1 FROM tab2
----
1024
1200
736

query I rowsort
SELECT DISTINCT col1 + - + col0 * col1 * - 10 AS col1 FROM tab1
----
4255
42817
7154

query I rowsort
SELECT DISTINCT col0 - - - 61 AS col2 FROM tab0
----
-46
26
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT - - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT - - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + + - col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT ALL - - col2 + + + 31 * 20 + - 32 FROM tab2 AS cor0
----
611
628
646

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT 48 - + + 5 - + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8665
SELECT 48 - + + 5 - + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT SUM( col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8667
SELECT DISTINCT SUM ( col0 ) col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 89 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 18, 57 + - 11 AS col0 FROM tab1
----
18
46

query II rowsort
SELECT + - col2, col1 AS col0 FROM tab1 cor0
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT - col2 DIV - 61 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8671
SELECT - col2 / - 61 + col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL 84 FROM tab1 AS cor0 WHERE col0 < NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, col0 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT col0 * + - ( col0 ) AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # DIV for integer division: 
query II rowsort label-8677
SELECT ALL - - ( + 62 ), + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
62
0
62
0
62
5

skipif mysql # not compatible
query II rowsort label-8677
SELECT ALL - - ( + 62 ), + col1 / + col0 AS col2 FROM tab0 AS cor0
----
62
0
62
0
62
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + 81 AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + 81 AS col2 FROM tab0
----
87

query I rowsort
SELECT DISTINCT + 74 + + + col0 FROM tab0
----
161
171
89

query I rowsort
SELECT ALL ( + 56 ) + - col0 - col0 AS col0 FROM tab2
----
-36
-72
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 <= col1 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 <= col1 * + col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 53 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - ( - ( 8 ) ) col0 FROM tab1 AS cor0
----
-472
-544
-768

query I rowsort
SELECT col0 * + ( + 70 ) * + ( - + 38 ) FROM tab0 AS cor0
----
-231420
-258020
-39900

query I rowsort
SELECT + 11 AS col2 FROM tab2 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT COUNT( - 10 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8686
SELECT COUNT ( - 10 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL 13 + - col1 AS col1 FROM tab1
----
-1
-34
8

query I rowsort
SELECT + col2 * + - col1 AS col2 FROM tab2
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * 14 + - - col1 col2 FROM tab2
----
-1253
-1263
-1279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT ALL col0 * CAST( + + 57 AS SIGNED ) + - + col1 FROM tab2
----
2571
3571
4208

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL col0 * CAST ( + + 57 AS INTEGER ) + - + col1 FROM tab2
----
2571
3571
4208

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8691
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - col0 / - col0, + CAST( - - col0 AS SIGNED ), 3, + 12 * - + 87 + - 49 + + 86 * ( + col1 ), + 64 )
----

skipif mysql # not compatible
query III rowsort label-8691
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - col0 / - col0, + CAST ( - - col0 AS INTEGER ), 3, + 12 * - + 87 + - 49 + + 86 * ( + col1 ), + 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8692
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col0 - col1 * - col2, col0 AS col2 FROM tab1
----
5310
85
6240
51
9384
91

skipif mysql # not compatible
query II rowsort label-8692
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col0 - col1 * - col2, col0 AS col2 FROM tab1
----
5310
85
6240
51
9384
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8693
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 90 * + CAST( - 43 AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT CAST ( NULL AS REAL ) + 90 * + CAST ( - 43 AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 / + 68 FROM tab0 AS cor0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 47 col1 FROM tab1 AS cor0
----
2397
3995
4277

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 72 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL + + ( - CAST( NULL AS SIGNED ) ) * - SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) ) * - SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8698
SELECT - COUNT( * ) DIV 49 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8698
SELECT - COUNT ( * ) / 49 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT + COUNT( * ) * 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-8699
SELECT + COUNT ( * ) * 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
180

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT 33 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 23 col2 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - SUM( DISTINCT + + 43 ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8702
SELECT - SUM ( DISTINCT + + 43 ) FROM tab2 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT + + CAST( 22 AS SIGNED ) col0 FROM tab0 cor0
----
22
22
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8703
SELECT + + CAST ( 22 AS INTEGER ) col0 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT ALL - + 38 * col2 * + + col2 + - 92 AS col1 FROM tab2 AS cor0
----
-127924
-20194
-60892

query I rowsort
SELECT DISTINCT + col2 * 34 * + + col1 * - col0 FROM tab2 AS cor0
----
-1834572
-6702080
-9909300

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT DISTINCT - col0 DIV 73 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT - col0 / 73 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + - 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT COUNT( - + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8708
SELECT COUNT ( - + col2 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - 5 IS NOT NULL
----

query III rowsort
SELECT ALL - col1, col2 AS col0, + col2 FROM tab1
----
9 values hashing to 50f03e10c0c794da4956e6cc21e7e541

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8711
SELECT - col2 DIV col1 * - col1 + - CAST( - col2 AS SIGNED ) * + col1 * + col0 * - col0 FROM tab2
----
-12615680
-21858750
-2482068

skipif mysql # not compatible
query I rowsort label-8711
SELECT - col2 / col1 * - col1 + - CAST ( - col2 AS INTEGER ) * + col1 * + col0 * - col0 FROM tab2
----
-12615680
-21858750
-2482068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT - - ( CAST( NULL AS SIGNED ) ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT - - ( CAST ( NULL AS INTEGER ) ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL - 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-8713
SELECT ALL - MIN ( - col1 ) col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + MAX( DISTINCT + 54 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8714
SELECT + MAX ( DISTINCT + 54 ) FROM tab1 AS cor0
----
54

query II rowsort
SELECT - - 15, col2 AS col2 FROM tab1 AS cor0
----
15
59
15
68
15
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8716
SELECT + COUNT( * ) DIV 92 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8716
SELECT + COUNT ( * ) / 92 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query I rowsort
SELECT + 48 * - col0 * - 3 + col2 AS col0 FROM tab2
----
10858
6647
9256

onlyif mysql # aggregate syntax: 
query II rowsort label-8719
SELECT ALL - - 29 + - - 62, COUNT( * ) AS col0 FROM tab2 AS cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-8719
SELECT ALL - - 29 + - - 62, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
91
3

query I rowsort
SELECT DISTINCT + col2 + + + 60 FROM tab1 AS cor0
----
119
128
156

query I rowsort
SELECT DISTINCT + - col0 * col0 * - col2 - + 29 * - 25 + - col0 AS col2 FROM tab0 AS cor0
----
11285
76328
932119

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - + COUNT( * ) + + 90 FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-8722
SELECT - + COUNT ( * ) + + 90 FROM tab0 cor0
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-8723
SELECT ALL - 56 + col2 + + 11 AS col2, col2 DIV col2 - - - 11 + - ( col2 ) + - col2 AS col2 FROM tab0 AS cor0
----
-35
-30
2
-104
54
-208

skipif mysql # not compatible
query II rowsort label-8723
SELECT ALL - 56 + col2 + + 11 AS col2, col2 / col2 - - - 11 + - ( col2 ) + - col2 AS col2 FROM tab0 AS cor0
----
-35
-30
2
-104
54
-208

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 86 IS NOT NULL AND NULL = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT - - 56 DIV + + 77 + - ( - - col1 ) + + 54 - - + ( col2 ) + - col2 DIV - 69 AS col1 FROM tab0 AS cor0
----
153
20
43

skipif mysql # not compatible
query I rowsort label-8725
SELECT - - 56 / + + 77 + - ( - - col1 ) + + 54 - - + ( col2 ) + - col2 / - 69 AS col1 FROM tab0 AS cor0
----
153
20
43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> + + col1
----

query I rowsort
SELECT ALL col0 * + 99 AS col1 FROM tab0
----
1485
8613
9603

query I rowsort
SELECT 66 + + - col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8729
SELECT MIN( + col1 ) DIV + 77 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8729
SELECT MIN ( + col1 ) / + 77 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + col2 AS col0 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT + col1 DIV - 2 FROM tab0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-8731
SELECT + col1 / - 2 FROM tab0
----
-10
-40
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 6 col0, + 75 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8733
SELECT DISTINCT + col2 DIV + col2 + 54 + + col0, - col2 col1 FROM tab2 AS cor0
----
101
-23
119
-40
130
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8733
SELECT DISTINCT + col2 / + col2 + 54 + + col0, - col2 col1 FROM tab2 AS cor0
----
101
-23
119
-40
130
-58

query I rowsort
SELECT col2 * - 14 + col1 AS col0 FROM tab2
----
-271
-483
-745

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL - ( MIN( DISTINCT 62 ) ) col2 FROM tab0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8735
SELECT ALL - ( MIN ( DISTINCT 62 ) ) col2 FROM tab0
----
-62

query I rowsort
SELECT DISTINCT 38 FROM tab1 WHERE NOT ( col0 ) <> NULL
----

query I rowsort
SELECT - 8 * col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-184
-320
-464

query I rowsort
SELECT col0 / col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT - SUM( DISTINCT + col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8739
SELECT - SUM ( DISTINCT + col0 ) AS col0 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col2 col1 FROM tab0
----
123
2
3792

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 77 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 / 43 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8743
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN NULL AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8743
SELECT ALL * FROM tab0 WHERE + col0 BETWEEN NULL AND CAST ( col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( - col1 ) ) < ( - col0 )
----
46
51
23
64
77
40

query I rowsort
SELECT ALL + ( + 20 ) AS col2 FROM tab0
----
20
20
20

query I rowsort
SELECT ALL 7 AS col2 FROM tab1 WHERE NULL IS NULL
----
7
7
7

query I rowsort
SELECT ALL col1 + 50 AS col0 FROM tab1
----
55
64
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( col0 ) + col0 * - 26 <= - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - 17 + - COUNT( * ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-8749
SELECT - 17 + - COUNT ( * ) FROM tab0
----
-20

query I rowsort
SELECT 59 - - 54 AS col0 FROM tab2
----
113
113
113

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 16 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT DISTINCT CAST( col2 AS SIGNED ) * col2 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col2 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( 63 * 24 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 3 + + col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( - col0 )
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col1 * + col1 ) AND 75
----

query I rowsort
SELECT 69 FROM tab1 AS cor0 WHERE col2 * - col1 IS NULL
----

query I rowsort
SELECT + 66 + + col0 * ( - col2 + - col0 ) AS col2 FROM tab1 AS cor0
----
-12174
-14403
-7431

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab2 cor0 WHERE NOT - col0 NOT BETWEEN NULL AND ( 80 )
----

query I rowsort
SELECT ( - col0 ) + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8761
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) >= ( + ( - 7 ) )
----

skipif mysql # not compatible
query III rowsort label-8761
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) >= ( + ( - 7 ) )
----

query I rowsort
SELECT ALL + + 58 * - col2 + - col1 AS col0 FROM tab2 cor0
----
-1385
-2397
-3431

query I rowsort
SELECT - 86 * col2 + - col1 * 11 AS col1 FROM tab1 AS cor0 WHERE ( - col0 * 0 ) <> NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE + col2 / col2 + + col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT col1 FROM tab0 cor0 WHERE col1 = col0 - - CAST( NULL AS SIGNED ) / col0
----

skipif mysql # not compatible
query I rowsort label-8765
SELECT col1 FROM tab0 cor0 WHERE col1 = col0 - - CAST ( NULL AS INTEGER ) / col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 66 NOT IN ( - 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE - 94 * + col0 BETWEEN ( col2 * 12 ) AND NULL
----

query I rowsort
SELECT - + col0 * + col1 - + col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 / - 19 - col1 / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT - 5 - + ( - MAX( 86 ) ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-8770
SELECT - 5 - + ( - MAX ( 86 ) ) FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL 29 * COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 >= col0 * 50
----
87

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL 29 * COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 >= col0 * 50
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT COUNT( * ) - - COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8772
SELECT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + COUNT( * ) - 47 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-8773
SELECT + COUNT ( * ) - 47 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT + MIN( 54 ) col0 FROM tab0 WHERE NOT NULL IN ( + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8774
SELECT DISTINCT + MIN ( 54 ) col0 FROM tab0 WHERE NOT NULL IN ( + col1 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 39 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + COUNT( * ) * + 99 AS col1 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + COUNT ( * ) * + 99 AS col1 FROM tab2
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT + 86 DIV - + col0 + col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-8778
SELECT + 86 / - + col0 + col0 FROM tab2
----
45
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT DISTINCT COUNT( * ) + - 94 * + 6 FROM tab1
----
-561

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT COUNT ( * ) + - 94 * + 6 FROM tab1
----
-561

query I rowsort
SELECT DISTINCT - - 11 * - 98 + + col2 AS col1 FROM tab2 AS cor0
----
-1020
-1038
-1055

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL - - COUNT( * ) * - 35 + + MAX( ALL + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL - - COUNT ( * ) * - 35 + + MAX ( ALL + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT 76 + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
85

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT 76 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
85

query I rowsort
SELECT ALL - 84 + 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query II rowsort
SELECT ALL col0, col2 + - - 21 + + 54 * - 14 FROM tab1
----
51
-639
85
-676
91
-667

query I rowsort
SELECT 76 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT + 95 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + 95 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8787
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - - CAST( NULL AS SIGNED ) > + 65
----

skipif mysql # not compatible
query III rowsort label-8787
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - - CAST ( NULL AS INTEGER ) > + 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL - SUM( ALL + + col0 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL - SUM ( ALL + + col0 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-681

query I rowsort
SELECT DISTINCT - col1 - + col2 * 74 FROM tab0 AS cor0 WHERE NOT + 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 27 + - 97 FROM tab0 AS cor0
----
-70
2090
470

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL MAX( col1 ) FROM tab0 cor0 WHERE - 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL MAX ( col1 ) FROM tab0 cor0 WHERE - 55 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8792
SELECT + COUNT( * ) DIV 65 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8792
SELECT + COUNT ( * ) / 65 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + + col2 ) * - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT - + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8795
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( - - col2 AS SIGNED ) + - col0 <> - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8795
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( - - col2 AS INTEGER ) + - col0 <> - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * + col1 + - ( + 28 ) AS col0 FROM tab2
----
-1201
-3108
-3914

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8798
SELECT ALL * FROM tab2 WHERE ( col1 ) = CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8798
SELECT ALL * FROM tab2 WHERE ( col1 ) = CAST ( col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT CAST( NULL AS SIGNED ) + - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT CAST ( NULL AS INTEGER ) + - + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT ALL - 94 DIV col2 * + + col2 * - + 41 + ( col0 ) * - 66 FROM tab1
----
-3191
-3218
-3366

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL - 94 / col2 * + + col2 * - + 41 + ( col0 ) * - 66 FROM tab1
----
-3191
-3218
-3366

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT col2 + + col1 + - + col0 + col2 DIV col0 FROM tab1
----
-21
24
60

skipif mysql # not compatible
query I rowsort label-8801
SELECT col2 + + col1 + - + col0 + col2 / col0 FROM tab1
----
-21
24
60

query I rowsort
SELECT ( col0 ) + 19 * col2 FROM tab2 AS cor0 WHERE - col0 + - ( + 63 ) >= 32
----

query I rowsort
SELECT ALL - + ( - col1 ) + 29 + col1 + 31 AS col1 FROM tab2 AS cor0
----
162
194
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8804
SELECT DISTINCT + 82 FROM tab0 WHERE ( + + col2 ) BETWEEN 58 AND col1 + CAST( col2 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT + 82 FROM tab0 WHERE ( + + col2 ) BETWEEN 58 AND col1 + CAST ( col2 AS INTEGER )
----
82

query I rowsort
SELECT ALL col2 + 59 AS col2 FROM tab1
----
118
127
155

query I rowsort
SELECT DISTINCT col0 + - 72 AS col1 FROM tab0 AS cor0
----
-57
15
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT 60 + - COUNT( DISTINCT + + col1 ) FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT 60 + - COUNT ( DISTINCT + + col1 ) FROM tab0 cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT - + CAST( NULL AS SIGNED ) + - 24 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT - + CAST ( NULL AS INTEGER ) + - 24 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 65 * + col1 + - ( - 46 ) * + 59 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + col0 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT DISTINCT - COUNT( DISTINCT col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - COUNT ( DISTINCT col2 ) FROM tab2 cor0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT - COUNT( * ) FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8813
SELECT - COUNT ( * ) FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT - CAST( - - col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8814
SELECT - CAST ( - - col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query II rowsort
SELECT ALL + col2 AS col0, col1 - - - 38 FROM tab1
----
59
-33
68
9
96
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT 63 DIV + 33 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8816
SELECT 63 / + 33 AS col1 FROM tab0
----
1
1
1

query II rowsort
SELECT + 63, col0 AS col0 FROM tab0 AS cor0
----
63
15
63
87
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL + 57 * SUM( ALL + 78 ) AS col0 FROM tab2 AS cor0
----
13338

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + 57 * SUM ( ALL + 78 ) AS col0 FROM tab2 AS cor0
----
13338

query I rowsort
SELECT + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 / + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 * - - col0 / col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT COUNT( * ) * + 87, SUM( 35 ) AS col2 FROM tab1
----
261
105

skipif mysql # not compatible
query II rowsort label-8822
SELECT COUNT ( * ) * + 87, SUM ( 35 ) AS col2 FROM tab1
----
261
105

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT MIN( DISTINCT 85 ) AS col0 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-8824
SELECT MIN ( DISTINCT 85 ) AS col0 FROM tab2
----
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 46 ) BETWEEN ( 37 ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8827
SELECT COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL COUNT( * ) * + COUNT( - col1 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL COUNT ( * ) * + COUNT ( - col1 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 39 )
----

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT ( + col0 * col1 ) IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8831
SELECT + + col1 DIV + col0, + col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
0
5
0

skipif mysql # not compatible
query II rowsort label-8831
SELECT + + col1 / + col0, + col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
0
5
0

query II rowsort
SELECT 52 AS col2, + col0 * - col0 AS col1 FROM tab0
----
52
-225
52
-7569
52
-9409

query II rowsort
SELECT col1, 33 FROM tab2
----
51
33
67
33
77
33

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( 34 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL 14 AS col1 FROM tab0 WHERE + + 18 + - col1 BETWEEN + col1 + 63 - col1 + + col1 * CAST( col2 AS SIGNED ) AND + col2 + 4
----

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL 14 AS col1 FROM tab0 WHERE + + 18 + - col1 BETWEEN + col1 + 63 - col1 + + col1 * CAST ( col2 AS INTEGER ) AND + col2 + 4
----

query I rowsort
SELECT DISTINCT 21 + + 73 FROM tab0
----
94

query I rowsort
SELECT DISTINCT col2 * - - 81 AS col0 FROM tab2
----
1863
3240
4698

query I rowsort
SELECT 44 * - 71 * - 89 AS col0 FROM tab0
----
278036
278036
278036

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT DISTINCT + COUNT( * ) + + - MAX( - col2 ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT + COUNT ( * ) + + - MAX ( - col2 ) AS col1 FROM tab2
----
26

query I rowsort
SELECT DISTINCT + col2 * + + 69 + + col2 + 68 AS col2 FROM tab0 AS cor0
----
3358
6998
768

query III rowsort
SELECT * FROM tab1 WHERE + col2 < NULL
----

query I rowsort
SELECT + 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - ( - - col2 ) * - col1 * + col2 col0 FROM tab0
----
179010
2121
9802

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 98 + col1 * - + 39
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 23 * - 16 AS col1, col0 col1 FROM tab1 AS cor0
----
368
51
368
85
368
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT - SUM( - 95 ) col2 FROM tab0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT DISTINCT - SUM ( - 95 ) col2 FROM tab0
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col2 col2 FROM tab0
----
1
-99
21
-10
81
-47

query II rowsort
SELECT + - 15 AS col0, col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 65 FROM tab1 AS cor0 WHERE NOT - 11 + - - ( - - col1 ) NOT IN ( - 93, - ( - + 12 ), + 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 38 NOT BETWEEN + ( + col1 ) AND ( NULL )
----
15
81
47

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 96 + + col0 * + - ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 61 * + col1 * - col0 + col1 + - + col0 - - 90 - + col0 FROM tab2 cor0
----
-143057
-300569
-306518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT DISTINCT - + CAST( + - 29 AS SIGNED ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT - + CAST ( + - 29 AS INTEGER ) FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT + - 36 * 51 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT + - 36 * 51 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT + ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT - CAST( NULL AS SIGNED ) * + col1 * col2 * 99 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT - CAST ( NULL AS INTEGER ) * + col1 * col2 * 99 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT MIN( col0 ) AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8861
SELECT MIN ( col0 ) AS col1 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) AS col2 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT 80 + - 41 FROM tab2 cor0
----
39
39
39

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < 19 * - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL < - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8866
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN 91 - CAST( col2 AS SIGNED ) AND - + col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8866
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN 91 - CAST ( col2 AS INTEGER ) AND - + col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT 75 + - COUNT( * ) AS col2, 61 col0 FROM tab2
----
72
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8867
SELECT 75 + - COUNT ( * ) AS col2, 61 col0 FROM tab2
----
72
61

query I rowsort
SELECT ALL 70 + + - 68 AS col0 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8869
SELECT + COUNT( * ) * + 36 col2, 4 FROM tab1
----
108
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8869
SELECT + COUNT ( * ) * + 36 col2, 4 FROM tab1
----
108
4

query I rowsort
SELECT ALL + col2 + - - 97 AS col1 FROM tab0
----
107
144
196

query I rowsort
SELECT 13 * + - 46 AS col1 FROM tab1
----
-598
-598
-598

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + 57 + + - col2 AND - - col1 * col0 + + 17 - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8873
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8873
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT + - col2 * - col2 * CAST( + 71 AS SIGNED ) FROM tab2 cor0
----
113600
238844
37559

skipif mysql # not compatible
query I rowsort label-8874
SELECT + - col2 * - col2 * CAST ( + 71 AS INTEGER ) FROM tab2 cor0
----
113600
238844
37559

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 = + col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT + + COUNT( * ) + - ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8876
SELECT + + COUNT ( * ) + - ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = NULL
----
0

query I rowsort
SELECT + col0 * - col0 + - 5 FROM tab2
----
-2121
-4101
-5630

query I rowsort
SELECT - col2 * col1 + - 4 + - + col2 AS col0 FROM tab2 AS cor0
----
-1200
-3124
-3948

query I rowsort
SELECT DISTINCT ( 6 ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - ( - ( + - 92 ) ) FROM tab2 cor0
----
-92
-92
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT DISTINCT 76 DIV 4 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT 76 / 4 FROM tab1
----
19

query II rowsort
SELECT ALL ( - col0 ), col0 + + col2 AS col0 FROM tab1
----
-51
147
-85
144
-91
159

query I rowsort
SELECT 97 * + col1 FROM tab2
----
4947
6499
7469

onlyif mysql # DIV for integer division: 
query I rowsort label-8884
SELECT - + 20 DIV + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8884
SELECT - + 20 / + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT ( - col2 ) * - 26 * - - 4 * ( + col2 ) + 6 AS col2 FROM tab0
----
1019310
10406
229742

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT - 23 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT - 23 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 89 * - 9 AS col2 FROM tab0
----
-801
-801
-801

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT ALL col1 * col0 DIV col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL col1 * col0 / col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8889
SELECT - - MAX( ALL - - 51 ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8889
SELECT - - MAX ( ALL - - 51 ) / - - COUNT ( * ) FROM tab2 AS cor0
----
17

query I rowsort
SELECT - ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - - 87 * + 57 + - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + + 3 - - 10 AND col2 * + + col1
----
4959

skipif mysql # not compatible
query I rowsort label-8891
SELECT - - 87 * + 57 + - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + + 3 - - 10 AND col2 * + + col1
----
4959

query I rowsort
SELECT - ( - 66 ) FROM tab1 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + MIN( - 0 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8893
SELECT + MIN ( - 0 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL col2 + - - col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT + - 21 AS col2 FROM tab1 cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 39 * col1 * + 88 FROM tab0 cor0
----
-277992
-3432
-72072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, col2 * - ( + col0 ) col0 FROM tab1
----
59
-5015
68
-6188
96
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8899
SELECT ALL * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) * + - col0 + + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8899
SELECT ALL * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) * + - col0 + + ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 0 * - - col1 * - - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - + col1 FROM tab0 WHERE - - col0 * + - col0 + + 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT + CAST( + - ( + col2 ) AS SIGNED ) + col1 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-8902
SELECT + CAST ( + - ( + col2 ) AS INTEGER ) + col1 FROM tab2
----
28
37
9

query I rowsort
SELECT DISTINCT - col1 + + col1 * - 26 FROM tab1
----
-1269
-135
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL + COUNT( * ) + 54 - + 18 AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL + COUNT ( * ) + 54 - + 18 AS col1 FROM tab1
----
39

query I rowsort
SELECT DISTINCT 68 + + - 17 + + col0 * 26 FROM tab0
----
2313
2573
441

query I rowsort
SELECT ALL + 75 + - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
17
35
52

query I rowsort
SELECT 85 * 71 + + 51 + - col0 + 52 FROM tab2 AS cor0
----
6063
6074
6092

query I rowsort
SELECT + 32 + - col1 AS col1 FROM tab2 AS cor0
----
-19
-35
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-8909
SELECT col1 DIV 98 AS col2, - col0 AS col2 FROM tab0
----
0
-15
0
-87
0
-97

skipif mysql # not compatible
query II rowsort label-8909
SELECT col1 / 98 AS col2, - col0 AS col2 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT - 65 * + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-585

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - 65 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT DISTINCT - ( + 65 ) DIV - col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT - ( + 65 ) / - col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT ALL COUNT( * ) * MAX( + col1 ) AS col2 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL COUNT ( * ) * MAX ( + col1 ) AS col2 FROM tab2 AS cor0
----
231

query I rowsort
SELECT DISTINCT + ( + 73 ) AS col2 FROM tab2 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT - col0 * + col1 + + CAST( + ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-340
-4186
-663

skipif mysql # not compatible
query I rowsort label-8914
SELECT - col0 * + col1 + + CAST ( + ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT ALL 88 DIV - col0 + - col0 * col0 FROM tab0 AS cor0
----
-230
-7570
-9409

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL 88 / - col0 + - col0 * col0 FROM tab0 AS cor0
----
-230
-7570
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL <> - - col2 * + col1 + - 63
----

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL <> - - col2 * + col1 + - 63
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 * - 12 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 >= + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8919
SELECT + - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 BETWEEN + col1 AND NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT SUM( DISTINCT + - col1 ) AS col1 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8921
SELECT SUM ( DISTINCT + - col1 ) AS col1 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT MIN( DISTINCT 68 ) col0 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8922
SELECT MIN ( DISTINCT 68 ) col0 FROM tab1 AS cor0
----
68

query II rowsort
SELECT DISTINCT + 4, col2 AS col0 FROM tab1 AS cor0
----
4
59
4
68
4
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8924
SELECT + CAST( + MAX( + + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8924
SELECT + CAST ( + MAX ( + + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8925
SELECT - COUNT( * ) DIV + + 66 col1 FROM tab2 WHERE NULL <= col1 + + 39 DIV + - col2 DIV CAST( + 13 AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8925
SELECT - COUNT ( * ) / + + 66 col1 FROM tab2 WHERE NULL <= col1 + + 39 / + - col2 / CAST ( + 13 AS INTEGER )
----
0

query I rowsort
SELECT + + 42 AS col0 FROM tab1 cor0
----
42
42
42

query I rowsort
SELECT + ( + + col1 ) + 79 AS col1 FROM tab2 AS cor0
----
130
146
156

query I rowsort
SELECT 60 * + 99 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 / - 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 17 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - - COUNT( ALL col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - - COUNT ( ALL col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL + - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 55 AS col0 FROM tab1 cor0
----
55
55
55

query I rowsort
SELECT - - col0 + 66 FROM tab1 cor0
----
117
151
157

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - col0 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT - + 44 + - ( 78 ) DIV + 55 FROM tab2 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-8937
SELECT - + 44 + - ( 78 ) / + 55 FROM tab2 AS cor0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT + + col2 + - 78 DIV - col2 col0 FROM tab0 AS cor0
----
17
48
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8938
SELECT + + col2 + - 78 / - col2 col0 FROM tab0 AS cor0
----
17
48
99

query I rowsort
SELECT DISTINCT + + ( - - col1 ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col1 * - ( 31 ) + 30 * col0 FROM tab0
----
-2061
1959
2879

query I rowsort
SELECT ALL 23 + + 58 * - col2 - col1 AS col0 FROM tab2
----
-1362
-2374
-3408

query I rowsort
SELECT DISTINCT + 29 + 40 AS col0 FROM tab2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT ALL + col2 - - + CAST( NULL AS SIGNED ) + - - col1 * ( + col2 ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL + col2 - - + CAST ( NULL AS INTEGER ) + - - col1 * ( + col2 ) * + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 68 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 * + + col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - ( + col1 ) col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL - - 35 - COUNT( * ) + - + MIN( DISTINCT 91 ) FROM tab2 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL - - 35 - COUNT ( * ) + - + MIN ( DISTINCT 91 ) FROM tab2 cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + COUNT( * ) * - 28 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-8948
SELECT + COUNT ( * ) * - 28 FROM tab2
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT - - SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT - - SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-223

query II rowsort
SELECT - + 93 * - col1 AS col1, col0 * + col0 AS col0 FROM tab1 AS cor0
----
1302
2601
4371
8281
465
7225

query I rowsort
SELECT ALL - - 81 * + 72 FROM tab0 AS cor0
----
5832
5832
5832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT - col1 - + - col1 FROM tab0 cor0 WHERE NOT 82 NOT BETWEEN col1 + - - CAST( - col0 AS SIGNED ) AND + ( + - col2 )
----

skipif mysql # not compatible
query I rowsort label-8953
SELECT - col1 - + - col1 FROM tab0 cor0 WHERE NOT 82 NOT BETWEEN col1 + - - CAST ( - col0 AS INTEGER ) AND + ( + - col2 )
----

query II rowsort
SELECT DISTINCT + - 65, col0 FROM tab0 AS cor0
----
-65
15
-65
87
-65
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - COUNT( DISTINCT - col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8956
SELECT - COUNT ( DISTINCT - col1 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT 14 * + col2 FROM tab1
----
1344
826
952

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE 51 = NULL
----

query I rowsort
SELECT DISTINCT - ( 13 ) * - + ( + col0 ) AS col2 FROM tab1
----
1105
1183
663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 6 col0 FROM tab0
----
282
594
60

query I rowsort
SELECT + col0 * + 45 - - col0 + - - col0 + col1 AS col2 FROM tab0 cor0
----
4110
4560
786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT ALL - col2 * col0 * - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - col2 * col0 * - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col2 + - ( - - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT COUNT( * ) + + 74 AS col2 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-8964
SELECT COUNT ( * ) + + 74 AS col2 FROM tab1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT + col1 + 51 DIV 14 * - ( + ( - - col1 ) ) FROM tab0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-8965
SELECT + col1 + 51 / 14 * - ( + ( - - col1 ) ) FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT ALL + + MIN( DISTINCT 30 ) DIV 83 + + - ( 68 ) + + - COUNT( ALL - col0 ) + COUNT( * ) FROM tab1 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + + MIN ( DISTINCT 30 ) / 83 + + - ( 68 ) + + - COUNT ( ALL - col0 ) + COUNT ( * ) FROM tab1 cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col2 + - col0 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-8967
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col2 + - col0 >= col0
----
0

query I rowsort
SELECT DISTINCT 58 + - col1 AS col0 FROM tab0 AS cor0
----
-23
37
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT + - 10, + MIN( - col1 ) + - 90 + 23 AS col2 FROM tab1 AS cor0
----
-10
-114

skipif mysql # not compatible
query II rowsort label-8969
SELECT + - 10, + MIN ( - col1 ) + - 90 + 23 AS col2 FROM tab1 AS cor0
----
-10
-114

query I rowsort
SELECT DISTINCT + col1 - col0 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8971
SELECT + COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8971
SELECT + COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8972
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) * col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8972
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * col1 ) IS NULL
----

query II rowsort
SELECT ALL + col1 AS col2, col1 + 2 AS col2 FROM tab0 AS cor0
----
1
3
21
23
81
83

query I rowsort
SELECT + 52 * - + col0 AS col1 FROM tab0 cor0
----
-4524
-5044
-780

query III rowsort
SELECT * FROM tab0 WHERE col0 > col2
----
87
21
10

query I rowsort
SELECT ALL - 96 * col1 FROM tab0
----
-2016
-7776
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT + ( - ( - COUNT( * ) ) ) + 83 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT + ( - ( - COUNT ( * ) ) ) + 83 FROM tab2
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col1 - col2 * + - ( + col1 ) col0 FROM tab0 AS cor0
----
197
199
3773

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 41 * + + 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + + 10 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + + 10 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT - + ( - - CAST( - - col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8981
SELECT - + ( - - CAST ( - - col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL ( + - 67 ) FROM tab0 AS cor0
----
-67
-67
-67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 10 * + col0 * 37 * + + col0 IS NULL
----

query II rowsort
SELECT - col0 AS col0, col1 AS col1 FROM tab2
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT DISTINCT + 36 + + CAST( + - col0 AS SIGNED ) * col0 FROM tab0
----
-189
-7533
-9373

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + 36 + + CAST ( + - col0 AS INTEGER ) * col0 FROM tab0
----
-189
-7533
-9373

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8987
SELECT CAST( + 1 AS SIGNED ) + col1 - + col1 AS col2, - 1 + - 6 - + - ( + col1 ) FROM tab1
----
1
-2
1
40
1
7

skipif mysql # not compatible
query II rowsort label-8987
SELECT CAST ( + 1 AS INTEGER ) + col1 - + col1 AS col2, - 1 + - 6 - + - ( + col1 ) FROM tab1
----
1
-2
1
40
1
7

query I rowsort
SELECT DISTINCT col2 * + col2 * + col0 AS col1 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT col0 * - + ( - - col0 ) + col2 AS col2 FROM tab1
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT DISTINCT - 9 / + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8990
SELECT DISTINCT - 9 / + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT - ( + + col1 ) * - + ( col2 ) AS col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT 58 * - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT 58 * - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 - + col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT DISTINCT - MIN( - 9 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT - MIN ( - 9 ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT - 88 * + + col2 AS col0 FROM tab2 AS cor0
----
-2024
-3520
-5104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, ( - col1 ) AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 89 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 9 * 14 + - col2 + - col0 + - - 82 FROM tab2 AS cor0
----
104
139
75

query I rowsort
SELECT ALL 68 + - col0 + - 62 AS col2 FROM tab0 AS cor0
----
-81
-9
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT DISTINCT + COUNT( * ), 63 AS col2 FROM tab1 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-9000
SELECT DISTINCT + COUNT ( * ), 63 AS col2 FROM tab1 AS cor0
----
3
63

query I rowsort
SELECT ALL col1 * - col2 + + - 63 + + 98 + - col2 * col1 FROM tab1
----
-2653
-555
-6357

query II rowsort
SELECT ALL - 30 - + + col0 * col1, col0 AS col0 FROM tab2
----
-2376
46
-4958
64
-5055
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL + + MIN( DISTINCT + 15 ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + + MIN ( DISTINCT + 15 ) AS col2 FROM tab1 AS cor0
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 ) <= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9005
SELECT + - col2 * - - 44 + + col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT + - col2 * - - 44 + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT ALL col2 DIV col1 - + col1 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL col2 / col1 - + col1 FROM tab0 AS cor0
----
-21
-81
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT - COUNT( ALL + - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT - COUNT ( ALL + - col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * + ( - + 53 ) FROM tab1
----
-2703
-4505
-4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + - col1 col2 FROM tab1
----
-1120
-3760
-400

query I rowsort
SELECT DISTINCT + col0 * + 75 FROM tab0
----
1125
6525
7275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9011
SELECT ALL + ( + 30 ) col0 FROM tab2 WHERE NULL < - CAST( - + 66 AS DECIMAL ) / - - 23
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9011
SELECT ALL + ( + 30 ) col0 FROM tab2 WHERE NULL < - CAST ( - + 66 AS REAL ) / - - 23
----

query I rowsort
SELECT 4 FROM tab1 WHERE NULL BETWEEN - col1 AND + 83 + - col2
----

query I rowsort
SELECT 28 * + col1 AS col0 FROM tab2
----
1428
1876
2156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 88 col1 FROM tab1
----
-41
-74
-83

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 32 col2 FROM tab0
----
2784
3104
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + - 4 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
-388
-4860
-7308

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + 69 + + col0 NOT IN ( + 90, + col2 / - ( col1 ) * - + col0, + col2, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT - ( - COUNT( * ) ) * 21 FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-9020
SELECT - ( - COUNT ( * ) ) * 21 FROM tab1 cor0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9021
SELECT - + SUM( 80 ) AS col2, 28 + COUNT( * ) FROM tab1 AS cor0
----
-240
31

skipif mysql # not compatible
query II rowsort label-9021
SELECT - + SUM ( 80 ) AS col2, 28 + COUNT ( * ) FROM tab1 AS cor0
----
-240
31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - ( - + col2 ) <> NULL
----

query I rowsort
SELECT - ( + 21 ) FROM tab1 AS cor0
----
-21
-21
-21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 45 + - col1 <= ( - 92 ) + - - col0 * - 22 * - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9026
SELECT 47, COUNT( * ) AS col0 FROM tab1
----
47
3

skipif mysql # not compatible
query II rowsort label-9026
SELECT 47, COUNT ( * ) AS col0 FROM tab1
----
47
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL 75 + + COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL 75 + + COUNT ( * ) AS col2 FROM tab2
----
78

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + + 30 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - 75, - col1 AS col1 FROM tab1 AS cor0
----
-75
-14
-75
-47
-75
-5

query II rowsort
SELECT - ( + - col2 ) + + 6 AS col0, - 53 * + + 49 AS col2 FROM tab2 AS cor0
----
29
-2597
46
-2597
64
-2597

query I rowsort
SELECT - col0 + - + col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT + 18 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT 93 + - MIN( col2 ) * + 73 AS col1 FROM tab0 AS cor0
----
-637

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT 93 + - MIN ( col2 ) * + 73 AS col1 FROM tab0 AS cor0
----
-637

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9034
SELECT - col1 - + CAST( col0 AS SIGNED ) DIV - 30 FROM tab2 cor0
----
-50
-65
-75

skipif mysql # not compatible
query I rowsort label-9034
SELECT - col1 - + CAST ( col0 AS INTEGER ) / - 30 FROM tab2 cor0
----
-50
-65
-75

query I rowsort
SELECT - 53 * - col0 - + - col0 * + + col1 FROM tab1 AS cor0
----
3417
4930
9100

query I rowsort
SELECT - 82 - + 80 FROM tab1 AS cor0
----
-162
-162
-162

query I rowsort
SELECT DISTINCT col1 - col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * + + col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9039
SELECT ALL - col1 DIV - - 88 * + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - col1 / - - 88 * + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + + col1 AS col1 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + AVG ( + - col1 ) AS col1 FROM tab2 WHERE NOT - + col2 + + col0 BETWEEN NULL AND 58
----
NULL

query I rowsort
SELECT + 44 * - + 89 FROM tab2 AS cor0
----
-3916
-3916
-3916

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT + 48 DIV - col0 * 19 * 28 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9044
SELECT + 48 / - col0 * 19 * 28 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT - COUNT( ALL - + col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9045
SELECT - COUNT ( ALL - + col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9046
SELECT DISTINCT ( MAX( + + 54 ) ) col1, + COUNT( * ) * + - 36 col1 FROM tab1 AS cor0
----
54
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9046
SELECT DISTINCT ( MAX ( + + 54 ) ) col1, + COUNT ( * ) * + - 36 col1 FROM tab1 AS cor0
----
54
-108

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE 32 + - ( + + col0 ) - + - 15 NOT BETWEEN + 34 + + - col1 AND + col0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT + - 40 * MAX( + 72 ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
320

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + - 40 * MAX ( + 72 ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9050
SELECT ALL COUNT( * ) DIV 67 * - + COUNT( * ) * 91 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL COUNT ( * ) / 67 * - + COUNT ( * ) * 91 AS col0 FROM tab2
----
0

query II rowsort
SELECT - col2 * - col0 + - 37 AS col1, col2 FROM tab0 AS cor0
----
668
47
833
10
9566
99

query II rowsort
SELECT + col0, col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT + 94 * + - 44 AS col0 FROM tab1 AS cor0
----
-4136
-4136
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL + 77 * - COUNT( * ) col0 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9054
SELECT ALL + 77 * - COUNT ( * ) col0 FROM tab1 AS cor0
----
-231

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ( - COUNT( ALL - col0 ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9056
SELECT ( - COUNT ( ALL - col0 ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT - - MIN( - 83 ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT - - MIN ( - 83 ) FROM tab0 AS cor0
----
-83

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT + 88 + + COUNT( * ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9059
SELECT + 88 + + COUNT ( * ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab1
----
76

query I rowsort
SELECT ALL 33 + col0 FROM tab0
----
120
130
48

query I rowsort
SELECT ALL - col1 * - col2 * + col1 + col1 + - col2 AS col1 FROM tab1
----
1421
150191
18734

query I rowsort
SELECT + 12 AS col0 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT DISTINCT - col2 - + - 87 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-12
40
77

query I rowsort
SELECT + + col2 * + ( ( - - 93 ) ) FROM tab1 AS cor0
----
5487
6324
8928

query I rowsort
SELECT ALL - - 18 * - - 41 AS col2 FROM tab1 AS cor0
----
738
738
738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9067
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT - 91 - COUNT( * ) AS col1 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-9068
SELECT - 91 - COUNT ( * ) AS col1 FROM tab2
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 26 col2 FROM tab2
----
103
77
93

query I rowsort
SELECT col0 + - ( - + col1 ) FROM tab0
----
108
96
98

query I rowsort
SELECT - col1 + - col2 + - 87 FROM tab1 cor0
----
-151
-197
-202

onlyif mysql # aggregate syntax: 
query II rowsort label-9072
SELECT ALL + ( - 16 ) AS col2, - SUM( + col2 ) AS col1 FROM tab1 AS cor0 WHERE col0 >= + 80 + + col1
----
-16
-59

skipif mysql # not compatible
query II rowsort label-9072
SELECT ALL + ( - 16 ) AS col2, - SUM ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE col0 >= + 80 + + col1
----
-16
-59

query I rowsort
SELECT + 94 + - col0 + col2 * + col2 * + - ( + 83 ) FROM tab1 AS cor0
----
-288914
-383789
-764885

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
9

query I rowsort
SELECT ALL + col2 * + - 99 FROM tab2 AS cor0
----
-2277
-3960
-5742

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 <> + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + + col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT + col1 * - col0 IS NULL
----
51
85
91

query I rowsort
SELECT - col0 * - - col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - COUNT( * ) * - - 65 * - - 64 AS col2 FROM tab2
----
-12480

skipif mysql # not compatible
query I rowsort label-9080
SELECT - COUNT ( * ) * - - 65 * - - 64 AS col2 FROM tab2
----
-12480

query I rowsort
SELECT ALL - - col2 * + 95 * + col0 FROM tab2 AS cor0
----
100510
243200
413250

query I rowsort
SELECT ALL col1 * + ( 15 ) FROM tab2 AS cor0
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT + MIN( ALL + ( col0 ) ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9083
SELECT + MIN ( ALL + ( col0 ) ) FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - 55 * + 2 AS col2 FROM tab1 AS cor0
----
-110

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - col2 + - + col0 OR - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 56 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 - + col0 IS NULL
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col0 FROM tab1
----
-66

query I rowsort
SELECT ALL + + ( 43 ) - ( + - 65 ) FROM tab1 WHERE + + ( - + col2 ) * - 60 + + col2 >= col2
----
108
108
108

query I rowsort
SELECT 33 + - + 51 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - 2 * col2 AS col2 FROM tab0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT COUNT( * ) * - - 20 * - 29 FROM tab0 AS cor0
----
-1740

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT COUNT ( * ) * - - 20 * - 29 FROM tab0 AS cor0
----
-1740

query I rowsort
SELECT ALL + col1 * col2 * - 7 AS col2 FROM tab2 AS cor0
----
-21560
-27202
-8211

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT DISTINCT + - col1 DIV 82 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + - col1 / 82 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 74 * - - col2 * - + col0 NOT BETWEEN - col2 + - 41 AND + col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9095
SELECT DISTINCT - + COUNT( * ) DIV - 9 + + 9 AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT - + COUNT ( * ) / - 9 + + 9 AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT DISTINCT + 13 DIV col0 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9096
SELECT DISTINCT + 13 / col0 col1 FROM tab2
----
0

query I rowsort
SELECT ALL 10 + - col0 FROM tab1
----
-41
-75
-81

query I rowsort
SELECT DISTINCT col0 + + + 44 FROM tab0
----
131
141
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT CAST( 52 AS SIGNED ) - 67 * 84 FROM tab1 WHERE NULL <= - col2
----

skipif mysql # not compatible
query I rowsort label-9099
SELECT CAST ( 52 AS INTEGER ) - 67 * 84 FROM tab1 WHERE NULL <= - col2
----

query I rowsort
SELECT + col2 * - col0 * + - col0 + + ( - col0 ) AS col1 FROM tab1
----
249645
426190
563017

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT col1 col0 FROM tab0 WHERE - 78 / ( - - CAST( NULL AS SIGNED ) ) BETWEEN - + col1 AND + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9101
SELECT col1 col0 FROM tab0 WHERE - 78 / ( - - CAST ( NULL AS INTEGER ) ) BETWEEN - + col1 AND + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9102
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT col2 + - 96 - - col2 / + + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9103
SELECT col2 + - 96 - - col2 / + + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 3 + + col0 AS col0 FROM tab2 cor0
----
43
61
72

query I rowsort
SELECT ALL - 85 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT SUM( DISTINCT ( - 69 ) ) col1 FROM tab0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9106
SELECT DISTINCT SUM ( DISTINCT ( - 69 ) ) col1 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT - COUNT( * ) - - 14 + - COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9107
SELECT - COUNT ( * ) - - 14 + - COUNT ( * ) FROM tab2 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * + - col0 * col0 + + col2 + - 77 * - + 94 col1 FROM tab2 AS cor0
----
-115467
-230290
-318954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT ALL - col2 col0 FROM tab1 AS cor0 WHERE + CAST( + 27 AS SIGNED ) IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9109
SELECT ALL - col2 col0 FROM tab1 AS cor0 WHERE + CAST ( + 27 AS INTEGER ) IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * col2 / + - 78 NOT BETWEEN + col2 AND - 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9111
SELECT + + CAST( - COUNT( + 53 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9111
SELECT + + CAST ( - COUNT ( + 53 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT col2 * - 61 * - - col0 AS col1 FROM tab1 AS cor0
----
-298656
-305915
-377468

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT + 24 + + COUNT( * ) + + - 0 AS col0 FROM tab0 WHERE NOT - + col0 > + 39
----
27

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT + 24 + + COUNT ( * ) + + - 0 AS col0 FROM tab0 WHERE NOT - + col0 > + 39
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * col2 col2 FROM tab1
----
3953
4556
6432

query III rowsort
SELECT * FROM tab2 WHERE NOT 59 / - 20 = - 68
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( 17 - + 27, - col0 * 4 + - col2 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT ALL - 70 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL - 70 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 40 * - - col2 AS col0 FROM tab1
----
2360
2720
3840

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NOT + + col1 IS NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT - + COUNT( * ) * + 40 AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-9121
SELECT - + COUNT ( * ) * + 40 AS col2 FROM tab2 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT + COUNT( col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9122
SELECT + COUNT ( col0 ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col1 FROM tab1 AS cor0
----
-70

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON + 96 * - ( - 5 ) * + + 90 IS NULL
----

query I rowsort
SELECT ALL + col1 + 77 AS col0 FROM tab0
----
158
78
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT ALL 53 DIV + - col0 AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL 53 / + - col0 AS col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT + + col2 * + col0 * - 25 FROM tab1 AS cor0
----
-122400
-125375
-154700

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - col1 ) * + ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9129
SELECT DISTINCT + - 63, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-63
3

skipif mysql # not compatible
query II rowsort label-9129
SELECT DISTINCT + - 63, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-63
3

query I rowsort
SELECT - 57 * - col1 + + 84 FROM tab0 AS cor0
----
1281
141
4701

query I rowsort
SELECT + col2 + ( 73 ) AS col1 FROM tab1 cor0
----
132
141
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 * - + ( + col0 ) + + 78 col2, - 44 FROM tab0 AS cor0
----
1293
-44
175
-44
1905
-44

query II rowsort
SELECT DISTINCT + 93, col2 FROM tab2 AS cor0
----
93
23
93
40
93
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + - - 1 * + + col1 NOT BETWEEN + 33 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL + ( + + COUNT( * ) ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL + ( + + COUNT ( * ) ) FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL < col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT 25 + - COUNT( * ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT 25 + - COUNT ( * ) FROM tab2
----
22

query I rowsort
SELECT + - col0 + ( col0 ) AS col2 FROM tab0 WHERE - col2 + - col2 BETWEEN NULL AND - - 81
----

query I rowsort
SELECT - 78 + - col1 FROM tab1 WHERE ( NULL <> col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT + - COUNT( * ) + + COUNT( - - col2 ) + + - 11 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 15 AND 62
----
-11

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( - - col2 ) + + - 11 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 15 AND 62
----
-11

query I rowsort
SELECT ALL + col2 + ( - 6 ) + + col1 AS col2 FROM tab2 AS cor0
----
111
119
68

query I rowsort
SELECT + 99 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND - 49
----

query II rowsort
SELECT ALL + col2 AS col1, col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT COUNT( * ) + 32 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-9144
SELECT COUNT ( * ) + 32 FROM tab2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9145
SELECT CAST( NULL AS SIGNED ) + - + CAST( + + 23 AS SIGNED ) + + ( - 25 ) - + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT CAST ( NULL AS INTEGER ) + - + CAST ( + + 23 AS INTEGER ) + + ( - 25 ) - + + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT col0 + + 80 DIV - - col1 + - 67 AS col2 FROM tab0
----
-52
110
23

skipif mysql # not compatible
query I rowsort label-9146
SELECT col0 + + 80 / - - col1 + - 67 AS col2 FROM tab0
----
-52
110
23

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT MAX( col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9148
SELECT MAX ( col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL - SUM( + 6 ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL - SUM ( + 6 ) FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9151
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) - - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9151
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) - - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col2, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * + col2 col1 FROM tab1
----
1248
767
884

query I rowsort
SELECT ALL ( - col1 ) - + - ( - col0 ) * 89 FROM tab2 WHERE NULL IS NULL
----
-4145
-5773
-6742

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL + SUM( DISTINCT - + ( + col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + SUM ( DISTINCT - + ( + col2 ) ) FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 * - col0 AS col2, col0 + + 73 col0 FROM tab2
----
-2806
119
-3904
137
-4575
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT CAST( + CAST( - + col0 AS SIGNED ) AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9157
SELECT CAST ( + CAST ( - + col0 AS INTEGER ) AS INTEGER ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL = col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 > + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 95 * - col2 FROM tab0 AS cor0
----
4465
9405
950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT ALL - - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - col0 AS col0 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT - 4 * - + col2 AS col2 FROM tab0 AS cor0
----
188
396
40

query I rowsort
SELECT - - col1 * 64 AS col1 FROM tab2 cor0
----
3264
4288
4928

query I rowsort
SELECT col0 * 88 * + 94 * + ( + + col1 ) FROM tab0 AS cor0 WHERE ( - 49 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL - 3 * + - COUNT( * ) * - COUNT( * ) * + 78 AS col1 FROM tab1
----
-2106

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL - 3 * + - COUNT ( * ) * - COUNT ( * ) * + 78 AS col1 FROM tab1
----
-2106

query I rowsort
SELECT + 55 - - col1 FROM tab1
----
102
60
69

query III rowsort
SELECT * FROM tab0 WHERE col0 >= - col0 * + col1 * - 71 * col0
----

query I rowsort
SELECT ALL - col1 - + + col1 + - col1 FROM tab1
----
-141
-15
-42

query I rowsort
SELECT DISTINCT ( - col1 ) + col1 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 1 + - col0 col0, col0 * - + col1 AS col0 FROM tab2
----
-45
-2346
-63
-4928
-74
-5025

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + 25 ) IS NULL AND NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + MAX( + - 6 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9173
SELECT + MAX ( + - 6 ) FROM tab0 AS cor0
----
-6

query II rowsort
SELECT DISTINCT - col2 AS col2, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT ALL + col0 AS col1, + 93 * + - 10 AS col2 FROM tab0 AS cor0
----
15
-930
87
-930
97
-930

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT - 12 BETWEEN + col1 AND + col1
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT - MAX( - 99 ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-9177
SELECT - MAX ( - 99 ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL + - SUM( - + col1 ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT ALL + - SUM ( - + col1 ) col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - 5 AS col2 FROM tab0 cor0
----
-5
-5
-5

query I rowsort
SELECT ALL - 6 AS col1 FROM tab1 cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 87 * - 52 * + + col2 NOT BETWEEN NULL AND + 57 + - col1
----

query II rowsort
SELECT ALL + 49 AS col0, col1 AS col2 FROM tab0
----
49
1
49
21
49
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT CAST( NULL AS SIGNED ) * - 24 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT CAST ( NULL AS INTEGER ) * - 24 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - 65 + + col2 + - + col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
5644
6403
941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT DISTINCT - 75 + + + CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
-122
-174
-85

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT - 75 + + + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
-122
-174
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 86 + ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 80 * + col2 + 27 * + col0 * + 28 AS col0 FROM tab1 AS cor0
----
46236
68980
74236

query II rowsort
SELECT col0, 25 * + 3 AS col0 FROM tab0 AS cor0
----
15
75
87
75
97
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT - 25 DIV + col1 + 61 AS col1 FROM tab2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-9189
SELECT - 25 / + col1 + 61 AS col1 FROM tab2
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT + MAX( - col0 ) * + COUNT( * ) AS col0 FROM tab0 WHERE NULL < ( - CAST( ( + 27 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT + MAX ( - col0 ) * + COUNT ( * ) AS col0 FROM tab0 WHERE NULL < ( - CAST ( ( + 27 ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9191
SELECT + 23 * col1 FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-9191
SELECT + 23 * col1 FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 99 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - MIN( + 75 ) * SUM( col1 * + col1 ) AS col0 FROM tab2 WHERE NOT ( + col1 ) + - 4 * 41 IS NULL
----
-976425

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - MIN ( + 75 ) * SUM ( col1 * + col1 ) AS col0 FROM tab2 WHERE NOT ( + col1 ) + - 4 * 41 IS NULL
----
-976425

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 < + col1
----

query I rowsort
SELECT DISTINCT ( + 92 ) + col2 FROM tab1
----
151
160
188

query III rowsort
SELECT ALL * FROM tab1 WHERE 53 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL SUM( DISTINCT + col1 ) + + 34 AS col1 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL SUM ( DISTINCT + col1 ) + + 34 AS col1 FROM tab1
----
100

query I rowsort
SELECT + col2 * 17 AS col0 FROM tab0
----
1683
170
799

query I rowsort
SELECT col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT + ( - 9 ) * SUM( DISTINCT + col0 ) AS col2 FROM tab2
----
-1665

skipif mysql # not compatible
query I rowsort label-9200
SELECT + ( - 9 ) * SUM ( DISTINCT + col0 ) AS col2 FROM tab2
----
-1665

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT 78 + MIN( ALL col0 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-9201
SELECT 78 + MIN ( ALL col0 ) FROM tab0
----
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + col1 > + 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 69 * + col0 AS col1 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT ALL - 94 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 57 AS col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL <= 5 * - 45 + + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT + COUNT( * ) FROM tab1 WHERE col0 * + 63 + 47 / 13 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9207
SELECT + COUNT ( * ) FROM tab1 WHERE col0 * + 63 + 47 / 13 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 35 col2 FROM tab2
----
58
75
93

query I rowsort
SELECT DISTINCT + col1 * - 69 AS col2 FROM tab2
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT + ( + COUNT( * ) ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT + ( + COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT - col2 + - 2 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
-61
-70
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9212
SELECT - CAST( - 1 AS SIGNED ) - - 2 * 7 FROM tab0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-9212
SELECT - CAST ( - 1 AS INTEGER ) - - 2 * 7 FROM tab0
----
15
15
15

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT col1 + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 3 * 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * 28 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT - SUM( DISTINCT 25 ) - COUNT( * ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT - SUM ( DISTINCT 25 ) - COUNT ( * ) FROM tab2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT CAST( + col1 AS SIGNED ) * col2 + - 86 FROM tab2 AS cor0
----
1087
2994
3800

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * col2 + - 86 FROM tab2 AS cor0
----
1087
2994
3800

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + ( 43 ) * - COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-9220
SELECT + ( 43 ) * - COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT - ( + ( + SUM( DISTINCT col0 ) ) ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9221
SELECT - ( + ( + SUM ( DISTINCT col0 ) ) ) FROM tab1 cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * col1 col2 FROM tab1 AS cor0
----
-1504
-160
-448

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 11 FROM tab1 AS cor0 CROSS JOIN tab0
----
11

query I rowsort
SELECT DISTINCT 3 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL + COUNT( * ) * COUNT( * ) col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9227
SELECT ALL + COUNT ( * ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL + - COUNT( * ) * 13 AS col0 FROM tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL + - COUNT ( * ) * 13 AS col0 FROM tab1 cor0
----
-39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT DISTINCT - col0 * col0 AS col0 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > ( - 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL + MAX( + 37 ) AS col0 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL + MAX ( + 37 ) AS col0 FROM tab1 AS cor0
----
37

query I rowsort
SELECT 15 * 76 FROM tab2 AS cor0
----
1140
1140
1140

query I rowsort
SELECT + col0 / 5 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col2 + - col1 * - ( + col2 * 12 )
----

query I rowsort
SELECT DISTINCT - 94 + + col1 AS col0 FROM tab0
----
-13
-73
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT DISTINCT 91 DIV + 37 AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT 91 / + 37 AS col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + SUM( - ( + col1 ) ) * - 99 AS col1 FROM tab2
----
19305

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + SUM ( - ( + col1 ) ) * - 99 AS col1 FROM tab2
----
19305

query I rowsort
SELECT ALL + col2 + 85 AS col0 FROM tab0
----
132
184
95

query I rowsort
SELECT 61 * - col1 FROM tab1
----
-2867
-305
-854

query I rowsort
SELECT ALL col2 * col0 + - 25 FROM tab2
----
1033
2535
4325

query I rowsort
SELECT ALL - 20 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT DISTINCT - + col2 * col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT - + col2 * col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT - SUM( ALL col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT 30 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT - SUM ( ALL col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT 30 > NULL
----
NULL

query I rowsort
SELECT - 10 + col0 AS col2 FROM tab2
----
36
54
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL MAX( 62 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL MAX ( 62 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query I rowsort
SELECT + col0 FROM tab1 WHERE ( ( NULL ) NOT IN ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT 96 - COUNT( * ) * + 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) < NULL
----
96

skipif mysql # not compatible
query I rowsort label-9248
SELECT 96 - COUNT ( * ) * + 8 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) < NULL
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col0 AND - 22 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT - ( - SUM( ALL + col1 ) ) - + COUNT( * ) col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9250
SELECT DISTINCT - ( - SUM ( ALL + col1 ) ) - + COUNT ( * ) col2 FROM tab0 AS cor0
----
100

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 <= ( - col0 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0 WHERE col0 IN ( - col1 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-9252
SELECT + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0 WHERE col0 IN ( - col1 + - col2 )
----

query I rowsort
SELECT - + col1 + - col0 * col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 71
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT DISTINCT + + col2 * col1 DIV col0 * 25 AS col0 FROM tab2 cor0
----
1200
1275
625

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + + col2 * col1 / col0 * 25 AS col0 FROM tab2 cor0
----
1200
1275
625

query I rowsort
SELECT - col2 - 73 + + col2 * 48 FROM tab1 AS cor0
----
2700
3123
4439

query I rowsort
SELECT col2 - - - col2 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT DISTINCT COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 49 * - - col1 < - 53
----
6

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 49 * - - col1 < - 53
----
6

query II rowsort
SELECT col2 - - col1 AS col0, + col2 + col0 * + col1 AS col2 FROM tab0
----
100
196
128
1262
31
1837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + + col2 + - 75 - + col1 * - ( - col1 ) * col2 col1 FROM tab1
----
-154843
-28011
-4972

query I rowsort
SELECT + col1 * col2 + 39 + 49 + 58 * + col0 AS col1 FROM tab0
----
4765
5344
5813

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) < - ( - col0 ) * - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT + + MAX( - 50 ) FROM tab1 WHERE NULL <> - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT + + MAX ( - 50 ) FROM tab1 WHERE NULL <> - + 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9263
SELECT ALL ( - 1 ) DIV + 45 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL ( - 1 ) / + 45 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT COUNT( * ) + + COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
18

skipif mysql # not compatible
query I rowsort label-9264
SELECT COUNT ( * ) + + COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 3 * - col2 / col1 / - + col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 20 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 66 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT DISTINCT + + col1 * 11 DIV 55 FROM tab0 AS cor0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT + + col1 * 11 / 55 FROM tab0 AS cor0
----
0
16
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( 56 + - - 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 * - 16 + + + col1 AS col0 FROM tab2 AS cor0
----
-1005
-1155
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT - 45 DIV + 97 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9270
SELECT - 45 / + 97 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 55 col1, 98 AS col2 FROM tab0 AS cor0
----
55
98
55
98
55
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 + - CAST( + col1 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9272
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 + - CAST ( + col1 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT + ( ( COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT + ( ( COUNT ( * ) ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= ( - + 9 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 ) * + col0 + 70 NOT IN ( 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab0 WHERE - 63 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT ALL - col0 DIV ( + ( + - ( col1 ) ) ) AS col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL - col0 / ( + ( + - ( col1 ) ) ) AS col1 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 WHERE NOT + - col1 + - + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2 WHERE NOT + - col1 + - + col1 IS NULL
----
-3

query I rowsort
SELECT ALL col1 * + - col2 + - - col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT ( - 90 ) * 23 * - 1 FROM tab1 AS cor0
----
2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9281
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) DIV + MIN( + + col1 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9281
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) / + MIN ( + + col1 ) col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT ALL 31 + + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL >= + 70 AND NOT 34 NOT IN ( col2 * col2 )
----
31

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL 31 + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL >= + 70 AND NOT 34 NOT IN ( col2 * col2 )
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + + 85, col0 + - col2 col0 FROM tab2 AS cor0
----
136
23
152
17
162
24

query I rowsort
SELECT ALL 23 + 83 AS col2 FROM tab0 AS cor0
----
106
106
106

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9287
SELECT col2 + col1 * col2 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT col2 + col1 * col2 * + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 45 AS col2 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL 6 FROM tab1 WHERE NOT ( col2 + - col2 * + 46 * col2 ) NOT BETWEEN 31 AND - col1 * + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9290
SELECT - 93 DIV col2 * + col0 col1, col2 DIV + col2 FROM tab0
----
-15
1
-783
1
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9290
SELECT - 93 / col2 * + col0 col1, col2 / + col2 FROM tab0
----
-15
1
-783
1
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9291
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 * col0 AND - + CAST( col2 AS SIGNED ) * - col2 - + col0
----

skipif mysql # not compatible
query III rowsort label-9291
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col0 * col0 AND - + CAST ( col2 AS INTEGER ) * - col2 - + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 + - - 67 / col0 + - col1 * + ( + 41 ) / - col2 ) NOT IN ( col1 )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT - col2 < 46
----

query I rowsort
SELECT col2 * - ( - col1 ) AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col2 * - col1 * + col0 AS col2 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT DISTINCT COUNT( * ) AS col1, ( + + COUNT( * ) ) + - 56 col1 FROM tab2 AS cor0
----
3
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9296
SELECT DISTINCT COUNT ( * ) AS col1, ( + + COUNT ( * ) ) + - 56 col1 FROM tab2 AS cor0
----
3
-53

query I rowsort
SELECT + - ( - - col0 ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col0 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
366
4209
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col2 FROM tab0 cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9302
SELECT - 14 DIV 62 DIV + COUNT( + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 14 / 62 / + COUNT ( + CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9303
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9303
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col2 FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT + MIN( - col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9305
SELECT + MIN ( - col0 ) AS col2 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 + col1 - + col2 + - - col0 * - ( + + 43 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT + SUM( DISTINCT + + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9307
SELECT + SUM ( DISTINCT + + col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT + col2 * + 23 * col2 AS col2 FROM tab1
----
106352
211968
80063

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9309
SELECT ALL * FROM tab2 WHERE ( + + 86 ) NOT BETWEEN + col2 AND ( - col0 * - ( col1 ) + + col1 * + + ( - CAST( + 18 AS SIGNED ) ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-9309
SELECT ALL * FROM tab2 WHERE ( + + 86 ) NOT BETWEEN + col2 AND ( - col0 * - ( col1 ) + + col1 * + + ( - CAST ( + 18 AS INTEGER ) ) * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT MAX( - 78 ) col0 FROM tab2
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9310
SELECT MAX ( - 78 ) col0 FROM tab2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9311
SELECT DISTINCT + 26 * - - 68 + + - CAST( + col1 AS SIGNED ), col2 - - 92 + + col1 AS col1 FROM tab1 WHERE - - col0 + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-9311
SELECT DISTINCT + 26 * - - 68 + + - CAST ( + col1 AS INTEGER ), col2 - - 92 + + col1 AS col1 FROM tab1 WHERE - - col0 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT - COUNT( ALL - col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT - COUNT ( ALL - col0 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL - 72 + - 45 FROM tab1
----
-117
-117
-117

query I rowsort
SELECT - 12 + + ( - + col2 ) * 80 FROM tab2
----
-1852
-3212
-4652

query I rowsort
SELECT DISTINCT - + 78 AS col2 FROM tab2 cor0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9316
SELECT col1 + - col0 + + + col1 * col2 DIV 8 DIV 64 AS col1 FROM tab0 AS cor0
----
-66
-96
73

skipif mysql # not compatible
query I rowsort label-9316
SELECT col1 + - col0 + + + col1 * col2 / 8 / 64 AS col1 FROM tab0 AS cor0
----
-66
-96
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT MIN( col1 ) - - 94 AS col2 FROM tab2
----
145

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT MIN ( col1 ) - - 94 AS col2 FROM tab2
----
145

query III rowsort
SELECT * FROM tab2 WHERE 57 / ( - - col1 ) <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - ( + + col1 ) * + col0 col2 FROM tab1
----
4345
484
810

query I rowsort
SELECT DISTINCT + ( 25 ) + + - 22 AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 25 * - col1 + 4 - + col2 FROM tab1 AS cor0
----
1111
258
70

query I rowsort
SELECT 71 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
71
71
71

query I rowsort
SELECT ALL + 87 * + 52 - - + 69 + - 73 * + col2 + col2 FROM tab2 AS cor0
----
1713
2937
417

query II rowsort
SELECT - + col0 AS col1, + ( - - ( - col2 ) ) * col1 FROM tab1 cor0
----
-51
-1344
-85
-295
-91
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT + MIN( + - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT + MIN ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE + col2 * 25 IS NULL
----

query I rowsort
SELECT ALL - 63 / + - col2 * - + ( - + col1 ) AS col1 FROM tab1 WHERE NOT 49 + col1 + + col2 * - 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9328
SELECT + 50 DIV - + COUNT( * ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-9328
SELECT + 50 / - + COUNT ( * ) FROM tab0 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT MAX( DISTINCT + - 21 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9329
SELECT MAX ( DISTINCT + - 21 ) FROM tab2 AS cor0
----
-21

query I rowsort
SELECT ALL 89 + col2 FROM tab1
----
148
157
185

query II rowsort
SELECT DISTINCT + + 20 AS col2, col2 + + + 14 FROM tab2 AS cor0
----
20
37
20
54
20
72

onlyif mysql # DIV for integer division: 
query III rowsort label-9332
SELECT - 90 * + 80 - + 73, col2 DIV 24 * + col2 col2, 55 DIV 33 AS col0 FROM tab1 AS cor0
----
9 values hashing to c7ace44b27ea2f883a09132dcee36546

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9332
SELECT - 90 * + 80 - + 73, col2 / 24 * + col2 col2, 55 / 33 AS col0 FROM tab1 AS cor0
----
9 values hashing to c7ace44b27ea2f883a09132dcee36546

query I rowsort
SELECT - col0 * + 47 * col2 FROM tab0 cor0
----
-33135
-40890
-451341

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - ( col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 60 + - 63 AS col1 FROM tab1 AS cor0
----
-123
-123
-123

query I rowsort
SELECT + - col2 + - + col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT - ( + + 28 ) FROM tab0 AS cor0
----
-28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT + + 27 * - 57 + 77, + col0 AS col1 FROM tab2 AS cor0
----
-1462
46
-1462
64
-1462
75

query I rowsort
SELECT ALL col0 * + - 51 AS col0 FROM tab2 AS cor0
----
-2346
-3264
-3825

query I rowsort
SELECT + 56 + + 34 AS col0 FROM tab2
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 * - ( + - 76 ) col1 FROM tab2
----
-2888
-2888
-2888

query I rowsort
SELECT ALL + col0 + + - 51 FROM tab2
----
-5
13
24

query I rowsort
SELECT DISTINCT col2 + + ( + 75 ) AS col0 FROM tab2
----
115
133
98

query II rowsort
SELECT DISTINCT + 29 AS col1, 8 * + - ( + 9 ) AS col1 FROM tab1 WHERE NOT + + col1 IN ( - col1 + - 74, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT + 15 * 74 * COUNT( * ) * - 97 - - + 17 FROM tab0 AS cor0
----
-322993

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT + 15 * 74 * COUNT ( * ) * - 97 - - + 17 FROM tab0 AS cor0
----
-322993

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL OR - 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT DISTINCT + SUM( + - 26 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT + SUM ( + - 26 ) FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL + + 3 * + COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9349
SELECT ALL + + 3 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL - - COUNT( * ) * - 55 * - - SUM( + 22 ) FROM tab2 cor0
----
-10890

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL - - COUNT ( * ) * - 55 * - - SUM ( + 22 ) FROM tab2 cor0
----
-10890

query I rowsort
SELECT DISTINCT - + ( + ( - col1 ) ) FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + MIN( DISTINCT + + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9353
SELECT + MIN ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL - + col1 FROM tab1 WHERE - col0 * + col0 * + col2 >= - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - + col1 FROM tab1 WHERE - col0 * + col0 * + col2 >= - col1 + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col2 AS col0, 97 - + + 85 AS col0 FROM tab1
----
59
12
68
12
96
12

query I rowsort
SELECT col1 / + 11 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( + + 8 - 47 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 36 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 52 * - 41 AS col2 FROM tab1
----
-2132
-2132
-2132

query I rowsort
SELECT - ( + - 87 ) * 42 FROM tab2
----
3654
3654
3654

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9360
SELECT 14 DIV + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-9360
SELECT 14 / + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
0
0
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT - 12 * - COUNT( * ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9361
SELECT - 12 * - COUNT ( * ) AS col1 FROM tab2
----
36

query II rowsort
SELECT + col1 AS col2, + col0 + + - 55 AS col2 FROM tab0
----
1
42
21
32
81
-40

query III rowsort
SELECT * FROM tab0 WHERE NOT - 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 72 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < 10 + + col2
----

query I rowsort
SELECT - 28 * - col0 FROM tab2 cor0
----
1288
1792
2100

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 * + + col0 NOT BETWEEN ( NULL ) AND + 8
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - + 7 col0, + ( 13 ) - col2 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to c96d3b11ca3ddbeee4cf1017c52b0515

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + 67 + - MAX( ALL + - col0 ) FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-9369
SELECT + 67 + - MAX ( ALL + - col0 ) FROM tab2
----
113

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab0 cor0
----
-46

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL + - ( - SUM( - 47 ) ) AS col1 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + - ( - SUM ( - 47 ) ) AS col1 FROM tab1 AS cor0
----
-141

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - AVG ( col1 ) AS col1 FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND + 18
----
NULL

query I rowsort
SELECT DISTINCT - ( - 33 ) AS col1 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 cor0 WHERE 35 * col2 BETWEEN 0 AND - + 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 / + - col0 * - + 8 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 / + - col0 * - + 8 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + 58 * + - MAX( + col0 ) FROM tab0 AS cor0
----
-5626

skipif mysql # not compatible
query I rowsort label-9379
SELECT + 58 * + - MAX ( + col0 ) FROM tab0 AS cor0
----
-5626

query II rowsort
SELECT + 67 AS col2, col2 FROM tab0
----
67
10
67
47
67
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT - SUM( ALL + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9381
SELECT - SUM ( ALL + col2 ) FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query II rowsort label-9382
SELECT ALL ( 59 ) * col1 DIV col1 + - ( ( - col1 ) ) - - col0 AS col2, + col2 AS col1 FROM tab0
----
155
47
157
99
167
10

skipif mysql # not compatible
query II rowsort label-9382
SELECT ALL ( 59 ) * col1 / col1 + - ( ( - col1 ) ) - - col0 AS col2, + col2 AS col1 FROM tab0
----
155
47
157
99
167
10

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE col0 < NULL
----

query I rowsort
SELECT col0 + - 41 FROM tab1
----
10
44
50

query I rowsort
SELECT col2 + + col1 + + 57 * + 48 FROM tab0
----
2767
2836
2864

query II rowsort
SELECT col2 + col0 + - col1, - col0 + - col0 AS col1 FROM tab1
----
112
-182
133
-102
139
-170

query I rowsort
SELECT + 10 * - 16 + - col1 FROM tab2
----
-211
-227
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT ALL + col0 DIV - 92 col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9388
SELECT ALL + col0 / - 92 col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL - + COUNT( * ) - - SUM( DISTINCT - 2 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL - + COUNT ( * ) - - SUM ( DISTINCT - 2 ) FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9390
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9390
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - - 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ( + MAX( ALL col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9391
SELECT ( + MAX ( ALL col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * col2 col1 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT - 4 * - + COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9393
SELECT - 4 * - + COUNT ( * ) AS col1 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT ( COUNT( DISTINCT + + col1 ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT ( COUNT ( DISTINCT + + col1 ) ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - 14 FROM tab0 AS cor0 WHERE NOT + 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + + + COUNT( + 0 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + + + COUNT ( + 0 ) FROM tab2 AS cor0
----
12

query II rowsort
SELECT + ( - + col2 ) AS col1, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT + col1 * 59 AS col0 FROM tab2 AS cor0
----
3009
3953
4543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT + col2 * - 21 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT + col2 * - 21 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + COUNT( - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9400
SELECT + COUNT ( - col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT - 30 + - col1 NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9404
SELECT col0 DIV 64 * col1 col2 FROM tab2
----
0
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9404
SELECT col0 / 64 * col1 col2 FROM tab2
----
0
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL ( + SUM( + col1 ) ) + + COUNT( + + ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL ( + SUM ( + col1 ) ) + + COUNT ( + + ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
106

query I rowsort
SELECT ALL - 18 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT DISTINCT + 60 + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + 60 + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
60

query I rowsort
SELECT + - 24 FROM tab2, tab0 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
14

query I rowsort
SELECT ( + + 30 ) + col2 AS col0 FROM tab2
----
53
70
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT - col0 + - - col1 + 96 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT - col0 + - - col1 + 96 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT DISTINCT - ( + ( col0 ) ) * - CAST( NULL AS SIGNED ) - + col2 / - CAST( - col1 AS SIGNED ) FROM tab2 cor0 WHERE - 68 * - 10 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT - ( + ( col0 ) ) * - CAST ( NULL AS INTEGER ) - + col2 / - CAST ( - col1 AS INTEGER ) FROM tab2 cor0 WHERE - 68 * - 10 IS NULL
----

query I rowsort
SELECT ( - - 93 ) + - col0 AS col1 FROM tab2 AS cor0
----
18
29
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9415
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NOT + 29 * ( - - col0 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NOT + 29 * ( - - col0 ) >= NULL
----
0

query I rowsort
SELECT + col2 + - ( + col0 ) FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT col0 + + + 20 FROM tab1 cor0
----
105
111
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT - COUNT( * ) * 60 AS col2 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - COUNT ( * ) * 60 AS col2 FROM tab2 AS cor0
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE - col1 - + + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE - col1 - + + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT + + col0 * col1 col1 FROM tab2 WHERE - + CAST( + - col2 AS SIGNED ) IS NOT NULL
----
2346
4928
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9420
SELECT + + col0 * col1 col1 FROM tab2 WHERE - + CAST ( + - col2 AS INTEGER ) IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - - col0, + 14 + + + 17 - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9422
SELECT + 82 DIV col0 * - 57 FROM tab1
----
-57
0
0

skipif mysql # not compatible
query I rowsort label-9422
SELECT + 82 / col0 * - 57 FROM tab1
----
-57
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT MIN( DISTINCT - 89 ) AS col0 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-9423
SELECT MIN ( DISTINCT - 89 ) AS col0 FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT - COUNT( * ) * 10 + 79 AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT - COUNT ( * ) * 10 + 79 AS col2 FROM tab1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL + + 68 / - CAST( NULL AS SIGNED ) + + - ( + ( + - col1 ) ) + - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL + + 68 / - CAST ( NULL AS INTEGER ) + + - ( + ( + - col1 ) ) + - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 11 - 36 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL + - SUM( - - col1 ) * + 78 AS col0 FROM tab1 cor0
----
-5148

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + - SUM ( - - col1 ) * + 78 AS col0 FROM tab1 cor0
----
-5148

query I rowsort
SELECT DISTINCT + 77 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL - MAX( + 97 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - MAX ( + 97 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-97

query I rowsort
SELECT + ( - - 74 ) * + col1 AS col0 FROM tab1 AS cor0
----
1036
3478
370

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <= + - 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT DISTINCT + col2 * + + ( col0 ) DIV + col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT + col2 * + + ( col0 ) / + col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - col2 * col1 NOT BETWEEN col2 + 15 AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 NOT IN ( - col2 * - 21 + col2 / + col1 * - 86 + + 52 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 93 FROM tab0 AS cor0
----
-1
93
-21
93
-81
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT COUNT( * ) + - 8 AS col1 FROM tab0 AS cor0 WHERE 16 IS NULL
----
-8

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT COUNT ( * ) + - 8 AS col1 FROM tab0 AS cor0 WHERE 16 IS NULL
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - MIN( - col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9438
SELECT - MIN ( - col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT ALL + col1 * 2 * + - col1 AS col2 FROM tab1
----
-392
-4418
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9440
SELECT + col2 * - 19 FROM tab0 WHERE NOT ( col2 ) / + col0 * - + 5 / + ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-1881
-190
-893

skipif mysql # not compatible
query I rowsort label-9440
SELECT + col2 * - 19 FROM tab0 WHERE NOT ( col2 ) / + col0 * - + 5 / + ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-1881
-190
-893

query I rowsort
SELECT 37 * + col2 AS col1 FROM tab2
----
1480
2146
851

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL < - col2 * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9443
SELECT DISTINCT - 33 + - 41 AS col0, - COUNT( * ) col0 FROM tab1
----
-74
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9443
SELECT DISTINCT - 33 + - 41 AS col0, - COUNT ( * ) col0 FROM tab1
----
-74
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - COUNT( + col0 ) + - - MAX( + 38 ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9444
SELECT - COUNT ( + col0 ) + - - MAX ( + 38 ) FROM tab1 AS cor0
----
35

query I rowsort
SELECT - + col1 + + col0 + + col2 * + + col2 * + col0 FROM tab0 AS cor0
----
33069
8766
950793

query I rowsort
SELECT 90 * + 38 - ( - col2 ) FROM tab1 AS cor0
----
3479
3488
3516

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + 61 * + 27 - - col2 AS col1 FROM tab0 cor0
----
-162954
-16460
-77362

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT + + COUNT( ALL - + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + + COUNT ( ALL - + col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col1 - - col1 * + - col1 FROM tab1 AS cor0
----
-210
-2256
-30

query I rowsort
SELECT + col0 * + - col0 - - + col0 AS col0 FROM tab0 AS cor0
----
-210
-7482
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT 5 - + - MIN( ALL + - 51 ) AS col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9452
SELECT 5 - + - MIN ( ALL + - 51 ) AS col2 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT + col1 - 74 FROM tab0
----
-53
-73
7

query III rowsort
SELECT * FROM tab2 WHERE NULL = - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL AVG ( DISTINCT + - 40 ) + - - COUNT( * ) FROM tab0 WHERE - 40 * 5 > - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL AVG ( DISTINCT + - 40 ) + - - COUNT ( * ) FROM tab0 WHERE - 40 * 5 > - 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-9456
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab1
----
3
-3

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT ALL + 0 + + col2 FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 78 NOT BETWEEN NULL AND 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT - MIN( ALL - col2 ) + + 55 FROM tab1 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-9460
SELECT - MIN ( ALL - col2 ) + + 55 FROM tab1 AS cor0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9461
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST( - col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9461
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST ( - col1 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL - 58 + COUNT( * ) FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL - 58 + COUNT ( * ) FROM tab1 AS cor0
----
-55

query II rowsort
SELECT - col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # DIV for integer division: 
query II rowsort label-9464
SELECT + col1 AS col2, - 48 DIV + col1 FROM tab0 cor0
----
1
-48
21
-2
81
0

skipif mysql # not compatible
query II rowsort label-9464
SELECT + col1 AS col2, - 48 / + col1 FROM tab0 cor0
----
1
-48
21
-2
81
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT - COUNT( * ) * + 81 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT - COUNT ( * ) * + 81 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT - CAST( 18 AS SIGNED ) * ( + + ( - col2 ) ) FROM tab0 AS cor0
----
1782
180
846

skipif mysql # not compatible
query I rowsort label-9467
SELECT - CAST ( 18 AS INTEGER ) * ( + + ( - col2 ) ) FROM tab0 AS cor0
----
1782
180
846

query I rowsort
SELECT ALL + col1 * + + col1 + - + 70 - + + 95 FROM tab2 AS cor0
----
2436
4324
5764

query I rowsort
SELECT ALL - ( ( col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( 82 ) FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT MIN( ALL 53 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-9472
SELECT MIN ( ALL 53 ) FROM tab0
----
53

query I rowsort
SELECT ALL - 94 + col2 FROM tab1
----
-26
-35
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9474
SELECT - COUNT( * ) + + 43 * SUM( 55 ) / - COUNT( * ) / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT - COUNT ( * ) + + 43 * SUM ( 55 ) / - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT - 61 * - + col0 AS col2 FROM tab0
----
5307
5917
915

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT 0 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL 3 * + ( + ( COUNT( ALL col1 ) ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 3 * + ( + ( COUNT ( ALL col1 ) ) ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9479
SELECT ALL + 39 AS col1, - COUNT( * ) FROM tab0
----
39
-3

skipif mysql # not compatible
query II rowsort label-9479
SELECT ALL + 39 AS col1, - COUNT ( * ) FROM tab0
----
39
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT + - 56, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-56
-3

skipif mysql # not compatible
query II rowsort label-9480
SELECT + - 56, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-56
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT - 63 + ( - - COUNT( * ) ) FROM tab2 cor0 WHERE NOT ( NOT - - col2 < NULL )
----
-63

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - 63 + ( - - COUNT ( * ) ) FROM tab2 cor0 WHERE NOT ( NOT - - col2 < NULL )
----
-63

query I rowsort
SELECT + ( + + col0 ) FROM tab1 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 48 >= + + 86 - + - col1 / - 51
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( - + 82 + + col2, - col2, + 97 / + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + - + 11 * + col2 AS col0 FROM tab0
----
-100
-470
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT COUNT( * ) + + + MIN( ALL + 81 ) AS col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9487
SELECT COUNT ( * ) + + + MIN ( ALL + 81 ) AS col2 FROM tab0 AS cor0
----
84

query II rowsort
SELECT DISTINCT - col2 - + - col2 AS col0, - 53 FROM tab1 AS cor0
----
0
-53

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + - ( + COUNT( * ) ) + - - 90 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9490
SELECT + - ( + COUNT ( * ) ) + - - 90 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT - col0 * - 69 + - - col1 + - col0 + + col0 FROM tab2 AS cor0
----
3225
4493
5242

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9492
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) - + col1 + col1 + - - 76 + - ( - 60 ) * - + 34 * + 61 * col2, col0 + - - ( + col2 ) * - 39 * + - col0 + - + col2 AS col1 FROM tab1 cor0
----
NULL
190899
NULL
195611
NULL
241355

skipif mysql # not compatible
query II rowsort label-9492
SELECT DISTINCT + - CAST ( NULL AS REAL ) - + col1 + col1 + - - 76 + - ( - 60 ) * - + 34 * + 61 * col2, col0 + - - ( + col2 ) * - 39 * + - col0 + - + col2 AS col1 FROM tab1 cor0
----
NULL
190899
NULL
195611
NULL
241355

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT - + col1 * + col2 BETWEEN NULL AND + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT ALL 45 + + + 38 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab2 WHERE NOT ( NOT + 15 > NULL )
----

query I rowsort
SELECT - 9 - - col2 + - col2 AS col1 FROM tab2
----
-9
-9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT 4 DIV - 74 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT 4 / - 74 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9499
SELECT ALL MAX( DISTINCT + 87 ) DIV + + COUNT( ALL - - 66 ) + 95, 53 AS col2 FROM tab1
----
124
53

skipif mysql # not compatible
query II rowsort label-9499
SELECT ALL MAX ( DISTINCT + 87 ) / + + COUNT ( ALL - - 66 ) + 95, 53 AS col2 FROM tab1
----
124
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT - 93 * COUNT( * ) FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-9500
SELECT - 93 * COUNT ( * ) FROM tab2
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT + - MIN( ALL - - 6 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9501
SELECT + - MIN ( ALL - - 6 ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE NULL IN ( 24 * + 99 * + 27 * + - col2 * 5 )
----

query II rowsort
SELECT DISTINCT ( + col0 ), col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - 93 * 32 * + COUNT( * ) col2 FROM tab1
----
-8928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9504
SELECT - 93 * 32 * + COUNT ( * ) col2 FROM tab1
----
-8928

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT col0 DIV - - col1 AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-9505
SELECT col0 / - - col1 AS col0 FROM tab1
----
1
17
3

query I rowsort
SELECT ALL + 11 * - col1 FROM tab1 AS cor0
----
-154
-517
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9507
SELECT ALL + 18 AS col0, CAST( NULL AS SIGNED ) * 4 AS col0 FROM tab0 cor0
----
18
NULL
18
NULL
18
NULL

skipif mysql # not compatible
query II rowsort label-9507
SELECT ALL + 18 AS col0, CAST ( NULL AS INTEGER ) * 4 AS col0 FROM tab0 cor0
----
18
NULL
18
NULL
18
NULL

query I rowsort
SELECT col2 * - 28 + col0 FROM tab2 AS cor0
----
-1056
-1549
-598

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9509
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9509
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT 3 - + ( MIN( + col1 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT 3 - + ( MIN ( + col1 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 + col1 + + - 76 FROM tab1
----
-48
-66
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL - COUNT( * ) * + + ( - 12 ) col1 FROM tab2
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9513
SELECT ALL - COUNT ( * ) * + + ( - 12 ) col1 FROM tab2
----
36

query I rowsort
SELECT DISTINCT - col0 + 63 AS col2 FROM tab1
----
-22
-28
12

query I rowsort
SELECT - + 35 + - 0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ALL COUNT( DISTINCT - 79 ) + 31 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL COUNT ( DISTINCT - 79 ) + 31 FROM tab0
----
32

query II rowsort
SELECT ALL - 38 + + col1, col0 AS col1 FROM tab0
----
-17
87
-37
97
43
15

query I rowsort
SELECT DISTINCT + ( - + col0 ) + - 67 AS col0 FROM tab2 AS cor0
----
-113
-131
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT - CAST( SUM( DISTINCT - 49 ) AS SIGNED ) + - - 59 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-9519
SELECT - CAST ( SUM ( DISTINCT - 49 ) AS INTEGER ) + - - 59 FROM tab1 AS cor0
----
108

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT col1 + - 98 * col1 FROM tab2 AS cor0
----
-4947
-6499
-7469

query II rowsort
SELECT + 65 * 96, 37 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 677d18d027cb90989bae575a1f409d26

query I rowsort
SELECT ALL col0 + - + 58 * + col0 FROM tab2
----
-2622
-3648
-4275

query I rowsort
SELECT DISTINCT col2 + - - col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL + - COUNT( * ) + 89 FROM tab0 cor0
----
86

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + - COUNT ( * ) + 89 FROM tab0 cor0
----
86

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 - + 30 * - col1 col2 FROM tab2 cor0
----
1629
2109
2409

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col1 FROM tab2 cor0
----
-102
-134
-154

query I rowsort
SELECT DISTINCT + - ( + - 66 ) * col1 FROM tab1 AS cor0
----
3102
330
924

query I rowsort
SELECT - col1 + 89 AS col2 FROM tab1 AS cor0
----
42
75
84

onlyif mysql # DIV for integer division: 
query II rowsort label-9531
SELECT ALL - + 33 DIV - 65 * - col1 * + + col2 AS col1, col0 AS col2 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-9531
SELECT ALL - + 33 / - 65 * - col1 * + + col2 AS col1, col0 AS col2 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT ALL ( - + SUM( DISTINCT + col0 ) ) - - + 46 * COUNT( * ) + COUNT( * ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL ( - + SUM ( DISTINCT + col0 ) ) - - + 46 * COUNT ( * ) + COUNT ( * ) FROM tab2
----
-44

query I rowsort
SELECT - 31 * - col2 * + col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 - + - 85 FROM tab2
----
18
34
8

query I rowsort
SELECT ALL + 32 * col1 * - + col2 AS col2 FROM tab1
----
-102272
-43008
-9440

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT + + MIN( - - 4 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT + + MIN ( - - 4 ) FROM tab0 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9538
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col2, + col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-9538
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col2, + col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 69 + + 86 * - col0 * 0 BETWEEN NULL AND + col1 * + + 79
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9540
SELECT + SUM( ALL + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT + SUM ( ALL + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT DISTINCT - - col2 / col0 + + col1 + 83 * + + col0 * - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - - col2 / col0 + + col1 + 83 * + + col0 * - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT MAX( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT MAX ( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 85 * col0 col0 FROM tab2 cor0
----
-3910
-5440
-6375

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT - - MIN( + 55 ) AS col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9546
SELECT - - MIN ( + 55 ) AS col1 FROM tab2 AS cor0
----
55

query II rowsort
SELECT ALL col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + 46 + + ( + SUM( DISTINCT - 37 ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9548
SELECT + 46 + + ( + SUM ( DISTINCT - 37 ) ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - col1 - CAST( NULL AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - col1 - CAST ( NULL AS INTEGER ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - + 83 AS col0 FROM tab2 AS cor0
----
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 + 39 + ( 85 ) + + + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT COUNT( * ) + - 21 AS col0 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-9552
SELECT COUNT ( * ) + - 21 AS col0 FROM tab0
----
-18

query I rowsort
SELECT + + ( - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * + - col1 + - + 45 AS col2 FROM tab1
----
-2254
-241
-70

query I rowsort
SELECT - - col1 + - 3 + col0 + col0 * - - col0 AS col0 FROM tab1 WHERE 84 IS NOT NULL
----
2663
7312
8416

query II rowsort
SELECT DISTINCT col2, + col2 * + - 33 FROM tab0
----
10
-330
47
-1551
99
-3267

query II rowsort
SELECT ALL - col0 + col0 + - - col1 + 77 + - 18 * + col2, + col2 FROM tab2
----
-286
23
-566
40
-900
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT - COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 30 + col1 FROM tab0 AS cor0
----
-29
-9
51

query II rowsort
SELECT + col1, + 56 AS col2 FROM tab1 AS cor0
----
14
56
47
56
5
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 AS col0, 50 col2 FROM tab0 AS cor0
----
-15
50
-87
50
-97
50

query I rowsort
SELECT ALL 95 * - - ( - 3 ) FROM tab2
----
-285
-285
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT col0 + - col2 DIV - 96 + + col2 * - col0 * + col0 AS col2 FROM tab1
----
-249644
-426190
-563017

skipif mysql # not compatible
query I rowsort label-9563
SELECT col0 + - col2 / - 96 + + col2 * - col0 * + col0 AS col2 FROM tab1
----
-249644
-426190
-563017

query II rowsort
SELECT + col1 + + col2 AS col2, col0 + + 25 FROM tab2
----
117
89
125
100
74
71

query I rowsort
SELECT ALL + 93 + + col0 + col0 FROM tab2
----
185
221
243

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT col0 DIV - col2 + + col1 FROM tab0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-9566
SELECT col0 / - col2 + + col1 FROM tab0
----
1
13
81

query I rowsort
SELECT DISTINCT + + 34 + + col0 + + 34 * + col2 FROM tab1 AS cor0
----
2125
2437
3349

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT 41 * + COUNT( * ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT 41 * + COUNT ( * ) FROM tab1 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-9569
SELECT ALL - 8 DIV + col1 + + col0 - + col1 - - 56 DIV col2 FROM tab1 AS cor0
----
37
44
79

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - 8 / + col1 + + col0 - + col1 - - 56 / col2 FROM tab1 AS cor0
----
37
44
79

query I rowsort
SELECT DISTINCT + ( - + 27 ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL col2 + - col2 AS col0 FROM tab0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT DISTINCT - 71 * 58 AS col1 FROM tab0
----
-4118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT 56 * - COUNT( * ) DIV - COUNT( * ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-9573
SELECT 56 * - COUNT ( * ) / - COUNT ( * ) FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9574
SELECT DISTINCT COUNT( * ) AS col1, - 92 FROM tab1
----
3
-92

skipif mysql # not compatible
query II rowsort label-9574
SELECT DISTINCT COUNT ( * ) AS col1, - 92 FROM tab1
----
3
-92

query I rowsort
SELECT 79 * ( + 19 ) * - 16 * - col1 + 73 AS col2 FROM tab0
----
1945369
24089
504409

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - MAX( + ( + - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9576
SELECT - MAX ( + ( + - col1 ) ) FROM tab2
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT - 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT DISTINCT MAX( DISTINCT col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT ALL 68 * - col2 FROM tab2
----
-1564
-2720
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT DISTINCT - 63 * + MAX( + col1 ) + + 93 * - SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
-14682

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT - 63 * + MAX ( + col1 ) + + 93 * - SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
-14682

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( 88 ) + + col2 AS col2 FROM tab1
----
147
156
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * + + ( 10 ) col1 FROM tab2
----
730
730
730

query I rowsort
SELECT ALL - + 24 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT + col1 * + col2 * col2 FROM tab1 AS cor0
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col2 + col2 AND - + ( - - 46 )
----
-3

skipif mysql # not compatible
query I rowsort label-9586
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col2 + col2 AND - + ( - - 46 )
----
-3

query I rowsort
SELECT DISTINCT - 21 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL 14 AS col0 FROM tab1 cor0
----
14
14
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / ( + 84 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9590
SELECT + 23 DIV - 97 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9590
SELECT + 23 / - 97 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + + 19 AS col1 FROM tab2 WHERE NULL IS NULL
----
19
19
19

query I rowsort
SELECT - 34 * col2 FROM tab0
----
-1598
-3366
-340

query II rowsort
SELECT - 39 AS col1, 89 FROM tab1
----
-39
89
-39
89
-39
89

query I rowsort
SELECT col0 / - 88 AS col2 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT - col0 + + col1 * col1 FROM tab0
----
-96
354
6546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT + + 19 + - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT + + 19 + - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 * + 13 FROM tab2 AS cor0
----
23
-663
40
-1001
58
-871

query II rowsort
SELECT - col2 AS col0, - 7 - - - col0 FROM tab0
----
-10
-94
-47
-22
-99
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + MIN( 10 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9599
SELECT + MIN ( 10 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT DISTINCT - col0 * + - col1 * 70 + 53 + + col0 AS col0 FROM tab2 AS cor0 WHERE col1 + 95 + + 48 IS NOT NULL
----
164319
345077
351878

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT - 29 * + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT - 29 * + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-87

query II rowsort
SELECT col2 AS col2, col1 * - + col0 AS col1 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

query I rowsort
SELECT ALL + col0 * - 23 - + ( - - 2 ) AS col0 FROM tab1 AS cor0
----
-1175
-1957
-2095

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9604
SELECT col1, ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9604
SELECT col1, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT 5 * + col2 FROM tab0 AS cor0
----
235
495
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT + CAST( 27 AS SIGNED ) FROM tab2 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-9606
SELECT + CAST ( 27 AS INTEGER ) FROM tab2 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 10 col2 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL + + 14 AS col0 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL MIN( DISTINCT + 23 ) AS col0 FROM tab1 WHERE NOT + col1 <= - 7
----
23

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL MIN ( DISTINCT + 23 ) AS col0 FROM tab1 WHERE NOT + col1 <= - 7
----
23

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 < - - col0 + + + 10
----
15
81
47

query I rowsort
SELECT DISTINCT - - 55 FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT DISTINCT + 86 DIV 80 - col2 AS col1 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT + 86 / 80 - col2 AS col1 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT DISTINCT - COUNT( ALL - - 32 ) + + COUNT( * ) + - SUM( - col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT - COUNT ( ALL - - 32 ) + + COUNT ( * ) + - SUM ( - col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT ALL - - col0 + - - 7 AS col2 FROM tab1 cor0
----
58
92
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + MIN( ALL - col1 ) * COUNT( * ) + SUM( DISTINCT - - 40 ) AS col0 FROM tab2 AS cor0
----
-191

skipif mysql # not compatible
query I rowsort label-9615
SELECT + MIN ( ALL - col1 ) * COUNT ( * ) + SUM ( DISTINCT - - 40 ) AS col0 FROM tab2 AS cor0
----
-191

query I rowsort
SELECT + 37 AS col0 FROM tab1 AS cor0 WHERE - col0 / col0 IS NOT NULL
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 37 ) col0 FROM tab2 WHERE col2 = 7 * - 39 + - ( col2 )
----

query I rowsort
SELECT ALL 71 + - col1 - - 8 + col0 FROM tab0
----
13
145
175

query I rowsort
SELECT ALL 7 * - col1 + + col0 + + col2 AS col2 FROM tab0
----
-50
-505
189

query I rowsort
SELECT ALL + - ( - col1 ) - + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT + - COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
9

skipif mysql # not compatible
query II rowsort label-9621
SELECT + - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
9

query I rowsort
SELECT + 30 + - 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT + - col2 * - - 41 AS col2 FROM tab1 AS cor0
----
-2419
-2788
-3936

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9624
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9624
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 IS NULL
----

query II rowsort
SELECT - - 47 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
47
-51
47
-85
47
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 7 / - 80 + - - 51 - + col2 > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE NOT + + col0 = - + col2 * + 62 - - + col0 + + - col1 * - 61 + col1
----
-14
-47
-5

query II rowsort
SELECT ALL 71, col2 FROM tab2
----
71
23
71
40
71
58

query II rowsort
SELECT - 82, col1 + ( 55 ) + + col0 + - col1 * 27 AS col2 FROM tab1
----
-82
-1076
-82
-258
-82
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9630
SELECT + CAST( col0 AS SIGNED ) * + col1 + + col1 + + - col2 * + 30 AS col0 FROM tab0
----
-114
-2872
1548

skipif mysql # not compatible
query I rowsort label-9630
SELECT + CAST ( col0 AS INTEGER ) * + col1 + + col1 + + - col2 * + 30 AS col0 FROM tab0
----
-114
-2872
1548

query I rowsort
SELECT ALL col2 * 73 FROM tab0
----
3431
7227
730

query III rowsort
SELECT ALL * FROM tab0 WHERE + 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT 86 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT 86 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9634
SELECT + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT - MIN( ALL - col2 ) * - - 33 AS col2 FROM tab1 cor0
----
3168

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - MIN ( ALL - col2 ) * - - 33 AS col2 FROM tab1 cor0
----
3168

query II rowsort
SELECT ALL col1, 63 AS col0 FROM tab2 AS cor0
----
51
63
67
63
77
63

query I rowsort
SELECT 32 + col0 + + ( + 56 ) FROM tab0
----
103
175
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT COUNT( 9 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9638
SELECT COUNT ( 9 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9639
SELECT DISTINCT - COUNT( ALL - + col0 ) + - + 42 DIV + + COUNT( * ) AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - COUNT ( ALL - + col0 ) + - + 42 / + + COUNT ( * ) AS col1 FROM tab0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT ALL col0 + + col1 + + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
101
108
98

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL col0 + + col1 + + col1 / + col0 AS col2 FROM tab0 AS cor0
----
101
108
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT ALL col2 * col0 DIV - 16 col2 FROM tab1
----
-306
-313
-386

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9642
SELECT ALL col2 * col0 / - 16 col2 FROM tab1
----
-306
-313
-386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT + COUNT( * ) * + ( + 23 ) FROM tab0 WHERE NULL < CAST( + + col0 AS SIGNED ) + - 75 + - ( + col0 ) * 1 * col0 / + col2
----
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT + COUNT ( * ) * + ( + 23 ) FROM tab0 WHERE NULL < CAST ( + + col0 AS INTEGER ) + - 75 + - ( + col0 ) * 1 * col0 / + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT - col2 + + + col2 + + CAST( NULL AS SIGNED ) + col2 + + - 38 + ( col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT - col2 + + + col2 + + CAST ( NULL AS INTEGER ) + col2 + + - 38 + ( col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 59 AS col1, col0 + col1 - + - col0 FROM tab0
----
-59
111
-59
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col2 col0 FROM tab2
----
116
46
80

query I rowsort
SELECT - col2 + col0 + + col2 + - col0 * - + col1 * col1 AS col2 FROM tab2
----
119692
336750
379520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL + COUNT( ALL CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT MIN( + 89 ) AS col2 FROM tab0, tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9649
SELECT MIN ( + 89 ) AS col2 FROM tab0, tab1 AS cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT DISTINCT + col2 * - + ( - col2 ) - CAST( + + col1 AS SIGNED ) col2 FROM tab2 cor0
----
1523
3297
478

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9650
SELECT DISTINCT + col2 * - + ( - col2 ) - CAST ( + + col1 AS INTEGER ) col2 FROM tab2 cor0
----
1523
3297
478

query II rowsort
SELECT ( - ( - col0 ) ), + ( + col0 ) FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + col1 * 36 col0 FROM tab1
----
1709
197
521

query I rowsort
SELECT ALL col0 + 64 AS col2 FROM tab1
----
115
149
155

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) >= col2
----

query III rowsort
SELECT * FROM tab1 WHERE 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT ( - MIN( ALL - col1 ) ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT ( - MIN ( ALL - col1 ) ) AS col1 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT + col0 / + 15 + - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT + col0 / + 15 + - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 10 AS col2 FROM tab2 WHERE NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL + MAX( ALL 87 ) FROM tab1 WHERE - col1 / - 20 NOT IN ( 4 )
----
87

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + MAX ( ALL 87 ) FROM tab1 WHERE - col1 / - 20 NOT IN ( 4 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT + SUM( DISTINCT 13 ) * 3 FROM tab1 WHERE NOT 80 - col2 >= col1 / + col2
----
39

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + SUM ( DISTINCT 13 ) * 3 FROM tab1 WHERE NOT 80 - col2 >= col1 / + col2
----
39

query I rowsort
SELECT + col1 FROM tab2 WHERE col1 >= - 9 / col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL - col1 + CAST( col0 AS SIGNED ) FROM tab0 WHERE NOT 1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL - col1 + CAST ( col0 AS INTEGER ) FROM tab0 WHERE NOT 1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT 58 + - COUNT( * ) AS col0 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-9663
SELECT 58 + - COUNT ( * ) AS col0 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT COUNT( * ) col1 FROM tab1 WHERE col0 + 8 NOT BETWEEN col0 * col0 AND NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9664
SELECT COUNT ( * ) col1 FROM tab1 WHERE col0 + 8 NOT BETWEEN col0 * col0 AND NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT CAST( col2 AS SIGNED ) FROM tab2 WHERE + 27 * col1 + + 27 BETWEEN ( NULL ) AND ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-9665
SELECT CAST ( col2 AS INTEGER ) FROM tab2 WHERE + 27 * col1 + + 27 BETWEEN ( NULL ) AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT 57 - + MAX( + col1 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9666
SELECT 57 - + MAX ( + col1 ) FROM tab1
----
10

query I rowsort
SELECT DISTINCT col2 * + col0 - + 86 AS col1 FROM tab2
----
2474
4264
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 WHERE ( col2 + + 64 * - col2 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + col1 * 47 - col2 * - col0 AS col0 FROM tab2
----
3455
6179
7499

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 / + 38 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9671
SELECT DISTINCT - 16 + + CAST( 72 AS DECIMAL ) / + MIN( + 85 ) col2 FROM tab1 WHERE ( - 99 + col0 ) BETWEEN col2 AND - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9671
SELECT DISTINCT - 16 + + CAST ( 72 AS REAL ) / + MIN ( + 85 ) col2 FROM tab1 WHERE ( - 99 + col0 ) BETWEEN col2 AND - col0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col0 FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + MAX( ALL + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9674
SELECT + MAX ( ALL + col2 ) AS col0 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 > - col1 * + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + col0 * - 42 IN ( 11 - - 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT - MIN( ALL - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - MIN ( ALL - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT - 72 * COUNT( 3 ) FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9678
SELECT - 72 * COUNT ( 3 ) FROM tab0 AS cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT AVG ( + col0 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT AVG ( + col0 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( 92 ) * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN + ( 16 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT 68 * 82 + COUNT( * ) AS col0 FROM tab1
----
5579

skipif mysql # not compatible
query I rowsort label-9682
SELECT 68 * 82 + COUNT ( * ) AS col0 FROM tab1
----
5579

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL + - MIN( + col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL + - MIN ( + col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9684
SELECT DISTINCT + + 79 * ( col2 DIV 87 ) + col1 FROM tab0 AS cor0
----
21
80
81

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT + + 79 * ( col2 / 87 ) + col1 FROM tab0 AS cor0
----
21
80
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT - + MAX( col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - + MAX ( col2 ) AS col0 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9686
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS DECIMAL ) - col2 ) IN ( 93 )
----

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS REAL ) - col2 ) IN ( 93 )
----

query I rowsort
SELECT - + 27 + col0 FROM tab0 AS cor0
----
-12
60
70

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE ( col0 * ( 58 ) ) >= + col1
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 75 - + ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 67 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT ALL COUNT( * ) - + 44 FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL COUNT ( * ) - + 44 FROM tab1 cor0
----
-41

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 42 + - col1 FROM tab2 AS cor0
----
-25
-35
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT COUNT( * ) * MIN( ALL col1 ) AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT COUNT ( * ) * MIN ( ALL col1 ) AS col0 FROM tab2
----
153

query III rowsort
SELECT * FROM tab0 WHERE col1 <> ( + col0 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 26 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 1 FROM tab2 WHERE col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT DISTINCT 10 * + MIN( DISTINCT - col1 ) FROM tab1
----
-470

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT 10 * + MIN ( DISTINCT - col1 ) FROM tab1
----
-470

query I rowsort
SELECT col2 * + - col1 - + col2 FROM tab1
----
-1440
-3264
-354

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + + col2 * + 40 FROM tab2 AS cor0
----
123200
155440
46920

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col1 - + col1
----

query I rowsort
SELECT ALL + + col2 * - + col2 * col1 AS col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT DISTINCT 17 AS col2, + COUNT( * ) AS col0 FROM tab1
----
17
3

skipif mysql # not compatible
query II rowsort label-9704
SELECT DISTINCT 17 AS col2, + COUNT ( * ) AS col0 FROM tab1
----
17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT + ( - 19 ) DIV + 35 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT + ( - 19 ) / + 35 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL - SUM( ALL + 50 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-450

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - SUM ( ALL + 50 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT + + col0 DIV - + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9707
SELECT + + col0 / - + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT MAX( + 15 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9708
SELECT MAX ( + 15 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
15

query II rowsort
SELECT col1, col0 + col1 AS col0 FROM tab0 AS cor0
----
1
98
21
108
81
96

query I rowsort
SELECT - ( + + 90 ) FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9711
SELECT ALL * FROM tab1 AS cor0 WHERE ( - CAST( + 65 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9711
SELECT ALL * FROM tab1 AS cor0 WHERE ( - CAST ( + 65 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 19, col0 AS col2 FROM tab2 AS cor0
----
-19
46
-19
64
-19
75

query I rowsort
SELECT 18 * + + col1 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, - col2 * + col1 FROM tab1 cor0
----
59
-295
68
-3196
96
-1344

onlyif mysql # DIV for integer division: 
query II rowsort label-9715
SELECT col1, col1 DIV - col0 col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9715
SELECT col1, col1 / - col0 col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT DISTINCT col1 / - col0 AS col0 FROM tab2 AS cor0 WHERE ( 99 * - 22 ) > - CAST( NULL AS SIGNED ) * col0 + ( col2 )
----

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT col1 / - col0 AS col0 FROM tab2 AS cor0 WHERE ( 99 * - 22 ) > - CAST ( NULL AS INTEGER ) * col0 + ( col2 )
----

query I rowsort
SELECT DISTINCT - 99 * - col1 AS col1 FROM tab2
----
5049
6633
7623

query I rowsort
SELECT col2 * - 93 FROM tab2 WHERE NOT - 96 BETWEEN col2 AND ( col0 + col1 )
----
-2139
-3720
-5394

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9719
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST( - col0 AS SIGNED ) ) NOT BETWEEN + ( 92 ) AND ( NULL )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-9719
SELECT DISTINCT * FROM tab0 WHERE ( + - CAST ( - col0 AS INTEGER ) ) NOT BETWEEN + ( 92 ) AND ( NULL )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT - COUNT( * ) + + 71 col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9720
SELECT - COUNT ( * ) + + 71 col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL MIN( DISTINCT - + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL MIN ( DISTINCT - + col2 ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT 97 FROM tab1 WHERE - + col1 + + + col2 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + SUM( DISTINCT ( - 88 ) ) AS col2 FROM tab2 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9723
SELECT + SUM ( DISTINCT ( - 88 ) ) AS col2 FROM tab2 cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT + + MIN( col0 ) col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9724
SELECT DISTINCT + + MIN ( col0 ) col1 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT + + 98 AS col0 FROM tab1 AS cor0
----
98

query I rowsort
SELECT 26 + ( 44 ) FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT col1 + + 82 AS col0 FROM tab0
----
103
163
83

query I rowsort
SELECT + - ( - 64 ) * 69 + 7 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ( MIN( ALL 65 ) ) FROM tab0 WHERE ( + + col2 ) IS NOT NULL
----
65

skipif mysql # not compatible
query I rowsort label-9729
SELECT ( MIN ( ALL 65 ) ) FROM tab0 WHERE ( + + col2 ) IS NOT NULL
----
65

query I rowsort
SELECT DISTINCT ( + - col0 ) + + + 84 FROM tab1
----
-1
-7
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9731
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - ( + CAST( NULL AS SIGNED ) ) AND col0 * + 37
----

skipif mysql # not compatible
query III rowsort label-9731
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - ( + CAST ( NULL AS INTEGER ) ) AND col0 * + 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT DISTINCT COUNT( * ) - + - 5 * + 80 - + - COUNT( * ) col0 FROM tab1 cor0
----
406

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9732
SELECT DISTINCT COUNT ( * ) - + - 5 * + 80 - + - COUNT ( * ) col0 FROM tab1 cor0
----
406

query I rowsort
SELECT ALL + ( col0 ) + - col0 * + 82 + + ( + 28 ) AS col2 FROM tab1 cor0
----
-4103
-6857
-7343

query I rowsort
SELECT DISTINCT col1 * + 45 + - - col1 * - col1 + - - col2 * - col0 FROM tab1 AS cor0
----
-4462
-4815
-6282

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + COUNT( * ) - 30 AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9735
SELECT + COUNT ( * ) - 30 AS col1 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT DISTINCT + col1 * + 81 AS col1 FROM tab1 AS cor0
----
1134
3807
405

query I rowsort
SELECT col0 + + col0 - + + col0 AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT col0 + + 92 + - col2 FROM tab1
----
115
118
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT ( - 77 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT ( - 77 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, + col1 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT DISTINCT + 90 * - + 17 * col2 FROM tab2
----
-35190
-61200
-88740

query I rowsort
SELECT DISTINCT + 56 * + 10 FROM tab0 AS cor0
----
560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + + col1 IS NULL OR NOT + col1 + col1 / 76 BETWEEN - col0 + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT COUNT( ALL + - 45 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9744
SELECT COUNT ( ALL + - 45 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT DISTINCT - + col0 DIV + - 23 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT - + col0 / + - 23 FROM tab2 AS cor0
----
2
3

query I rowsort
SELECT ALL ( + 79 ) FROM tab1
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) NOT IN ( col1 ) )
----

query I rowsort
SELECT DISTINCT - 86 * 89 + + ( col0 ) AS col2 FROM tab0 cor0
----
-7557
-7567
-7639

query I rowsort
SELECT - col1 * 77 + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 90 * + col0 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT ( col1 ) * + CAST( NULL AS SIGNED ) - + 26 - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT ( col1 ) * + CAST ( NULL AS INTEGER ) - + 26 - - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 + 80 AS col0 FROM tab2 cor0
----
2196
4176
5705

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9752
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * + - col0 col2, col2 AS col2 FROM tab1 cor0
----
-425
59
-4277
68
-714
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9752
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * + - col0 col2, col2 AS col2 FROM tab1 cor0
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT DISTINCT col2 + 55 FROM tab0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT - MAX( ALL - + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT - MAX ( ALL - + col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT + 90 * - 26 * - + col0 + - 30 + + - col1 AS col2 FROM tab2
----
107559
149653
175403

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT DISTINCT col0 DIV + - 25 FROM tab1 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT col0 / + - 25 FROM tab1 AS cor0
----
-2
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) IN ( + 31 )
----

query II rowsort
SELECT ALL - + col0, col0 + - + 58 * - + col0 AS col2 FROM tab0 AS cor0
----
-15
885
-87
5133
-97
5723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT + CAST( - AVG ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9759
SELECT + CAST ( - AVG ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-40

query II rowsort
SELECT DISTINCT ( - 15 ) AS col1, - col0 FROM tab2
----
-15
-46
-15
-64
-15
-75

query I rowsort
SELECT ALL 14 * - 54 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( + - col1 ) + - col0 AS col0 FROM tab0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + + col0 + col2 col1 FROM tab1 AS cor0
----
183
186
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT + - 87 + - COUNT( col0 ) col0 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9764
SELECT + - 87 + - COUNT ( col0 ) col0 FROM tab1 AS cor0
----
-90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( - col0, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT COUNT( * ) - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-9766
SELECT COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL - MIN( ALL col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL - MIN ( ALL col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - + col0 + col0 BETWEEN ( NULL ) AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT + + MIN( 93 ) FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + + MIN ( 93 ) FROM tab1 cor0
----
93

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col2 + - 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <> ( - ( - + col2 ) + + col2 / + col1 )
----

query I rowsort
SELECT DISTINCT - ( + + 88 ) FROM tab2
----
-88

query I rowsort
SELECT ALL + col0 * + 85 * col2 AS col1 FROM tab2
----
217600
369750
89930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 78 ) col0 FROM tab1
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT - SUM( - - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT - SUM ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT + + 28 * col0 FROM tab2 AS cor0
----
1288
1792
2100

query II rowsort
SELECT DISTINCT - + col0 AS col0, - 92 AS col1 FROM tab0 AS cor0
----
-15
-92
-87
-92
-97
-92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) >= + 54 / + 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + col2 - + - 51 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
151
2260
9852

query I rowsort
SELECT + 37 * + col2 AS col2 FROM tab2
----
1480
2146
851

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT DISTINCT - SUM( ALL + col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT - SUM ( ALL + col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT ALL + 84 * - ( + ( - + 26 ) ) FROM tab0
----
2184
2184
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL SUM( DISTINCT col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL SUM ( DISTINCT col0 ) FROM tab0 cor0
----
199

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( + col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT + COUNT( DISTINCT + 12 ) * 7 AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9788
SELECT + COUNT ( DISTINCT + 12 ) * 7 AS col1 FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9789
SELECT - col2, CAST( NULL AS DECIMAL ) * + + 73 AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-9789
SELECT - col2, CAST ( NULL AS REAL ) * + + 73 AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT + 16 + - col1 AS col1 FROM tab0 AS cor0
----
-5
-65
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9791
SELECT 53 DIV + - col1 col0 FROM tab0
----
-2
-53
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9791
SELECT 53 / + - col1 col0 FROM tab0
----
-2
-53
0

query I rowsort
SELECT col0 - - + ( col0 ) FROM tab2 WHERE + col2 >= - col2
----
128
150
92

query I rowsort
SELECT col2 * - + 27 AS col0 FROM tab2
----
-1080
-1566
-621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT + COUNT( * ) FROM tab1 WHERE + CAST( NULL AS SIGNED ) * + col1 - - 16 / + col1 <= - col2
----
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT + COUNT ( * ) FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * + col1 - - 16 / + col1 <= - col2
----
0

query II rowsort
SELECT ALL col0 + col0 AS col2, 1 * 26 AS col0 FROM tab2
----
128
26
150
26
92
26

query III rowsort
SELECT * FROM tab1 WHERE + 61 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 78 - + col0 FROM tab2 WHERE col0 BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - COUNT( ALL + 48 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9798
SELECT - COUNT ( ALL + 48 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT - 35 + + - col1 FROM tab2
----
-102
-112
-86

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT ALL ( COUNT( - + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL ( COUNT ( - + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL col2 * + + col1 AS col1 FROM tab2 cor0 WHERE NOT + 31 + col1 + col2 IS NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT 20 * COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT 20 * COUNT ( * ) FROM tab1
----
60

onlyif mysql # DIV for integer division: 
query III rowsort label-9805
SELECT - col0 DIV + + ( + 69 ), - col1 col2, + 5 + - col2 AS col2 FROM tab0
----
9 values hashing to 1661866edde3404251e32358f47d7e8b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-9805
SELECT - col0 / + + ( + 69 ), - col1 col2, + 5 + - col2 AS col2 FROM tab0
----
9 values hashing to 1661866edde3404251e32358f47d7e8b

query I rowsort
SELECT col2 - 97 - + 12 * - - col1 + 58 AS col1 FROM tab0
----
-281
-964
48

query II rowsort
SELECT ALL ( 55 ) - col1 AS col1, col1 AS col1 FROM tab0
----
-26
81
34
21
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL - + 81 * + 92 + SUM( - 36 ) FROM tab0 cor0
----
-7560

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - + 81 * + 92 + SUM ( - 36 ) FROM tab0 cor0
----
-7560

query I rowsort
SELECT 27 - - - col2 AS col0 FROM tab0 AS cor0
----
-20
-72
17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9810
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( - + CAST( NULL AS SIGNED ) ) * + 65 + - + CAST( col0 AS DECIMAL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( - + CAST ( NULL AS INTEGER ) ) * + 65 + - + CAST ( col0 AS REAL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - + 2 FROM tab0 AS cor0
----
13
85
95

query II rowsort
SELECT DISTINCT + + col0 AS col1, + 18 AS col0 FROM tab2 cor0
----
46
18
64
18
75
18

query II rowsort
SELECT DISTINCT - + col2, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - ( - 88 ) FROM tab0 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + COUNT( * ) * 34 AS col1 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9815
SELECT + COUNT ( * ) * 34 AS col1 FROM tab1 AS cor0
----
102

query I rowsort
SELECT col0 * - - 25 FROM tab0 AS cor0
----
2175
2425
375

query II rowsort
SELECT - 95, ( col1 ) FROM tab2 AS cor0
----
-95
51
-95
67
-95
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT + COUNT( ALL + col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9818
SELECT + COUNT ( ALL + col0 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + MAX( ALL - + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9819
SELECT + MAX ( ALL - + col2 ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT 7 * col0 FROM tab1
----
357
595
637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT + COUNT( * ) DIV - - ( - 94 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9821
SELECT + COUNT ( * ) / - - ( - 94 ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT - - MAX( + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9823
SELECT - - MAX ( + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9824
SELECT DISTINCT + ( 57 ) AS col1, CAST( 38 AS SIGNED ) FROM tab0 WHERE NOT ( NOT 95 IS NULL )
----

skipif mysql # not compatible
query II rowsort label-9824
SELECT DISTINCT + ( 57 ) AS col1, CAST ( 38 AS INTEGER ) FROM tab0 WHERE NOT ( NOT 95 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9825
SELECT ALL - col0 DIV - CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL - col0 / - CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
0
0
8

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT IN ( + + 13, - col1 + col1 )
----

query I rowsort
SELECT col0 * - col1 + - 26 + 42 AS col2 FROM tab0 cor0
----
-1199
-1811
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9828
SELECT + col0 DIV - CAST( + + ( - col2 ) AS SIGNED ) + + col2 * - col2 * + 90 FROM tab2 AS cor0
----
-143999
-302759
-47608

skipif mysql # not compatible
query I rowsort label-9828
SELECT + col0 / - CAST ( + + ( - col2 ) AS INTEGER ) + + col2 * - col2 * + 90 FROM tab2 AS cor0
----
-143999
-302759
-47608

query II rowsort
SELECT + col0 + + + col2 + + col0, col2 FROM tab2 AS cor0
----
115
23
168
40
208
58

query I rowsort
SELECT + col0 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
658
860
9504

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 7 IS NOT NULL
----

query I rowsort
SELECT + 79 + + 63 + - col0 + - + ( + col2 ) + col0 + - + 17 + + col0 AS col1 FROM tab1
----
148
151
80

query III rowsort
SELECT * FROM tab2 WHERE NULL > - + 4 * + + col0
----

query I rowsort
SELECT ALL - col2 * + 52 AS col0 FROM tab0
----
-2444
-5148
-520

query III rowsort
SELECT * FROM tab0 WHERE + col2 - 34 NOT IN ( col1, - col0 + + col1, + 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 65, + col1 AS col1 FROM tab1
----
65
14
65
47
65
5

query I rowsort
SELECT - ( - 27 ) AS col1 FROM tab2
----
27
27
27

query I rowsort
SELECT + ( + 59 ) * - - col2 FROM tab2 AS cor0
----
1357
2360
3422

query II rowsort
SELECT + col2 AS col1, col2 + + 94 FROM tab0 AS cor0
----
10
104
47
141
99
193

query I rowsort
SELECT - + col1 - 87 AS col0 FROM tab1 AS cor0
----
-101
-134
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9841
SELECT DISTINCT + + MIN( ALL - - 34 ) * - + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9841
SELECT DISTINCT + + MIN ( ALL - - 34 ) * - + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 / + - col2 + col2 - - 14 + - 33 IS NOT NULL
----

query I rowsort
SELECT + col2 * col2 * 52 FROM tab1 AS cor0
----
181012
240448
479232

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT - SUM( ALL + 68 ) * - 8 AS col2 FROM tab2 AS cor0
----
1632

skipif mysql # not compatible
query I rowsort label-9844
SELECT - SUM ( ALL + 68 ) * - 8 AS col2 FROM tab2 AS cor0
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT COUNT( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT COUNT ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT ALL ( + ( - - col1 ) ) * col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9847
SELECT ALL MAX( col2 ) DIV 82 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL MAX ( col2 ) / 82 AS col0 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 12 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col2 + + col0 - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + col1 + + + 12 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * col2 * - 82 col0 FROM tab0
----
-79564518
-82000
-8513486

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT - COUNT( DISTINCT - col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9853
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT ALL 46 * + col2 AS col2 FROM tab1 WHERE NOT + + 79 > + col2
----
4416

query II rowsort
SELECT ALL - col2 AS col0, - 40 AS col0 FROM tab1 cor0
----
-59
-40
-68
-40
-96
-40

query I rowsort
SELECT DISTINCT - + col2 * - col0 + - 21 - col2 + - - 85 * col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
5349
9044
9966

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL + 90 * - MAX( - col1 ) FROM tab1
----
450

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + 90 * - MAX ( - col1 ) FROM tab1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + COUNT( * ) - - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT + COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab1 AS cor0 WHERE NOT + 36 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 25 AS col0 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT ALL - col0 * + - col0 + - col2 * - col1 AS col0 FROM tab0 cor0
----
4032
7779
9508

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 92 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - + col1 * - col2 + + 68 FROM tab1 AS cor0
----
1412
3264
363

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9865
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - + CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9865
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - + CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 81 * + col2 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
396480
406156
501160

query I rowsort
SELECT ALL - col0 + col2 + + col1 + col0 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT ( + 30 ) + col0 + + 86 FROM tab0
----
131
203
213

query I rowsort
SELECT DISTINCT 42 + - + 93 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT - col0 + CAST( col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT - col0 + CAST ( col0 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - 19 AS col2 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT + col1 + - + 81 + 50 * - + col2 AS col1 FROM tab0
----
-2350
-5030
-560

query I rowsort
SELECT + col2 * - + 25 + col1 FROM tab1
----
-1470
-1653
-2386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL CAST( NULL AS SIGNED ) * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL CAST ( NULL AS INTEGER ) * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT DISTINCT - + col1 * 61 * - - 33 + CAST( + col1 AS SIGNED ) - 64 + - col1 * col2 FROM tab0 AS cor0
----
-166843
-2175
-42526

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT - + col1 * 61 * - - 33 + CAST ( + col1 AS INTEGER ) - 64 + - col1 * col2 FROM tab0 AS cor0
----
-166843
-2175
-42526

query I rowsort
SELECT ALL - - col0 FROM tab2 AS cor0 WHERE - 28 * + + col1 BETWEEN - col2 * 38 AND col0 / col1 + - col1
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 40 > - col1 + ( + + 78 )
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT col0 DIV - - 40 AS col1 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-9878
SELECT col0 / - - 40 AS col1 FROM tab0
----
0
2
2

query I rowsort
SELECT col1 * + ( - col1 ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT COUNT( * ) col1 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL, tab0 AS cor2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9881
SELECT ALL COUNT( * ) col2, SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
3
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9881
SELECT ALL COUNT ( * ) col2, SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3
-103

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + + ( + - col0 ) <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - - 62 * ( - 27 ) AS col0 FROM tab2 AS cor0
----
-112158
-128898
-85374

onlyif mysql # DIV for integer division: 
query II rowsort label-9884
SELECT col2 col0, - 53 + - col2 DIV + + col2 AS col2 FROM tab1 AS cor0
----
59
-54
68
-54
96
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9884
SELECT col2 col0, - 53 + - col2 / + + col2 AS col2 FROM tab1 AS cor0
----
59
-54
68
-54
96
-54

query I rowsort
SELECT - ( + ( + col1 ) ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT 46 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + ( - col1 ) * - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 9 + - col2 IS NOT NULL
----

query I rowsort
SELECT col0 * 35 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT - 12 AS col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) IS NULL ) )
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + + - col2 col1 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT MIN( - - 3 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT MIN ( - - 3 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9893
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / col1 / CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9893
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / col1 / CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + COUNT( + 49 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9894
SELECT + COUNT ( + 49 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL + 25 * - CAST( NULL AS SIGNED ) + COUNT( ALL col1 ) * + - COUNT( * ) * 59 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL + 25 * - CAST ( NULL AS INTEGER ) + COUNT ( ALL col1 ) * + - COUNT ( * ) * 59 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 5 * - - 56 * + - col0 * + col0 + + col2 + + col1 * - 93 AS col0 FROM tab2 AS cor0
----
-1154001
-1581173
-597200

query I rowsort
SELECT + col2 + + col0 * + 19 FROM tab2 AS cor0
----
1256
1483
897

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 83 + - col1 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN col0 AND + + col2 AND 94 IS NOT NULL
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9900
SELECT DISTINCT + COUNT( * ) AS col1, 7 FROM tab1 AS cor0
----
3
7

skipif mysql # not compatible
query II rowsort label-9900
SELECT DISTINCT + COUNT ( * ) AS col1, 7 FROM tab1 AS cor0
----
3
7

query I rowsort
SELECT + 32 + - col0 AS col1 FROM tab0 AS cor0
----
-55
-65
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT ALL + 83 * - + COUNT( * ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + 83 * - + COUNT ( * ) FROM tab0 AS cor0
----
-249

query I rowsort
SELECT ( + + col1 ) + col0 + + col1 + + col0 * col1 FROM tab0 cor0
----
1392
1956
196

query I rowsort
SELECT DISTINCT - 11 * - col1 - + + col0 + col0 AS col2 FROM tab0 AS cor0
----
11
231
891

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT - col2 + col2 + + 32 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT - col2 + col2 + + 32 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + AVG ( + col2 ) - ( 54 ) * - 25 FROM tab1 AS cor0 WHERE NOT 1 >= - ( - col2 ) + col0 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + AVG ( + col2 ) - ( 54 ) * - 25 FROM tab1 AS cor0 WHERE NOT 1 >= - ( - col2 ) + col0 * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT 8 <> + col2
----
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT 8 <> + col2
----
0

query I rowsort
SELECT - 79 * - col0 AS col2 FROM tab2
----
3634
5056
5925

query III rowsort
SELECT ALL * FROM tab1 WHERE - 7 >= NULL
----

query I rowsort
SELECT DISTINCT 47 + + + 47 FROM tab1, tab2 AS cor0
----
94

query II rowsort
SELECT ALL col2 + + + 22, + 38 AS col1 FROM tab1
----
118
38
81
38
90
38

query I rowsort
SELECT ALL col0 + - col0 * - col2 AS col1 FROM tab0
----
720
957
9700

query II rowsort
SELECT - + col1 - + col2 AS col2, 83 FROM tab1 cor0
----
-110
83
-115
83
-64
83

query I rowsort
SELECT + col0 - - col2 + + 89 * + 37 FROM tab1 AS cor0
----
3437
3440
3452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT DISTINCT 54 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT 54 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - ( + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT + + 22 IN ( - + col0, col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + + 22 IN ( - + col0, col1 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 14 * CAST( - + 81 AS SIGNED ) + - col0 + col2 IS NOT NULL )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9920
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 14 * CAST ( - + 81 AS INTEGER ) + - col0 + col2 IS NOT NULL )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 + - 97 + + col1 AND - + col1 * + col2 / - ( + + col0 ) * + col0
----

query I rowsort
SELECT DISTINCT col1 * - 90 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT DISTINCT + 39 DIV 48 - + + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + 39 / 48 - + + col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + 37 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
1520
2204
874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT + CAST( 34 AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + CAST ( 34 AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9926
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - 68 * - + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9926
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - 68 * - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL + COUNT( col2 ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9927
SELECT ALL + COUNT ( col2 ) col2 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT col1 IS NOT NULL )
----

query II rowsort
SELECT ALL - col1 AS col2, + col1 FROM tab2
----
-51
51
-67
67
-77
77

query II rowsort
SELECT - col0, - 35 AS col0 FROM tab1
----
-51
-35
-85
-35
-91
-35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > ( - + col2 ) + 10 + - 84 * + 64
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * col1 * - + col2 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT ALL col0 * 83 * + 0 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT col0 AS col0, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

query II rowsort
SELECT - 45 AS col0, - 55 AS col2 FROM tab2
----
-45
-55
-45
-55
-45
-55

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT - COUNT( 59 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9939
SELECT - COUNT ( 59 ) FROM tab0
----
-3

query I rowsort
SELECT ALL + 71 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - 48, - 28 AS col2 FROM tab2, tab0 AS cor0
----
18 values hashing to 9f5b09160f09976df00ab45290a69b9b

query I rowsort
SELECT ALL - 60 * - 73 + + - col0 - - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 + col0 + 89 AND NULL
----

query I rowsort
SELECT DISTINCT - + ( + col2 ) - + col0 * - col2 FROM tab2 AS cor0
----
1035
2520
4292

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 / - + 39 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - 83 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT - 2 DIV - - col0 - - + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9946
SELECT - 2 / - - col0 - - + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT DISTINCT - - COUNT( DISTINCT + col2 ) DIV - ( + 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 55 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - - COUNT ( DISTINCT + col2 ) / - ( + 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 55 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col2, col0 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT - 16 + + col1 FROM tab0
----
-15
5
65

query I rowsort
SELECT col0 + - col2 + - 79 FROM tab2
----
-55
-56
-62

query I rowsort
SELECT 91 + - 20 AS col0 FROM tab0
----
71
71
71

query I rowsort
SELECT - + 43 * - col0 AS col2 FROM tab2 WHERE NULL <> - col1
----

query III rowsort
SELECT * FROM tab2 WHERE + 77 < ( - col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9954
SELECT ALL - 10 DIV + + col2 + - + 51 col0, col1 FROM tab2
----
-51
51
-51
67
-51
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9954
SELECT ALL - 10 / + + col2 + - + 51 col0, col1 FROM tab2
----
-51
51
-51
67
-51
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9955
SELECT + col1, col2 * - + CAST( NULL AS SIGNED ) + + col1 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9955
SELECT + col1, col2 * - + CAST ( NULL AS INTEGER ) + + col1 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT SUM( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 58 col0, col0 AS col2 FROM tab0 AS cor0
----
58
15
58
87
58
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 + - 53 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9958
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 + - 53 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 * + col2 * col0 - col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9960
SELECT + - 71 * MAX( + + col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT + - 71 * MAX ( + + col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9961
SELECT ALL 92 DIV + COUNT( * ), + COUNT( - 40 ) AS col0 FROM tab1 AS cor0
----
30
3

skipif mysql # not compatible
query II rowsort label-9961
SELECT ALL 92 / + COUNT ( * ), + COUNT ( - 40 ) AS col0 FROM tab1 AS cor0
----
30
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 59 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9963
SELECT DISTINCT + ( + col0 ) + + - col2 col1, + col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9963
SELECT DISTINCT + ( + col0 ) + + - col2 col1, + col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT - + 48 AS col2 FROM tab1 cor0
----
-48
-48
-48

query I rowsort
SELECT ALL + 55 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 * - col0 + - 32 AS col2 FROM tab2 AS cor0
----
1018
612
864

query I rowsort
SELECT DISTINCT + 19 + 19 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT - COUNT( * ) + - 79 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - COUNT ( * ) + - 79 FROM tab0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 24 col1, - 5 col2 FROM tab1
----
24
-5
24
-5
24
-5

query I rowsort
SELECT ALL 39 + - col0 FROM tab2
----
-25
-36
-7

query III rowsort
SELECT * FROM tab1 WHERE NOT 4 = ( - col1 + + col2 + + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - 11 < - col2 * + col2 * - + col2 * - - col1
----

query I rowsort
SELECT ALL col2 * - col2 * - 65 + + 80 FROM tab2
----
104080
218740
34465

query I rowsort
SELECT ALL 80 * + - ( col2 ) FROM tab1
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT - 23 * + - COUNT( * ) + - + 87 AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT - 23 * + - COUNT ( * ) + - + 87 AS col0 FROM tab1
----
-18

query I rowsort
SELECT ALL + 23 * + + ( + 78 ) FROM tab0
----
1794
1794
1794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9978
SELECT DISTINCT COUNT( * ) DIV - 24 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT COUNT ( * ) / - 24 FROM tab2 cor0
----
0

query I rowsort
SELECT - col1 * + + col0 * + 67 FROM tab2 cor0
----
-157182
-330176
-336675

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL CAST( + col0 AS SIGNED ) + 34 FROM tab0
----
121
131
49

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL CAST ( + col0 AS INTEGER ) + 34 FROM tab0
----
121
131
49

query I rowsort
SELECT DISTINCT 96 - + col2 FROM tab0 AS cor0
----
-3
49
86

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE 60 IN ( ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9984
SELECT DISTINCT + col0, + col2 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9984
SELECT DISTINCT + col0, + col2 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 10 col0 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL - 67 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT + 35 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col2 FROM tab0
----
-63
-63
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9990
SELECT - CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9990
SELECT - CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - - 18 ) FROM tab0 cor0
----
18

query I rowsort
SELECT ALL - - col0 + + 90 FROM tab0 WHERE NOT - 89 * - col1 + - col2 IS NULL
----
105
177
187

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - MIN( DISTINCT + - 45 ) col1 FROM tab1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9993
SELECT ALL - MIN ( DISTINCT + - 45 ) col1 FROM tab1
----
45

query I rowsort
SELECT DISTINCT - 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

query I rowsort
SELECT 18 * - 56 AS col0 FROM tab0 cor0
----
-1008
-1008
-1008

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT + + MIN( - + col1 ) AS col2 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9997
SELECT + + MIN ( - + col1 ) AS col2 FROM tab1 cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - 72 col1 FROM tab2 AS cor0
----
-51
-72
-67
-72
-77
-72

query I rowsort
SELECT - + 56 FROM tab2 WHERE NOT 55 * col0 / 8 < NULL
----

