sqllogictest
Artifact Content
Not logged in

Artifact af0e194e517630d4a269218a7e2800aa38245009:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - col0 * 81
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col1 * - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT - COUNT( * ) DIV SUM( + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT - COUNT ( * ) / SUM ( + col2 ) FROM tab0
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL = ( col2 * col1 )
----

query I rowsort
SELECT col1 - 49 FROM tab2
----
18
2
28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 23 )
----

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

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

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

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

query I rowsort
SELECT 40 FROM tab0 WHERE ( + col0 ) IN ( 54 * col1 - - col1 )
----

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

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

query I rowsort
SELECT + 15 - col0 FROM tab0
----
-72
-82
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT + 5 - COUNT( DISTINCT col0 ) * COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-13
SELECT + 5 - COUNT ( DISTINCT col0 ) * COUNT ( * ) FROM tab2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-14
SELECT DISTINCT CAST( - col1 AS SIGNED ) - 28 FROM tab1
----
-33
-42
-75

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT CAST ( - col1 AS INTEGER ) - 28 FROM tab1
----
-33
-42
-75

query I rowsort
SELECT DISTINCT + 88 - + col1 * + 30 FROM tab1
----
-1322
-332
-62

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT DISTINCT 84 + SUM( - ( 45 ) + col1 ) AS col2 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT 84 + SUM ( - ( 45 ) + col1 ) AS col2 FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-18
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-18
SELECT DISTINCT - ( COUNT ( * ) ) col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT 1 - - COUNT( * ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-19
SELECT 1 - - COUNT ( * ) AS col1 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT COUNT( * ) AS col1 FROM tab1 WHERE ( - ( - col1 ) ) - + 30 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-20
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE ( - ( - col1 ) ) - + 30 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL 96 * COUNT( * ) AS col0 FROM tab1 WHERE ( - col2 ) NOT IN ( + col0 + 23 )
----
288

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL 96 * COUNT ( * ) AS col0 FROM tab1 WHERE ( - col2 ) NOT IN ( + col0 + 23 )
----
288

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

query I rowsort
SELECT + col2 * 6 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ( + COUNT( * ) ) + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
18

skipif mysql # not compatible
query I rowsort label-24
SELECT ( + COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
18

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + - MIN( - col1 ) * - 65 FROM tab2 AS cor0
----
-5005

skipif mysql # not compatible
query I rowsort label-29
SELECT + - MIN ( - col1 ) * - 65 FROM tab2 AS cor0
----
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT + + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-30
SELECT + + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL - MAX( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 7 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL - MAX ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 7 + - col0 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-32
SELECT MAX ( + 53 ) FROM tab0 AS cor0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT ALL - col2 + col2 + - ( col2 ) DIV - col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL - col2 + col2 + - ( col2 ) / - col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT + 69 - - ( col0 ) AS col0 FROM tab0
----
156
166
84

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT ALL 81 * + col0 * - col1 + + col1 DIV col2 FROM tab2
----
-190024
-399167
-407024

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL 81 * + col0 * - col1 + + col1 / col2 FROM tab2
----
-190024
-399167
-407024

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT + col2 DIV + col0 - 49 FROM tab1
----
-48
-49
-49

skipif mysql # not compatible
query I rowsort label-36
SELECT + col2 / + col0 - 49 FROM tab1
----
-48
-49
-49

query I rowsort
SELECT + 87 - + col0 AS col2 FROM tab2
----
12
23
41

query I rowsort
SELECT ALL col1 + - + 86 AS col1 FROM tab1
----
-39
-72
-81

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

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

query I rowsort
SELECT + col0 * 43 FROM tab1 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT col2 FROM tab1 WHERE 84 IN ( col0 )
----

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

query I rowsort
SELECT col0 + + - col0 + 70 AS col0 FROM tab0
----
70
70
70

query I rowsort
SELECT ( + + col1 ) + col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL ( - + col2 ) * 92 - col0 AS col0 FROM tab0
----
-1007
-4339
-9205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 WHERE col0 = col1
----

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col0 = col1
----

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

query I rowsort
SELECT + col0 * 35 + col2 AS col0 FROM tab1 AS cor0
----
1881
3034
3253

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

skipif mysql # not compatible
query I rowsort label-49
SELECT 78 / col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT + + 86 - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
95

skipif mysql # not compatible
query I rowsort label-50
SELECT + + 86 - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
95

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

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT DISTINCT + COUNT( * ), 54 AS col1 FROM tab0 AS cor0
----
3
54

skipif mysql # not compatible
query II rowsort label-52
SELECT DISTINCT + COUNT ( * ), 54 AS col1 FROM tab0 AS cor0
----
3
54

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

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

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

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

query II rowsort
SELECT - + col2, 69 + + + 32 AS col0 FROM tab0 AS cor0
----
-10
101
-47
101
-99
101

query I rowsort
SELECT - - col0 * + - 24 - + col0 AS col1 FROM tab1 AS cor0
----
-1275
-2125
-2275

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

query I rowsort
SELECT + col1 * col0 * 69 * - 51 + + col0 * + ( col0 ) FROM tab2 AS cor0
----
-17337536
-17677350
-8253458

query I rowsort
SELECT col0 * - 45 * + + col2 FROM tab2
----
-115200
-195750
-47610

query I rowsort
SELECT ALL col1 * - col1 * - col2 * - + col1 FROM tab0
----
-24977727
-92610
-99

query II rowsort
SELECT DISTINCT + col1 * - 47 AS col2, col0 FROM tab1
----
-2209
91
-235
85
-658
51

query I rowsort
SELECT ALL - - col0 + ( - col0 ) FROM tab0 WHERE NOT - 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL COUNT( * ) * SUM( + col0 ) AS col1 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL COUNT ( * ) * SUM ( + col0 ) AS col1 FROM tab0
----
597

query I rowsort
SELECT DISTINCT col2 + + 90 + + col0 + + ( + ( col1 ) ) FROM tab0 AS cor0
----
208
233
287

query I rowsort
SELECT ALL - 14 FROM tab2 WHERE NULL BETWEEN - col0 AND - - 68 OR NULL <= ( + ( - 18 ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT COUNT( * ) FROM tab0 WHERE ( + col0 ) BETWEEN ( 48 ) * - 45 AND col0
----
3

skipif mysql # not compatible
query I rowsort label-66
SELECT COUNT ( * ) FROM tab0 WHERE ( + col0 ) BETWEEN ( 48 ) * - 45 AND col0
----
3

query I rowsort
SELECT ALL 12 AS col2 FROM tab0 WHERE NOT ( - 27 ) NOT IN ( + 59 * - + col2 )
----

query I rowsort
SELECT - + 18 * - - 6 + + - col0 FROM tab0 AS cor0
----
-123
-195
-205

query I rowsort
SELECT 10 + + + col0 FROM tab0 cor0
----
107
25
97

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

skipif mysql # not compatible
query I rowsort label-70
SELECT - COUNT ( DISTINCT + ( col2 ) ) + COUNT ( ALL 52 ) * COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT DISTINCT - + MIN( + 80 ) AS col0 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT - + MIN ( + 80 ) AS col0 FROM tab0 AS cor0
----
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-73
SELECT * FROM tab2 AS cor0 WHERE - CAST( + col2 AS SIGNED ) < - 29
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-73
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) < - 29
----
64
77
40
75
67
58

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

query I rowsort
SELECT col0 * 28 * - - col0 * - 74 + + - col1 + + col2 FROM tab2 AS cor0
----
-11655009
-4384380
-8486949

query I rowsort
SELECT ALL + ( col1 ) - - + col0 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab1 WHERE + col0 / col0 + + 59 IS NULL
----

query I rowsort
SELECT DISTINCT + 20 - 12 AS col1 FROM tab1
----
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-81
SELECT DISTINCT COUNT( - col0 ) - + 16 FROM tab0 cor0 WHERE col1 NOT BETWEEN + CAST( - ( - - 61 ) AS DECIMAL ) AND 39
----
-15

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT COUNT ( - col0 ) - + 16 FROM tab0 cor0 WHERE col1 NOT BETWEEN + CAST ( - ( - - 61 ) AS REAL ) AND 39
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-82
SELECT DISTINCT - ( - CAST( + - COUNT( DISTINCT - 66 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - ( - CAST ( + - COUNT ( DISTINCT - 66 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL + COUNT( * ) - - COUNT( * ) + 17 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL + COUNT ( * ) - - COUNT ( * ) + 17 FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT - - col0 FROM tab0 WHERE NOT col1 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-84
SELECT - - col0 FROM tab0 WHERE NOT col1 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT + 62 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

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

query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col0 FROM tab1 WHERE ( - 76 * + col1 ) = col2 + + - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-88
SELECT 0 DIV + col2, col2 AS col1 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-88
SELECT 0 / + col2, col2 AS col1 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query II rowsort label-89
SELECT + - MAX( ALL - 72 ) AS col0, 53 FROM tab2 AS cor0
----
72
53

skipif mysql # not compatible
query II rowsort label-89
SELECT + - MAX ( ALL - 72 ) AS col0, 53 FROM tab2 AS cor0
----
72
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-90
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + 20 + + CAST( NULL AS DECIMAL ) + + + 85 - col1 >= + + col2 - + 7
----

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + col0 FROM tab2 AS cor0 WHERE + 20 + + CAST ( NULL AS REAL ) + + + 85 - col1 >= + + col2 - + 7
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-93
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - - ( + 97 ) * - + CAST( NULL AS SIGNED ) * ( + col0 ) >= col2
----

skipif mysql # not compatible
query III rowsort label-93
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - - ( + 97 ) * - + CAST ( NULL AS INTEGER ) * ( + col0 ) >= col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * - 66 AS col0 FROM tab0 AS cor0
----
-1386
-5346
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT DISTINCT col1 DIV 94 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT col1 / 94 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 38 >= - col2 / 82
----

query I rowsort
SELECT ALL + ( col0 ) * 3 FROM tab2
----
138
192
225

query I rowsort
SELECT + col2 * ( - + 98 ) FROM tab1
----
-5782
-6664
-9408

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 33 - + col2 + - - ( col1 ) + + - col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + MIN( - col2 ) * + SUM( - col2 ) FROM tab2 cor0
----
7018

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + MIN ( - col2 ) * + SUM ( - col2 ) FROM tab2 cor0
----
7018

query II rowsort
SELECT ALL + col0 + + - 32 AS col1, + col0 + + col2 AS col1 FROM tab0
----
-17
62
55
97
65
196

query I rowsort
SELECT DISTINCT - 21 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-106
SELECT ALL - CAST( NULL AS DECIMAL ) + - col2 * - col1 * + 45 col2, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-106
SELECT ALL - CAST ( NULL AS REAL ) + - col2 * - col1 * + 45 col2, col0 AS col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL + - col2 * 56 - col0 FROM tab0 cor0
----
-2647
-5641
-647

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-108
SELECT DISTINCT - col0 * col1 col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-108
SELECT DISTINCT - col0 * col1 col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1215
NULL
-1827
NULL
-97
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - 29 BETWEEN NULL AND - - 38 + - col0
----

query II rowsort
SELECT DISTINCT + 59 * - 19, 61 * + col1 AS col2 FROM tab0 AS cor0
----
-1121
1281
-1121
4941
-1121
61

query I rowsort
SELECT DISTINCT - col2 + + - 39 FROM tab2 AS cor0
----
-62
-79
-97

query I rowsort
SELECT DISTINCT - col2 + + - col0 AS col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-114
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + + + COUNT( * ) col1, - MAX( 64 ) * + 56 FROM tab0
----
NULL
-3584

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-114
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + COUNT ( * ) col1, - MAX ( 64 ) * + 56 FROM tab0
----
NULL
-3584

query I rowsort
SELECT ALL + 92 + col1 AS col2 FROM tab1
----
106
139
97

query II rowsort
SELECT + col1 AS col0, - col2 / + + 98 AS col0 FROM tab1 WHERE col0 + - 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT - 56 + - + 8 * - COUNT( * ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-117
SELECT - 56 + - + 8 * - COUNT ( * ) FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT MAX( DISTINCT + col0 ) + - 53 AS col2 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-118
SELECT MAX ( DISTINCT + col0 ) + - 53 AS col2 FROM tab1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-119
SELECT ALL - 93 * 46 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - 93 * 46 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + + ( + - col0 ) AS col2 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + 13 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-598
-832
-975

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

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

query II rowsort
SELECT - col2 AS col1, col2 * + - 75 - + + 57 FROM tab0 AS cor0
----
-10
-807
-47
-3582
-99
-7482

query I rowsort
SELECT 53 * - 9 * + 89 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT + SUM( + + 3 ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-126
SELECT + SUM ( + + 3 ) FROM tab2 cor0
----
9

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

query I rowsort
SELECT 38 AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 52 AND - - 79
----

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT - 58 * - - col2 DIV - col2 AS col2 FROM tab2 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-129
SELECT - 58 * - - col2 / - col2 AS col2 FROM tab2 AS cor0
----
58
58
58

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

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

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + 94 + - 13 + 31 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL 87 * + - ( 37 ) * - + col2 * + col0 + - col1 AS col0 FROM tab1
----
15760210
16143280
19919125

query II rowsort
SELECT - col1 + + col0, col0 FROM tab1
----
37
51
44
91
80
85

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-134
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-134
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT col2 * - 34 AS col1 FROM tab2 AS cor0
----
-1360
-1972
-782

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

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT + MIN( ALL + - 32 ) col0 FROM tab1 cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT + MIN ( ALL + - 32 ) col0 FROM tab1 cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-138
SELECT + col1 + - + col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - col2 + col1 NOT IN ( col1 * - + 45 )
----
-37
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-138
SELECT + col1 + - + col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - col2 + col1 NOT IN ( col1 * - + 45 )
----
-37
NULL
-44
NULL
-80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT ALL - ( + CAST( + col1 AS SIGNED ) ) * - col1 AS col2 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - ( + CAST ( + col1 AS INTEGER ) ) * - col1 AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL - 53 - col0 FROM tab2
----
-117
-128
-99

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

query I rowsort
SELECT DISTINCT 70 - - col0 AS col1 FROM tab0 AS cor0
----
157
167
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col2 ) * - col0 col0, 39 AS col0 FROM tab0 AS cor0
----
705
39
870
39
9603
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-145
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * 8 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT + - CAST ( NULL AS REAL ) * 8 FROM tab2 AS cor0
----
NULL

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

query II rowsort
SELECT + 64 * + 41 * - col2 AS col2, 75 AS col2 FROM tab1 AS cor0
----
-154816
75
-178432
75
-251904
75

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - 72 FROM tab2 AS cor0
----
-1656
-2880
-4176

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 69 + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-155
SELECT ALL + - col0 DIV col1, 11 col0 FROM tab1 AS cor0
----
-1
11
-17
11
-3
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-155
SELECT ALL + - col0 / col1, 11 col0 FROM tab1 AS cor0
----
-1
11
-17
11
-3
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-157
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( + 80 ) / ( + ( + col1 ) ) + CAST( NULL AS SIGNED ) + + ( + ( + + col0 ) ) / 65 + - 90 )
----

skipif mysql # not compatible
query I rowsort label-157
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( + 80 ) / ( + ( + col1 ) ) + CAST ( NULL AS INTEGER ) + + ( + ( + + col0 ) ) / 65 + - 90 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col1 col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT ALL + COUNT( DISTINCT 64 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + COUNT ( DISTINCT 64 ) FROM tab1
----
1

query I rowsort
SELECT ALL + col0 * + 15 FROM tab0 AS cor0
----
1305
1455
225

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT DISTINCT - 36 DIV - - 18 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT - 36 / - - 18 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab2 cor0
----
56

query II rowsort
SELECT DISTINCT - col2, - col0 * - + 9 * + - 12 AS col1 FROM tab2 AS cor0
----
-23
-4968
-40
-6912
-58
-8100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 12 * - + col1 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + - col2 + - + 39 FROM tab0 cor0
----
-138
-49
-86

query I rowsort
SELECT ALL + 43 FROM tab0 AS cor0 WHERE NULL <= NULL
----

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

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

query I rowsort
SELECT + ( - + col2 ) FROM tab1 WHERE NOT - 92 / 56 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + MIN( ALL ( col2 ) ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-171
SELECT + MIN ( ALL ( col2 ) ) AS col0 FROM tab1
----
59

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - + col2 ) AS col2 FROM tab2
----
-23
-40
-58

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col1 * - 45 * + ( + + col2 ) FROM tab1 AS cor0
----
-13275
-143820
-60480

query III rowsort
SELECT - 50 * col1 * - col0 AS col2, col0 AS col0, + col1 - - 78 FROM tab2
----
9 values hashing to fef248476c58acb1b648a4e608496a18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-179
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 * - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-179
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 * - - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 11 >= 18
----

query II rowsort
SELECT - 38 AS col2, 45 AS col2 FROM tab1 WHERE NOT ( ( col0 / col1 + ( + 56 ) NOT IN ( - col2 ) ) )
----

query I rowsort
SELECT DISTINCT 35 * 38 FROM tab1
----
1330

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

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

query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 AS col2 FROM tab0 cor0
----
123
2
3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 60 col0 FROM tab0 AS cor0
----
60
60
60

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-188
SELECT DISTINCT COUNT( * ) AS col0, 56 FROM tab0 AS cor0
----
3
56

skipif mysql # not compatible
query II rowsort label-188
SELECT DISTINCT COUNT ( * ) AS col0, 56 FROM tab0 AS cor0
----
3
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * 35 AS col2, 73 col2 FROM tab0
----
3045
73
3395
73
525
73

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab1 cor1 ON NOT + 38 * + + 54 + + 14 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 + - col0 * + col2 * + col1 * col2 <> 32
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * + + 18 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 95 + + col1 FROM tab1 AS cor0
----
-48
-81
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-196
SELECT 94 DIV MIN( + 90 ) * - 64 + + 7, + COUNT( * ) AS col2 FROM tab1
----
-57
3

skipif mysql # not compatible
query II rowsort label-196
SELECT 94 / MIN ( + 90 ) * - 64 + + 7, + COUNT ( * ) AS col2 FROM tab1
----
-57
3

query I rowsort
SELECT DISTINCT + col2 + + 59 AS col1 FROM tab2
----
117
82
99

query III rowsort
SELECT * FROM tab2 WHERE + + 11 = NULL
----

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

query I rowsort
SELECT - 27 * - 44 * col2 AS col0 FROM tab1
----
114048
70092
80784

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE ( + 54 ) NOT IN ( + 21, ( + 5 ), 36 - - 73 )
----
51
85
91

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT + col0 - 45 DIV + col2 AS col2 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-204
SELECT + col0 - 45 / + col2 AS col2 FROM tab2 AS cor0
----
45
63
75

query I rowsort
SELECT + 78 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

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

query I rowsort
SELECT DISTINCT - col0 - - 67 AS col0 FROM tab1
----
-18
-24
16

query I rowsort
SELECT - 25 + + + col0 FROM tab2 cor0
----
21
39
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + - 2 * + col1 col1 FROM tab2 AS cor0
----
-36
-4
-56

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-212
SELECT DISTINCT + - 15 col1, CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-15
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-212
SELECT DISTINCT + - 15 col1, CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-15
NULL

query I rowsort
SELECT + 38 AS col0 FROM tab2 AS cor0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT - 99 * col2 * - col2 FROM tab0
----
218691
970299
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT - ( + - COUNT( DISTINCT + ( - 57 ) ) ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-215
SELECT - ( + - COUNT ( DISTINCT + ( - 57 ) ) ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT + COUNT( * ) * - - 33 AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-216
SELECT + COUNT ( * ) * - - 33 AS col2 FROM tab1
----
99

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - 80 * + - 0 + + - col1 / + 42 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * + + col2 + col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT 39 * - col0 AS col2 FROM tab0
----
-3393
-3783
-585

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-223
SELECT + - col2 * + CAST( NULL AS SIGNED ) + + col0 - col2 + - + col0 * + 64 + + + col1, col0 DIV + 19 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
0
NULL
4
NULL
5

skipif mysql # not compatible
query II rowsort label-223
SELECT + - col2 * + CAST ( NULL AS INTEGER ) + + col0 - col2 + - + col0 * + 64 + + + col1, col0 / + 19 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
0
NULL
4
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT ALL + SUM( + + col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + SUM ( + + col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL + 32 * - COUNT( * ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + 32 * - COUNT ( * ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 31 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT DISTINCT 92 + - 94 DIV + col2 col1 FROM tab2 cor0
----
88
90
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-228
SELECT DISTINCT 92 + - 94 / + col2 col1 FROM tab2 cor0
----
88
90
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-229
SELECT ALL + CAST( col2 AS SIGNED ) + + 90 * col2 FROM tab1 AS cor0
----
5369
6188
8736

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + CAST ( col2 AS INTEGER ) + + 90 * col2 FROM tab1 AS cor0
----
5369
6188
8736

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT ( - - col2 ) - + 38 DIV - + ( 95 ) + col0 AS col0 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-230
SELECT ( - - col2 ) - + 38 / - + ( 95 ) + col0 AS col0 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT 63 * 61 - + col0 AS col1 FROM tab2
----
3768
3779
3797

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-233
SELECT - CAST( NULL AS SIGNED ) / - + col0 * - 32 AS col1 FROM tab0 WHERE - col1 + - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-233
SELECT - CAST ( NULL AS INTEGER ) / - + col0 * - 32 AS col1 FROM tab0 WHERE - col1 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT ( + - ( COUNT( * ) ) ) + + - ( - 40 ) AS col2 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-234
SELECT ( + - ( COUNT ( * ) ) ) + + - ( - 40 ) AS col2 FROM tab0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - col1 * + 81 col2 FROM tab0 cor0
----
-147987
-7857
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-236
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - 70 * - + ( CAST( - ( + col2 ) AS SIGNED ) ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - 70 * - + ( CAST ( - ( + col2 ) AS INTEGER ) ) IS NULL
----
51
67
77

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 10 * - + 33 < + 53 - - col0 * 69
----

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

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

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

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

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

query I rowsort
SELECT 50 * - col0 AS col2 FROM tab1
----
-2550
-4250
-4550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT DISTINCT + CAST( + + 64 AS SIGNED ) * 72 AS col1 FROM tab0
----
4608

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT + CAST ( + + 64 AS INTEGER ) * 72 AS col1 FROM tab0
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT DISTINCT + COUNT( * ) * + 23 * + - MAX( DISTINCT - 27 ) AS col0 FROM tab0
----
1863

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT + COUNT ( * ) * + 23 * + - MAX ( DISTINCT - 27 ) AS col0 FROM tab0
----
1863

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 64 col1 FROM tab0
----
3008
6336
640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-248
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-249
SELECT - COUNT( * ), 40 AS col0 FROM tab1
----
-3
40

skipif mysql # not compatible
query II rowsort label-249
SELECT - COUNT ( * ), 40 AS col0 FROM tab1
----
-3
40

query II rowsort
SELECT ALL col0 AS col2, + col2 * + 85 AS col0 FROM tab1
----
51
8160
85
5015
91
5780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - col0 * - - 36 AS col0 FROM tab2
----
-23
-1656
-40
-2304
-58
-2700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, + 90 col1 FROM tab2 AS cor0
----
51
90
67
90
77
90

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

query I rowsort
SELECT DISTINCT + 55 * - col0 FROM tab0 AS cor0
----
-4785
-5335
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT - 86 * - COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT - 86 * - COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
255

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-258
SELECT - col0 + col2 / - col0 * 35 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT - 79 + COUNT( - - ( 92 ) ) AS col1 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-259
SELECT - 79 + COUNT ( - - ( 92 ) ) AS col1 FROM tab0 AS cor0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-260
SELECT DISTINCT + + COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) AS col2, ( - + ( COUNT( ALL + + col2 ) ) ) FROM tab2 AS cor0
----
-9
-3

skipif mysql # not compatible
query II rowsort label-260
SELECT DISTINCT + + COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col2, ( - + ( COUNT ( ALL + + col2 ) ) ) FROM tab2 AS cor0
----
-9
-3

query I rowsort
SELECT + col0 * - - col0 * - col0 * - col1 + + col2 + - col2 FROM tab0 AS cor0
----
13828563
273375
912673

query I rowsort
SELECT + col2 + + 86 AS col0 FROM tab2 AS cor0
----
109
126
144

query I rowsort
SELECT DISTINCT 56 + - ( + + col1 ) + - - col2 AS col2 FROM tab0 AS cor0
----
154
22
45

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-264
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE col0 * - col1 * + CAST ( - + 61 AS INTEGER ) IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - 90 * col1 + - + 96, - col2 AS col2 FROM tab2 AS cor0
----
-4686
-23
-6126
-58
-7026
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT DISTINCT 15 * - ( + - col0 ) DIV col0 * - + 50 FROM tab0
----
-750

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT 15 * - ( + - col0 ) / col0 * - + 50 FROM tab0
----
-750

query I rowsort
SELECT ALL + 31 + + col0 AS col0 FROM tab2
----
106
77
95

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

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

query I rowsort
SELECT ALL col1 + 40 * + - col1 AS col1 FROM tab1
----
-1833
-195
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT DISTINCT COUNT( * ) - - + 59 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT COUNT ( * ) - - + 59 FROM tab0
----
62

query I rowsort
SELECT ALL col1 + + 57 FROM tab0
----
138
58
78

query I rowsort
SELECT - 15 * + 75 FROM tab2
----
-1125
-1125
-1125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ALL + + COUNT( * ) * 64 FROM tab1 cor0
----
192

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + + COUNT ( * ) * 64 FROM tab1 cor0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT - col1 - col0 - 2 DIV - col1 FROM tab0 AS cor0
----
-108
-96
-96

skipif mysql # not compatible
query I rowsort label-275
SELECT - col1 - col0 - 2 / - col1 FROM tab0 AS cor0
----
-108
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-276
SELECT + - MAX( ALL + CAST( + - 96 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-276
SELECT + - MAX ( ALL + CAST ( + - 96 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
96

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

query I rowsort
SELECT + ( col0 ) * 97 FROM tab0 AS cor0
----
1455
8439
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53, 60 col2 FROM tab0
----
53
60
53
60
53
60

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT - MIN( DISTINCT + + 16 ) AS col0 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-280
SELECT - MIN ( DISTINCT + + 16 ) AS col0 FROM tab0
----
-16

query I rowsort
SELECT DISTINCT - ( + 64 ) FROM tab0
----
-64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT - MIN( + col0 ) * 38 col0, ( + - 72 ) FROM tab1
----
-1938
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-284
SELECT - MIN ( + col0 ) * 38 col0, ( + - 72 ) FROM tab1
----
-1938
-72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab0 AS cor0 WHERE - col1 + 48 IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT - col1 DIV - + 36 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-287
SELECT - col1 / - + 36 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-288
SELECT ALL - ( 30 ) FROM tab1 AS cor0 WHERE ( NULL ) <= + - col1 / 30 / col1 * - col2 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL - ( 30 ) FROM tab1 AS cor0 WHERE ( NULL ) <= + - col1 / 30 / col1 * - col2 + + CAST ( NULL AS REAL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT 96 + + CAST( + 63 AS SIGNED ) FROM tab0
----
159
159
159

skipif mysql # not compatible
query I rowsort label-290
SELECT 96 + + CAST ( + 63 AS INTEGER ) FROM tab0
----
159
159
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT ALL - col1 + + + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL - col1 + + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( + col0 ) ) * + 36 + - - 50 col2 FROM tab0
----
-3082
-3442
-490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-293
SELECT - SUM( ALL - 11 ) DIV + + 84 + 92 AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-293
SELECT - SUM ( ALL - 11 ) / + + 84 + 92 AS col1 FROM tab1
----
92

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

query I rowsort
SELECT AVG ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND - + col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-296
SELECT CAST ( NULL AS INTEGER ) AS col2, ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query II rowsort label-297
SELECT 87 AS col1, col0 - + col0 DIV + col2 FROM tab0 AS cor0
----
87
15
87
79
87
97

skipif mysql # not compatible
query II rowsort label-297
SELECT 87 AS col1, col0 - + col0 / + col2 FROM tab0 AS cor0
----
87
15
87
79
87
97

query II rowsort
SELECT 61, + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
61
59
61
68
61
96

query I rowsort
SELECT ALL - + col1 * - - col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT 65 * col0 - - 18 FROM tab0 cor0
----
5673
6323
993

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-301
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 / CAST( NULL AS SIGNED ) - 81 AND 43 / - col0
----

skipif mysql # not compatible
query III rowsort label-301
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 / CAST ( NULL AS INTEGER ) - 81 AND 43 / - col0
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT col2 DIV col2 * + col1 + col2 * + 97 * + + 85 AS col0 FROM tab1
----
486460
560707
791534

skipif mysql # not compatible
query I rowsort label-304
SELECT col2 / col2 * + col1 + col2 * + 97 * + + 85 AS col0 FROM tab1
----
486460
560707
791534

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

query I rowsort
SELECT + col2 - col2 FROM tab0 WHERE - col0 * col0 = NULL
----

query I rowsort
SELECT ALL - - 90 FROM tab0 WHERE NOT col1 BETWEEN col2 AND NULL
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-308
SELECT DISTINCT - 42 - - CAST( - 84 AS SIGNED ) AS col2 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-308
SELECT DISTINCT - 42 - - CAST ( - 84 AS INTEGER ) AS col2 FROM tab0
----
-126

query II rowsort
SELECT - + col1 + - + col0, col0 FROM tab1 AS cor0
----
-138
91
-65
51
-90
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, + 30 AS col1 FROM tab2
----
51
30
67
30
77
30

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

query I rowsort
SELECT ALL col2 * + 25 AS col2 FROM tab0 AS cor0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT + MIN( - 68 ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-314
SELECT + MIN ( - 68 ) FROM tab0 AS cor0
----
-68

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

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND - + col1
----

query II rowsort
SELECT + - 89, col0 FROM tab0 AS cor0
----
-89
15
-89
87
-89
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL + + SUM( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT ALL col1 AS col0, - col1 * - 4 FROM tab1 AS cor0
----
14
56
47
188
5
20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT - ( - ( col1 ) ) * col1 DIV + col2 + + + 71 col2 FROM tab0
----
115
210
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-323
SELECT - ( - ( col1 ) ) * col1 / + col2 + + + 71 col2 FROM tab0
----
115
210
71

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT - col1 BETWEEN ( col2 ) AND + col2 * + ( ( - 96 ) ) + + col1
----
3

skipif mysql # not compatible
query I rowsort label-324
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col1 BETWEEN ( col2 ) AND + col2 * + ( ( - 96 ) ) + + col1
----
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-326
SELECT - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-326
SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-327
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * + 50 + - - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-327
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * + 50 + - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 46 + + 8 FROM tab2
----
54
54
54

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - + COUNT( * ) + 2 * + 8 FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-332
SELECT - + COUNT ( * ) + 2 * + 8 FROM tab1 cor0
----
13

query I rowsort
SELECT + 56 * + col1 + - + 66 FROM tab2 AS cor0
----
2790
3686
4246

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

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT + 40 AS col2, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
40
-3

query I rowsort
SELECT ALL + 98 + 73 FROM tab2 AS cor0
----
171
171
171

query I rowsort
SELECT - - 18 * + - 7 AS col1 FROM tab0 AS cor0
----
-126
-126
-126

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

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

query I rowsort
SELECT DISTINCT + 9 + - - 38 * + + 62 FROM tab2
----
2365

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT ( + SUM( ALL 44 ) ) AS col2 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-339
SELECT ( + SUM ( ALL 44 ) ) AS col2 FROM tab2
----
132

query I rowsort
SELECT 28 - - col2 FROM tab2
----
51
68
86

query II rowsort
SELECT + 44 AS col0, col1 * + + col2 FROM tab0 AS cor0
----
44
210
44
3807
44
99

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT 56 * - + COUNT( * ) FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT 56 * - + COUNT ( * ) FROM tab0 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-343
SELECT COUNT( * ) AS col0, - 69 * + - MAX( + 19 ) * + + 98 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-1156302

skipif mysql # not compatible
query II rowsort label-343
SELECT COUNT ( * ) AS col0, - 69 * + - MAX ( + 19 ) * + + 98 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-1156302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-344
SELECT ALL CAST( NULL AS SIGNED ) / CAST( - 71 AS SIGNED ) * MIN( col2 ) + - MAX( DISTINCT col1 ), + 76 AS col1 FROM tab1 AS cor0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-344
SELECT ALL CAST ( NULL AS INTEGER ) / CAST ( - 71 AS INTEGER ) * MIN ( col2 ) + - MAX ( DISTINCT col1 ), + 76 AS col1 FROM tab1 AS cor0
----
NULL
76

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col2 AND + 83
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + + col0
----

query II rowsort
SELECT ALL col0 + + col0 + col1 AS col2, col2 + - + col2 FROM tab2
----
143
0
205
0
217
0

query I rowsort
SELECT + ( 40 ) FROM tab1
----
40
40
40

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT - + col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-350
SELECT ALL + 8 DIV + col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + 8 / + col1 FROM tab0
----
0
0
8

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, + 42 + - + col0 FROM tab2 AS cor0 WHERE 37 IS NOT NULL
----
51
-4
67
-33
77
-22

query I rowsort
SELECT ALL - 52 * + + 15 FROM tab1 WHERE NOT NULL NOT IN ( 96, - col2 )
----

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

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

query II rowsort
SELECT - - col1 - - col0, + 68 * + 16 AS col1 FROM tab1 AS cor0
----
138
1088
65
1088
90
1088

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

skipif mysql # not compatible
query I rowsort label-356
SELECT + + COUNT ( * ) / + COUNT ( * ) - + 0 AS col2 FROM tab2 AS cor0
----
1

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

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

query I rowsort
SELECT col0 + + + ( - col1 ) FROM tab2
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 93 * col1 + col2, 88 + - + col0 - + - col1 col2 FROM tab0
----
-1943
22
-7486
154
6
-8

query I rowsort
SELECT col2 + - 49 AS col2 FROM tab1
----
10
19
47

query I rowsort
SELECT - 18 + - col1 AS col2 FROM tab0
----
-19
-39
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT COUNT( + 43 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-362
SELECT COUNT ( + 43 ) FROM tab0
----
3

query I rowsort
SELECT ALL 37 * - + col1 FROM tab0
----
-2997
-37
-777

query I rowsort
SELECT + col0 * + col2 * + - col2 * + ( - - 67 ) AS col2 FROM tab2
----
-1630378
-16904100
-6860800

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < + + 59
----

query I rowsort
SELECT ALL - 47 * + 29 AS col1 FROM tab1 AS cor0
----
-1363
-1363
-1363

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

skipif mysql # not compatible
query I rowsort label-368
SELECT + COUNT ( * ) * + - 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-639

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

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

query I rowsort
SELECT DISTINCT + ( + 72 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < 92 / + 91 - + 10
----

query I rowsort
SELECT - + col2 * - ( 48 ) * col1 + + col2 AS col1 FROM tab2 AS cor0
----
147880
186586
56327

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT + SUM( ALL + + 94 ) AS col2 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-372
SELECT + SUM ( ALL + + 94 ) AS col2 FROM tab0 AS cor0
----
282

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

query II rowsort
SELECT DISTINCT col1 * - col2, col1 FROM tab0
----
-210
21
-3807
81
-99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-375
SELECT + 51 DIV + - COUNT( * ) AS col2 FROM tab0 WHERE + col2 - col0 DIV 51 NOT BETWEEN ( NULL ) AND ( - col2 + + col0 )
----
-25

skipif mysql # not compatible
query I rowsort label-375
SELECT + 51 / + - COUNT ( * ) AS col2 FROM tab0 WHERE + col2 - col0 / 51 NOT BETWEEN ( NULL ) AND ( - col2 + + col0 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-376
SELECT ALL - COUNT( ALL - col1 ) DIV - - 85 - + COUNT( - 54 ) * - + MIN( + 1 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-376
SELECT ALL - COUNT ( ALL - col1 ) / - - 85 - + COUNT ( - 54 ) * - + MIN ( + 1 ) col2 FROM tab1
----
3

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

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

query I rowsort
SELECT col1 + ( + - 97 ) + - + col2 FROM tab2
----
-60
-69
-88

query I rowsort
SELECT ALL + + 61 AS col0 FROM tab2 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-381
SELECT + - 77 * - - MAX ( DISTINCT + + col0 ) + + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-7472

query I rowsort
SELECT DISTINCT + 11 + + col1 + + - 56 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT ALL + col2 * - + col1, 84 * - col0 AS col1 FROM tab1 AS cor0
----
-1344
-4284
-295
-7140
-3196
-7644

query I rowsort
SELECT ALL - - 94 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query II rowsort
SELECT 77 AS col0, ( - 62 ) * + - 54 AS col2 FROM tab0 WHERE NULL IS NULL
----
77
3348
77
3348
77
3348

query I rowsort
SELECT col0 * + - 37 + + - 45 AS col1 FROM tab0 AS cor0
----
-3264
-3634
-600

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 39 >= col2 / + + 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - 73 FROM tab0 AS cor0
----
-1533
-5913
-73

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

query II rowsort
SELECT - 26 AS col0, 47 FROM tab0 AS cor0
----
-26
47
-26
47
-26
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-393
SELECT ALL - 12 col0, ( + CAST( NULL AS SIGNED ) ) + + col0 * - col2 + + col1 * col2 FROM tab1 AS cor0
----
-12
NULL
-12
NULL
-12
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-393
SELECT ALL - 12 col0, ( + CAST ( NULL AS INTEGER ) ) + + col0 * - col2 + + col1 * col2 FROM tab1 AS cor0
----
-12
NULL
-12
NULL
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT DISTINCT MAX( + ( + 13 ) ) AS col2 FROM tab2 WHERE + + 52 IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT MAX ( + ( + 13 ) ) AS col2 FROM tab2 WHERE + + 52 IS NOT NULL
----
13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT + 42 DIV col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-396
SELECT + 42 / col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
1
1

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

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

query I rowsort
SELECT DISTINCT + - 3 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 47 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

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

query II rowsort
SELECT ALL 76, + 4 AS col1 FROM tab0 AS cor0
----
76
4
76
4
76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL + COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-404
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 + - col2 * - col2 NOT IN ( - CAST( NULL AS SIGNED ), + col1, - 10 + - col1 + + - col0 + + 95 )
----

skipif mysql # not compatible
query III rowsort label-404
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 + - col2 * - col2 NOT IN ( - CAST ( NULL AS INTEGER ), + col1, - 10 + - col1 + + - col0 + + 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT SUM( - 15 ) AS col2 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-405
SELECT SUM ( - 15 ) AS col2 FROM tab1 AS cor0
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL - MAX( - ( + 55 ) ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL - MAX ( - ( + 55 ) ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT 52 * + SUM( - 94 ) col0 FROM tab2
----
-14664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-410
SELECT 52 * + SUM ( - 94 ) col0 FROM tab2
----
-14664

query II rowsort
SELECT DISTINCT col2, - 17 FROM tab1
----
59
-17
68
-17
96
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + MIN( ALL + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-412
SELECT + MIN ( ALL + col1 ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT - 33 + - + ( - MAX( + col2 ) ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-413
SELECT - 33 + - + ( - MAX ( + col2 ) ) FROM tab2
----
25

query I rowsort
SELECT DISTINCT - 98 * - col1 FROM tab2
----
4998
6566
7546

query I rowsort
SELECT + + col0 * + + col2 + + 22 AS col0 FROM tab1 cor0
----
4918
5037
6210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-416
SELECT DISTINCT - 75 DIV - COUNT( * ) FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT - 75 / - COUNT ( * ) FROM tab0 cor0
----
25

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

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - 7 / CAST ( NULL AS INTEGER ) + 43 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT 54 DIV - 74 * - col2 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-418
SELECT 54 / - 74 * - col2 col0 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT - 0 * - col2 - + col2 + 8 FROM tab0
----
-2
-39
-91

query I rowsort
SELECT - col2 * col1 * - col2 - - + 67 FROM tab2 AS cor0
----
123267
225455
27046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-422
SELECT DISTINCT + - CAST( - - col0 AS SIGNED ) - 93 FROM tab2 AS cor0
----
-139
-157
-168

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + - CAST ( - - col0 AS INTEGER ) - 93 FROM tab2 AS cor0
----
-139
-157
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT ALL COUNT( * ) * + COUNT( - 95 ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL COUNT ( * ) * + COUNT ( - 95 ) FROM tab0 cor0
----
9

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 20 / - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT + COUNT( * ) * - + COUNT( * ) FROM tab1
----
-9

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

query I rowsort
SELECT + col2 * - 80 * 40 FROM tab1
----
-188800
-217600
-307200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-428
SELECT 72 DIV - COUNT( * ) AS col0 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-428
SELECT 72 / - COUNT ( * ) AS col0 FROM tab0
----
-24

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

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

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

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

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

query I rowsort
SELECT col1 * col0 + 98 * + col2 FROM tab0
----
2807
5821
9799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-433
SELECT DISTINCT 88 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT 88 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT 90 + - COUNT( * ) FROM tab0 WHERE col0 + col2 IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-435
SELECT 90 + - COUNT ( * ) FROM tab0 WHERE col0 + col2 IS NOT NULL
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT + 51 DIV col0 + 68 FROM tab1 WHERE col0 IS NOT NULL
----
68
68
69

skipif mysql # not compatible
query I rowsort label-436
SELECT + 51 / col0 + 68 FROM tab1 WHERE col0 IS NOT NULL
----
68
68
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 14 * + col1 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT col2 * + ( col1 * col1 ) + + 86 AS col1 FROM tab2
----
237246
260448
59909

query I rowsort
SELECT DISTINCT 56 + col1 AS col2 FROM tab1
----
103
61
70

query I rowsort
SELECT col1 * col0 + - col1 * - col0 AS col0 FROM tab1
----
1428
850
8554

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT 26 + + COUNT( * ) FROM tab0 WHERE + col0 < ( 87 + - 58 * + col1 )
----
26

skipif mysql # not compatible
query I rowsort label-442
SELECT 26 + + COUNT ( * ) FROM tab0 WHERE + col0 < ( 87 + - 58 * + col1 )
----
26

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( 44 ) BETWEEN ( + col0 ) AND - 11
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-444
SELECT DISTINCT col0 / col1 FROM tab1 WHERE ( col0 * col0 ) <= + ( + CAST( col2 AS DECIMAL ) ) + col1
----

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT col0 / col1 FROM tab1 WHERE ( col0 * col0 ) <= + ( + CAST ( col2 AS REAL ) ) + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + - col2 col0 FROM tab2
----
-55
-72
-90

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 = ( col1 )
----

query I rowsort
SELECT ALL col1 * 13 + + col1 FROM tab2
----
1078
714
938

query I rowsort
SELECT ALL - 30 - - col2 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
29
38
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 35 col0 FROM tab0
----
-1645
-3465
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL - 73 * + SUM( col0 ) FROM tab1
----
-16571

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - 73 * + SUM ( col0 ) FROM tab1
----
-16571

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT COUNT( * ) FROM tab0 WHERE NOT - col1 + + ( + col2 ) * - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-451
SELECT COUNT ( * ) FROM tab0 WHERE NOT - col1 + + ( + col2 ) * - col2 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-452
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col1 FROM tab1 WHERE NOT - col0 NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 WHERE NOT - col0 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT col2 * 95 FROM tab0 WHERE NOT col0 * 89 NOT BETWEEN - 88 AND 38
----

query I rowsort
SELECT ALL + col2 * - 64 FROM tab0
----
-3008
-6336
-640

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

query I rowsort
SELECT ALL + col1 + - col0 * - 44 AS col0 FROM tab0
----
3849
4269
741

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-457
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IN ( - 56 )
----

skipif mysql # not compatible
query III rowsort label-457
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - 56 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT COUNT( DISTINCT 30 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-459
SELECT COUNT ( DISTINCT 30 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT col2 - col1 FROM tab2 WHERE NOT ( - 31 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT - 36 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 36 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * - col1 col2 FROM tab1
----
-2397
-255
-714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * ( col0 * 30 ) BETWEEN col0 + col2 * col1 AND col2 / 24 + 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL ( + 38 ) * + 0 AS col1 FROM tab0 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 52 * 33 )
----
0

skipif mysql # not compatible
query I rowsort label-467
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 52 * 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT + SUM( DISTINCT - 73 ) FROM tab0 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + SUM ( DISTINCT - 73 ) FROM tab0 cor0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT 70 DIV col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
1
7

skipif mysql # not compatible
query I rowsort label-469
SELECT 70 / col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
1
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( - 21 + 35 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-472
SELECT ALL * FROM tab0 WHERE NOT CAST( - col2 AS DECIMAL ) >= - col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-472
SELECT ALL * FROM tab0 WHERE NOT CAST ( - col2 AS REAL ) >= - col1
----
97
1
99

query I rowsort
SELECT + - 93 * col0 FROM tab1 AS cor0
----
-4743
-7905
-8463

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 60 * + 42 BETWEEN NULL AND ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-476
SELECT - CAST( - 55 AS SIGNED ) FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-476
SELECT - CAST ( - 55 AS INTEGER ) FROM tab1 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-477
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - col2 AS col1 FROM tab1 cor0 WHERE NOT + col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 36 col0 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL - MAX( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - MAX ( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
-47

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE NOT col2 * - col0 IN ( col0 / 53 - + 54 )
----
49
49
49

query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
4896
5015
6188

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > - col1 * 28
----

query I rowsort
SELECT + 55 * - + 83 * + col2 AS col2 FROM tab2
----
-104995
-182600
-264770

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT SUM( - col0 ) DIV COUNT( * ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-486
SELECT SUM ( - col0 ) / COUNT ( * ) FROM tab1
----
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT + ( - - COUNT( * ) ) * + 77 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-488
SELECT + ( - - COUNT ( * ) ) * + 77 FROM tab0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT + ( - CAST( col2 AS SIGNED ) ) * + col1 AS col0 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-489
SELECT + ( - CAST ( col2 AS INTEGER ) ) * + col1 AS col0 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 + col1 * - 59 ) > ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT DISTINCT + MAX( col1 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT + MAX ( col1 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( 70 ) BETWEEN - col1 AND col1
----
-1

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( 70 ) BETWEEN - col1 AND col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-496
SELECT + 53 DIV + COUNT( + col0 ) + + 33 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-496
SELECT + 53 / + COUNT ( + col0 ) + + 33 FROM tab2
----
50

query I rowsort
SELECT ALL col2 + - + 60 FROM tab0
----
-13
-50
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-498
SELECT - 8 + - - MIN( + 3 ) - - CAST( NULL AS SIGNED ) * + 99 * + 22 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT - 8 + - - MIN ( + 3 ) - - CAST ( NULL AS INTEGER ) * + 99 * + 22 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 8 * + col2 FROM tab2
----
-184
-320
-464

query I rowsort
SELECT - - col0 * 83 * + col1 AS col1 FROM tab1 AS cor0
----
35275
354991
59262

query I rowsort
SELECT 52 * 60 AS col1 FROM tab0 AS cor0 WHERE ( + 24 / + col1 / + col1 ) IS NOT NULL
----
3120
3120
3120

query I rowsort
SELECT - col1 * + 3 * + + 13 FROM tab1 AS cor0
----
-1833
-195
-546

query I rowsort
SELECT + 56 + + + 27 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
83
83
83

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) + col0 >= ( NULL )
----

query I rowsort
SELECT ALL 40 + + col1 AS col1 FROM tab2
----
107
117
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT 65 DIV - + col1 - - col0 AS col2 FROM tab1
----
47
72
90

skipif mysql # not compatible
query I rowsort label-509
SELECT 65 / - + col1 - - col0 AS col2 FROM tab1
----
47
72
90

query III rowsort
SELECT * FROM tab0 WHERE + 85 IS NOT NULL AND ( NULL ) NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 / + + col1 >= col0
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + col2 * - - 17 FROM tab1
----
-2478
-3468
-7584

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

query I rowsort
SELECT col0 + col0 * 52 AS col0 FROM tab1
----
2703
4505
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT + MIN( ALL - - ( + col1 ) ) + 69 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-515
SELECT + MIN ( ALL - - ( + col1 ) ) + 69 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT DISTINCT + 44 + - COUNT( * ) * 97 * + 95 FROM tab0
----
-27601

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT + 44 + - COUNT ( * ) * 97 * + 95 FROM tab0
----
-27601

query I rowsort
SELECT col2 + 61 AS col2 FROM tab1 WHERE col1 NOT IN ( - col2 )
----
120
129
157

query I rowsort
SELECT 53 - col0 FROM tab0 WHERE ( - + col1 ) IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( - col1 ) col2, - 76 - + 2 AS col2 FROM tab2 AS cor0
----
51
-78
67
-78
77
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT CAST( + SUM( - 22 ) AS SIGNED ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-521
SELECT CAST ( + SUM ( - 22 ) AS INTEGER ) FROM tab2
----
-66

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 <= - + col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT ALL col2 * - + col0 DIV + col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL col2 * - + col0 / + col0 FROM tab0
----
-10
-47
-99

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

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

query I rowsort
SELECT DISTINCT col1 + 20 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
25
34
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + + col2 * + + 91 col1 FROM tab1 AS cor0
----
-316771
-420784
-838656

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

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

query I rowsort
SELECT ALL - col0 * - + 19 - - 30 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1246
1455
904

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-531
SELECT DISTINCT + CAST( 19 AS SIGNED ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT + CAST ( 19 AS INTEGER ) AS col2 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT DISTINCT COUNT( * ) col0 FROM tab0 WHERE NOT 38 = 56 + + col1 + col1 / - col0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-532
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 WHERE NOT 38 = 56 + + col1 + col1 / - col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-533
SELECT - MIN( DISTINCT - col0 ) DIV 74 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-533
SELECT - MIN ( DISTINCT - col0 ) / 74 AS col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col0 col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-535
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 * - 56 + + CAST( NULL AS SIGNED ) + - col2 * - col0 + col2 )
----

skipif mysql # not compatible
query III rowsort label-535
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 * - 56 + + CAST ( NULL AS INTEGER ) + - col2 * - col0 + col2 )
----

query I rowsort
SELECT ALL 31 * - + 23 FROM tab1
----
-713
-713
-713

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

query I rowsort
SELECT DISTINCT + col2 * - + col2 * - - 11 AS col0 FROM tab1 AS cor0
----
-101376
-38291
-50864

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 10 ) NOT IN ( + 82 / - col2 )
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col0 / + - col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT + SUM( ALL 40 ) AS col0 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-541
SELECT + SUM ( ALL 40 ) AS col0 FROM tab0 AS cor0
----
120

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

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

query I rowsort
SELECT + 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 90 ) >= ( - 56 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT ALL 89 DIV + 21 - + col1 - ( - - col1 ) + + col0 DIV + col2 FROM tab1 AS cor0
----
-24
-5
-89

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL 89 / + 21 - + col1 - ( - - col1 ) + + col0 / + col2 FROM tab1 AS cor0
----
-24
-5
-89

query I rowsort
SELECT - 77 + - + col2 FROM tab0 AS cor0
----
-124
-176
-87

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
59
68
96

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-551
SELECT COUNT( * ) + + 25 DIV 8 AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-551
SELECT COUNT ( * ) + + 25 / 8 AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - col1 * - + 81 + + col2 FROM tab1 AS cor0
----
1230
3875
464

query II rowsort
SELECT - 90 + - col2 AS col2, col1 + + col1 + - - 79 - + ( col1 ) * - 93 AS col1 FROM tab0 AS cor0
----
-100
2074
-137
7774
-189
174

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

query I rowsort
SELECT ( + 22 ) FROM tab0
----
22
22
22

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

query III rowsort
SELECT * FROM tab0 WHERE - 91 IN ( col0 + - col2, 10 / - col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ( + 71 ) * - + COUNT( * ) FROM tab1 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-559
SELECT ( + 71 ) * - + COUNT ( * ) FROM tab1 WHERE ( NULL ) <> NULL
----
0

query I rowsort
SELECT ALL - col2 + + 75 FROM tab2
----
17
35
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-561
SELECT ALL + col0 * + col2 + - - 32 + + - 63 + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + col0 * + col2 + - - 32 + + - 63 + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE ( - 59 ) NOT IN ( col1 * - 29 )
----
14
47
5

query I rowsort
SELECT - col1 * + + col1 - + + col2 AS col0 FROM tab0 AS cor0
----
-100
-451
-6608

query I rowsort
SELECT DISTINCT - 9 FROM tab2 cor0 WHERE NOT NULL IS NULL AND NOT + 11 * - 34 * col2 NOT BETWEEN + - col0 AND 52
----

query I rowsort
SELECT + 90 AS col1 FROM tab2 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT DISTINCT + - 62 * - - COUNT( * ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT + - 62 * - - COUNT ( * ) FROM tab2 AS cor0
----
-186

query I rowsort
SELECT 8 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

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

query I rowsort
SELECT ALL 58 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - SUM( + 20 ) AS col2 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-570
SELECT - SUM ( + 20 ) AS col2 FROM tab0 cor0
----
-60

query I rowsort
SELECT ALL - ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( col1 * - 99 )
----

query I rowsort
SELECT + col2 * - + 9 FROM tab2 cor0 WHERE NOT NULL >= 95 - + - col0 * col0
----

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

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

query I rowsort
SELECT col0 * - col2 - + col0 AS col0 FROM tab1 WHERE NOT ( + 39 ) <= - col1
----
-4947
-5100
-6279

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT - + col2 IN ( col0 + - + 64, - 5 )
----
-14
-47
-5

query I rowsort
SELECT 84 * + 93 FROM tab2
----
7812
7812
7812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-577
SELECT ALL - CAST( 28 AS SIGNED ) col1 FROM tab1
----
-28
-28
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-577
SELECT ALL - CAST ( 28 AS INTEGER ) col1 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT col1 * + ( 47 ) FROM tab0
----
3807
47
987

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-580
SELECT ALL + col1, + col0 DIV + + col0 AS col2 FROM tab2
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-580
SELECT ALL + col1, + col0 / + + col0 AS col2 FROM tab2
----
51
1
67
1
77
1

query II rowsort
SELECT 33 * - col0 * col2, col1 AS col1 FROM tab0
----
-23265
81
-28710
21
-316899
1

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col2 + - col0 * - col2 NOT BETWEEN 49 AND - col0 * + col2 * + col2 + col0
----
-3

skipif mysql # not compatible
query I rowsort label-582
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col2 + - col0 * - col2 NOT BETWEEN 49 AND - col0 * + col2 * + col2 + col0
----
-3

query I rowsort
SELECT ( - + col1 ) + + col0 FROM tab2
----
-13
-5
8

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

query I rowsort
SELECT DISTINCT + + 47 FROM tab0 WHERE NOT - 95 + - 77 NOT IN ( + 91, 77, + col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - SUM( + 33 ) * - 11 FROM tab1 AS cor0
----
1089

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - SUM ( + 33 ) * - 11 FROM tab1 AS cor0
----
1089

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + + 41 NOT BETWEEN - + 79 * + col0 AND - col2 * col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-589
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - col2 - 54 AS col0 FROM tab0 AS cor0
----
-101
-153
-64

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT COUNT( * ) + + + SUM( + + 94 ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-593
SELECT COUNT ( * ) + + + SUM ( + + 94 ) FROM tab1
----
285

query I rowsort
SELECT ALL 98 * - col2 + 17 AS col1 FROM tab2
----
-2237
-3903
-5667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL + - COUNT( DISTINCT - 48 ) col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-596
SELECT ALL + - COUNT ( DISTINCT - 48 ) col2 FROM tab0 cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN NULL AND - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT ALL MIN( + col0 ) * COUNT( * ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL MIN ( + col0 ) * COUNT ( * ) FROM tab2 AS cor0
----
138

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

skipif mysql # not compatible
query I rowsort label-599
SELECT col0 / 69 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT ( + col2 / + - col1 * + CAST( - + 40 AS SIGNED ) ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT ( + col2 / + - col1 * + CAST ( - + 40 AS INTEGER ) ) IS NULL
----
23
40
58

query I rowsort
SELECT + 18 * col0 FROM tab1
----
1530
1638
918

query I rowsort
SELECT - col2 * + - 81 FROM tab2
----
1863
3240
4698

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT DISTINCT - CAST( - 53 AS SIGNED ) * + col0 FROM tab2 AS cor0 WHERE NOT + 47 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-605
SELECT DISTINCT - CAST ( - 53 AS INTEGER ) * + col0 FROM tab2 AS cor0 WHERE NOT + 47 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 NOT BETWEEN NULL AND - + 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 * + col1 + col1 col0, col0 AS col0 FROM tab2 AS cor0
----
2652
46
4556
75
6006
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT COUNT( * ) + + 17 AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-610
SELECT COUNT ( * ) + + 17 AS col2 FROM tab0
----
20

query I rowsort
SELECT ALL col0 * + + 4 + - - col0 FROM tab0
----
435
485
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-613
SELECT ALL * FROM tab1 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-613
SELECT ALL * FROM tab1 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT 22 * col2 AS col0 FROM tab0
----
1034
2178
220

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

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 34 * ( col2 ) col2 FROM tab2 AS cor0
----
-1360
-1972
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT - SUM( ALL 4 ) FROM tab0 cor0 WHERE NULL BETWEEN col1 - - 66 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT - SUM ( ALL 4 ) FROM tab0 cor0 WHERE NULL BETWEEN col1 - - 66 AND + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-620
SELECT + 86 AS col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + 46 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-620
SELECT + 86 AS col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + 46 NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND col2
----

query I rowsort
SELECT + 63 + - col2 FROM tab1
----
-33
-5
4

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

query I rowsort
SELECT ALL + - col2 * col0 * + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

query I rowsort
SELECT 53 * + col0 + 15 + + ( - 48 ) + - col0 AS col1 FROM tab0 AS cor0
----
4491
5011
747

query I rowsort
SELECT DISTINCT + + 97 - + 18 AS col1 FROM tab2 AS cor0
----
79

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

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT + - col2 DIV 23 AS col2 FROM tab1 AS cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-628
SELECT + - col2 / 23 AS col2 FROM tab1 AS cor0
----
-2
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 87 + - + 24 AS col0, 7 col2 FROM tab2 AS cor0
----
3978
7
5544
7
6501
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 * + col2 * - + col1 * + - 5 + 34 + - 56 col0 FROM tab2 AS cor0
----
-152512
-400422
-505202

query II rowsort
SELECT + ( + 47 ) * - + col1, col0 AS col2 FROM tab0 cor0
----
-3807
15
-47
97
-987
87

query II rowsort
SELECT DISTINCT - col1 AS col2, - col0 * + - col2 FROM tab2
----
-51
1058
-67
4350
-77
2560

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-634
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL CAST ( NULL AS REAL ) * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT ALL + COUNT( * ) AS col1, + COUNT( DISTINCT col1 ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-635
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( DISTINCT col1 ) FROM tab1
----
3
3

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

skipif mysql # not compatible
query II rowsort label-636
SELECT DISTINCT + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-637
SELECT DISTINCT - - 74 col1, col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
74
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-637
SELECT DISTINCT - - 74 col1, col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT - MIN( ALL + - 24 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-638
SELECT - MIN ( ALL + - 24 ) FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT 77 + 94 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
171

skipif mysql # not compatible
query I rowsort label-639
SELECT 77 + 94 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
171

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

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + + 57 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT 71 * + MIN( ALL 70 ) + + - 76 / MAX( col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 26, - 22, - col0 + col0 + col2 + col2 * + col1 * - col2 - + col2 / + col0 + ( - + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT 71 * + MIN ( ALL 70 ) + + - 76 / MAX ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 26, - 22, - col0 + col0 + col2 + col2 * + col1 * - col2 - + col2 / + col0 + ( - + col2 ) )
----
NULL

query II rowsort
SELECT col0, 78 FROM tab1 AS cor0 WHERE NOT + col1 * col1 + 37 * 97 BETWEEN + col1 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-644
SELECT + 17 / - - col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + - 36, + 93 col2 FROM tab2 AS cor0
----
10
93
28
93
39
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT + 97 + + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
100

skipif mysql # not compatible
query I rowsort label-648
SELECT + 97 + + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
100

query I rowsort
SELECT DISTINCT col1 * + + col1 + + col0 FROM tab0
----
528
6576
98

query II rowsort
SELECT DISTINCT col1 AS col1, ( + 55 ) FROM tab2
----
51
55
67
55
77
55

query I rowsort
SELECT + col0 + - col1 - - col1 - + ( ( + + col0 ) ) * 95 * + 9 * 15 AS col1 FROM tab0
----
-1115688
-1243928
-192360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-652
SELECT col1 + - - 20 + col2, - CAST( + + col1 AS SIGNED ) + - ( - 37 ) col0 FROM tab1
----
130
23
135
-10
84
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-652
SELECT col1 + - - 20 + col2, - CAST ( + + col1 AS INTEGER ) + - ( - 37 ) col0 FROM tab1
----
130
23
135
-10
84
32

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - - 23 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL 75 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL 75 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT - SUM( DISTINCT - col1 ) + + + 13 * + MIN( - col1 ) AS col2 FROM tab0 cor0
----
-950

skipif mysql # not compatible
query I rowsort label-655
SELECT - SUM ( DISTINCT - col1 ) + + + 13 * + MIN ( - col1 ) AS col2 FROM tab0 cor0
----
-950

query I rowsort
SELECT + col0 - 78 * + 86 AS col0 FROM tab2 AS cor0
----
-6633
-6644
-6662

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - 59 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT - MIN( - 64 ) - - 7 col0 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-659
SELECT - MIN ( - 64 ) - - 7 col0 FROM tab2 AS cor0
----
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 96 IS NULL
----

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

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

query I rowsort
SELECT + 90 * + col1 + + col0 + - col2 * - + col1 + - col2 FROM tab0 AS cor0
----
11065
187
2177

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 75 BETWEEN 90 * + + col1 + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT 57 * - + ( CAST( + AVG ( - 14 ) AS SIGNED ) ) FROM tab2
----
798

skipif mysql # not compatible
query I rowsort label-664
SELECT 57 * - + ( CAST ( + AVG ( - 14 ) AS INTEGER ) ) FROM tab2
----
798

query I rowsort
SELECT col2 * 99 AS col0 FROM tab0
----
4653
9801
990

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-668
SELECT + 87 DIV 48 * COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-668
SELECT + 87 / 48 * COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT MAX( ALL - 14 ) AS col2 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-669
SELECT MAX ( ALL - 14 ) AS col2 FROM tab0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 * + 51 col0 FROM tab2
----
-3672

query I rowsort
SELECT ALL ( + col0 ) FROM tab1 WHERE NOT NULL >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= col0 + + + col0 + col2
----

query I rowsort
SELECT 40 * - 87 AS col2 FROM tab0 AS cor0
----
-3480
-3480
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT - COUNT( * ) * + MIN( col0 ) AS col1 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-674
SELECT - COUNT ( * ) * + MIN ( col0 ) AS col1 FROM tab1
----
-153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT + COUNT( * ) * 28 + - 21 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
231

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT + COUNT ( * ) * 28 + - 21 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
231

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-678
SELECT DISTINCT + MIN ( DISTINCT + ( + 91 ) ) col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + col1 + 75 AS col2 FROM tab2 AS cor0
----
126
142
152

query I rowsort
SELECT DISTINCT - + 10 * + col0 - + col0 - + + 78 + - - col2 AS col2 FROM tab2 cor0
----
-561
-742
-845

query I rowsort
SELECT - - col0 * col1 + - ( col0 ) FROM tab0 AS cor0
----
0
1200
1740

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

query II rowsort
SELECT DISTINCT - col0 + - col1, - col0 * - 8 AS col2 FROM tab2
----
-141
512
-142
600
-97
368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + + COUNT( * ) * 83 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-684
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + + COUNT ( * ) * 83 FROM tab0
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT ALL 71 DIV - + col0 + - 27 FROM tab1
----
-27
-27
-28

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL 71 / - + col0 + - 27 FROM tab1
----
-27
-27
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= - 41
----

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

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

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

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

query I rowsort
SELECT DISTINCT 64 - 75 FROM tab2
----
-11

query I rowsort
SELECT - col1 * 30 - 80 + - + col2 FROM tab0 cor0
----
-209
-2557
-720

query I rowsort
SELECT DISTINCT + - col1 + + + ( - - col2 ) FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - ( - 79 ) + - 4 AS col1 FROM tab0
----
75
75
75

query I rowsort
SELECT ALL + col0 - 57 + - + col1 FROM tab1
----
-13
-20
23

query I rowsort
SELECT col0 / - col1 - + - col0 / + 63 AS col1 FROM tab2 WHERE + col1 < NULL
----

query I rowsort
SELECT DISTINCT + - 32 - + col0 FROM tab0 AS cor0
----
-119
-129
-47

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

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

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

query I rowsort
SELECT ALL - 11 * + col0 FROM tab1
----
-1001
-561
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL - COUNT( * ) * + 51 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - COUNT ( * ) * + 51 FROM tab0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT DISTINCT CAST( NULL AS SIGNED ) * 96 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 96 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 * + + 51 FROM tab2
----
2601
3417
3927

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

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

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

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

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

query I rowsort
SELECT 13 + + + col2 * 92 FROM tab0
----
4337
9121
933

query I rowsort
SELECT DISTINCT + + 12 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
12

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

query II rowsort
SELECT DISTINCT + + 94, col2 AS col2 FROM tab1 AS cor0
----
94
59
94
68
94
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 AS col1 FROM tab2 AS cor0 WHERE ( NOT + col1 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - 48 / - 77 FROM tab0 AS cor0 WHERE ( NOT + col1 * col1 * col1 / - + 80 >= ( NULL ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + COUNT( * ) + 27 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + COUNT ( * ) + 27 FROM tab1
----
30

query I rowsort
SELECT + col1 * + - col1 + + 51 FROM tab0
----
-390
-6510
50

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

query I rowsort
SELECT ALL col1 * + col0 + - - col0 FROM tab2
----
2392
4992
5100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-718
SELECT DISTINCT col0 - - 51 + col1 + - - CAST( NULL AS SIGNED ), ( + 84 ) AS col0 FROM tab1
----
NULL
84

skipif mysql # not compatible
query II rowsort label-718
SELECT DISTINCT col0 - - 51 + col1 + - - CAST ( NULL AS INTEGER ), ( + 84 ) AS col0 FROM tab1
----
NULL
84

query III rowsort
SELECT * FROM tab1 WHERE 26 IN ( col2, 85, + col2 )
----

query I rowsort
SELECT ALL + 10 + 92 * + + col0 + col1 FROM tab2
----
4293
5975
6977

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

query I rowsort
SELECT DISTINCT + col1 * - 80 + 71 AS col1 FROM tab1
----
-1049
-329
-3689

query II rowsort
SELECT DISTINCT - col1 AS col0, + ( + col1 ) + col2 AS col1 FROM tab0
----
-1
100
-21
31
-81
128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT ALL COUNT( * ) - - MAX( DISTINCT + col0 ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-725
SELECT ALL COUNT ( * ) - - MAX ( DISTINCT + col0 ) FROM tab0
----
100

query I rowsort
SELECT ALL + 88 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT MIN( ALL + + ( - 88 ) ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-727
SELECT MIN ( ALL + + ( - 88 ) ) FROM tab0 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 31 AND - 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-729
SELECT ALL - + ( CAST( col2 AS SIGNED ) ) + 17 AS col2 FROM tab2 AS cor0
----
-23
-41
-6

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL - + ( CAST ( col2 AS INTEGER ) ) + 17 AS col2 FROM tab2 AS cor0
----
-23
-41
-6

query II rowsort
SELECT DISTINCT col2 + + 55, ( - 89 ) AS col2 FROM tab1
----
114
-89
123
-89
151
-89

query I rowsort
SELECT - col0 * 57 - col0 + + - col0 AS col2 FROM tab2
----
-2714
-3776
-4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + 72 ), - 30 col1 FROM tab1 AS cor0
----
-72
-30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT + + 73 * + COUNT( ALL 35 ) FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-734
SELECT + + 73 * + COUNT ( ALL 35 ) FROM tab1 AS cor0
----
219

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 94 - col0 + + 65 = 39
----

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT + MAX( col1 ) AS col2, 56 col2 FROM tab1 cor0
----
47
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-736
SELECT + MAX ( col1 ) AS col2, 56 col2 FROM tab1 cor0
----
47
56

query III rowsort
SELECT * FROM tab0 WHERE NOT 23 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT + 82 * + 8 FROM tab0
----
656
656
656

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

skipif mysql # not compatible
query I rowsort label-739
SELECT - MIN ( - col0 ) AS col2 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-740
SELECT col0, + col1 DIV + + col2 FROM tab0
----
15
1
87
2
97
0

skipif mysql # not compatible
query II rowsort label-740
SELECT col0, + col1 / + + col2 FROM tab0
----
15
1
87
2
97
0

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

query II rowsort
SELECT + 24 AS col0, - 74 AS col1 FROM tab0 AS cor0
----
24
-74
24
-74
24
-74

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL - 56 + - MAX( DISTINCT + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL - 56 + - MAX ( DISTINCT + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 34 + + + col2 FROM tab0
----
133
44
81

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-748
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN + - col0 * + 67 + - + col0 * + + col0 * - + col1 AND + - col0 * - + col1 + - 15 + col2 * + + 61 * + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-748
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN + - col0 * + 67 + - + col0 * + + col0 * - + col1 AND + - col0 * - + col1 + - 15 + col2 * + + 61 * + + CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT + col2 + - ( col0 ) DIV col0 AS col1 FROM tab1 cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-749
SELECT + col2 + - ( col0 ) / col0 AS col1 FROM tab1 cor0
----
58
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT - + CAST( - col1 AS SIGNED ) + 96 - - col0 AS col2 FROM tab0 AS cor0
----
192
194
204

skipif mysql # not compatible
query I rowsort label-750
SELECT - + CAST ( - col1 AS INTEGER ) + 96 - - col0 AS col2 FROM tab0 AS cor0
----
192
194
204

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL - COUNT( ALL + col2 ) + - 76 AS col1 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - COUNT ( ALL + col2 ) + - 76 AS col1 FROM tab2 AS cor0
----
-79

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

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

query I rowsort
SELECT ALL 14 * + 82 + + 7 * - 65 AS col0 FROM tab2
----
693
693
693

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL - 19 - - - COUNT( * ) + + 28 AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL - 19 - - - COUNT ( * ) + + 28 AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-756
SELECT col2 DIV - CAST( - 59 AS SIGNED ) col2, - col2 FROM tab0 AS cor0
----
0
-10
0
-47
1
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-756
SELECT col2 / - CAST ( - 59 AS INTEGER ) col2, - col2 FROM tab0 AS cor0
----
0
-10
0
-47
1
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-757
SELECT - 44 DIV + col2, + CAST( + - 82 AS SIGNED ) AS col2 FROM tab1
----
0
-82
0
-82
0
-82

skipif mysql # not compatible
query II rowsort label-757
SELECT - 44 / + col2, + CAST ( + - 82 AS INTEGER ) AS col2 FROM tab1
----
0
-82
0
-82
0
-82

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT - MIN( col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-760
SELECT - MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 * - + col0, - col2, col1 * - - col0 + col0, 53 * - + col1 + + col1, - ( + 39 ) - - col1 * - col0, col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-763
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-763
SELECT - ( - + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + MIN( 48 ) * + COUNT( - col2 ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-766
SELECT + MIN ( 48 ) * + COUNT ( - col2 ) FROM tab2 AS cor0
----
144

query II rowsort
SELECT - 30 * + - col1, 71 AS col2 FROM tab1
----
1410
71
150
71
420
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-768
SELECT SUM( 55 ) AS col0, - CAST( NULL AS SIGNED ) + - + MAX( ALL - - col1 ) AS col2 FROM tab2
----
165
NULL

skipif mysql # not compatible
query II rowsort label-768
SELECT SUM ( 55 ) AS col0, - CAST ( NULL AS INTEGER ) + - + MAX ( ALL - - col1 ) AS col2 FROM tab2
----
165
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 96 >= col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-770
SELECT MAX( DISTINCT col2 ), 60 * - 99 AS col0 FROM tab0
----
99
-5940

skipif mysql # not compatible
query II rowsort label-770
SELECT MAX ( DISTINCT col2 ), 60 * - 99 AS col0 FROM tab0
----
99
-5940

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

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

query I rowsort
SELECT - + col2 * - col2 + + - 37 FROM tab0 AS cor0
----
2172
63
9764

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

query I rowsort
SELECT DISTINCT - col1 * - 68 + - - 90 * + ( - col2 ) FROM tab2 cor0
----
-664
1398
1636

query II rowsort
SELECT - col0 AS col2, col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - 49 * - col1 AS col1 FROM tab1
----
2303
245
686

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND + col0 + + - 54
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 BETWEEN - 26 / - col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * - + col0 + col0 AS col1 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT DISTINCT + 46 * COUNT( * ) AS col0 FROM tab0 cor0
----
138

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT + 46 * COUNT ( * ) AS col0 FROM tab0 cor0
----
138

query I rowsort
SELECT DISTINCT + 23 * - + col2 AS col2 FROM tab1 AS cor0
----
-1357
-1564
-2208

query I rowsort
SELECT - col0 * 69 + col1 AS col0 FROM tab1
----
-3505
-5860
-6232

query I rowsort
SELECT col1 + 93 FROM tab0
----
114
174
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-784
SELECT * FROM tab1 WHERE 82 + col0 > - col0 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-784
SELECT * FROM tab1 WHERE 82 + col0 > - col0 + - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 + + col0 * 70 + + 39 FROM tab2
----
3305
4583
5364

query I rowsort
SELECT 66 + - 19 + - col0 + 22 * - col1 * + 79 * + 41 AS col1 FROM tab1
----
-3349170
-356328
-997616

query I rowsort
SELECT ALL 80 * + col0 - - col2 FROM tab2
----
3703
5160
6058

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-789
SELECT + COUNT( * ) DIV + 11 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-789
SELECT + COUNT ( * ) / + 11 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 47 * - col2 AS col0 FROM tab2 AS cor0
----
-1081
-1880
-2726

query I rowsort
SELECT DISTINCT col0 * + col1 * col0 * + 8 FROM tab1
----
289000
291312
3113656

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

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

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

query I rowsort
SELECT + col0 * col2 * col2 * col2 FROM tab2 AS cor0
----
14633400
4096000
559682

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

query II rowsort
SELECT + 63 AS col2, + col1 AS col1 FROM tab2
----
63
51
63
67
63
77

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 * - 43 IS NOT NULL
----

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

query I rowsort
SELECT ALL col1 + - col2 - + + col2 AS col2 FROM tab0
----
-13
-197
1

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

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

query II rowsort
SELECT ALL 83 AS col0, + col2 AS col1 FROM tab0 AS cor0
----
83
10
83
47
83
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL + 40 + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + 40 + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-806
SELECT 10 DIV - - col1 + ( - 25 ) AS col1 FROM tab2
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-806
SELECT 10 / - - col1 + ( - 25 ) AS col1 FROM tab2
----
-25
-25
-25

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

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT + + CAST ( NULL AS REAL ) * COUNT ( 90 ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 97 * - + ( 16 ) AS col1 FROM tab2 AS cor0
----
-1552
-1552
-1552

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - 90 ), - col1 col2 FROM tab1 AS cor0
----
90
-14
90
-47
90
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-811
SELECT 84 DIV - COUNT( * ) AS col0, 61 AS col2 FROM tab0 AS cor0
----
-28
61

skipif mysql # not compatible
query II rowsort label-811
SELECT 84 / - COUNT ( * ) AS col0, 61 AS col2 FROM tab0 AS cor0
----
-28
61

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-813
SELECT DISTINCT - - col1 AS col2 FROM tab2 cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * col0 * + 61 <> col0
----

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT - - col1 AS col2 FROM tab2 cor0 WHERE NOT + CAST ( NULL AS REAL ) * col0 * + 61 <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-814
SELECT ALL - - SUM( 95 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 * - ( + CAST( - + col1 AS DECIMAL ) ) + + col2 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL - - SUM ( 95 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 * - ( + CAST ( - + col1 AS REAL ) ) + + col2 AND + col2
----
NULL

query I rowsort
SELECT ALL 44 + + 74 AS col0 FROM tab1
----
118
118
118

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

onlyif mysql # DIV for integer division: 
query I rowsort label-817
SELECT DISTINCT - col0 DIV 19 + - 36 * - - col2 AS col0 FROM tab0
----
-1692
-3569
-364

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT - col0 / 19 + - 36 * - - col2 AS col0 FROM tab0
----
-1692
-3569
-364

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL COUNT( * ) - - 15 AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL COUNT ( * ) - - 15 AS col0 FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT DISTINCT CAST( + + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

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

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

query I rowsort
SELECT + 66 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 59, 79 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 15 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 15 IS NOT NULL
----
3

query I rowsort
SELECT col1 * - col2 FROM tab2 AS cor0 WHERE NOT - col0 / + - col1 * - - col2 + 72 + - col2 IN ( + - col2, - 22 )
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + + 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT + 22 FROM tab0 WHERE NOT NULL NOT BETWEEN - 82 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL MIN( 74 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL MIN ( 74 ) AS col2 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT - MAX( ALL 18 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-830
SELECT - MAX ( ALL 18 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT ALL + + ( col1 ) FROM tab1 AS cor0 WHERE NULL = + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT - MIN( + + 41 ) * - - 31 + - COUNT( col0 ) FROM tab1 AS cor0
----
-1274

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT - MIN ( + + 41 ) * - - 31 + - COUNT ( col0 ) FROM tab1 AS cor0
----
-1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT ALL + MAX( 70 ) / + - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + MAX ( 70 ) / + - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + - col2 * - col2 + - col0 FROM tab2 WHERE + col0 IS NOT NULL
----
1536
3289
483

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

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

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

query II rowsort
SELECT col2 AS col2, + ( - - col0 ) FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT - 94 - + 87 + - col0 DIV + - col0 + - col0 FROM tab0 AS cor0
----
-195
-267
-277

skipif mysql # not compatible
query I rowsort label-840
SELECT - 94 - + 87 + - col0 / + - col0 + - col0 FROM tab0 AS cor0
----
-195
-267
-277

query I rowsort
SELECT - 56 + + 16 * col1 - col0 AS col0 FROM tab1 AS cor0
----
-61
117
605

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT COUNT( * ) + - MAX( ALL ( + col0 ) ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-842
SELECT COUNT ( * ) + - MAX ( ALL ( + col0 ) ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT 48 + + col1 AS col1 FROM tab1
----
53
62
95

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL ( + 14 ) * - + 56 * - COUNT( * ) FROM tab1
----
2352

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL ( + 14 ) * - + 56 * - COUNT ( * ) FROM tab1
----
2352

query I rowsort
SELECT + col2 * + 76 * - 5 AS col1 FROM tab0
----
-17860
-37620
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT MAX( + 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-846
SELECT MAX ( + 56 ) FROM tab2
----
56

query I rowsort
SELECT + col0 * - - 88 FROM tab2
----
4048
5632
6600

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

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

query I rowsort
SELECT - 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-850
SELECT - SUM( DISTINCT 59 ) * + COUNT( * ) DIV + + COUNT( * ) + + + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-850
SELECT - SUM ( DISTINCT 59 ) * + COUNT ( * ) / + + COUNT ( * ) + + + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

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

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

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

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

query I rowsort
SELECT + + col0 + 44 - + col0 * + - col0 FROM tab2 AS cor0
----
2206
4204
5744

query I rowsort
SELECT DISTINCT + col2 * - - 6 AS col2 FROM tab2 AS cor0
----
138
240
348

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

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

skipif mysql # not compatible
query I rowsort label-857
SELECT + ( - - COUNT ( * ) ) + - 6 FROM tab1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT + SUM( col0 ) + COUNT( * ) col2 FROM tab1
----
230

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

query I rowsort
SELECT ALL col1 + + 58 * - col2 FROM tab1
----
-3417
-3897
-5554

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

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

query I rowsort
SELECT + + col0 - + + col1 AS col2 FROM tab0 cor0
----
-66
66
96

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

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab0, tab1 AS cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT SUM( ( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT SUM ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT DISTINCT + MAX( DISTINCT - col1 ) - + 19 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + MAX ( DISTINCT - col1 ) - + 19 FROM tab1 AS cor0
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 31
----

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

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

query III rowsort
SELECT ALL col1, - col2, + col0 + - col1 AS col1 FROM tab1
----
9 values hashing to a222c3cfd54efcd17395aef7374dfec6

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 64 * - - 11 + + col0 + + col2 < NULL
----

query II rowsort
SELECT - col0, + col2 * + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 65 + col1
----

query I rowsort
SELECT DISTINCT col0 + - + 32 FROM tab0
----
-17
55
65

query I rowsort
SELECT DISTINCT ( - 71 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-71

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

skipif mysql # not compatible
query I rowsort label-877
SELECT + 63 / - + COUNT ( * ) + + 37 FROM tab1 AS cor0
----
16

query I rowsort
SELECT + 67 * 4 + - col1 FROM tab0 AS cor0
----
187
247
267

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - col1 >= + col2
----

query I rowsort
SELECT 31 FROM tab1 cor0 WHERE ( ( + - col0 ) ) NOT BETWEEN + 45 AND NULL
----
31
31
31

query I rowsort
SELECT DISTINCT 50 * - col2 FROM tab1 cor0
----
-2950
-3400
-4800

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 6 < NULL )
----

query II rowsort
SELECT col1 AS col0, col2 AS col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT 50 * + col0 * + 0 + - col0 FROM tab0
----
-15
-87
-97

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

skipif mysql # not compatible
query I rowsort label-886
SELECT - COUNT ( * ) + - 18 FROM tab2
----
-21

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

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

query I rowsort
SELECT DISTINCT 57 + col1 AS col0 FROM tab0
----
138
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT - COUNT( * ) + - 63 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-889
SELECT - COUNT ( * ) + - 63 FROM tab2
----
-66

query I rowsort
SELECT col1 * ( + + col2 ) + - - col2 AS col0 FROM tab1
----
1440
3264
354

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 21 * + + 93 NOT BETWEEN ( + col1 / - col0 ) AND NULL
----

query I rowsort
SELECT - + 41 + - 81 AS col2 FROM tab0 AS cor0
----
-122
-122
-122

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) <= ( 68 )
----
85
5
59
91
47
68

query I rowsort
SELECT - 57 + + col0 * 43 FROM tab0
----
3684
4114
588

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT + 55 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL 41 * + COUNT( * ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL 41 * + COUNT ( * ) FROM tab0
----
123

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > ( col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + MIN( col0 ) + 39 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-899
SELECT + MIN ( col0 ) + 39 FROM tab0
----
54

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

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

query I rowsort
SELECT + 30 + - 72 FROM tab2
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL + COUNT( * ) + 39 AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL + COUNT ( * ) + 39 AS col0 FROM tab2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT col1 DIV - 36 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-903
SELECT col1 / - 36 AS col2 FROM tab2
----
-1
-1
-2

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-905
SELECT - 19 + - COUNT ( * ) col2 FROM tab1
----
-22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT ALL + col2 DIV col1 + + 26 FROM tab2
----
26
26
26

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL + col2 / col1 + + 26 FROM tab2
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT COUNT( 38 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-908
SELECT COUNT ( 38 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 / 34 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT + ( MIN( ALL + col0 ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-911
SELECT + ( MIN ( ALL + col0 ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
15

query I rowsort
SELECT ALL ( 9 ) AS col2 FROM tab1 WHERE 37 * 88 + + col0 IS NOT NULL
----
9
9
9

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col2 - - 33 * + col2 IN ( + col2 )
----

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col0 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT ( col2 ) FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL - SUM( DISTINCT + 7 ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - SUM ( DISTINCT + 7 ) AS col0 FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( + col2 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-920
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( + col2 ) < NULL
----
0

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab1 AS cor0 WHERE ( + col0 * 1 ) = - 91
----

query I rowsort
SELECT 37 * 56 FROM tab1 cor0
----
2072
2072
2072

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-924
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT DISTINCT + col0 + 86 FROM tab2
----
132
150
161

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / col2 BETWEEN 88 * col0 AND col0
----

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

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

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

query I rowsort
SELECT DISTINCT - - col0 * 37 FROM tab0 cor0
----
3219
3589
555

query I rowsort
SELECT DISTINCT - 10 + + ( col1 + - col0 ) FROM tab2 AS cor0
----
-18
-5
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT + col1 + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-931
SELECT + col1 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT COUNT( col1 ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-932
SELECT COUNT ( col1 ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ( + 28 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-933
SELECT ( + 28 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
31

query I rowsort
SELECT col1 + + 91 * + col0 FROM tab0 AS cor0
----
1446
7938
8828

query I rowsort
SELECT 75 * col2 + + col1 * + 77 AS col1 FROM tab0
----
2367
7502
9762

query I rowsort
SELECT + col1 + ( + col0 ) * - 40 AS col0 FROM tab1 WHERE - col0 IS NULL
----

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

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

query I rowsort
SELECT - ( + 96 ) AS col0 FROM tab0
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-939
SELECT DISTINCT 39 col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) <> ( CAST( NULL AS SIGNED ) / + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-939
SELECT DISTINCT 39 col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) <> ( CAST ( NULL AS INTEGER ) / + col1 )
----

query I rowsort
SELECT ALL - col0 + + + 69 - col1 FROM tab2
----
-28
-72
-73

query I rowsort
SELECT DISTINCT 63 * - + col2 * col1 + + col1 FROM tab2
----
-193963
-244751
-73848

query I rowsort
SELECT ALL + col0 + - 76 AS col0 FROM tab1
----
-25
15
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( + col0 * + ( ( 98 ) ) + - 89 / + 29 ) BETWEEN ( NULL ) AND 87 OR NOT - CAST( NULL AS SIGNED ) - col0 BETWEEN ( + col2 + col1 * - 37 ) AND ( NULL )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( + col0 * + ( ( 98 ) ) + - 89 / + 29 ) BETWEEN ( NULL ) AND 87 OR NOT - CAST ( NULL AS INTEGER ) - col0 BETWEEN ( + col2 + col1 * - 37 ) AND ( NULL )
----
59
68
96

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-945
SELECT * FROM tab2 AS cor0 WHERE col1 > ( + CAST( - 17 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-945
SELECT * FROM tab2 AS cor0 WHERE col1 > ( + CAST ( - 17 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT ALL col0 + - 18 DIV col2 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL col0 + - 18 / col2 AS col1 FROM tab2 AS cor0
----
46
64
75

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

query I rowsort
SELECT ( - col0 ) FROM tab0 WHERE ( 24 < NULL )
----

query I rowsort
SELECT ALL - - 71 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - 72 + - 30 + - 66 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 607f5e02ee6c33f6455bbd825a0de826

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-951
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE - col2 * + col1 - col1 * - col1 < + CAST( col2 AS DECIMAL )
----
1

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE - col2 * + col1 - col1 * - col1 < + CAST ( col2 AS REAL )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-952
SELECT DISTINCT - - 34 + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - - 34 + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - 82 ) NOT IN ( + col2 * col1 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT DISTINCT + + MIN( ALL + ( - + col1 ) ) * 22 AS col0 FROM tab1 cor0
----
-1034

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT + + MIN ( ALL + ( - + col1 ) ) * 22 AS col0 FROM tab1 cor0
----
-1034

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT - 52 AS col2, MAX( - col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
-52
-12

skipif mysql # not compatible
query II rowsort label-956
SELECT - 52 AS col2, MAX ( - col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-52
-12

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - ( + col2 ) * + ( col2 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT ( + col1 ) FROM tab1 AS cor0 WHERE NOT + col2 + + 86 - col2 * col2 IS NOT NULL
----

query II rowsort
SELECT col0 AS col0, 22 * 30 + - col0 FROM tab0 AS cor0
----
15
645
87
573
97
563

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT ALL - 32 DIV col0 + 14 AS col0 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL - 32 / col0 + 14 AS col0 FROM tab1 AS cor0
----
14
14
14

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

query I rowsort
SELECT + 98 + + 54 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
152
152
152

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 9 * + col2 AS col0, - col2 col0 FROM tab1
----
531
-59
612
-68
864
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT 84 * COUNT( * ) FROM tab1 WHERE NOT NULL <= - - col1 + 3
----
0

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT 84 * COUNT ( * ) FROM tab1 WHERE NOT NULL <= - - col1 + 3
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - 47
----

query I rowsort
SELECT ( + col0 ) + + 27 / col1 AS col0 FROM tab1 WHERE NOT - col0 + - col0 NOT IN ( - col0 * 82 )
----

query I rowsort
SELECT ALL - col2 * 91 FROM tab2
----
-2093
-3640
-5278

query I rowsort
SELECT 50 * + col1 * + col1 FROM tab1
----
110450
1250
9800

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT 59 * + MIN( col1 ) AS col0 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT 59 * + MIN ( col1 ) AS col0 FROM tab0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT - col2 DIV + 19 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-974
SELECT - col2 / + 19 FROM tab0
----
-2
-5
0

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab1 WHERE ( col1 - col2 ) >= 27
----

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

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

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT - - col0 DIV + 77 - + 56 FROM tab2 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-982
SELECT - - col0 / + 77 - + 56 FROM tab2 AS cor0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 + - col1 col2 FROM tab0 AS cor0 WHERE - col1 <= + - col2
----
-21
-81

query I rowsort
SELECT DISTINCT 99 + - 20 AS col2 FROM tab2 cor0
----
79

query I rowsort
SELECT col0 + 70 AS col2 FROM tab2
----
116
134
145

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT + 31 + + + 12 FROM tab0
----
43
43
43

query I rowsort
SELECT ALL + col2 + col1 * 63 FROM tab0
----
1333
162
5150

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

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

query I rowsort
SELECT DISTINCT - col1 - + ( + - col2 ) - - 15 - - - col0 AS col2 FROM tab2
----
-59
-69
-86

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

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

query II rowsort
SELECT ALL + 82, col1 + col1 AS col2 FROM tab1
----
82
10
82
28
82
94

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

query I rowsort
SELECT ALL + col2 - - col2 * + col0 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # DIV for integer division: 
query II rowsort label-995
SELECT DISTINCT + col0, col1 DIV + col0 AS col2 FROM tab0 cor0
----
15
5
87
0
97
0

skipif mysql # not compatible
query II rowsort label-995
SELECT DISTINCT + col0, col1 / + col0 AS col2 FROM tab0 cor0
----
15
5
87
0
97
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-997
SELECT - col1 * - col0, 79 DIV + col2 + - + col1 - + - col2 + - 1 AS col0 FROM tab1 AS cor0
----
425
54
4277
21
714
81

skipif mysql # not compatible
query II rowsort label-997
SELECT - col1 * - col0, 79 / + col2 + - + col1 - + - col2 + - 1 AS col0 FROM tab1 AS cor0
----
425
54
4277
21
714
81

query I rowsort
SELECT - col1 * ( - - col1 ) FROM tab2
----
-2601
-4489
-5929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT + - 72 * - COUNT( * ) * - 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18144

skipif mysql # not compatible
query I rowsort label-1000
SELECT + - 72 * - COUNT ( * ) * - 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18144

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

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

query I rowsort
SELECT ALL col2 + 81 + - + 96 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1003
SELECT * FROM tab0 WHERE NOT - CAST( col1 AS SIGNED ) > - 2
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-1003
SELECT * FROM tab0 WHERE NOT - CAST ( col1 AS INTEGER ) > - 2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col0 * 69 AS col2 FROM tab0
----
1035
6003
6693

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT + SUM( col1 ) col1 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1006
SELECT + SUM ( col1 ) col1 FROM tab2
----
195

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

query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab1 WHERE NOT - 74 + + - col0 * col1 <> NULL
----

query I rowsort
SELECT 47 * - - 53 FROM tab0
----
2491
2491
2491

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

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - SUM ( + + CAST ( - col1 AS REAL ) ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 * - 56 FROM tab0 WHERE NOT NULL IN ( - + col0 * + 97 / - 47 + + + 0 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT DISTINCT - col2 DIV - - 72 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT - col2 / - - 72 FROM tab0
----
-1
0

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

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

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL 18 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
1

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

query I rowsort
SELECT DISTINCT - + 30 FROM tab1 cor0
----
-30

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 47 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT DISTINCT 96 + 13 AS col2, ( col0 ) FROM tab2
----
109
46
109
64
109
75

query I rowsort
SELECT DISTINCT - col1 * col1 + + col1 * - - col1 - ( col1 ) AS col0 FROM tab0
----
-1
-21
-81

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( - 92 ) = NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE + 9 NOT IN ( - col1 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT + col0 + - CAST( - 68 AS SIGNED ) FROM tab2 AS cor0
----
114
132
143

skipif mysql # not compatible
query I rowsort label-1025
SELECT + col0 + - CAST ( - 68 AS INTEGER ) FROM tab2 AS cor0
----
114
132
143

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

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

query I rowsort
SELECT + col0 * - col2 + + 2 AS col0 FROM tab1 AS cor0
----
-4894
-5013
-6186

query I rowsort
SELECT + col2 + ( - 63 ) FROM tab1 AS cor0
----
-4
33
5

query II rowsort
SELECT DISTINCT col0 AS col1, 33 + + - 58 - ( - - col2 ) FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT 31 * + MIN( DISTINCT + col2 ) FROM tab2
----
713

skipif mysql # not compatible
query I rowsort label-1030
SELECT 31 * + MIN ( DISTINCT + col2 ) FROM tab2
----
713

query I rowsort
SELECT ALL 48 - - - col1 + col2 * col1 AS col0 FROM tab1
----
1378
3197
338

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NULL > NULL
----
0

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

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

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

query II rowsort
SELECT DISTINCT col0, - col2 + 93 AS col1 FROM tab2
----
46
70
64
53
75
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT COUNT( * ) - - CAST( - - 65 AS SIGNED ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-1036
SELECT COUNT ( * ) - - CAST ( - - 65 AS INTEGER ) FROM tab0 AS cor0
----
68

query II rowsort
SELECT + + 25 AS col2, - 60 + - col0 AS col1 FROM tab1 AS cor0
----
25
-111
25
-145
25
-151

query I rowsort
SELECT + 79 * - + col2 AS col1 FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT + 89 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT ALL - CAST( NULL AS SIGNED ) * - 43 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL - CAST ( NULL AS INTEGER ) * - 43 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1043
SELECT + col1 AS col1, + col1 * + col2 + + col0 DIV - 9 + - col2 + - - col0 AS col2 FROM tab2
----
51
1191
67
3895
77
3097

skipif mysql # not compatible
query II rowsort label-1043
SELECT + col1 AS col1, + col1 * + col2 + + col0 / - 9 + - col2 + - - col0 AS col2 FROM tab2
----
51
1191
67
3895
77
3097

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT MAX( ALL - col1 ) DIV - 97 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1045
SELECT MAX ( ALL - col1 ) / - 97 FROM tab1 cor0
----
0

query I rowsort
SELECT - - col1 * - + 24 FROM tab2 AS cor0
----
-1224
-1608
-1848

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 53 + col2 + - 12 / + 85 <> - + col2 + - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col2, 77 FROM tab1 AS cor0
----
59
77
68
77
96
77

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

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

query I rowsort
SELECT DISTINCT - - 88 * + col1 AS col0 FROM tab0 AS cor0
----
1848
7128
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + 0 - col2
----

query I rowsort
SELECT DISTINCT - col1 * - 16 AS col2 FROM tab2
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL 5 * + - SUM( DISTINCT + + 31 ) AS col2 FROM tab0
----
-155

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL 5 * + - SUM ( DISTINCT + + 31 ) AS col2 FROM tab0
----
-155

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1056
SELECT ALL - CAST( NULL AS DECIMAL ) * - SUM( ALL 50 ) * - 43 * - + SUM( ALL col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - CAST ( NULL AS REAL ) * - SUM ( ALL 50 ) * - 43 * - + SUM ( ALL col0 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col0 * - + 41 FROM tab1
----
2091
3485
3731

query I rowsort
SELECT col0 * - 0 + + col0 * - + col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT 44 * + col2 AS col0 FROM tab0
----
2068
4356
440

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT + MAX( ALL + + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1060
SELECT + MAX ( ALL + + col2 ) FROM tab0
----
99

query I rowsort
SELECT 93 * + 96 AS col1 FROM tab1
----
8928
8928
8928

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT ALL + 52 * + ( - CAST( + + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-2444
-260
-728

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL + 52 * + ( - CAST ( + + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-2444
-260
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT + 39 - col0 FROM tab2 AS cor0
----
-25
-36
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1066
SELECT ALL COUNT( * ) col1, MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
3
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1066
SELECT ALL COUNT ( * ) col1, MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
3
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL - 88 + + ( COUNT( - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 >= - col1
----
-88

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - 88 + + ( COUNT ( - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT + col0 >= - col1
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-1069
SELECT DISTINCT + col2, + col1 * 46 DIV col0 AS col1 FROM tab0 AS cor0
----
10
11
47
248
99
0

skipif mysql # not compatible
query II rowsort label-1069
SELECT DISTINCT + col2, + col1 * 46 / col0 AS col1 FROM tab0 AS cor0
----
10
11
47
248
99
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 * - - col2 + + + ( + 7 ) + - 61 col1 FROM tab1
----
2247
2598
3690

query I rowsort
SELECT + 91 + + + 91 + col2 AS col2 FROM tab1
----
241
250
278

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT ALL - MAX( ALL + 2 ) + - COUNT( * ) AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL - MAX ( ALL + 2 ) + - COUNT ( * ) AS col1 FROM tab0
----
-5

query I rowsort
SELECT - 5 * - 5 + + 12 FROM tab1
----
37
37
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - 23 + - COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1076
SELECT - 23 + - COUNT ( * ) FROM tab2
----
-26

query I rowsort
SELECT - 2 FROM tab2 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 61 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT MIN ( + 37 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
37

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

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

query I rowsort
SELECT ALL col2 + + 78 FROM tab0 AS cor0 WHERE 38 <> - 51
----
125
177
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1084
SELECT - + ( ( 80 ) ) AS col2, + 78 + - COUNT( + - 86 ) AS col0 FROM tab1 AS cor0
----
-80
75

skipif mysql # not compatible
query II rowsort label-1084
SELECT - + ( ( 80 ) ) AS col2, + 78 + - COUNT ( + - 86 ) AS col0 FROM tab1 AS cor0
----
-80
75

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT - 26 + - CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1088
SELECT - 26 + - CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT ALL + - 23 * + col2 + + col2 DIV + - col2 AS col1 FROM tab0 WHERE - col2 <> - col1
----
-1082
-2278
-231

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL + - 23 * + col2 + + col2 / + - col2 AS col1 FROM tab0 WHERE - col2 <> - col1
----
-1082
-2278
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30 col0, col2 + col2 FROM tab1
----
30
118
30
136
30
192

query II rowsort
SELECT ALL 75 AS col2, col0 AS col1 FROM tab2
----
75
46
75
64
75
75

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT CAST( - - col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1094
SELECT CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN - + col2 / + 4 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - + COUNT( + col0 ) * - COUNT( * ) + - + 39 AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1096
SELECT - + COUNT ( + col0 ) * - COUNT ( * ) + - + 39 AS col0 FROM tab2 AS cor0
----
-30

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

query II rowsort
SELECT ALL col2, + 61 AS col0 FROM tab1 AS cor0
----
59
61
68
61
96
61

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

query I rowsort
SELECT 67 + + col1 FROM tab0
----
148
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ( + MIN( - col2 ) ) + + + 1 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-1101
SELECT ( + MIN ( - col2 ) ) + + + 1 FROM tab0
----
-98

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 49 FROM tab2 cor0
----
1127
1960
2842

query II rowsort
SELECT - col1 + + 18 AS col2, - col1 AS col1 FROM tab0 AS cor0
----
-3
-21
-63
-81
17
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT ALL - - col1 DIV col0 + + + ( 60 ) + - col0 AS col0 FROM tab2 AS cor0
----
-15
-3
15

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - - col1 / col0 + + + ( 60 ) + - col0 AS col0 FROM tab2 AS cor0
----
-15
-3
15

query I rowsort
SELECT + - 16 * + - col2 - - col0 + + ( - + 86 ) * col0 FROM tab2 AS cor0
----
-3542
-4800
-5447

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT ALL 38 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL 38 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + COUNT( + ( + col2 ) ) * + 86 FROM tab0 cor0
----
258

skipif mysql # not compatible
query I rowsort label-1110
SELECT + COUNT ( + ( + col2 ) ) * + 86 FROM tab0 cor0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - + COUNT( * ) * - 80 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - + COUNT ( * ) * - 80 FROM tab1 AS cor0
----
240

query I rowsort
SELECT col0 + - 32 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
19
53
59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + + 92 * - 91 * - 14 + + COUNT( * ) AS col2 FROM tab0 cor0
----
117211

skipif mysql # not compatible
query I rowsort label-1114
SELECT + + 92 * - 91 * - 14 + + COUNT ( * ) AS col2 FROM tab0 cor0
----
117211

query I rowsort
SELECT - 75 AS col0 FROM tab0 AS cor0 WHERE 29 IS NULL
----

query II rowsort
SELECT DISTINCT + 87, + col1 FROM tab2
----
87
51
87
67
87
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1118
SELECT col1 DIV 25 * + 35 col1, - col0 AS col1 FROM tab1
----
0
-51
0
-85
35
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1118
SELECT col1 / 25 * + 35 col1, - col0 AS col1 FROM tab1
----
0
-51
0
-85
35
-91

query II rowsort
SELECT 74, col1 AS col2 FROM tab2
----
74
51
74
67
74
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT ALL - + 19 * - - COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL - + 19 * - - COUNT ( * ) FROM tab1 AS cor0
----
-57

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

query I rowsort
SELECT - - 68 AS col1 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT + SUM( DISTINCT 63 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT + SUM ( DISTINCT 63 ) FROM tab2 AS cor0
----
63

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <= - + ( - ( col0 ) )
----

query I rowsort
SELECT ALL + col0 + col2 * - col2 * - col0 FROM tab2
----
102464
24380
252375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT ALL - CAST( - - col2 AS SIGNED ) + + + col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL - CAST ( - - col2 AS INTEGER ) + + + col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT 74 + + col1 AS col1 FROM tab2 AS cor0
----
125
141
151

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT ALL - 89 * + COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL - 89 * + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-267

query I rowsort
SELECT ALL 49 + + 51 FROM tab2 AS cor0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT COUNT( * ) + - 13 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT COUNT ( * ) + - 13 FROM tab0
----
-10

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

query I rowsort
SELECT + 11 - + - col0 + + ( 4 ) FROM tab0
----
102
112
30

query I rowsort
SELECT - 28 - + 83 + - col2 AS col0 FROM tab1 AS cor0
----
-170
-179
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT col1 DIV - ( + col1 ) - + col0 + - col1 + - col1 * - - 58 AS col2 FROM tab0 AS cor0
----
-1327
-157
-4795

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT col1 / - ( + col1 ) - + col0 + - col1 + - col1 * - - 58 AS col2 FROM tab0 AS cor0
----
-1327
-157
-4795

query I rowsort
SELECT + - col0 * col0 * col0 * 67 FROM tab1 AS cor0
----
-41146375
-50489257
-8887617

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT + COUNT( + + ( + + col1 ) ) * + 49 * + 63 AS col0 FROM tab0 AS cor0
----
9261

skipif mysql # not compatible
query I rowsort label-1141
SELECT + COUNT ( + + ( + + col1 ) ) * + 49 * + 63 AS col0 FROM tab0 AS cor0
----
9261

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT + - SUM( ALL + 61 ) col2 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1142
SELECT + - SUM ( ALL + 61 ) col2 FROM tab2 AS cor0
----
-183

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT + 52 * COUNT( * ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-1144
SELECT + 52 * COUNT ( * ) FROM tab1
----
156

query II rowsort
SELECT DISTINCT + col2 * + col2 AS col0, + col0 * - col1 AS col0 FROM tab2
----
1600
-4928
3364
-5025
529
-2346

query I rowsort
SELECT DISTINCT 16 * - - col0 * + + col2 * - col1 FROM tab0
----
-153648
-292320
-913680

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 * + + col1 AS col1, col2 * - 75 FROM tab2
----
1173
-1725
3080
-3000
3886
-4350

query I rowsort
SELECT ALL - 84 * - col2 FROM tab2 AS cor0
----
1932
3360
4872

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT + + ( 79 ) DIV - + col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + + ( 79 ) / - + col1 FROM tab2 AS cor0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT - COUNT( + col1 ) * - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1152
SELECT - COUNT ( + col1 ) * - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
6

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

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

query I rowsort
SELECT ALL + 51 * - 8 * + 74 FROM tab2
----
-30192
-30192
-30192

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT + col0 * col2 DIV col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1155
SELECT + col0 * col2 / col0 FROM tab1
----
59
68
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 + - 38 col0 FROM tab1 AS cor0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT ALL - col1 DIV + 59 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL - col1 / + 59 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - col1 + + + col2 FROM tab2 AS cor0
----
-28
-37
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT + col1 DIV col1 + + 20 + + col1 * col1 FROM tab2 cor0
----
2622
4510
5950

skipif mysql # not compatible
query I rowsort label-1161
SELECT + col1 / col1 + + 20 + + col1 * col1 FROM tab2 cor0
----
2622
4510
5950

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT SUM( ALL - 39 ) * + 59 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6900

skipif mysql # not compatible
query I rowsort label-1163
SELECT SUM ( ALL - 39 ) * + 59 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6900

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT - COUNT( * ) * 23 + - + COUNT( * ) AS col1, - 94 FROM tab1 AS cor0
----
-72
-94

skipif mysql # not compatible
query II rowsort label-1165
SELECT - COUNT ( * ) * 23 + - + COUNT ( * ) AS col1, - 94 FROM tab1 AS cor0
----
-72
-94

query I rowsort
SELECT + ( 59 ) FROM tab2 WHERE NULL < + - 43 + + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT col1 + - + 5 + + col0 + - - 58 + - col1 DIV + col1 + + col0 FROM tab0
----
163
247
247

skipif mysql # not compatible
query I rowsort label-1167
SELECT col1 + - + 5 + + col0 + - - 58 + - col1 / + col1 + + col0 FROM tab0
----
163
247
247

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1168
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col1, 31 + - 40 DIV - 80 col2 FROM tab2
----
NULL
31
NULL
31
NULL
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1168
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col1, 31 + - 40 / - 80 col2 FROM tab2
----
NULL
31
NULL
31
NULL
31

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

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) + - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT DISTINCT - 11 DIV + col0 * + col0 * col1 + + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT - 11 / + col0 * + col0 * col1 + + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT col1 + col2 * + 42 FROM tab2 AS cor0
----
1017
1757
2503

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT COUNT( + col0 ) * - - 76 AS col0 FROM tab1 cor0
----
228

skipif mysql # not compatible
query I rowsort label-1173
SELECT COUNT ( + col0 ) * - - 76 AS col0 FROM tab1 cor0
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 - ( - 53 ) col2 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT - + col2 * 32 - col1 FROM tab2 AS cor0
----
-1357
-1923
-787

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 >= col0
----
51
14
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1178
SELECT - 28 + COUNT ( * ) col1 FROM tab0
----
-25

query I rowsort
SELECT + 1 AS col0 FROM tab2 WHERE col1 NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL 77 * + 41 FROM tab1 AS cor0
----
3157
3157
3157

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1183
SELECT DISTINCT + col0 AS col1, CAST( + 84 AS SIGNED ) + - + col0 AS col1 FROM tab0 AS cor0
----
15
69
87
-3
97
-13

skipif mysql # not compatible
query II rowsort label-1183
SELECT DISTINCT + col0 AS col1, CAST ( + 84 AS INTEGER ) + - + col0 AS col1 FROM tab0 AS cor0
----
15
69
87
-3
97
-13

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

query I rowsort
SELECT - - 38 * - col0 FROM tab0 AS cor0
----
-3306
-3686
-570

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

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

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

query I rowsort
SELECT col1 * - col2 * ( + - col0 ) AS col2 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL + 4 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL MIN( DISTINCT - - 21 ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL MIN ( DISTINCT - - 21 ) AS col2 FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1192
SELECT DISTINCT col1 * + ( CAST( col2 AS SIGNED ) ) AS col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT col1 * + ( CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL col0 * - col1 * - - col0 * - - col1 AS col1 FROM tab0
----
-1476225
-3337929
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * + col2 col1 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT ALL - 62 * col2 * - col1 FROM tab1
----
18290
198152
83328

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1 WHERE + ( - col1 ) = 75
----

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

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

query I rowsort
SELECT + col1 * - - col0 * col0 FROM tab0
----
158949
18225
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col0 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE + 85 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1201
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE + 85 IS NULL
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= 67
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 74 / + + 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT ALL + COUNT( * ) + 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + COUNT ( * ) + 52 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL NOT IN ( col2, 19 ) AND NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( col2, 19 ) AND NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 74 col0 FROM tab1
----
133
142
170

query I rowsort
SELECT + col1 * + + 39 + - col0 AS col2 FROM tab0
----
-58
3144
732

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT COUNT( * ) - - 65 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT COUNT ( * ) - - 65 FROM tab1
----
68

query I rowsort
SELECT ALL + col1 + + + 59 FROM tab2
----
110
126
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT COUNT( * ) + MAX( ALL - col0 ) - + ( 23 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-1215
SELECT COUNT ( * ) + MAX ( ALL - col0 ) - + ( 23 ) FROM tab0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT - - MAX( + + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - - MAX ( + + col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL MAX( ALL col0 ) + + 78 - - + ( - 60 ) AS col2 FROM tab2 AS cor0 WHERE 75 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL MAX ( ALL col0 ) + + 78 - - + ( - 60 ) AS col2 FROM tab2 AS cor0 WHERE 75 > NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - MIN( + 4 ) FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1219
SELECT - MIN ( + 4 ) FROM tab1 cor0
----
-4

query II rowsort
SELECT DISTINCT - ( + + col2 ), col1 FROM tab0 cor0 WHERE NULL IN ( col1 )
----

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

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

query II rowsort
SELECT ALL - - 19, 54 - - 40 + - col2 * - - 12 * + col1 * - 2 AS col2 FROM tab0 cor0 WHERE NOT 35 NOT BETWEEN - + col2 AND 66
----
19
2470
19
5134
19
91462

query I rowsort
SELECT DISTINCT + ( + 13 ) AS col2 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ALL - COUNT( * ) * - COUNT( + col1 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - COUNT ( * ) * - COUNT ( + col1 ) AS col2 FROM tab1
----
9

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT NULL <= + 29 + - col2 + - 76 + - + 34
----

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

query I rowsort
SELECT DISTINCT col2 * - + 11 AS col1 FROM tab0
----
-1089
-110
-517

query I rowsort
SELECT ALL 91 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 <> + 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + 3 AS col0, ( + 32 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT - 43 + + col1 + col0 * - + col1 * + col1 FROM tab2 cor0
----
-119638
-336651
-379422

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - 47 + - COUNT( * ) + + COUNT( ALL - ( + col2 ) ) * + COUNT( ALL - 77 ) AS col1 FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1234
SELECT - 47 + - COUNT ( * ) + + COUNT ( ALL - ( + col2 ) ) * + COUNT ( ALL - 77 ) AS col1 FROM tab1 cor0
----
-41

query I rowsort
SELECT - 51 + col1 FROM tab0 AS cor0
----
-30
-50
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT col2 + - - CAST( - - 2 AS SIGNED ) FROM tab1 AS cor0
----
61
70
98

skipif mysql # not compatible
query I rowsort label-1236
SELECT col2 + - - CAST ( - - 2 AS INTEGER ) FROM tab1 AS cor0
----
61
70
98

query II rowsort
SELECT - ( + - col0 ), - 91 AS col2 FROM tab1 AS cor0
----
51
-91
85
-91
91
-91

query I rowsort
SELECT ALL + + 74 FROM tab0 WHERE - col0 * - col1 + 76 IS NULL
----

query I rowsort
SELECT ALL 17 + + 32 FROM tab0
----
49
49
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL - + SUM( ALL - 40 ) FROM tab2 WHERE NULL NOT BETWEEN + + col1 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL - + SUM ( ALL - 40 ) FROM tab2 WHERE NULL NOT BETWEEN + + col1 AND + col1
----
NULL

query I rowsort
SELECT DISTINCT col1 - + 7 AS col0 FROM tab2
----
44
60
70

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

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab1 WHERE - ( col1 ) + 57 IS NOT NULL
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col2 * + col2 - - col2 col2 FROM tab0 AS cor0
----
1010
103870
970398

query I rowsort
SELECT DISTINCT - - 0 - - 26 + + 85 FROM tab1 AS cor0
----
111

query I rowsort
SELECT + + 82 - + 45 FROM tab2 AS cor0
----
37
37
37

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1248
SELECT ALL + COUNT ( * ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT MIN( ALL - - 10 ) AS col2 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT MIN ( ALL - - 10 ) AS col2 FROM tab1
----
10

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

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

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

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

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

query II rowsort
SELECT + col2, 61 * - col2 FROM tab1 cor0
----
59
-3599
68
-4148
96
-5856

query II rowsort
SELECT ALL - 28, - 84 * - col1 AS col1 FROM tab2 AS cor0
----
-28
4284
-28
5628
-28
6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT ALL - + ( - 21 ) * - col0 + 9 AS col1 FROM tab0 WHERE NOT + CAST( - 81 AS SIGNED ) IS NULL
----
-1818
-2028
-306

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - + ( - 21 ) * - col0 + 9 AS col1 FROM tab0 WHERE NOT + CAST ( - 81 AS INTEGER ) IS NULL
----
-1818
-2028
-306

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1258
SELECT + COUNT( * ), + COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT - + col2 * - - 12 * 40 + + col1 + - col0 * + col0 / + - col0 <> - + ( - + col1 )
----
0
0

skipif mysql # not compatible
query II rowsort label-1258
SELECT + COUNT ( * ), + COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT - + col2 * - - 12 * 40 + + col1 + - col0 * + col0 / + - col0 <> - + ( - + col1 )
----
0
0

query I rowsort
SELECT ( - - 40 ) AS col1 FROM tab0
----
40
40
40

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 AS cor0 WHERE col2 = NULL
----

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

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

query I rowsort
SELECT ALL + + col2 * + - col2 AS col0 FROM tab0 cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL col2 + - col1 - + col1 * col1 FROM tab2 AS cor0
----
-2629
-4498
-5966

query I rowsort
SELECT ALL - 2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL + ( - 29 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL - 69 + - col1 FROM tab2
----
-120
-136
-146

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

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

query I rowsort
SELECT ALL 72 + + col2 AS col1 FROM tab2
----
112
130
95

query I rowsort
SELECT 73 + 46 FROM tab0
----
119
119
119

query I rowsort
SELECT - 73 + + - 84 FROM tab0
----
-157
-157
-157

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

query I rowsort
SELECT - col1 + 48 - - + col2 AS col1 FROM tab0
----
14
146
37

query I rowsort
SELECT DISTINCT - 59 * + col0 + - + col0 AS col1 FROM tab0
----
-5220
-5820
-900

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT ( + 44 ) AS col1, + COUNT( * ) + - 69 FROM tab0
----
44
-66

skipif mysql # not compatible
query II rowsort label-1274
SELECT ( + 44 ) AS col1, + COUNT ( * ) + - 69 FROM tab0
----
44
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * - 80 - - - 95 col0 FROM tab2
----
6305
6305
6305

query II rowsort
SELECT DISTINCT - col1 - 25 AS col1, + col0 FROM tab1 cor0
----
-30
85
-39
51
-72
91

query I rowsort
SELECT DISTINCT - - ( - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT ALL col0 DIV - - 76 * - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL col0 / - - 76 * - - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 21 * + 91 FROM tab1 AS cor0
----
-1911
-1911
-1911

query I rowsort
SELECT col2 * - - 61 FROM tab2
----
1403
2440
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT - 80 * + MAX( + col1 ) AS col0 FROM tab1
----
-3760

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - 80 * + MAX ( + col1 ) AS col0 FROM tab1
----
-3760

query I rowsort
SELECT DISTINCT + - 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 29 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 43 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT + COUNT( * ) * + - 61 FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + COUNT ( * ) * + - 61 FROM tab2 AS cor0
----
-183

onlyif mysql # DIV for integer division: 
query II rowsort label-1286
SELECT ALL col1 DIV + col2, - 14 AS col2 FROM tab1 AS cor0
----
0
-14
0
-14
0
-14

skipif mysql # not compatible
query II rowsort label-1286
SELECT ALL col1 / + col2, - 14 AS col2 FROM tab1 AS cor0
----
0
-14
0
-14
0
-14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT CAST( NULL AS SIGNED ) / 36 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1288
SELECT CAST ( NULL AS INTEGER ) / 36 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - 27 ) * col1 * - 53 + 60 + + - 23 AS col1 FROM tab2
----
110224
73018
95914

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT DISTINCT SUM( DISTINCT ( - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT SUM ( DISTINCT ( - col1 ) ) FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col0 col1 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT 31 * + COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT 31 * + COUNT ( * ) FROM tab2
----
93

query III rowsort
SELECT * FROM tab2 WHERE NOT + 20 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT DISTINCT - ( - + COUNT( * ) ) FROM tab2 WHERE NOT NULL >= - col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT - ( - + COUNT ( * ) ) FROM tab2 WHERE NOT NULL >= - col0 * col0
----
0

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

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

query I rowsort
SELECT - 72 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL - 2 FROM tab2 cor0 WHERE NULL <= col2
----

query I rowsort
SELECT - ( + 53 ) + col1 FROM tab0 AS cor0
----
-32
-52
28

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

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

query II rowsort
SELECT DISTINCT 43 AS col1, - col1 FROM tab1
----
43
-14
43
-47
43
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT DISTINCT + MIN( 45 ) + 2 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT + MIN ( 45 ) + 2 FROM tab2
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + + col0
----

query I rowsort
SELECT - 5 FROM tab0 WHERE NOT NULL NOT BETWEEN + + col0 + - + 2 + - + 30 AND + col0
----

query II rowsort
SELECT DISTINCT - 42, col2 FROM tab1
----
-42
59
-42
68
-42
96

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

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

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

query I rowsort
SELECT ALL col1 * - ( + - 55 ) FROM tab1
----
2585
275
770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT DISTINCT + MIN( ALL - col0 ) DIV 92 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT + MIN ( ALL - col0 ) / 92 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT DISTINCT - - 57 DIV + + col1 col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1311
SELECT DISTINCT - - 57 / + + col1 col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1312
SELECT + 76 DIV - 69 AS col2, col0 FROM tab2
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
query II rowsort label-1312
SELECT + 76 / - 69 AS col2, col0 FROM tab2
----
-1
46
-1
64
-1
75

query I rowsort
SELECT DISTINCT ( - 28 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-28

query II rowsort
SELECT DISTINCT - - col1 + col2 + + - col2 AS col1, 44 FROM tab1 WHERE - 25 IS NULL
----

query I rowsort
SELECT - col0 * + 10 * - col2 AS col1 FROM tab1 AS cor0
----
48960
50150
61880

query II rowsort
SELECT + col1, - 72 * + + 26 AS col2 FROM tab0 AS cor0
----
1
-1872
21
-1872
81
-1872

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 8 FROM tab1 cor0 WHERE - col1 * + 89 IS NOT NULL
----
8
8
8

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

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT + 86 AS col2 FROM tab1 AS cor0 WHERE col1 * 63 BETWEEN - + CAST ( NULL AS INTEGER ) AND col1
----

query I rowsort
SELECT ALL col2 + + col0 + + 71 FROM tab1 AS cor0 WHERE NULL <= 42 * - 86 + + - col2 + + + 83 + + + col2
----

query I rowsort
SELECT ALL ( - 17 ) AS col1 FROM tab2
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1326
SELECT ALL + col2 + - col0 col1, CAST( NULL AS SIGNED ) FROM tab1
----
-23
NULL
-26
NULL
45
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1326
SELECT ALL + col2 + - col0 col1, CAST ( NULL AS INTEGER ) FROM tab1
----
-23
NULL
-26
NULL
45
NULL

query I rowsort
SELECT DISTINCT 27 + + 41 - - 75 * col1 + - col2 * + col2 AS col1 FROM tab1
----
-1031
-3038
-8098

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1328
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( + col2 * + col1 + + - 50 + CAST( NULL AS SIGNED ) ) = + 79 )
----

skipif mysql # not compatible
query III rowsort label-1328
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( + col2 * + col1 + + - 50 + CAST ( NULL AS INTEGER ) ) = + 79 )
----

query I rowsort
SELECT + 80 + - 47 * - col0 FROM tab0
----
4169
4639
785

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT DISTINCT SUM( DISTINCT 52 ) col1 FROM tab2
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1330
SELECT DISTINCT SUM ( DISTINCT 52 ) col1 FROM tab2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT SUM( ALL - 79 ) col1 FROM tab1
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1331
SELECT SUM ( ALL - 79 ) col1 FROM tab1
----
-237

query I rowsort
SELECT ALL + 12 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 33 + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 44 - - col0 col0 FROM tab1 AS cor0
----
41
47
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT ALL 69 * 30 * - col2 - + col2 + - 34 + + col2 DIV + ( - - col0 ) + + + col0 DIV + 34 FROM tab2 AS cor0
----
-120150
-47666
-82873

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL 69 * 30 * - col2 - + col2 + - 34 + + col2 / + ( - - col0 ) + + + col0 / + 34 FROM tab2 AS cor0
----
-120150
-47666
-82873

query II rowsort
SELECT ALL - - col2, + ( col0 ) * + 33 AS col2 FROM tab1 AS cor0
----
59
2805
68
3003
96
1683

onlyif mysql # aggregate syntax: 
query II rowsort label-1337
SELECT DISTINCT - + 28, - COUNT( * ) col1 FROM tab0 AS cor0
----
-28
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1337
SELECT DISTINCT - + 28, - COUNT ( * ) col1 FROM tab0 AS cor0
----
-28
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ( - + 65 ) * - MAX( col1 ) FROM tab1
----
3055

skipif mysql # not compatible
query I rowsort label-1338
SELECT ( - + 65 ) * - MAX ( col1 ) FROM tab1
----
3055

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT 57 DIV + + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT 57 / + + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1340
SELECT + COUNT( + + col0 ) DIV + - 64 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1340
SELECT + COUNT ( + + col0 ) / + - 64 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ( COUNT( * ) ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1342
SELECT ( COUNT ( * ) ) * - COUNT ( * ) FROM tab0
----
-9

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

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

query II rowsort
SELECT ALL ( - 25 ) AS col2, col1 AS col1 FROM tab1 cor0
----
-25
14
-25
47
-25
5

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT 53, 2 AS col0 FROM tab0 AS cor0
----
53
2

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

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

query I rowsort
SELECT - 28 + + 2 AS col0 FROM tab0 AS cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + col2 col1 FROM tab2 AS cor0
----
-9
26
8

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col2 FROM tab1 AS cor0
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT ALL - 38, + SUM( DISTINCT col0 ) AS col1 FROM tab1
----
-38
227

skipif mysql # not compatible
query II rowsort label-1352
SELECT ALL - 38, + SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
-38
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 83 ) + - - 34 * - col2 col2 FROM tab0
----
-1681
-3449
-423

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NULL <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1356
SELECT DISTINCT col1 + + 24 * col0 + - - CAST( + + 7 AS SIGNED ) FROM tab1
----
1245
2052
2238

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT col1 + + 24 * col0 + - - CAST ( + + 7 AS INTEGER ) FROM tab1
----
1245
2052
2238

query I rowsort
SELECT DISTINCT 25 * - 99 AS col0 FROM tab0
----
-2475

onlyif mysql # DIV for integer division: 
query II rowsort label-1358
SELECT ALL + 74 DIV col1 AS col1, col1 + - - 39 - + col0 AS col2 FROM tab2
----
0
52
1
31
1
44

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL + 74 / col1 AS col1, col1 + - - 39 - + col0 AS col2 FROM tab2
----
0
52
1
31
1
44

query I rowsort
SELECT DISTINCT + 30 + col2 FROM tab2
----
53
70
88

query II rowsort
SELECT + col0 * - col1 AS col0, + 65 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT + COUNT( - - col2 ) AS col0 FROM tab0 WHERE - + col2 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT + COUNT ( - - col2 ) AS col0 FROM tab0 WHERE - + col2 * + col0 IS NULL
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1363
SELECT + COUNT ( * ) * - 35 - - - COUNT ( * ) + - ( - 38 ) FROM tab1 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1364
SELECT ALL - col1 - - CAST( 40 AS SIGNED ) + + 89 DIV 13 FROM tab0
----
-35
25
45

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL - col1 - - CAST ( 40 AS INTEGER ) + + 89 / 13 FROM tab0
----
-35
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT - MAX( ALL 78 ) - - ( - 17 ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT - MAX ( ALL 78 ) - - ( - 17 ) FROM tab2
----
-95

query I rowsort
SELECT col2 * - 42 AS col2 FROM tab2 AS cor0
----
-1680
-2436
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT + col2 DIV + - col1 - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1367
SELECT + col2 / + - col1 - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - 11 AS col1 FROM tab2 WHERE NOT NULL >= + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT DISTINCT + col2 FROM tab1 WHERE col2 BETWEEN col2 * col1 * + 21 - 32 AND ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT + col2 FROM tab1 WHERE col2 BETWEEN col2 * col1 * + 21 - 32 AND ( - - CAST ( NULL AS INTEGER ) )
----

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT + 65 * - - col1 DIV col0 DIV - + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1375
SELECT + 65 * - - col1 / col0 / - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 - + 5 FROM tab1
----
54
63
91

query III rowsort
SELECT * FROM tab2 WHERE 61 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT COUNT( * ) * + SUM( ALL - col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT COUNT ( * ) * + SUM ( ALL - col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ALL - ( - 70 ) + COUNT( * ) AS col0 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL - ( - 70 ) + COUNT ( * ) AS col0 FROM tab2
----
73

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

query I rowsort
SELECT DISTINCT col0 - col2 AS col0 FROM tab1 WHERE - 95 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 73 >= col1
----

query I rowsort
SELECT - 8 AS col1 FROM tab1 WHERE ( + col0 * col1 + col1 * col0 ) IS NOT NULL
----
-8
-8
-8

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

skipif mysql # not compatible
query I rowsort label-1384
SELECT COUNT ( * ) + AVG ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 95 * ( + col2 ) FROM tab1
----
5605
6460
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 + - col2 <> + 16 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-1386
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 + - col2 <> + 16 * - 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL - 35 * COUNT( ALL col0 ) AS col2 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL - 35 * COUNT ( ALL col0 ) AS col2 FROM tab0
----
-105

query I rowsort
SELECT 14 / + col2 + 40 FROM tab2 WHERE NOT 35 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT + CAST( - 61 AS SIGNED ) + - col2 FROM tab1
----
-120
-129
-157

skipif mysql # not compatible
query I rowsort label-1389
SELECT + CAST ( - 61 AS INTEGER ) + - col2 FROM tab1
----
-120
-129
-157

query I rowsort
SELECT DISTINCT 44 * 25 FROM tab1
----
1100

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

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NULL IN ( + col1 / 22 )
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col0 ) * col2 - - 3 NOT BETWEEN NULL AND ( 35 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( 94 ) NOT BETWEEN ( - 40 ) AND - 86 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( + col1 / + 97 ) AND NULL
----

query I rowsort
SELECT + 90 - 81 AS col0 FROM tab0
----
9
9
9

query I rowsort
SELECT 25 * col2 - + col0 FROM tab1
----
1390
1609
2349

query I rowsort
SELECT - ( col0 ) * + col1 AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + 0 + + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT - SUM( 40 ) + - 33 AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1401
SELECT - SUM ( 40 ) + - 33 AS col2 FROM tab2 AS cor0
----
-153

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

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

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

query I rowsort
SELECT DISTINCT - 59 * 33 + col2 FROM tab0
----
-1848
-1900
-1937

query I rowsort
SELECT ALL - 12 FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - col0 AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT DISTINCT 47 DIV 8 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 * - col1 ) BETWEEN col1 AND col1
----
5

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT 47 / 8 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 * - col1 ) BETWEEN col1 AND col1
----
5

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

query I rowsort
SELECT DISTINCT - + 77 * 82 AS col2 FROM tab0 AS cor0
----
-6314

query I rowsort
SELECT + 50 * col1 - + col1 FROM tab1 cor0 WHERE NOT 28 >= ( + 73 )
----
2303
245
686

query I rowsort
SELECT + 60 FROM tab1 AS cor0 WHERE NOT col0 + - 37 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT 75 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1412
SELECT 75 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT DISTINCT SUM( - 29 ) col2 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1414
SELECT DISTINCT SUM ( - 29 ) col2 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 * col1 + + 64 / - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT + 4 - - COUNT( * ) * - 14 FROM tab1 WHERE NOT col2 IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-1416
SELECT + 4 - - COUNT ( * ) * - 14 FROM tab1 WHERE NOT col2 IS NOT NULL
----
4

query I rowsort
SELECT - ( 84 ) * - col2 AS col0 FROM tab2
----
1932
3360
4872

query I rowsort
SELECT - 39 * - 44 AS col2 FROM tab1
----
1716
1716
1716

query I rowsort
SELECT + 87 * - col1 FROM tab2
----
-4437
-5829
-6699

onlyif mysql # DIV for integer division: 
query I rowsort label-1420
SELECT col2 DIV - - 54 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1420
SELECT col2 / - - 54 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT - col1 DIV - col1 - + col2 FROM tab1 WHERE ( + col0 ) BETWEEN ( NULL ) AND 14 OR ( col2 * - 45 ) <= 37
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-1421
SELECT - col1 / - col1 - + col2 FROM tab1 WHERE ( + col0 ) BETWEEN ( NULL ) AND 14 OR ( col2 * - 45 ) <= 37
----
-58
-67
-95

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 17 * 8 <= - col2 * col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - col1 + - col2
----

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

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

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

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

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + 91
----

query I rowsort
SELECT + - col1 + + 2 AS col0 FROM tab0 AS cor0
----
-19
-79
1

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

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

query I rowsort
SELECT - col1 * + col0 + + col2 AS col1 FROM tab2 AS cor0
----
-2323
-4888
-4967

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1433
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1433
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * - col1 * - col0 + col0 FROM tab1 AS cor0
----
25160
290927
68595

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT 54 + + COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1435
SELECT 54 + + COUNT ( * ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT 99 + col0 FROM tab2 AS cor0
----
145
163
174

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1437
SELECT ALL + MAX ( ALL 18 ) col0 FROM tab2 AS cor0
----
18

query I rowsort
SELECT - 83 AS col0 FROM tab1 AS cor0 WHERE col0 * - 33 * 28 + col2 NOT IN ( 42 * - col1 )
----
-83
-83
-83

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

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

query I rowsort
SELECT ALL - col0 + 78 AS col0 FROM tab0
----
-19
-9
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT DISTINCT + ( + col1 ) + col2 + col0 DIV 58 AS col2 FROM tab0
----
101
128
32

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT + ( + col1 ) + col2 + col0 / 58 AS col2 FROM tab0
----
101
128
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT DISTINCT MAX( DISTINCT + col2 ) + COUNT( * ) AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT MAX ( DISTINCT + col2 ) + COUNT ( * ) AS col0 FROM tab0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT ALL - col2 * + col2 - col0 + + col1 DIV - 78 * col1 AS col2 FROM tab1
----
-3566
-4715
-9267

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL - col2 * + col2 - col0 + + col1 / - 78 * col1 AS col2 FROM tab1
----
-3566
-4715
-9267

query I rowsort
SELECT ALL + col2 + + 77 FROM tab2
----
100
117
135

query I rowsort
SELECT DISTINCT + 87 * + col2 FROM tab1
----
5133
5916
8352

query I rowsort
SELECT DISTINCT col2 + 52 + + - col0 FROM tab0
----
-25
54
84

query I rowsort
SELECT ALL col1 * 87 AS col0 FROM tab2
----
4437
5829
6699

query I rowsort
SELECT - 17 - + 80 + - + 30 FROM tab2
----
-127
-127
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT - COUNT( * ) + 54 FROM tab0 WHERE ( NULL ) >= + col0
----
54

skipif mysql # not compatible
query I rowsort label-1449
SELECT - COUNT ( * ) + 54 FROM tab0 WHERE ( NULL ) >= + col0
----
54

query I rowsort
SELECT DISTINCT + col0 * + 55 AS col0 FROM tab2 AS cor0
----
2530
3520
4125

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 69 NOT BETWEEN - col2 + - 80 / - ( ( col2 ) ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 36 NOT BETWEEN ( + 88 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1453
SELECT * FROM tab2 AS cor0 WHERE 88 <= CAST( + col0 AS DECIMAL ) + col2
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-1453
SELECT * FROM tab2 AS cor0 WHERE 88 <= CAST ( + col0 AS REAL ) + col2
----
64
77
40
75
67
58

query I rowsort
SELECT ALL + - 40 * - - col1 AS col0 FROM tab1 AS cor0
----
-1880
-200
-560

query II rowsort
SELECT + 29 - col0, col2 AS col1 FROM tab2 AS cor0
----
-17
23
-35
40
-46
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1456
SELECT DISTINCT 66 DIV + col2 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
0
NULL
1
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-1456
SELECT DISTINCT 66 / + col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
0
NULL
1
NULL
6
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 BETWEEN ( col1 ) AND + col0 )
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT ALL 23 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60 col1, - col0 + 56 FROM tab1 AS cor0
----
60
-29
60
-35
60
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT ALL + 13 DIV - - col2 * ( + 15 ) + - - col2 * col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL + 13 / - - col2 * ( + 15 ) + - - col2 * col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1463
SELECT DISTINCT - col2, CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif mysql # not compatible
query II rowsort label-1463
SELECT DISTINCT - col2, CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT - 59 AS col1, - 0 FROM tab1 AS cor0
----
-59
0
-59
0
-59
0

query I rowsort
SELECT DISTINCT - - 98 AS col2 FROM tab0 cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL + COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL + COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1469
SELECT - ( - + col0 ) DIV + - 54 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1469
SELECT - ( - + col0 ) / + - 54 AS col2 FROM tab1
----
-1
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT DISTINCT - ( + 89 ) * CAST( NULL AS SIGNED ) - + 95 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT - ( + 89 ) * CAST ( NULL AS INTEGER ) - + 95 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-1472
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT ALL col1 DIV + + 6 AS col1 FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL col1 / + + 6 AS col1 FROM tab1
----
0
2
7

query II rowsort
SELECT 60 AS col1, 83 AS col0 FROM tab2
----
60
83
60
83
60
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT - COUNT( * ) DIV 72 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) >= ( - col0 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1478
SELECT - COUNT ( * ) / 72 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) >= ( - col0 + + col2 )
----
0

query II rowsort
SELECT ALL + - 54 AS col2, col1 FROM tab1 AS cor0
----
-54
14
-54
47
-54
5

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT ALL + COUNT( DISTINCT - + ( - col2 ) ) col2, MIN( DISTINCT - 49 ) FROM tab1
----
3
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1483
SELECT ALL + COUNT ( DISTINCT - + ( - col2 ) ) col2, MIN ( DISTINCT - 49 ) FROM tab1
----
3
-49

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NULL = + 13 + + - col1 * ( - 41 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + 70 * MAX( ALL + 53 ) * - + 12 AS col1 FROM tab1 AS cor0
----
-44520

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 70 * MAX ( ALL + 53 ) * - + 12 AS col1 FROM tab1 AS cor0
----
-44520

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IN ( 92 + - col2, + col2 ) )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT + ( - ( - + CAST ( - 99 AS INTEGER ) ) ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT ALL + COUNT( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT DISTINCT + col1 + - col0 * - + ( - - col0 ) AS col0 FROM tab1
----
2615
7230
8328

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1496
SELECT col1 * - col0 * + col1 + col1 DIV + CAST( - col0 AS SIGNED ) * col2 + + col1 FROM tab1
----
-200972
-2120
-9982

skipif mysql # not compatible
query I rowsort label-1496
SELECT col1 * - col0 * + col1 + col1 / + CAST ( - col0 AS INTEGER ) * col2 + + col1 FROM tab1
----
-200972
-2120
-9982

query I rowsort
SELECT ALL ( + + ( col1 ) ) + + col1 AS col2 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL 98 * - - col0 - + - 72 + + 51 * col1 FROM tab2
----
10271
10839
7181

query I rowsort
SELECT DISTINCT 42 + - + col0 * col1 * col2 FROM tab2
----
-197078
-291408
-53916

query I rowsort
SELECT + 8 + + - col0 FROM tab1
----
-43
-77
-83

query I rowsort
SELECT DISTINCT + 13 * + col2 - - col1 AS col2 FROM tab1
----
1262
772
931

query I rowsort
SELECT DISTINCT + + ( + - 97 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1455
-8439
-9409

query I rowsort
SELECT + 8 * + col1 FROM tab2 cor0
----
408
536
616

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT 26 * MIN( + col0 ) FROM tab1
----
1326

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT 26 * MIN ( + col0 ) FROM tab1
----
1326

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

query I rowsort
SELECT - 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL + col2 * + col1 * + 55 AS col0 FROM tab1 AS cor0
----
16225
175780
73920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL COUNT( * ) col2 FROM tab2 AS cor0 WHERE + 88 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1511
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 WHERE + 88 IS NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT - CAST( ( - col0 ) AS SIGNED ) AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1514
SELECT - CAST ( ( - col0 ) AS INTEGER ) AS col0 FROM tab0
----
15
87
97

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

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

query I rowsort
SELECT ALL 33 * + col0 FROM tab1
----
1683
2805
3003

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT DISTINCT + 25 DIV col1 col1 FROM tab1
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1517
SELECT DISTINCT + 25 / col1 col1 FROM tab1
----
0
1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT ALL 78 DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL 78 / - col0 FROM tab0
----
-5
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT DISTINCT col0 DIV + - 47 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT col0 / + - 47 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + 23 + + col0 AS col1 FROM tab2 AS cor0
----
69
87
98

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

skipif mysql # not compatible
query I rowsort label-1522
SELECT + MAX ( ALL 1 ) AS col0 FROM tab2
----
1

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON ( + - 25 ) IS NULL WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + 42 AS col2, 5 FROM tab0 AS cor0
----
42
5
42
5
42
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT - col1 DIV 2 col0 FROM tab0 AS cor0
----
-10
-40
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1526
SELECT - col1 / 2 col0 FROM tab0 AS cor0
----
-10
-40
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT ALL - col0 DIV - - col1 FROM tab1 AS cor0 WHERE NOT col0 * - - col0 IS NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL - col0 / - - col1 FROM tab1 AS cor0 WHERE NOT col0 * - - col0 IS NULL
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT 46 + + MIN( + 11 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-1528
SELECT 46 + + MIN ( + 11 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT + + col2 * - - 84 + + - ( col2 ) + + - 2 DIV + ( - col0 ) AS col2 FROM tab2 cor0
----
1909
3320
4814

skipif mysql # not compatible
query I rowsort label-1529
SELECT + + col2 * - - 84 + + - ( col2 ) + + - 2 / + ( - col0 ) AS col2 FROM tab2 cor0
----
1909
3320
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT ALL + 94 + + ( COUNT( * ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL + 94 + + ( COUNT ( * ) ) FROM tab0 AS cor0
----
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1531
SELECT + + COUNT ( + - 62 ) col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 40 + + - 26, 34 * + + col0 + - + ( col2 ) col1 FROM tab1
----
14
1638
14
2831
14
3026

query I rowsort
SELECT ALL 24 + - col2 AS col1 FROM tab1
----
-35
-44
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT - COUNT( * ) col1 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1534
SELECT - COUNT ( * ) col1 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col0 + - 25 AS col1 FROM tab0 WHERE ( ( NULL ) IS NULL )
----
-10
62
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 * + 74 col1 FROM tab0 cor0
----
32634
485514
74

query II rowsort
SELECT DISTINCT col2, 71 FROM tab2
----
23
71
40
71
58
71

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT ALL - 37 AS col1, SUM( + + 9 ) + - + SUM( ALL - + 85 ) AS col0 FROM tab1 AS cor0
----
-37
282

skipif mysql # not compatible
query II rowsort label-1539
SELECT ALL - 37 AS col1, SUM ( + + 9 ) + - + SUM ( ALL - + 85 ) AS col0 FROM tab1 AS cor0
----
-37
282

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT - MAX( + + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1541
SELECT - MAX ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE col1 / + col0 + + 41 BETWEEN + ( - 55 ) AND ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT DISTINCT SUM( DISTINCT - - col1 ) * - MAX( + - col0 ) + + 60 AS col0 FROM tab0 AS cor0
----
1605

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT SUM ( DISTINCT - - col1 ) * - MAX ( + - col0 ) + + 60 AS col0 FROM tab0 AS cor0
----
1605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1544
SELECT ALL - col2 + CAST( + + col0 AS SIGNED ) AS col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - col2 + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + 31 col2 FROM tab1 WHERE col2 / col0 + + - col1 / - col0 <= + col0 * - col2 / - col0
----
14
31
47
31
5
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT DISTINCT + ( - + 69 ) * COUNT( * ) AS col2 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT + ( - + 69 ) * COUNT ( * ) AS col2 FROM tab1
----
-207

query I rowsort
SELECT DISTINCT col1 + + col0 * col0 AS col2 FROM tab1 WHERE NOT - col1 IS NULL
----
2615
7230
8328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN ( + 94 ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN ( + 94 ) AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT DISTINCT col1 + + - 55 DIV 58 DIV + - col2 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT col1 + + - 55 / 58 / + - col2 AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT COUNT( ALL + col2 ) * + 78 AS col1 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-1550
SELECT COUNT ( ALL + col2 ) * + 78 AS col1 FROM tab2
----
234

query I rowsort
SELECT ALL col2 * + 73 * - + col2 AS col0 FROM tab0
----
-161257
-715473
-7300

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT col1 * - - col2 * + col2 DIV - col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-1552
SELECT col1 * - - col2 * + col2 / - col2 FROM tab0
----
-210
-3807
-99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1554
SELECT ALL * FROM tab2 WHERE NOT col0 + - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-1554
SELECT ALL * FROM tab2 WHERE NOT col0 + - CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT col1 * ( + + col1 ) FROM tab0
----
1
441
6561

query I rowsort
SELECT + 96 + - 88 AS col1 FROM tab2
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT col2 DIV col1 * + - ( - 50 ) FROM tab0 WHERE ( NULL ) IS NULL
----
0
0
4950

skipif mysql # not compatible
query I rowsort label-1557
SELECT col2 / col1 * + - ( - 50 ) FROM tab0 WHERE ( NULL ) IS NULL
----
0
0
4950

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / - - 25 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 72 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1560
SELECT SUM( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT MIN( DISTINCT + + 43 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT MIN ( DISTINCT + + 43 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NULL )
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + 40 col0 FROM tab2
----
1840
2560
3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 39 col0 FROM tab0 AS cor0
----
-138
-49
-86

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + col0 AND + col2
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( 39 ) FROM tab1 AS cor0
----
39

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1570
SELECT DISTINCT - col0 AS col2, col0 / 21 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1570
SELECT DISTINCT - col0 AS col2, col0 / 21 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < col0
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE col1 + - 32 IN ( - - col0 + - 58 )
----

query I rowsort
SELECT col2 + - - 20 FROM tab2
----
43
60
78

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

query I rowsort
SELECT 48 + + ( col2 ) AS col1 FROM tab0
----
147
58
95

query I rowsort
SELECT DISTINCT col1 + + ( 74 ) FROM tab2
----
125
141
151

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT 55 DIV col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1578
SELECT 55 / col2 col1 FROM tab1
----
0
0
0

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1581
SELECT - 14 AS col2, ( col2 ) DIV 72 AS col1 FROM tab1
----
-14
0
-14
0
-14
1

skipif mysql # not compatible
query II rowsort label-1581
SELECT - 14 AS col2, ( col2 ) / 72 AS col1 FROM tab1
----
-14
0
-14
0
-14
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1582
SELECT - - MAX ( DISTINCT + + col2 ) col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + + col0 * + ( col0 ) + - col1 + - col2 AS col0 FROM tab2 AS cor0
----
2042
3979
5500

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - COUNT( * ) * COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1584
SELECT - COUNT ( * ) * COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 <> - col1
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - 89 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1588
SELECT - 89 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-86

query II rowsort
SELECT col0 + 83 AS col0, 34 AS col0 FROM tab1 AS cor0
----
134
34
168
34
174
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IS NOT NULL AND NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col0 + + col1, col2 AS col1 FROM tab0 AS cor0
----
108
10
96
47
98
99

query II rowsort
SELECT ALL col0, - col2 + col0 - + col2 AS col1 FROM tab2
----
46
0
64
-16
75
-41

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1595
SELECT col0 * col0 DIV CAST( + col1 AS SIGNED ) FROM tab0
----
2
360
9409

skipif mysql # not compatible
query I rowsort label-1595
SELECT col0 * col0 / CAST ( + col1 AS INTEGER ) FROM tab0
----
2
360
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE NOT - + 58 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - + 58 IS NULL
----
-3

query I rowsort
SELECT + + 57 * col0 AS col1 FROM tab1 AS cor0
----
2907
4845
5187

query II rowsort
SELECT col0 AS col0, + col0 * - col1 AS col1 FROM tab2 AS cor0
----
46
-2346
64
-4928
75
-5025

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1600
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * - - 40 AS col1, - 17 AS col2 FROM tab0 AS cor0
----
120
-17

skipif mysql # not compatible
query II rowsort label-1600
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * - - 40 AS col1, - 17 AS col2 FROM tab0 AS cor0
----
120
-17

query I rowsort
SELECT DISTINCT + col0 * col1 - 18 FROM tab0
----
1197
1809
79

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - 77 - - + 35 + + col2 col0 FROM tab2 AS cor0
----
-2679
-2697
-2714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 43 AND - 86
----

query I rowsort
SELECT - ( + col2 ) * + col2 * - - col2 * - 58 AS col2 FROM tab1 cor0
----
11911982
18237056
51314688

query I rowsort
SELECT ALL - col0 * - 65 AS col2 FROM tab1 AS cor0
----
3315
5525
5915

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

query I rowsort
SELECT + col2 * + col2 - - col1 AS col2 FROM tab2 AS cor0
----
1677
3431
580

query II rowsort
SELECT DISTINCT - col1 - + + col0 * + col0 * + col1 AS col0, 41 * - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-107967
-1886
-315469
-2624
-376942
-3075

query II rowsort
SELECT ALL - 34 * - - 44 + col2 + - - col2 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
-1304
51
-1360
91
-1378
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL + 55 + - COUNT( * ) * 66 col2 FROM tab2 AS cor0
----
-143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1611
SELECT ALL + 55 + - COUNT ( * ) * 66 col2 FROM tab2 AS cor0
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1612
SELECT + - CAST( + col1 AS SIGNED ) * - + col2 FROM tab1 cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-1612
SELECT + - CAST ( + col1 AS INTEGER ) * - + col2 FROM tab1 cor0
----
1344
295
3196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL + + MAX( ALL - - 13 ) FROM tab2 WHERE NOT ( col0 * - 41 - - 23 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL + + MAX ( ALL - - 13 ) FROM tab2 WHERE NOT ( col0 * - 41 - - 23 ) <= ( NULL )
----
NULL

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

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

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

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

query II rowsort
SELECT - col2 AS col2, - col0 + col2 FROM tab1 AS cor0
----
-59
-26
-68
-23
-96
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / + ( + + col1 ) NOT IN ( col0 - 18 )
----

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

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

query I rowsort
SELECT - + col2 FROM tab2 WHERE NOT - col0 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT CAST( + 20 AS SIGNED ) * + col1 FROM tab2
----
1020
1340
1540

skipif mysql # not compatible
query I rowsort label-1622
SELECT CAST ( + 20 AS INTEGER ) * + col1 FROM tab2
----
1020
1340
1540

query II rowsort
SELECT - col2 AS col0, + col0 AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 1 - - - col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1626
SELECT col2, - col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1626
SELECT col2, - col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT ( + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + - 34 * + MAX( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-3366

skipif mysql # not compatible
query I rowsort label-1628
SELECT + - 34 * + MAX ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
-3366

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

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

query I rowsort
SELECT ALL + 92 * - col2 * - - col1 AS col1 FROM tab2 AS cor0
----
-107916
-283360
-357512

query III rowsort
SELECT * FROM tab1 WHERE col2 + + 72 / 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1633
SELECT DISTINCT + 9 - 15, col0 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) IN ( - + col0, col2 )
----

skipif mysql # not compatible
query II rowsort label-1633
SELECT DISTINCT + 9 - 15, col0 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) IN ( - + col0, col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1635
SELECT col1 + - ( CAST( + 31 AS SIGNED ) ) AS col2 FROM tab0
----
-10
-30
50

skipif mysql # not compatible
query I rowsort label-1635
SELECT col1 + - ( CAST ( + 31 AS INTEGER ) ) AS col2 FROM tab0
----
-10
-30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT 39 + MAX( - - 21 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1636
SELECT 39 + MAX ( - - 21 ) FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1637
SELECT + - col2 + + CAST( NULL AS SIGNED ) col1, - col2 AS 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-1637
SELECT + - col2 + + CAST ( NULL AS INTEGER ) col1, - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT DISTINCT - - 77 AS col2 FROM tab1 cor0 WHERE NOT ( NOT NULL NOT BETWEEN 8 + + col0 AND 5 )
----

query I rowsort
SELECT ALL - - 40 AS col0 FROM tab1 AS cor0
----
40
40
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 96 IS NULL
----

query I rowsort
SELECT DISTINCT + 46 * + ( + + col1 ) AS col1 FROM tab0 AS cor0
----
3726
46
966

onlyif mysql # DIV for integer division: 
query II rowsort label-1642
SELECT DISTINCT + col2 DIV - ( - + 69 ), col1 AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-1642
SELECT DISTINCT + col2 / - ( - + 69 ), col1 AS col0 FROM tab2 AS cor0
----
0
51
0
67
0
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1645
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 56 IN ( + - 88, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1645
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 56 IN ( + - 88, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 * 66 AS col2 FROM tab1
----
3894
4488
6336

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1647
SELECT DISTINCT + 3 * + col2 + - CAST( NULL AS SIGNED ), col2 * 56 * - 86 AS col0 FROM tab0 WHERE NOT + + 95 <> - col1 / + col0 + 4 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1647
SELECT DISTINCT + 3 * + col2 + - CAST ( NULL AS INTEGER ), col2 * 56 * - 86 AS col0 FROM tab0 WHERE NOT + + 95 <> - col1 / + col0 + 4 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT - col1 DIV - + 22 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1648
SELECT - col1 / - + 22 FROM tab1
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1649
SELECT DISTINCT col1 * CAST( - col2 AS SIGNED ) FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT col1 * CAST ( - col2 AS INTEGER ) FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1650
SELECT * FROM tab2 WHERE NOT CAST( col2 AS SIGNED ) < 86
----

skipif mysql # not compatible
query III rowsort label-1650
SELECT * FROM tab2 WHERE NOT CAST ( col2 AS INTEGER ) < 86
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT COUNT( * ) + + 28 FROM tab2 WHERE ( col0 IS NOT NULL )
----
31

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT COUNT ( * ) + + 28 FROM tab2 WHERE ( col0 IS NOT NULL )
----
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT ALL + - CAST( - 36 AS SIGNED ) * - col0 AS col2 FROM tab1 cor0
----
-1836
-3060
-3276

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + - CAST ( - 36 AS INTEGER ) * - col0 AS col2 FROM tab1 cor0
----
-1836
-3060
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT + SUM( + 2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1655
SELECT + SUM ( + 2 ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 45 ) * - + 31 * - 47 col2 FROM tab1
----
65565

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + col2 * + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 * + + col1 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 93 + - col2 + col2 * + col1 + + - 67 col1 FROM tab0 AS cor0
----
-7958
-9088
2298

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT DISTINCT - col0 DIV 51 + + col2 AS col1 FROM tab0 AS cor0 WHERE col1 + + 64 - col0 + - 90 * + col1 IS NOT NULL
----
47
9
98

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - col0 / 51 + + col2 AS col1 FROM tab0 AS cor0 WHERE col1 + + 64 - col0 + - 90 * + col1 IS NOT NULL
----
47
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - + 74 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-1661
SELECT - + 74 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT DISTINCT - ( - + col0 ) + + col2 * col2 + + col2 FROM tab0 AS cor0
----
197
2271
9997

query I rowsort
SELECT ALL ( 38 ) + - col0 FROM tab2 AS cor0
----
-26
-37
-8

query II rowsort
SELECT + col2 AS col1, + col2 + + - col2 AS col1 FROM tab0 AS cor0
----
10
0
47
0
99
0

query I rowsort
SELECT ALL + col1 + - 6 FROM tab2
----
45
61
71

query I rowsort
SELECT ALL + col1 + - 63 FROM tab0
----
-42
-62
18

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 61 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT DISTINCT + 53 - 46 + - col2 * - + 95 + - CAST( NULL AS SIGNED ) * + ( col2 ) / 25 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT + 53 - 46 + - col2 * - + 95 + - CAST ( NULL AS INTEGER ) * + ( col2 ) / 25 AS col1 FROM tab0
----
NULL

query II rowsort
SELECT ALL 14 + + col2, col1 AS col0 FROM tab0
----
113
1
24
21
61
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1670
SELECT DISTINCT + CAST( NULL AS SIGNED ), 30 AS col0 FROM tab2
----
NULL
30

skipif mysql # not compatible
query II rowsort label-1670
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 30 AS col0 FROM tab2
----
NULL
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT + col1 + - ( - - col2 ) DIV col1 * - + 94 FROM tab1 AS cor0
----
1039
141
578

skipif mysql # not compatible
query I rowsort label-1671
SELECT + col1 + - ( - - col2 ) / col1 * - + 94 FROM tab1 AS cor0
----
1039
141
578

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 80 IS NOT NULL
----

query I rowsort
SELECT ALL - - 6 + + - 3 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 / - + col0 * + - col1, - col0 * + + 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT + 39 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + 39 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-117

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1675
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) < CAST( 54 AS DECIMAL ) * col1
----

skipif mysql # not compatible
query III rowsort label-1675
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) < CAST ( 54 AS REAL ) * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1676
SELECT COUNT( * ) AS col2, 99 AS col1 FROM tab0
----
3
99

skipif mysql # not compatible
query II rowsort label-1676
SELECT COUNT ( * ) AS col2, 99 AS col1 FROM tab0
----
3
99

query I rowsort
SELECT ALL 5 * + col1 AS col1 FROM tab2
----
255
335
385

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1679
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) - - col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-1679
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) - - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT DISTINCT 50 DIV + 83 * 76 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT 50 / + 83 * 76 FROM tab0
----
0

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

skipif mysql # not compatible
query II rowsort label-1681
SELECT - COUNT ( * ), 44 AS col2 FROM tab0
----
-3
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT - + col0 DIV 33 * - col0 FROM tab1 cor0
----
170
182
51

skipif mysql # not compatible
query I rowsort label-1682
SELECT - + col0 / 33 * - col0 FROM tab1 cor0
----
170
182
51

query I rowsort
SELECT col2 * - col1 + + 58 FROM tab1 AS cor0
----
-1286
-237
-3138

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1686
SELECT ALL + COUNT( ALL + - col0 ) DIV + 20 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + COUNT ( ALL + - col0 ) / + 20 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT 16 + + 13 + - col0 FROM tab2 AS cor0
----
-17
-35
-46

query III rowsort
SELECT * FROM tab2 WHERE - 73 + + col0 < NULL
----

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

query I rowsort
SELECT ALL 11 + 8 AS col1 FROM tab2
----
19
19
19

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT DISTINCT + 18 * - COUNT( * ) + - 5 + COUNT( * ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + 18 * - COUNT ( * ) + - 5 + COUNT ( * ) FROM tab0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 + col0 col1 FROM tab2
----
139
157
168

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

query II rowsort
SELECT col0 + + 95 * col0 AS col1, col1 FROM tab2
----
4416
51
6144
77
7200
67

query I rowsort
SELECT - col0 + + - col0 * col2 AS col0 FROM tab1
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT DISTINCT - SUM( 23 ) + + - 26 AS col0 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT - SUM ( 23 ) + + - 26 AS col0 FROM tab1
----
-95

query I rowsort
SELECT - col0 + 65 AS col2 FROM tab1
----
-20
-26
14

query I rowsort
SELECT 31 + col0 FROM tab2
----
106
77
95

query I rowsort
SELECT ALL - ( - - col0 ) - - - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-69
-88
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1703
SELECT COUNT( * ) DIV - - 62 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1703
SELECT COUNT ( * ) / - - 62 FROM tab2
----
0

query I rowsort
SELECT col1 * - 99 AS col1 FROM tab0
----
-2079
-8019
-99

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

query II rowsort
SELECT + col1 AS col2, 93 FROM tab2
----
51
93
67
93
77
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - col2 * col0 + - - 61 * + - col0 AS col2 FROM tab0
----
10
-6177
47
-1620
99
-15520

onlyif mysql # aggregate syntax: 
query II rowsort label-1708
SELECT COUNT( * ), 49 AS col1 FROM tab2
----
3
49

skipif mysql # not compatible
query II rowsort label-1708
SELECT COUNT ( * ), 49 AS col1 FROM tab2
----
3
49

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

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

query II rowsort
SELECT ALL + col1, + col2 AS col2 FROM tab0 cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT col2 * col2 * - 45 FROM tab0 AS cor0 WHERE NULL >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT + ( 25 ) * - SUM( + 19 ) FROM tab2 AS cor0
----
-1425

skipif mysql # not compatible
query I rowsort label-1714
SELECT + ( 25 ) * - SUM ( + 19 ) FROM tab2 AS cor0
----
-1425

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + 68 * + + col2 FROM tab2
----
1564
2720
3944

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT + SUM( - 28 ) * + - 52 AS col0 FROM tab0
----
4368

skipif mysql # not compatible
query I rowsort label-1719
SELECT + SUM ( - 28 ) * + - 52 AS col0 FROM tab0
----
4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT DISTINCT ( + + SUM( ALL + - 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-1720
SELECT DISTINCT ( + + SUM ( ALL + - col1 ) ) * - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - col1 * col2 * - - 72 * + - col2 * - 4 FROM tab1
----
-37158912
-5012640
-62590464

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1722
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1723
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + 42 BETWEEN + 14 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1725
SELECT ( - + 23 ) AS col1, CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-1725
SELECT ( - + 23 ) AS col1, CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-23
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 92 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1727
SELECT DISTINCT - col1 + CAST( col1 AS SIGNED ) + - col1 * + 4 * col0 * 50 FROM tab0 AS cor0
----
-19400
-243000
-365400

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - col1 + CAST ( col1 AS INTEGER ) + - col1 * + 4 * col0 * 50 FROM tab0 AS cor0
----
-19400
-243000
-365400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <= - ( - - col0 )
----

skipif mysql # not compatible
query I rowsort label-1728
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= - ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1729
SELECT ALL + + col0 DIV + - ( CAST( 55 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + + col0 / + - ( CAST ( 55 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1730
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 + - col0 FROM tab0
----
NULL

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

query I rowsort
SELECT ALL + 76 * + col1 - col0 FROM tab0 WHERE NOT - - ( + - 94 ) * + col1 * - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 + + + col2 col1 FROM tab0 cor0
----
-11
-48
41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 95 + + + col1 + - col2 + - - col0 * + col0 <> - + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT + ( - 44 ) * + MIN( ALL + col1 ) FROM tab2 cor0
----
-2244

skipif mysql # not compatible
query I rowsort label-1735
SELECT + ( - 44 ) * + MIN ( ALL + col1 ) FROM tab2 cor0
----
-2244

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - ( 4 ) + + 13
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 76 + - - 83 + col0 * - col2 * col2 + - + col1 FROM tab1
----
-295883
-420824
-470023

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT + col0 DIV + + 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT + col0 / + + 95 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( + + 33 * col0 + col0 + + col2 + - col1 ) NOT BETWEEN + col0 + - + 53 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT ( - 30 ) + + COUNT( DISTINCT 53 ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT ( - 30 ) + + COUNT ( DISTINCT 53 ) FROM tab0
----
-29

query I rowsort
SELECT DISTINCT - col0 * + col1 + + 93 AS col2 FROM tab0
----
-1122
-1734
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 - + - 95 col0 FROM tab2
----
1153
2655
4445

query I rowsort
SELECT ALL 67 - - + col0 AS col1 FROM tab1
----
118
152
158

query I rowsort
SELECT ALL col0 + - - 60 FROM tab2
----
106
124
135

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT - 3 DIV + + 19 + - 91 + - col2 - + col0 FROM tab1 AS cor0
----
-235
-238
-250

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT - 3 / + + 19 + - 91 + - col2 - + col0 FROM tab1 AS cor0
----
-235
-238
-250

onlyif mysql # aggregate syntax: 
query II rowsort label-1749
SELECT - - ( + SUM( DISTINCT - 72 ) ) + + COUNT( * ) AS col0, 92 AS col1 FROM tab0 AS cor0
----
-69
92

skipif mysql # not compatible
query II rowsort label-1749
SELECT - - ( + SUM ( DISTINCT - 72 ) ) + + COUNT ( * ) AS col0, 92 AS col1 FROM tab0 AS cor0
----
-69
92

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL = - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1751
SELECT - 48 DIV 12 AS col0, col2 * - 14 * + 52 * - 55 AS col1 FROM tab1 AS cor0
----
-4
2362360
-4
2722720
-4
3843840

skipif mysql # not compatible
query II rowsort label-1751
SELECT - 48 / 12 AS col0, col2 * - 14 * + 52 * - 55 AS col1 FROM tab1 AS cor0
----
-4
2362360
-4
2722720
-4
3843840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1752
SELECT DISTINCT - 87 DIV 54 * + COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - 87 / 54 * + COUNT ( * ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ALL + 12 + + + 70 * + + 5 + + + 68 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 7b533d1b3b9c4b8030def0ab6c47733e

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

query I rowsort
SELECT - - 87 AS col1 FROM tab2 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1756
SELECT ALL - COUNT( * ), MIN( + col2 ) AS col1 FROM tab1 AS cor0
----
-3
59

skipif mysql # not compatible
query II rowsort label-1756
SELECT ALL - COUNT ( * ), MIN ( + col2 ) AS col1 FROM tab1 AS cor0
----
-3
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT DISTINCT - COUNT( * ) AS col2, - 16 * + MAX( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-3
368

skipif mysql # not compatible
query II rowsort label-1757
SELECT DISTINCT - COUNT ( * ) AS col2, - 16 * + MAX ( DISTINCT - + col2 ) AS col0 FROM tab2 AS cor0
----
-3
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT + col0 * CAST( - + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-1758
SELECT + col0 * CAST ( - + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - ( - - col1 ) * - col1 AS col2 FROM tab1 cor0
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab0 WHERE NOT + + col0 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + col1 * + col2 * + + col2 col1 FROM tab1
----
59
17405
68
217328
96
129024

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1764
SELECT - 59 DIV - + COUNT( * ) AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-1764
SELECT - 59 / - + COUNT ( * ) AS col0 FROM tab2
----
19

query I rowsort
SELECT DISTINCT - + col1 * + ( + 99 ) * - col0 * col2 + - + col1 * - col1 AS col1 FROM tab1 AS cor0
----
2482450
28794973
6786052

query I rowsort
SELECT - - 51 + + + 77 AS col1 FROM tab0 cor0
----
128
128
128

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1768
SELECT + ( + 48 ), - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( CAST( NULL AS DECIMAL ) * - col1, col1 * - col2, ( - + col1 ) - col0 / + - col2, - col1, col2, + - col0, - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-1768
SELECT + ( + 48 ), - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( CAST ( NULL AS REAL ) * - col1, col1 * - col2, ( - + col1 ) - col0 / + - col2, - col1, col2, + - col0, - CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT + 64 * + - col1 * col1 AS col2 FROM tab2
----
-166464
-287296
-379456

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

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

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NOT 3 IS NOT NULL
----

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

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

skipif mysql # not compatible
query II rowsort label-1774
SELECT DISTINCT + col0 / - col2, + 90 AS col2 FROM tab0 AS cor0
----
-8
90
0
90

query I rowsort
SELECT col1 * + ( col2 ) + + - 21 * - 99 AS col1 FROM tab2
----
3252
5159
5965

query I rowsort
SELECT ALL 31 - - col0 AS col1 FROM tab0
----
118
128
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN + col0 AND + 13 * - col2 * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col1, col2 + + 23 FROM tab0 cor0
----
1
122
21
33
81
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT MAX( 59 ) AS col2 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT MAX ( 59 ) AS col2 FROM tab0 AS cor0
----
59

query II rowsort
SELECT - col2 AS col1, + 4 FROM tab0 AS cor0
----
-10
4
-47
4
-99
4

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

query I rowsort
SELECT ALL + 18 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT 99 * + col1 AS col0 FROM tab2 cor0
----
5049
6633
7623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col2 col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + + col1 + - ( - + col1 ) FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL col0 * + + 81 FROM tab2
----
3726
5184
6075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col1 ) col0 FROM tab1
----
-14
-47
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL + SUM( + 76 ) FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL + SUM ( + 76 ) FROM tab1
----
228

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

query III rowsort
SELECT * FROM tab2 WHERE - - 72 BETWEEN + 58 * + ( - 37 ) - + 62 AND col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1793
SELECT + CAST( + SUM( col2 ) AS SIGNED ) DIV - COUNT( * ) + - MIN( DISTINCT + 95 ) AS col1 FROM tab0 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-1793
SELECT + CAST ( + SUM ( col2 ) AS INTEGER ) / - COUNT ( * ) + - MIN ( DISTINCT + 95 ) AS col1 FROM tab0 cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + + SUM( ALL - 25 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1794
SELECT + + SUM ( ALL - 25 ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - - 97 FROM tab1 AS cor0 WHERE + 56 * + col0 + + col2 IS NOT NULL
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + 73 * + SUM( - col0 ) + + ( - - ( + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
-13502

skipif mysql # not compatible
query I rowsort label-1796
SELECT + 73 * + SUM ( - col0 ) + + ( - - ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
-13502

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

query I rowsort
SELECT DISTINCT + col0 - + + 27 FROM tab1
----
24
58
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL SUM( DISTINCT - col2 ) * + COUNT( * ) + - 75 * - 89 FROM tab0
----
6207

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL SUM ( DISTINCT - col2 ) * + COUNT ( * ) + - 75 * - 89 FROM tab0
----
6207

query I rowsort
SELECT + 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query II rowsort
SELECT ALL + 31, - col2 AS col2 FROM tab1
----
31
-59
31
-68
31
-96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1803
SELECT DISTINCT 69 * - ( + + CAST( COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT 69 * - ( + + CAST ( COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - MIN( - - 20 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1804
SELECT - MIN ( - - 20 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + - 19 + col2 FROM tab2 AS cor0
----
21
39
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT 48, + SUM( - col1 ) AS col1 FROM tab1 cor0
----
48
-66

skipif mysql # not compatible
query II rowsort label-1806
SELECT 48, + SUM ( - col1 ) AS col1 FROM tab1 cor0
----
48
-66

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

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

query I rowsort
SELECT - + 30 * col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

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

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

query I rowsort
SELECT + ( + col0 ) * + 8 AS col2 FROM tab2 AS cor0
----
368
512
600

query I rowsort
SELECT ALL - col2 * col0 + + 83 AS col0 FROM tab1 AS cor0
----
-4813
-4932
-6105

query I rowsort
SELECT + + col1 * - 58 AS col2 FROM tab1 AS cor0
----
-2726
-290
-812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT DISTINCT + col1 * + 89 * + - col2 + - - CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-18700
-338870
-8910

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT + col1 * + 89 * + - col2 + - - CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-18700
-338870
-8910

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT - SUM( col1 ) * COUNT( * ) col1 FROM tab0
----
-309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1815
SELECT DISTINCT - SUM ( col1 ) * COUNT ( * ) col1 FROM tab0
----
-309

query I rowsort
SELECT - col2 * + ( col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
178929
2100
9801

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

query II rowsort
SELECT DISTINCT - - ( - ( - 80 ) ) * col1 + - col2 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
1024
51
341
85
3692
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT COUNT( + 32 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT COUNT ( + 32 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL MAX( - 95 ) AS col1 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL MAX ( - 95 ) AS col1 FROM tab0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1822
SELECT + - SUM( ALL - 47 ) DIV + + COUNT( ALL - col2 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1822
SELECT + - SUM ( ALL - 47 ) / + + COUNT ( ALL - col2 ) AS col1 FROM tab1 cor0
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT - ( - 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-1824
SELECT DISTINCT - ( - SUM ( ALL + - ( - col2 ) ) ) col1 FROM tab2 AS cor0
----
121

query II rowsort
SELECT ALL + col2, + 32 FROM tab1 AS cor0
----
59
32
68
32
96
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT - COUNT( col1 ) + + + 33 AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - COUNT ( col1 ) + + + 33 AS col2 FROM tab0 AS cor0
----
30

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 36 + + 84 col0 FROM tab2
----
171
187
197

query II rowsort
SELECT ALL - col0, - col2 + - col0 + col1 - 56 AS col0 FROM tab1 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT ALL col2 * + 85 + - 87 + + col1 AS col0 FROM tab2
----
1919
3390
4910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1831
SELECT + 33 - - COUNT( * ) + + COUNT( * ) col0, + SUM( + - col2 ) FROM tab1 WHERE + 79 * CAST( - col2 AS SIGNED ) >= - - col0
----
33
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1831
SELECT + 33 - - COUNT ( * ) + + COUNT ( * ) col0, + SUM ( + - col2 ) FROM tab1 WHERE + 79 * CAST ( - col2 AS INTEGER ) >= - - col0
----
33
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + - + 72 col1 FROM tab2
----
-123
-139
-149

query I rowsort
SELECT 22 + col1 AS col2 FROM tab0
----
103
23
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT - AVG ( DISTINCT + col1 ) * - + MIN( ALL col0 ) col1 FROM tab1 WHERE NOT - 58 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1835
SELECT DISTINCT - AVG ( DISTINCT + col1 ) * - + MIN ( ALL col0 ) col1 FROM tab1 WHERE NOT - 58 IS NOT NULL
----
NULL

query I rowsort
SELECT + 20 + - 75 AS col0 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1837
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 - - + col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL - col1 - - col2 + - 12 - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-751
-893
-9517

query I rowsort
SELECT + + col0 * + col1 * - + col2 - + col0 AS col0 FROM tab0 AS cor0
----
-18357
-57120
-9700

query I rowsort
SELECT + + col1 + + ( + + 33 ) FROM tab1 AS cor0
----
38
47
80

query I rowsort
SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE 13 - + 68 + - - col2 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1843
SELECT + 99 * - MAX( + 32 ) * - CAST( + 77 AS SIGNED ) + + MIN( + 65 ) FROM tab0 cor0
----
244001

skipif mysql # not compatible
query I rowsort label-1843
SELECT + 99 * - MAX ( + 32 ) * - CAST ( + 77 AS INTEGER ) + + MIN ( + 65 ) FROM tab0 cor0
----
244001

query III rowsort
SELECT * FROM tab1 cor0 WHERE 50 IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <> - - col2 + - col0 * + + 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT + col2 DIV col0 * - col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1848
SELECT + col2 / col0 * - col1 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT SUM( DISTINCT + 71 ) AS col2 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT SUM ( DISTINCT + 71 ) AS col2 FROM tab1
----
71

query II rowsort
SELECT ALL - 31 AS col2, - 47 AS col1 FROM tab1
----
-31
-47
-31
-47
-31
-47

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

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

query II rowsort
SELECT 95 AS col1, col1 AS col2 FROM tab2
----
95
51
95
67
95
77

query II rowsort
SELECT DISTINCT - col2 * - 59, col2 AS col0 FROM tab2
----
1357
23
2360
40
3422
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT ( + MIN( ALL - col1 ) ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT ( + MIN ( ALL - col1 ) ) AS col1 FROM tab1
----
-47

query II rowsort
SELECT col0 AS col2, + ( - - 29 ) + col1 FROM tab2
----
46
80
64
106
75
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 * - col0 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1856
SELECT CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 * - col0 IS NULL
----
51
67
77

query I rowsort
SELECT ALL 80 FROM tab0 cor0 WHERE NOT NULL >= - col0 + - 17 / + col1
----

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

query II rowsort
SELECT + col0 * + - col0 AS col1, + col1 * + col1 * + col2 FROM tab1
----
-2601
18816
-7225
1475
-8281
150212

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + + col1 ) + 6 IS NOT NULL
----

query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + - col1 * + col0 IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + 92 * - 10 + + + 39 AS col0 FROM tab2 AS cor0
----
-881

query I rowsort
SELECT + - col2 * - + col0 * + col0 * + col2 * 34 + - - col0 + - 31 * - - 2 FROM tab2 AS cor0
----
222822402
38058360
643365013

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT + - COUNT( ALL + + col0 ) col2 FROM tab2 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT DISTINCT ( + MIN( ALL - - col2 ) ) + + + 46 col1 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1866
SELECT DISTINCT ( + MIN ( ALL - - col2 ) ) + + + 46 col1 FROM tab1 AS cor0
----
105

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 36 + - 37 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT - COUNT( * ) AS col1, 75 FROM tab1
----
-3
75

skipif mysql # not compatible
query II rowsort label-1868
SELECT - COUNT ( * ) AS col1, 75 FROM tab1
----
-3
75

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

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

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

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

query I rowsort
SELECT - col1 * + 42 FROM tab0 AS cor0
----
-3402
-42
-882

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT - COUNT ( - + CAST ( NULL AS INTEGER ) ) * MIN ( + col1 ) - + COUNT ( * ) + + 86 AS col1 FROM tab2 AS cor0
----
83

query I rowsort
SELECT 72 - col0 FROM tab0 AS cor0
----
-15
-25
57

query I rowsort
SELECT + ( + + ( + + col2 ) ) + + col0 + + + 46 + - 45 * + col0 AS col0 FROM tab0 AS cor0
----
-3772
-4123
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + MAX( + col1 ) * + SUM( ALL 85 ) FROM tab0
----
20655

skipif mysql # not compatible
query I rowsort label-1875
SELECT + MAX ( + col1 ) * + SUM ( ALL 85 ) FROM tab0
----
20655

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT + col1 DIV + 57 + 69 FROM tab2
----
69
70
70

skipif mysql # not compatible
query I rowsort label-1876
SELECT + col1 / + 57 + 69 FROM tab2
----
69
70
70

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

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

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL <= ( - col1 )
----

query I rowsort
SELECT ALL col1 * col2 + + 27 FROM tab0
----
126
237
3834

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 <= + 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + - col2 col1 FROM tab0
----
-103
-14
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1882
SELECT SUM( DISTINCT CAST( col0 AS SIGNED ) ) + + MAX( + col0 ) FROM tab1
----
318

skipif mysql # not compatible
query I rowsort label-1882
SELECT SUM ( DISTINCT CAST ( col0 AS INTEGER ) ) + + MAX ( + col0 ) FROM tab1
----
318

query I rowsort
SELECT col2 * col2 AS col0 FROM tab0 WHERE ( 61 ) IS NULL
----

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE + col1 NOT IN ( 84 )
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * col2 IN ( ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 98 * col2 - col0 * - col0 FROM tab2
----
11309
4370
8016

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * + 52 + - ( + col2 ) ) BETWEEN NULL AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 - 16 FROM tab1
----
-112
-75
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL + MIN( col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + MIN ( col2 ) FROM tab1
----
59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT DISTINCT - CAST( + AVG ( col2 ) AS SIGNED ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT - CAST ( + AVG ( col2 ) AS INTEGER ) FROM tab1
----
-74

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

query I rowsort
SELECT col0 * - col1 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT NULL < + 47
----
0

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT NULL < + 47
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 6 BETWEEN col1 * + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT ( - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE + col0 <= col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1899
SELECT DISTINCT ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE + col0 <= col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1900
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS DECIMAL ) * col0 - - col2 ) AND ( + col0 * col2 )
----

skipif mysql # not compatible
query III rowsort label-1900
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS REAL ) * col0 - - col2 ) AND ( + col0 * col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 13 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 23 < - col0 + + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT DISTINCT ( - MAX( DISTINCT col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT ( - MAX ( DISTINCT col2 ) ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT col1 * 58 AS col0 FROM tab1
----
2726
290
812

query I rowsort
SELECT - - 71 * ( col0 ) FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT DISTINCT + 21 * col1 AS col2 FROM tab2 AS cor0
----
1071
1407
1617

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1907
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 70 ) = - col2 / CAST( col1 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1907
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 70 ) = - col2 / CAST ( col1 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NULL < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1909
SELECT col0 col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / col0 < - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1909
SELECT col0 col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col0 < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL ( + MAX( DISTINCT ( col2 ) ) ) + 12 FROM tab2 AS cor0 WHERE ( - 82 + col2 ) NOT BETWEEN + 94 AND ( + col2 / + col1 )
----
70

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL ( + MAX ( DISTINCT ( col2 ) ) ) + 12 FROM tab2 AS cor0 WHERE ( - 82 + col2 ) NOT BETWEEN + 94 AND ( + col2 / + col1 )
----
70

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND - col2 + + 41
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT - COUNT( * ) + 72 AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1912
SELECT - COUNT ( * ) + 72 AS col1 FROM tab1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1913
SELECT + COUNT( * ) DIV + 79 col0 FROM tab1 WHERE 31 * - col2 = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1913
SELECT + COUNT ( * ) / + 79 col0 FROM tab1 WHERE 31 * - col2 = NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT DISTINCT - COUNT( * ) + 55 AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT - COUNT ( * ) + 55 AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
52

query I rowsort
SELECT DISTINCT 59 + - 34 + ( + col1 ) AS col0 FROM tab0
----
106
26
46

query I rowsort
SELECT + ( + + col0 ) * 4 + col2 FROM tab2
----
207
296
358

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT COUNT( * ) * COUNT( * ) + + ( 43 ) AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( * ) * COUNT ( * ) + + ( 43 ) AS col1 FROM tab1
----
52

query I rowsort
SELECT + 78 + col0 + col0 AS col2 FROM tab1
----
180
248
260

query I rowsort
SELECT + 69 * + + col2 + - 74 AS col0 FROM tab2
----
1513
2686
3928

query I rowsort
SELECT DISTINCT - 57 - + ( + col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
-32
139
2152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 37 ) = col0 + 87
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1925
SELECT DISTINCT - 94 * + + COUNT( ALL - CAST( NULL AS DECIMAL ) ) + 64 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - 94 * + + COUNT ( ALL - CAST ( NULL AS REAL ) ) + 64 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-192

query II rowsort
SELECT + - col2 AS col1, col2 + col2 * - 47 AS col2 FROM tab2 AS cor0
----
-23
-1058
-40
-1840
-58
-2668

query I rowsort
SELECT DISTINCT + 63 * - 32 FROM tab0 AS cor0
----
-2016

query I rowsort
SELECT ALL col2 * 57 * - col2 * col0 FROM tab1 AS cor0
----
-16865445
-23984688
-26790912

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

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

query I rowsort
SELECT 48 FROM tab2 AS cor0 WHERE NOT 58 + + col1 + 39 / - col1 = ( + col0 * - col2 + + 38 * - col2 )
----
48
48
48

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT - MAX( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT COUNT( * ) * + - 91 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-1937
SELECT COUNT ( * ) * + - 91 FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT COUNT( * ) * - 2 * + - 34 AS col2 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-1938
SELECT COUNT ( * ) * - 2 * + - 34 AS col2 FROM tab1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT - COUNT( DISTINCT - - ( - + 22 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT - COUNT ( DISTINCT - - ( - + 22 ) ) FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - col0 NOT BETWEEN NULL AND + col0 / 97
----

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

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

query I rowsort
SELECT DISTINCT + + 10 AS col2 FROM tab0 AS cor0
----
10

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN + 9 + - ( - 48 ) AND NULL
----

query I rowsort
SELECT - 8 + + + col2 AS col0 FROM tab1 AS cor0
----
51
60
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT + - col1 + col0 + + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
-3
-66
66

skipif mysql # not compatible
query I rowsort label-1946
SELECT + - col1 + col0 + + col2 / - col1 AS col2 FROM tab0 AS cor0
----
-3
-66
66

query I rowsort
SELECT DISTINCT ( + 12 ) + + 1 FROM tab2 AS cor0 WHERE NOT col0 / - + col1 + col1 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + 80 * - MAX( ALL ( - col0 ) ) * + COUNT( * ) col0 FROM tab2 AS cor0
----
11040

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1949
SELECT ALL + 80 * - MAX ( ALL ( - col0 ) ) * + COUNT ( * ) col0 FROM tab2 AS cor0
----
11040

query I rowsort
SELECT + ( + - col1 ) + - 92 FROM tab0 AS cor0
----
-113
-173
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT DISTINCT 88 * - MIN( ALL + + 6 ) * COUNT( + col1 ) AS col2 FROM tab1 AS cor0
----
-1584

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT 88 * - MIN ( ALL + + 6 ) * COUNT ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1584

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT ALL - col0 DIV - + col1 + - - col2 FROM tab2
----
23
40
59

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - col0 / - + col1 + - - col2 FROM tab2
----
23
40
59

query III rowsort
SELECT - 52, + col1, + + 42 + - + 80 AS col0 FROM tab0
----
9 values hashing to 65abac3447fc194e33adc07c206f080f

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

query I rowsort
SELECT DISTINCT 37 - + + col1 FROM tab1
----
-10
23
32

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - - col1 ) = - col0
----

query I rowsort
SELECT - 84 + - 49 FROM tab0, tab2 AS cor0
----
9 values hashing to e3b868e41a1e1492f8e943f834b42803

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT DISTINCT 17 * - COUNT( ALL col1 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT 17 * - COUNT ( ALL col1 ) FROM tab1 AS cor0
----
-51

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

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

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

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

query I rowsort
SELECT ALL + col1 * - + 25 AS col1 FROM tab0
----
-2025
-25
-525

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 / + - col2 NOT BETWEEN ( ( - 34 ) ) AND ( 88 / 36 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 IN ( col2 * - ( + + 18 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT COUNT( * ) * - - COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1970
SELECT COUNT ( * ) * - - COUNT ( * ) col1 FROM tab1
----
9

query I rowsort
SELECT - col1 + 26 + - + 67 FROM tab2 cor0
----
-108
-118
-92

query I rowsort
SELECT DISTINCT - - 17 AS col2 FROM tab1 AS cor0
----
17

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

query I rowsort
SELECT ALL 14 * + - 51 FROM tab0
----
-714
-714
-714

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE + 43 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT MAX( 73 ) * + ( COUNT( + col2 ) ) AS col1 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-1977
SELECT MAX ( 73 ) * + ( COUNT ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 * + col2 col1 FROM tab0 AS cor0
----
178929
2100
9801

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

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

query I rowsort
SELECT - col2 + - - col1 * + col1 FROM tab2 AS cor0
----
2578
4431
5889

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

skipif mysql # not compatible
query I rowsort label-1982
SELECT 38 * - CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT DISTINCT SUM( ALL + + 88 ) FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT SUM ( ALL + + 88 ) FROM tab1
----
264

query I rowsort
SELECT ALL - col2 + 73 FROM tab0
----
-26
26
63

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

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( + - col0 ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1986
SELECT + col0 * - col1 * - CAST( NULL AS SIGNED ) + - + 8 * + CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1986
SELECT + col0 * - col1 * - CAST ( NULL AS INTEGER ) + - + 8 * + CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT - col2 - + col0 AS col2 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1988
SELECT - ( - - COUNT( * ) ) + - ( CAST( 10 AS SIGNED ) ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-1988
SELECT - ( - - COUNT ( * ) ) + - ( CAST ( 10 AS INTEGER ) ) FROM tab0
----
-13

query II rowsort
SELECT ALL 18 + + col0 * + col0 AS col0, - 34 + - col0 FROM tab2
----
2134
-80
4114
-98
5643
-109

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * 12 col1 FROM tab1
----
72
72
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - col0 AND - 11 * - 8 + - 79
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col1 + + - col2 col1, 47 - + col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-10
-40
-47
32
-99
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT DISTINCT - 30 / + - AVG ( - col0 ) FROM tab0 AS cor0 WHERE - CAST( - col2 AS SIGNED ) / col1 + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - 30 / + - AVG ( - col0 ) FROM tab0 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) / col1 + col2 < NULL
----
NULL

query I rowsort
SELECT ALL - 8 + + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
15
32
50

query II rowsort
SELECT ALL - 96 AS col2, - 55 AS col1 FROM tab2 AS cor0
----
-96
-55
-96
-55
-96
-55

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1999
SELECT DISTINCT - + COUNT ( * ) col0, - 57 AS col0 FROM tab2 AS cor0
----
-3
-57

query II rowsort
SELECT col2, 60 * 18 AS col2 FROM tab0 AS cor0
----
10
1080
47
1080
99
1080

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

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

query II rowsort
SELECT ALL + col1 AS col0, + col2 * 68 + + + col1 + + col0 AS col2 FROM tab1 AS cor0
----
14
6593
47
4762
5
4102

query I rowsort
SELECT ALL + 6 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
126
486
6

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 54 col0 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT + 3 * + - 73 FROM tab0
----
-219
-219
-219

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

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) / + col2 * ( + 50 ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - ( - col1 ) + - 20 - - 94 + + col1 AS col0, col1 AS col0 FROM tab2
----
176
51
208
67
228
77

query I rowsort
SELECT - col1 * + - col0 * 92 FROM tab0
----
111780
168084
8924

query II rowsort
SELECT + col0 * + col1, - col2 AS col1 FROM tab1
----
425
-59
4277
-68
714
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) * - - 30 + - col2 NOT BETWEEN + col2 AND 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE col1 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE col1 + col2 IS NULL
----
0

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

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

query II rowsort
SELECT ALL col0 AS col1, + ( + col1 ) AS col0 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 12 - - ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND + 30 - + col1 + - 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2020
SELECT ( - col2 ) DIV + 79 col0, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2020
SELECT ( - col2 ) / + 79 col0, col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query II rowsort
SELECT ALL - - col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + COUNT( * ) * 10 AS col2 FROM tab0 AS cor0 WHERE + 6 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2022
SELECT + COUNT ( * ) * 10 AS col2 FROM tab0 AS cor0 WHERE + 6 IS NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - col1 ) + 62 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 25 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT DISTINCT MAX( DISTINCT + col0 ) col2 FROM tab1 WHERE ( NULL ) IS NULL
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2026
SELECT DISTINCT MAX ( DISTINCT + col0 ) col2 FROM tab1 WHERE ( NULL ) IS NULL
----
91

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

skipif mysql # not compatible
query I rowsort label-2027
SELECT - CAST ( NULL AS INTEGER ) * 24 - - col1 * col2 - col2 * - + col0 + - 83 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL 95 * + 54 + ( COUNT( + + col1 ) ) col2 FROM tab1
----
5133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2028
SELECT ALL 95 * + 54 + ( COUNT ( + + col1 ) ) col2 FROM tab1
----
5133

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 76 BETWEEN NULL AND col2 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2035
SELECT - CAST( MIN( ALL - CAST( NULL AS DECIMAL ) ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT - CAST ( MIN ( ALL - CAST ( NULL AS REAL ) ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - ( - - MIN( - + 47 ) ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2036
SELECT - ( - - MIN ( - + 47 ) ) FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL - 61 * 22 + - - COUNT( * ) FROM tab1
----
-1339

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - 61 * 22 + - - COUNT ( * ) FROM tab1
----
-1339

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL IN ( + + col2 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2038
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( + + col2 * - col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT - col0 DIV + - col0 col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2039
SELECT - col0 / + - col0 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + - - col1 - col0 FROM tab2
----
56
59
90

query I rowsort
SELECT col0 * + 21 + - - 95 AS col0 FROM tab1
----
1166
1880
2006

query I rowsort
SELECT DISTINCT - ( + + col1 ) * - col1 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT - col0 + + ( + col2 ) * - 56 - + 87 * col1 DIV col2 FROM tab1
----
-3396
-3959
-5439

skipif mysql # not compatible
query I rowsort label-2043
SELECT - col0 + + ( + col2 ) * - 56 - + 87 * col1 / col2 FROM tab1
----
-3396
-3959
-5439

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT - COUNT( ALL - 81 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - COUNT ( ALL - 81 ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT + 39 AS col0, col0 FROM tab2 AS cor0
----
39
46
39
64
39
75

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

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

query I rowsort
SELECT + - col0 * + + col0 + col2 - + - 67 * col2 AS col1 FROM tab1 WHERE col0 <> - - col1 * 55
----
-3213
-3657
3927

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 - - - 12 col1 FROM tab1 cor0
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 70 >= - 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT + - col0 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-2051
SELECT + - col0 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-108
-96
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL - MAX( - 39 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - MAX ( - 39 ) FROM tab2
----
39

query I rowsort
SELECT + ( 97 ) AS col2 FROM tab1
----
97
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT DISTINCT + 21 DIV + + 68 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2056
SELECT DISTINCT + 21 / + + 68 col1 FROM tab1
----
0

query II rowsort
SELECT - 22, col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2058
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT CAST( NULL AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2058
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT CAST ( NULL AS REAL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2059
SELECT - COUNT( * ), 70 AS col0 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----
0
70

skipif mysql # not compatible
query II rowsort label-2059
SELECT - COUNT ( * ), 70 AS col0 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----
0
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * col0 + 59 col2 FROM tab2 AS cor0
----
1019
1184
749

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

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

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col1 )
----
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 AND NULL
----

query II rowsort
SELECT col0 + col1 AS col1, ( + 15 ) AS col1 FROM tab2 AS cor0
----
141
15
142
15
97
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT MIN( ALL + col0 ) + 46 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT MIN ( ALL + col0 ) + 46 FROM tab0
----
61

query I rowsort
SELECT ALL - 12 + - col0 AS col0 FROM tab2
----
-58
-76
-87

query I rowsort
SELECT DISTINCT - ( - col0 ) * - + col1 + - + col2 * - 80 FROM tab1
----
1163
4295
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT MIN( DISTINCT col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT MIN ( DISTINCT col1 ) col0 FROM tab1
----
5

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT - COUNT( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT - COUNT ( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
-9

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

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

query I rowsort
SELECT DISTINCT col1 * + col2 * ( col2 ) + 64 * + col2 * col2 FROM tab2
----
225600
440684
60835

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL IN ( + 71 * + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL MAX( DISTINCT + 25 ) * - - ( + + 95 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
2375

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL MAX ( DISTINCT + 25 ) * - - ( + + 95 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
2375

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT 22 DIV + 19 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-2081
SELECT 22 / + 19 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL col0 - + 52 AS col2 FROM tab2 AS cor0
----
-6
12
23

query I rowsort
SELECT DISTINCT + col0 * + col2 + 46 AS col1 FROM tab0 AS cor0
----
751
916
9649

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + col2 NOT BETWEEN ( col0 + - 30 * + col1 / + 57 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL + MIN( - 84 ) FROM tab2 AS cor0 WHERE NOT + 79 + + ( - col1 ) IN ( + col0, + col0 * + - col2 )
----
-84

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL + MIN ( - 84 ) FROM tab2 AS cor0 WHERE NOT + 79 + + ( - col1 ) IN ( + col0, + col0 * + - col2 )
----
-84

query I rowsort
SELECT + - ( + col1 ) * 57 FROM tab1 AS cor0
----
-2679
-285
-798

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

skipif mysql # not compatible
query I rowsort label-2087
SELECT + COUNT ( ALL + 27 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT MIN( ALL ( - col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2088
SELECT MIN ( ALL ( - col1 ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + - 72 * 64 FROM tab0 AS cor0
----
-4608
-4608
-4608

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > + - 9
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT ALL - MAX( ALL - - CAST( col0 AS SIGNED ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - MAX ( ALL - - CAST ( col0 AS INTEGER ) ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT DISTINCT - CAST( - 4 AS SIGNED ) col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2093
SELECT DISTINCT - CAST ( - 4 AS INTEGER ) col1 FROM tab1 AS cor0
----
4

query I rowsort
SELECT - 86 AS col0 FROM tab2 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2095
SELECT + COUNT( * ) DIV - 96 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT + COUNT ( * ) / - 96 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2096
SELECT + CAST( NULL AS SIGNED ) AS col1, + col0 - - CAST( + - col0 AS SIGNED ) + - 37 FROM tab0 AS cor0
----
NULL
-37
NULL
-37
NULL
-37

skipif mysql # not compatible
query II rowsort label-2096
SELECT + CAST ( NULL AS INTEGER ) AS col1, + col0 - - CAST ( + - col0 AS INTEGER ) + - 37 FROM tab0 AS cor0
----
NULL
-37
NULL
-37
NULL
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2097
SELECT - 6, CAST( col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-6
59
-6
68
-6
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2097
SELECT - 6, CAST ( col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-6
59
-6
68
-6
96

query I rowsort
SELECT DISTINCT col2 + - 17 AS col0 FROM tab0 cor0
----
-7
30
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 50 + col0 * ( + + ( + + col0 ) ) - - - col2 * + col0 < NULL
----

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

query I rowsort
SELECT - 28 + col1 FROM tab0
----
-27
-7
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL - MAX( - col0 ) + 41 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - MAX ( - col0 ) + 41 FROM tab0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT ALL col0 * + + col0 FROM tab0 cor0
----
225
7569
9409

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + COUNT( * ) - - - 38 AS col1 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-2107
SELECT + COUNT ( * ) - - - 38 AS col1 FROM tab2
----
-35

query I rowsort
SELECT 83 - + - col1 FROM tab1
----
130
88
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT + 22 + SUM( + - col0 ) AS col0 FROM tab2
----
-163

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT + 22 + SUM ( + - col0 ) AS col0 FROM tab2
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-2110
SELECT ALL 45 * col2 DIV col2 AS col2 FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL 45 * col2 / col2 AS col2 FROM tab0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2111
SELECT - CAST( NULL AS SIGNED ) AS col2, col0 FROM tab2 AS cor0 WHERE NOT 99 + - CAST( 67 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2111
SELECT - CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab2 AS cor0 WHERE NOT 99 + - CAST ( 67 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT ALL COUNT( * ) DIV 62 * 19 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL COUNT ( * ) / 62 * 19 FROM tab1 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT - col1 + - col2 + col1 * 76 + - col1 + col1 FROM tab1 AS cor0 WHERE NOT CAST( - 76 AS SIGNED ) + - col0 IS NULL
----
316
3457
954

skipif mysql # not compatible
query I rowsort label-2114
SELECT - col1 + - col2 + col1 * 76 + - col1 + col1 FROM tab1 AS cor0 WHERE NOT CAST ( - 76 AS INTEGER ) + - col0 IS NULL
----
316
3457
954

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT ALL + MIN( - 84 ) * - - 83, + 16 col2 FROM tab1 cor0
----
-6972
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2115
SELECT ALL + MIN ( - 84 ) * - - 83, + 16 col2 FROM tab1 cor0
----
-6972
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2116
SELECT ALL - + 23 FROM tab0 AS cor0 WHERE ( NOT - - col2 = col0 * - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - + 23 FROM tab0 AS cor0 WHERE ( NOT - - col2 = col0 * - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - col1 * + 37 AS col2 FROM tab0
----
-2997
-37
-777

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT - 45 DIV 64 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2119
SELECT - 45 / 64 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( + col0 ) * - col0 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 - - 93 > - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT ALL - + col0 AS col1, CAST( NULL AS SIGNED ) + 23 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL - + col0 AS col1, CAST ( NULL AS INTEGER ) + 23 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT - - COUNT( * ) * 54 AS col2 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - - COUNT ( * ) * 54 AS col2 FROM tab1 AS cor0
----
162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2125
SELECT + col1 DIV 83 FROM tab1 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * - col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2125
SELECT + col1 / 83 FROM tab1 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * - col2 IS NULL
----
0
0
0

query II rowsort
SELECT col1 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + ( COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2127
SELECT + ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * - col0 + 23 FROM tab0
----
120
1238
1850

query I rowsort
SELECT DISTINCT - 66 * - col0 FROM tab1
----
3366
5610
6006

query I rowsort
SELECT DISTINCT - + 35 AS col1 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 4 BETWEEN - + 49 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT + 89 + + 92 / - 24 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2133
SELECT + 89 + + 92 / - 24 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT MIN( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2135
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT DISTINCT - - col0 + + - 58 DIV + col2 FROM tab2 AS cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT - - col0 + + - 58 / + col2 FROM tab2 AS cor0
----
44
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2137
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-2137
SELECT col0 AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 * + col0 FROM tab0
----
-1617
2
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT DISTINCT 24 + + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT 24 + + COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT ALL col2 * col2 - col2 AS col0 FROM tab2
----
1560
3306
506

query III rowsort
SELECT * FROM tab0 WHERE + + 81 * + + col0 >= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT - COUNT( * ) * 62 - - COUNT( * ) FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT - COUNT ( * ) * 62 - - COUNT ( * ) FROM tab1 AS cor0
----
-183

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 70 - - - col1 / - - col0 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 13 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL COUNT( + - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL COUNT ( + - col1 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT + 41 * + col1, 8 AS col2 FROM tab2 AS cor0
----
2091
8
2747
8
3157
8

query I rowsort
SELECT - col2 + + col1 + + 48 AS col2 FROM tab1 AS cor0 WHERE NOT - 1 * - 72 IS NULL
----
-34
-6
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL - CAST( 11 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - CAST ( 11 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - + 46 col1 FROM tab2
----
-2346
-3082
-3542

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 77 * + - col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2152
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2152
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2153
SELECT DISTINCT col0 * col0 DIV + col2, ( - col2 ) DIV ( - CAST( 54 AS SIGNED ) ) + + 51 AS col0 FROM tab0
----
4
51
756
51
95
52

skipif mysql # not compatible
query II rowsort label-2153
SELECT DISTINCT col0 * col0 / + col2, ( - col2 ) / ( - CAST ( 54 AS INTEGER ) ) + + 51 AS col0 FROM tab0
----
4
51
756
51
95
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT ( COUNT( * ) ) DIV 35 + - COUNT( * ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2154
SELECT ( COUNT ( * ) ) / 35 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 + - 55 AS col2 FROM tab2 AS cor0
----
-4
12
22

query I rowsort
SELECT ALL - - 29 + col1 - + 75 + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 76 + + col1 + col0 * col0 * col2 AS col2 FROM tab1
----
249786
426356
563231

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL ( + - ( + COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL ( + - ( + COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2159
SELECT - + 97 AS col1, + MIN( - col2 ) FROM tab2 AS cor0
----
-97
-58

skipif mysql # not compatible
query II rowsort label-2159
SELECT - + 97 AS col1, + MIN ( - col2 ) FROM tab2 AS cor0
----
-97
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT col2 DIV 59 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2160
SELECT col2 / 59 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT - 18 DIV + col2 + + ( + col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-705
-871
-9603

skipif mysql # not compatible
query I rowsort label-2161
SELECT - 18 / + col2 + + ( + col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-705
-871
-9603

query I rowsort
SELECT ALL - 25 + + - col1 + + 99 AS col2 FROM tab0 cor0
----
-7
53
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL + + COUNT( * ) + - MIN( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + + COUNT ( * ) + - MIN ( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT COUNT( * ) + + 19 AS col0 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-2164
SELECT COUNT ( * ) + + 19 AS col0 FROM tab2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2165
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 70 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 70 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 15 + 72 AS col0 FROM tab0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL COUNT( * ) - + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL COUNT ( * ) - + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE - 26 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT COUNT( * ) col2 FROM tab1 WHERE + 83 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2169
SELECT COUNT ( * ) col2 FROM tab1 WHERE + 83 IS NULL
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE - - col0 NOT BETWEEN col2 AND - col1
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL + MAX( DISTINCT + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + MAX ( DISTINCT + - col0 ) FROM tab2
----
-46

query I rowsort
SELECT ALL 55 / + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + + ( - col1 ) ) col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 82 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, 24 AS col1 FROM tab0
----
-1
24
-21
24
-81
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2176
SELECT + ( + + COUNT( ALL + 10 ) ) AS col2, - COUNT( * ) / 98 * - ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2176
SELECT + ( + + COUNT ( ALL + 10 ) ) AS col2, - COUNT ( * ) / 98 * - ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT - 57 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-57
-57
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2178
SELECT CAST( NULL AS SIGNED ) / ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT CAST ( NULL AS INTEGER ) / ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT 61 * ( + + 37 ) * 26 / - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT 61 * ( + + 37 ) * 26 / - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL - COUNT( - + col2 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2180
SELECT ALL - COUNT ( - + col2 ) col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - 97, col2 FROM tab0 AS cor0
----
-97
10
-97
47
-97
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) + + - 17 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 * - + col1, col0 * + 71 AS col1 FROM tab1
----
-425
6035
-4277
6461
-714
3621

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL MAX( + col1 ) col2 FROM tab1 WHERE NOT ( - 58 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2184
SELECT ALL MAX ( + col1 ) col2 FROM tab1 WHERE NOT ( - 58 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT 80 * - CAST( - col0 AS SIGNED ) FROM tab1
----
4080
6800
7280

skipif mysql # not compatible
query I rowsort label-2185
SELECT 80 * - CAST ( - col0 AS INTEGER ) FROM tab1
----
4080
6800
7280

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( 74 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2187
SELECT 98 * + - CAST( - col1 AS SIGNED ) FROM tab2
----
4998
6566
7546

skipif mysql # not compatible
query I rowsort label-2187
SELECT 98 * + - CAST ( - col1 AS INTEGER ) FROM tab2
----
4998
6566
7546

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT ALL col1 * col0 DIV 11 * - col2 * 45 col0 FROM tab0
----
-232650
-35640
-74700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2188
SELECT ALL col1 * col0 / 11 * - col2 * 45 col0 FROM tab0
----
-232650
-35640
-74700

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT MIN( DISTINCT + col0 ) FROM tab2 WHERE NOT + - 66 IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-2189
SELECT MIN ( DISTINCT + col0 ) FROM tab2 WHERE NOT + - 66 IS NULL
----
46

query I rowsort
SELECT ALL + 78 * + col0 + + col2 AS col2 FROM tab1
----
4074
6689
7166

query I rowsort
SELECT DISTINCT 45 + - 47 AS col2 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT + COUNT( 95 ) * + COUNT( * ) + - 72 AS col1 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2192
SELECT + COUNT ( 95 ) * + COUNT ( * ) + - 72 AS col1 FROM tab0 AS cor0
----
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - - ( + col1 ) <> NULL
----

query I rowsort
SELECT ALL - + ( + 29 ) FROM tab0 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL - COUNT( - 33 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - COUNT ( - 33 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2196
SELECT + - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( col1 ) <> - col0 * - col0
----

query I rowsort
SELECT col0 * - + 14 AS col2 FROM tab0 AS cor0
----
-1218
-1358
-210

query I rowsort
SELECT + - col2 * 41 AS col1 FROM tab1 AS cor0
----
-2419
-2788
-3936

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2200
SELECT ALL - col1 + col2 + - - col1 - - + CAST( NULL AS DECIMAL ) + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL - col1 + col2 + - - col1 - - + CAST ( NULL AS REAL ) + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL - COUNT( * ) + 1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - COUNT ( * ) + 1 FROM tab0
----
-2

query I rowsort
SELECT + col2 * - ( - col2 ) FROM tab1
----
3481
4624
9216

query I rowsort
SELECT col2 * - col0 - - col2 * col2 AS col2 FROM tab1
----
-1534
-1564
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT ALL CAST( col2 AS SIGNED ) + 25 * col0 FROM tab2
----
1173
1640
1933

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL CAST ( col2 AS INTEGER ) + 25 * col0 FROM tab2
----
1173
1640
1933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2205
SELECT - CAST( 56 AS SIGNED ) * - COUNT( * ) - - - SUM( - + col0 ) AS col2 FROM tab1
----
395

skipif mysql # not compatible
query I rowsort label-2205
SELECT - CAST ( 56 AS INTEGER ) * - COUNT ( * ) - - - SUM ( - + col0 ) AS col2 FROM tab1
----
395

query I rowsort
SELECT DISTINCT - + col1 - + + col1 FROM tab0 cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT - COUNT( * ) - 83 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - COUNT ( * ) - 83 FROM tab2 AS cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2208
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + ( + col2 ) + CAST( - col2 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2208
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + ( + col2 ) + CAST ( - col2 AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - 29 AS col1 FROM tab0 AS cor0 WHERE NOT ( + - ( col0 ) ) IS NULL
----
-110
-30
-50

query I rowsort
SELECT DISTINCT 36 * - + col1 FROM tab0 WHERE NOT - - 28 * - - 97 - + + col0 IS NULL
----
-2916
-36
-756

query I rowsort
SELECT DISTINCT col1 / - 83 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 74 * - col2 * - 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2213
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2 / + col1 + - col0 + - 10 * - col0 * + 83 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2213
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2 / + col1 + - col0 + - 10 * - col0 * + 83 / CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT + MIN( ALL - 71 ) FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + MIN ( ALL - 71 ) FROM tab2 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2215
SELECT DISTINCT - - 9 * + 88 * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-40392
-67320
-72072

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - - 9 * + 88 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-40392
-67320
-72072

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col2 > - - ( - col0 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT DISTINCT - SUM( - ( - 69 ) ) AS col1 FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT - SUM ( - ( - 69 ) ) AS col1 FROM tab0
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT + 69 DIV - col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT + 69 / - col1 FROM tab2
----
-1
-1
0

query II rowsort
SELECT DISTINCT + col0 AS col0, - col2 AS col2 FROM tab2
----
46
-23
64
-40
75
-58

query I rowsort
SELECT + col0 * + + ( - 65 ) + - col0 + 25 AS col1 FROM tab1
----
-3341
-5585
-5981

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT DISTINCT MIN( - - col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT MIN ( - - col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + col1 + - col1 + - - col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - - col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT - + MAX( col1 ) + + COUNT( * ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT - + MAX ( col1 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2225
SELECT DISTINCT ( + 32 ) AS col1, COUNT( * ) + + 68 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2225
SELECT DISTINCT ( + 32 ) AS col1, COUNT ( * ) + + 68 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32
77

query I rowsort
SELECT - col1 - - col0 - + col1 FROM tab0 AS cor0
----
-147
45
95

query I rowsort
SELECT - col2 * - 73 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3431
7227
730

query I rowsort
SELECT + 75 + - - col0 FROM tab1
----
126
160
166

query I rowsort
SELECT DISTINCT 41 - col1 FROM tab0
----
-40
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT - ( 97 ) + - + COUNT( - 32 ) AS col1 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-2230
SELECT - ( 97 ) + - + COUNT ( - 32 ) AS col1 FROM tab0
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT + col2 DIV - 42 AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2231
SELECT + col2 / - 42 AS col0 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT col0 * - col0 * + col0 * - + col2 FROM tab0
----
158625
6585030
90354627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT DISTINCT + col2 * + CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) * + 78 + 74 FROM tab0
----
16454
297020
7796

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + col2 * + CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) * + 78 + 74 FROM tab0
----
16454
297020
7796

query I rowsort
SELECT ALL + ( 16 ) FROM tab2
----
16
16
16

query II rowsort
SELECT + - 14, col1 FROM tab1 AS cor0
----
-14
14
-14
47
-14
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2236
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) * 84 * + 76 - + - 10 AS col0, - col2 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-2236
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) * 84 * + 76 - + - 10 AS col0, - col2 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT 83 < col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 61 + - 95 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2239
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT MIN( DISTINCT - 40 ) FROM tab0 WHERE NOT - 21 NOT BETWEEN - col0 AND - col2
----
-40

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT MIN ( DISTINCT - 40 ) FROM tab0 WHERE NOT - 21 NOT BETWEEN - col0 AND - col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - MIN( ALL - + col1 ) * - 27 AS col2 FROM tab2
----
-2079

skipif mysql # not compatible
query I rowsort label-2241
SELECT - MIN ( ALL - + col1 ) * - 27 AS col2 FROM tab2
----
-2079

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT + 10 - - col2 + - col0 BETWEEN + + col0 AND NULL
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL + 94 * - COUNT( * ) AS col0 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + 94 * - COUNT ( * ) AS col0 FROM tab0
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT ( + - col1 ) DIV - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2244
SELECT ( + - col1 ) / - + col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT col0 DIV - - 67 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2245
SELECT col0 / - - 67 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + COUNT( * ) * + - 36 + + MIN( ALL + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2246
SELECT + COUNT ( * ) * + - 36 + + MIN ( ALL + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-189

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE - 98 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( + 36 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( NULL ) AND + col0 <> + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 50 NOT IN ( - - 31, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT ALL - ( + CAST( - CAST( - - col0 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - ( + CAST ( - CAST ( - - col0 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT + - COUNT( * ) + 71 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2252
SELECT + - COUNT ( * ) + 71 FROM tab0 AS cor0
----
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 83 * + - 70 <> NULL
----

query I rowsort
SELECT DISTINCT col1 * 74 AS col2 FROM tab2 AS cor0
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL + COUNT( * ) + + + 46 FROM tab2 AS cor0 WHERE NULL IN ( - 28, col1 )
----
46

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + COUNT ( * ) + + + 46 FROM tab2 AS cor0 WHERE NULL IN ( - 28, col1 )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT DISTINCT - + CAST( + ( + ( - ( - 25 ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - + CAST ( + ( + ( - ( - 25 ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2257
SELECT * FROM tab1 WHERE ( NOT CAST( NULL AS DECIMAL ) + + 57 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2257
SELECT * FROM tab1 WHERE ( NOT CAST ( NULL AS REAL ) + + 57 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT - + MIN( - + col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT - + MIN ( - + col1 ) FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT + + MIN( ALL ( + 29 ) ) FROM tab0 cor0
----
29

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT + + MIN ( ALL ( + 29 ) ) FROM tab0 cor0
----
29

query I rowsort
SELECT ALL + - 39 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT - col1 - + + 33 FROM tab0
----
-114
-34
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2262
SELECT DISTINCT 65 - + CAST( NULL AS SIGNED ) + 50 - - 12 * - + ( 60 ) * - - col2 + col1 + - 4 * + + col1 + col0 col0, + col0 * + 12 AS col2 FROM tab1 cor0
----
NULL
1020
NULL
1092
NULL
612

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2262
SELECT DISTINCT 65 - + CAST ( NULL AS INTEGER ) + 50 - - 12 * - + ( 60 ) * - - col2 + col1 + - 4 * + + col1 + col0 col0, + col0 * + 12 AS col2 FROM tab1 cor0
----
NULL
1020
NULL
1092
NULL
612

query I rowsort
SELECT ALL - - col2 - - + 61 AS col0 FROM tab1 AS cor0
----
120
129
157

query I rowsort
SELECT - 17 + - col1 FROM tab1 AS cor0 WHERE NULL < 38
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 24 * - col2 IS NULL
----

query II rowsort
SELECT - col1 * + + 64 * + - 26, + ( col0 ) FROM tab2 AS cor0
----
111488
75
128128
64
84864
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT DISTINCT - + col2 DIV - + col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT - + col2 / - + col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + 48 + - + col0 FROM tab0 AS cor0
----
-39
-49
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT + SUM( DISTINCT + + col0 ) - + 37 AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-2269
SELECT + SUM ( DISTINCT + + col0 ) - + 37 AS col0 FROM tab0
----
162

query II rowsort
SELECT ALL col1 + col2 * + 83 + + - 56, col0 FROM tab2
----
1904
46
3341
64
4825
75

query III rowsort
SELECT * FROM tab2 WHERE + - 80 * - + col0 * - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col0 * + col0 - - col2 / col0 AND + col2
----

query I rowsort
SELECT DISTINCT 24 * - col1 AS col1 FROM tab1
----
-1128
-120
-336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 56 col1 FROM tab2 AS cor0
----
2576
3584
4200

query I rowsort
SELECT + + 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * + col2 >= NULL
----

query II rowsort
SELECT - col0 * + - 95 + + col2, + col2 AS col1 FROM tab1 AS cor0
----
4941
96
8134
59
8713
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ( - MAX( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2278
SELECT ( - MAX ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

query II rowsort
SELECT 55 AS col1, + col2 + - ( + 18 ) + - col2 AS col1 FROM tab0 AS cor0
----
55
-18
55
-18
55
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2280
SELECT * FROM tab2 cor0 WHERE NOT col0 * - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2280
SELECT * FROM tab2 cor0 WHERE NOT col0 * - + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 * + 1 col0 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT - + col2 * + col1 * - - col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL - col0 + + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2284
SELECT ALL - CAST( - 30 AS SIGNED ) AS col2 FROM tab0 cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - CAST ( - 30 AS INTEGER ) AS col2 FROM tab0 cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT COUNT( * ) col2 FROM tab1 WHERE NOT NULL <= 98 + - + 64
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 WHERE NOT NULL <= 98 + - + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT DISTINCT 29 + + - 43 + - - COUNT( * ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT 29 + + - 43 + - - COUNT ( * ) AS col1 FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT 98 + MIN( + 52 ) - - 33 AS col2 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-2287
SELECT 98 + MIN ( + 52 ) - - 33 AS col2 FROM tab2
----
183

query I rowsort
SELECT col0 + col2 + 79 * - - col2 * - col0 FROM tab2
----
-202136
-343517
-83513

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - 88 + MIN( - + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2289
SELECT - 88 + MIN ( - + ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT DISTINCT + - col0 + + col2 FROM tab0 cor0
----
-77
2
32

query II rowsort
SELECT - col2, col0 FROM tab0 WHERE NULL <= col2 + + - col2 * + + col1 * + col2
----

query I rowsort
SELECT - + ( + col1 ) + + - 95 FROM tab2 AS cor0
----
-146
-162
-172

query I rowsort
SELECT - col2 + + col1 + + col2 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab0 cor0
----
-89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 18 + - col2 / - 7 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 22 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 47 * + + 68 AS col2 FROM tab2
----
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT ALL - 30 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - 30 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 37 * - + col2 AS col1 FROM tab0
----
-1739
-3663
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL - COUNT( DISTINCT + 27 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - COUNT ( DISTINCT + 27 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 48 * 65 / - + 98 = - col2 + + 54 / - + 70
----

query I rowsort
SELECT - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 17 * + 47 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - COUNT( * ) + - SUM( DISTINCT col0 ) * - 81 AS col2 FROM tab2
----
14982

skipif mysql # not compatible
query I rowsort label-2303
SELECT - COUNT ( * ) + - SUM ( DISTINCT col0 ) * - 81 AS col2 FROM tab2
----
14982

query I rowsort
SELECT 60 AS col1 FROM tab2 WHERE col0 / + col1 + col1 IS NOT NULL
----
60
60
60

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 96 ) NOT BETWEEN col1 AND + col1 * 48
----

query I rowsort
SELECT col1 * 94 + col0 AS col2 FROM tab2
----
4840
6373
7302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 col0 FROM tab1 WHERE - col2 >= ( 33 - col1 * col0 )
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 - - ( col0 ) * col2 col1 FROM tab0
----
762
927
9660

query I rowsort
SELECT DISTINCT 49 + col1 FROM tab0
----
130
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT - 80 * - COUNT( * ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT - 80 * - COUNT ( * ) FROM tab2
----
240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2311
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - CAST ( NULL AS REAL ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 87 AS col2 FROM tab2
----
-12
-23
-41

query III rowsort
SELECT ALL * FROM tab1 WHERE - 41 * - col1 + 72 NOT IN ( - 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( ( - col2 ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ( col2 ) FROM tab1 WHERE col1 NOT BETWEEN NULL AND - 63 + 60
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( - col0 ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT + COUNT( * ) - - 64 * 51 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
3264

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT + COUNT ( * ) - - 64 * 51 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT DISTINCT + col2 - + col0 * CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT + col2 - + col0 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 65 + 55 AS col0 FROM tab2
----
120
120
120

query I rowsort
SELECT - 93 + + col2 FROM tab2 WHERE NULL IS NULL
----
-35
-53
-70

query I rowsort
SELECT col0 + col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
141
142
97

query I rowsort
SELECT 71 + + ( - 96 + - 13 * 67 ) FROM tab0
----
-896
-896
-896

query I rowsort
SELECT DISTINCT - 10 * - col0 AS col1 FROM tab1
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT + MAX( DISTINCT 19 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2324
SELECT + MAX ( DISTINCT 19 ) FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT - SUM( ALL 2 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2325
SELECT - SUM ( ALL 2 ) FROM tab2
----
-6

query I rowsort
SELECT - col0 + + col0 * - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2392
-4992
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT MIN( - ( 74 ) ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT MIN ( - ( 74 ) ) FROM tab1 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT DISTINCT + CAST( col0 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT 49 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2329
SELECT 49 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT - MAX( + col0 ) + 57 AS col2 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-2330
SELECT - MAX ( + col0 ) + 57 AS col2 FROM tab0
----
-40

query I rowsort
SELECT DISTINCT 94 + + AVG ( - col1 ) AS col1 FROM tab2 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT - MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2332
SELECT - MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + - 19 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + + ( COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2334
SELECT + + ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN col0 AND - 34 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT + + MAX( ALL - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + + MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( - 46 ) FROM tab2 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL - SUM( DISTINCT - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - SUM ( DISTINCT - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL 34 * + col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 + 80 * ( - 53 * col2 ) ) BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 AS col0 FROM tab2 WHERE NOT 61 <= NULL
----

query I rowsort
SELECT 42 FROM tab0 WHERE NOT + 80 NOT IN ( col1 - - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 67 * col0 + - col1 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col1 NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( col1 ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL CAST( 63 AS SIGNED ) * col1 AS col2 FROM tab2 cor0
----
3213
4221
4851

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL CAST ( 63 AS INTEGER ) * col1 AS col2 FROM tab2 cor0
----
3213
4221
4851

query I rowsort
SELECT 1 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 53 <> - col0 / + 78
----

query I rowsort
SELECT + 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2352
SELECT ( + 35 ) FROM tab1 WHERE NOT - CAST( col0 AS DECIMAL ) + col1 * + col0 IN ( col0 + - col0 )
----
35
35
35

skipif mysql # not compatible
query I rowsort label-2352
SELECT ( + 35 ) FROM tab1 WHERE NOT - CAST ( col0 AS REAL ) + col1 * + col0 IN ( col0 + - col0 )
----
35
35
35

query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-2116
-4096
-5625

query I rowsort
SELECT - 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT 14 + 61 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT col2 DIV 90 AS col1 FROM tab0 WHERE ( - col0 DIV - col1 ) IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2356
SELECT col2 / 90 AS col1 FROM tab0 WHERE ( - col0 / - col1 ) IS NOT NULL
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + 97 * ( - COUNT( * ) ) FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2357
SELECT + 97 * ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT + col0 DIV col0 * col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2359
SELECT + col0 / col0 * col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ( + 93 ) * COUNT( * ) FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-2360
SELECT ( + 93 ) * COUNT ( * ) FROM tab2 AS cor0
----
279

query II rowsort
SELECT DISTINCT + - col2, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL - - col1 * - - col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2363
SELECT DISTINCT + COUNT( * ), + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2363
SELECT DISTINCT + COUNT ( * ), + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2364
SELECT * FROM tab2 AS cor0 WHERE col1 < + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2364
SELECT * FROM tab2 AS cor0 WHERE col1 < + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + col1 + + 77 FROM tab2 AS cor0
----
0
10
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT IN ( - - col0 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 46 + - col0 IN ( col1 + + 28 / - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT DISTINCT - 75 + + MIN( - + col0 ) FROM tab1
----
-166

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - 75 + + MIN ( - + col0 ) FROM tab1
----
-166

query I rowsort
SELECT DISTINCT col1 + 25 + + ( - col0 ) * - col2 AS col0 FROM tab0
----
811
916
9629

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT DISTINCT - col2 + - 48 * col1 DIV - + col0 AS col2 FROM tab0
----
-99
1
212

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT - col2 + - 48 * col1 / - + col0 AS col2 FROM tab0
----
-99
1
212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 99 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 99 FROM tab0
----
NULL

query II rowsort
SELECT + col0 + - col1, col2 AS col0 FROM tab1
----
37
96
44
68
80
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT COUNT( * ) * - - COUNT( * ) + + 89 * 78 AS col2 FROM tab2
----
6951

skipif mysql # not compatible
query I rowsort label-2373
SELECT COUNT ( * ) * - - COUNT ( * ) + + 89 * 78 AS col2 FROM tab2
----
6951

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT col0 DIV + - col0 + + 77 + + col0 FROM tab1
----
127
161
167

skipif mysql # not compatible
query I rowsort label-2374
SELECT col0 / + - col0 + + 77 + + col0 FROM tab1
----
127
161
167

query I rowsort
SELECT + col2 + - + col2 / - 7 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT ALL + ( - - CAST( + + COUNT( * ) AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT - col0 + 74 AS col2 FROM tab2 WHERE + 45 IS NOT NULL
----
-1
10
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT DISTINCT 3 * - CAST( + col1 AS SIGNED ) FROM tab0
----
-243
-3
-63

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT 3 * - CAST ( + col1 AS INTEGER ) FROM tab0
----
-243
-3
-63

query I rowsort
SELECT + - col1 * 40 AS col2 FROM tab1 AS cor0
----
-1880
-200
-560

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL = ( + col1 * - 2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + 0 col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND - - col1 * 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-2384
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1
----
0

query I rowsort
SELECT col2 - 98 AS col0 FROM tab2
----
-40
-58
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col1 <= - - 34 * + 13 * 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= ( + - 48 / - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <= ( + - 48 / - col2 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT - 4 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( 14 * col0 * + + col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-2388
SELECT - 4 / + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( 14 * col0 * + + col2 )
----
-1

query I rowsort
SELECT DISTINCT - 8 FROM tab1 AS cor0 WHERE col1 BETWEEN col2 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT - COUNT( ALL - - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - COUNT ( ALL - - col2 ) AS col0 FROM tab0
----
-3

query II rowsort
SELECT DISTINCT col1, 20 FROM tab2
----
51
20
67
20
77
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT COUNT( DISTINCT + col1 ) FROM tab1 WHERE NOT - CAST( + 17 AS SIGNED ) IN ( - 53 )
----
3

skipif mysql # not compatible
query I rowsort label-2393
SELECT COUNT ( DISTINCT + col1 ) FROM tab1 WHERE NOT - CAST ( + 17 AS INTEGER ) IN ( - 53 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2394
SELECT + col2 AS col0, + col1 + col2 + - CAST( NULL AS SIGNED ) / - col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-2394
SELECT + col2 AS col0, + col1 + col2 + - CAST ( NULL AS INTEGER ) / - col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( + col0 ) + - + ( col0 ) IN ( 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2396
SELECT ALL col1 AS col2, - 27 - + col1 * + - 2 * - CAST( - - 11 AS SIGNED ) * col2 FROM tab1
----
14
-29595
47
-70339
5
-6517

skipif mysql # not compatible
query II rowsort label-2396
SELECT ALL col1 AS col2, - 27 - + col1 * + - 2 * - CAST ( - - 11 AS INTEGER ) * col2 FROM tab1
----
14
-29595
47
-70339
5
-6517

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 * + col2 IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col2, - 77 FROM tab2
----
46
-77
64
-77
75
-77

query I rowsort
SELECT ALL ( - ( + col2 ) ) AS col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2400
SELECT + COUNT( - col2 ) AS col0, 16 AS col2 FROM tab0 AS cor0
----
3
16

skipif mysql # not compatible
query II rowsort label-2400
SELECT + COUNT ( - col2 ) AS col0, 16 AS col2 FROM tab0 AS cor0
----
3
16

query I rowsort
SELECT - - col0 * col2 + + col1 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT DISTINCT - ( + col0 ) + + CAST( + col2 AS SIGNED ) FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT - ( + col0 ) + + CAST ( + col2 AS INTEGER ) FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 WHERE col1 + col1 * - + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
1
21
81

query I rowsort
SELECT + 76 + col0 * col2 FROM tab1 AS cor0
----
4972
5091
6264

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT MIN( DISTINCT - - col1 ) * - 26 + 98 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT MIN ( DISTINCT - - col1 ) * - 26 + 98 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT MIN( ALL + - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2408
SELECT MIN ( ALL + - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + 20 col1 FROM tab0 AS cor0
----
-685
-850
-9583

query I rowsort
SELECT DISTINCT + col1 * - 71 + - col1 AS col2 FROM tab2
----
-3672
-4824
-5544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2411
SELECT col1 * col1 DIV - ( + CAST( + col0 AS SIGNED ) ) FROM tab0
----
-437
-5
0

skipif mysql # not compatible
query I rowsort label-2411
SELECT col1 * col1 / - ( + CAST ( + col0 AS INTEGER ) ) FROM tab0
----
-437
-5
0

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE 67 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL - 2 * - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - 2 * - COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT DISTINCT + 14 + 87 * + - ( col2 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + 14 + 87 * + - ( col2 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - - ( col1 ) + col0 + - 99 * + col0 FROM tab1 cor0
----
-4984
-8325
-8871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 25 col0 FROM tab1 AS cor0
----
-26
-60
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT ALL + 49 DIV 72 * - + col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT ALL + 49 / 72 * - + col1 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT DISTINCT + 20 DIV - MAX( + - 89 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT + 20 / - MAX ( + - 89 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + 88 ) <> - 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 51 AS col1 FROM tab2 cor0
----
51
51
51

query I rowsort
SELECT - 43 * + 98 FROM tab2 cor0
----
-4214
-4214
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - MAX( ALL - + ( - - col0 ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2422
SELECT - MAX ( ALL - + ( - - col0 ) ) FROM tab0 cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2 + - 84, col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 * ( - col1 ), 21 + 70 AS col1 FROM tab2
----
2346
91
4928
91
5025
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + COUNT( * ) + - COUNT( DISTINCT - col1 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT + COUNT ( * ) + - COUNT ( DISTINCT - col1 ) AS col2 FROM tab0
----
0

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 AS col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT - + 99 + + col1 AS col0 FROM tab2 AS cor0
----
-22
-32
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col2 * + col1 * col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1, + 88 + + col0 AS col0 FROM tab0 AS cor0
----
1
185
21
175
81
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 97 AS col1 FROM tab1 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 97 AS col1 FROM tab1 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
75

query I rowsort
SELECT + col2 * - ( col1 ) AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT - ( + SUM( - + 32 ) ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - ( + SUM ( - + 32 ) ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT ALL - + ( + 98 ) / - - col2 + - col0 + - 98 * + CAST( NULL AS SIGNED ) * + 60 * + col0 * 23 / - 68 * 32 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - + ( + 98 ) / - - col2 + - col0 + - 98 * + CAST ( NULL AS INTEGER ) * + 60 * + col0 * 23 / - 68 * 32 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * + - 15 FROM tab0 AS cor0
----
1305
1455
225

query I rowsort
SELECT DISTINCT - 62 + + 65 * + - 39 * - col2 AS col1 FROM tab1 AS cor0
----
149503
172318
243298

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT ALL 63 DIV + col1 + - col0 + + - col2 AS col2 FROM tab0 cor0
----
-133
-62
-94

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL 63 / + col1 + - col0 + + - col2 AS col2 FROM tab0 cor0
----
-133
-62
-94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 34 IS NOT NULL AND NOT 40 > - col1
----

query I rowsort
SELECT DISTINCT + + ( - - col1 ) + + col1 + + col1 - col1 FROM tab1 cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + ( 16 ) + + - COUNT( * ) * - ( 18 ) col1 FROM tab0
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2442
SELECT + ( 16 ) + + - COUNT ( * ) * - ( 18 ) col1 FROM tab0
----
70

query I rowsort
SELECT ALL + 92 - + ( col1 ) FROM tab1
----
45
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( ( ( NULL IS NULL ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( ( ( NULL IS NULL ) ) )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT DISTINCT + col1 * col2 DIV 19 col2 FROM tab0
----
11
200
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2445
SELECT DISTINCT + col1 * col2 / 19 col2 FROM tab0
----
11
200
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2446
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE ( NOT + CAST( NULL AS SIGNED ) * col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE ( NOT + CAST ( NULL AS INTEGER ) * col1 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT DISTINCT - ( + COUNT( * ) ) - + ( CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT - ( + COUNT ( * ) ) - + ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ( 54 ) AS col0 FROM tab1 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + col1 col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL - - MIN( DISTINCT + 4 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - - MIN ( DISTINCT + 4 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 27 * - 4 FROM tab0
----
10
-108
47
-108
99
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2452
SELECT col0, + ( + - CAST( - - CAST( + col1 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2
----
46
-51
64
-77
75
-67

skipif mysql # not compatible
query II rowsort label-2452
SELECT col0, + ( + - CAST ( - - CAST ( + col1 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT SUM( ALL - 51 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-459

skipif mysql # not compatible
query I rowsort label-2453
SELECT SUM ( ALL - 51 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-459

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2454
SELECT DISTINCT - col1 * + + ( - + CAST( + - col2 AS SIGNED ) ) AS col2, + col2 AS col0 FROM tab2
----
-1173
23
-3080
40
-3886
58

skipif mysql # not compatible
query II rowsort label-2454
SELECT DISTINCT - col1 * + + ( - + CAST ( + - col2 AS INTEGER ) ) AS col2, + col2 AS col0 FROM tab2
----
-1173
23
-3080
40
-3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT 44 * MIN( DISTINCT + 3 ) + 19 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
151

skipif mysql # not compatible
query I rowsort label-2455
SELECT 44 * MIN ( DISTINCT + 3 ) + 19 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
151

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT + 76 + - - 43 * - 13 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 5 col2, - 55 FROM tab0 cor0
----
5
-55

query II rowsort
SELECT + 46, col2 FROM tab1 AS cor0
----
46
59
46
68
46
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * + 18 col0 FROM tab2 cor0
----
-126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / - col0 / - + col0 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT + MIN( col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2461
SELECT + MIN ( col0 ) AS col0 FROM tab0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - MIN( + col1 ) + - 24 * + ( + ( 50 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - MIN ( + col1 ) + - 24 * + ( + ( 50 ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND + 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 24 col2 FROM tab2
----
-1224
-1608
-1848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 * - 32 col2 FROM tab0
----
1280
1280
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT + COUNT( * ) * + 77 AS col1 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT + COUNT ( * ) * + 77 AS col1 FROM tab0
----
231

query I rowsort
SELECT - 17 + + - 29 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - ( ( + - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT + COUNT( * ) 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-2470
SELECT DISTINCT + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - - 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query II rowsort
SELECT + col1 + + ( col2 ), - col1 AS col0 FROM tab0
----
100
-1
128
-81
31
-21

query I rowsort
SELECT + - 18 * - col2 FROM tab1 AS cor0
----
1062
1224
1728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col1 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT + - 9 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT + - 9 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * - + col2 * - ( col2 ) FROM tab2 AS cor0
----
-123200
-225388
-26979

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col1 / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL - MAX( + - col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL - MAX ( + - col1 ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT 27 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2480
SELECT DISTINCT + col0, CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-2480
SELECT DISTINCT + col0, CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
51
51
85
85
91
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - + col2 + - + col0 - 28
----

query II rowsort
SELECT - + col1, - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT + + 35 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2483
SELECT + + 35 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
105

query I rowsort
SELECT DISTINCT col0 * + - 0 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 77 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 11 * - + col0 + - 31 AS col0 FROM tab1 AS cor0
----
-1032
-592
-966

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab2 cor0
----
-30

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 / 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 41, 82 * 78 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2490
SELECT - + COUNT( * ) AS col0 FROM tab2 WHERE NOT + - CAST( + col0 AS SIGNED ) < + col2
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + - CAST ( + col0 AS INTEGER ) < + col2
----
0

query I rowsort
SELECT ALL 45 + + col2 AS col2 FROM tab0
----
144
55
92

query I rowsort
SELECT ( + + col2 ) + col1 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT - col2 + - - 58 * 63 FROM tab2
----
3596
3614
3631

query I rowsort
SELECT + col1 / - ( + - 53 ) FROM tab2 WHERE NULL BETWEEN NULL AND 35
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ( - COUNT( * ) ) + - ( + + 68 ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-2496
SELECT ( - COUNT ( * ) ) + - ( + + 68 ) FROM tab2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT - 53 + 66 + - CAST( NULL AS SIGNED ) + col0 / - + col2 * col0 / - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT - 53 + 66 + - CAST ( NULL AS INTEGER ) + col0 / - + col2 * col0 / - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 1 + col0 AS col2 FROM tab2 cor0
----
45
63
74

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( col1 ) IS NULL
----

query I rowsort
SELECT ALL - col0 - - 49 AS col0 FROM tab0
----
-38
-48
34

query I rowsort
SELECT DISTINCT - col0 * - 63 + - col2 - - - col2 FROM tab0
----
5461
5913
851

query I rowsort
SELECT col1 + + col0 FROM tab1 WHERE + - 67 IS NOT NULL
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 81 * - 12 col1 FROM tab1
----
-881
-887
-921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2504
SELECT + - 85 + + MAX( CAST( NULL AS SIGNED ) ) / + 91 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT + - 85 + + MAX ( CAST ( NULL AS INTEGER ) ) / + 91 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - ( + col2 ) - - col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 85 IS NULL
----

query I rowsort
SELECT + - ( + + 35 ) AS col1 FROM tab1 AS cor0 WHERE + col1 > - col0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab0 WHERE NULL = - 32 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT col1 DIV 43 col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2509
SELECT col1 / 43 col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT DISTINCT COUNT( - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT COUNT ( - col1 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col0 * 25 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2512
SELECT - COUNT( * ), - 31 + 29 AS col1 FROM tab0
----
-3
-2

skipif mysql # not compatible
query II rowsort label-2512
SELECT - COUNT ( * ), - 31 + 29 AS col1 FROM tab0
----
-3
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ALL - COUNT( ALL + - col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - COUNT ( ALL + - col1 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT DISTINCT + COUNT( * ) col2, - 27 AS col1 FROM tab1 AS cor0
----
3
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2514
SELECT DISTINCT + COUNT ( * ) col2, - 27 AS col1 FROM tab1 AS cor0
----
3
-27

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL <= - col1 + + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - + 88
----

query I rowsort
SELECT + - 58 * col1 FROM tab1 AS cor0
----
-2726
-290
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL + + SUM( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + + SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL <> col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2520
SELECT + - CAST( NULL AS DECIMAL ) + col0 FROM tab1 WHERE NOT + + col2 NOT BETWEEN + col0 + - ( + col0 ) AND col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT + - CAST ( NULL AS REAL ) + col0 FROM tab1 WHERE NOT + + col2 NOT BETWEEN + col0 + - ( + col0 ) AND col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 47 * + + 32 AS col1 FROM tab2
----
1504
1504
1504

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT DISTINCT + 65 DIV + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT + 65 / + col0 FROM tab1
----
0
1

query I rowsort
SELECT ALL + + 41 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL 80 + + COUNT( DISTINCT - 6 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL 80 + + COUNT ( DISTINCT - 6 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT col1 + + col0 + col0 - - col1 AS col2 FROM tab1 AS cor0
----
130
180
276

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT - SUM( DISTINCT - - ( col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - SUM ( DISTINCT - - ( col2 ) ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT + 14 + - + 76 * 15 * 66 AS col1 FROM tab0 AS cor0
----
-75226

onlyif mysql # DIV for integer division: 
query II rowsort label-2529
SELECT 68, 60 DIV + col2 col0 FROM tab1 AS cor0
----
68
0
68
0
68
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2529
SELECT 68, 60 / + col2 col0 FROM tab1 AS cor0
----
68
0
68
0
68
1

query I rowsort
SELECT ALL col1 * + + ( + 37 ) + + col0 FROM tab0 AS cor0
----
134
3012
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT ALL COUNT( * ) + - + 65 DIV - - 65 AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL COUNT ( * ) + - + 65 / - - 65 AS col2 FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL + ( + ( - col2 ) ) AS col2 FROM tab2 WHERE - + col2 <= + 41 + + col1 * col0 * + + col0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 35 * + 44, col0 col0 FROM tab1
----
-1540
51
-1540
85
-1540
91

query I rowsort
SELECT ALL - col1 + + 8 FROM tab1
----
-39
-6
3

query I rowsort
SELECT - - col0 AS col0 FROM tab1 WHERE - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT SUM( - - 77 ) FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-2536
SELECT SUM ( - - 77 ) FROM tab1
----
231

query I rowsort
SELECT ALL + col2 * col1 FROM tab0 WHERE NOT col1 / - - 38 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + - - ( + col0 ) AS col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT - COUNT( * ) * - - 97 AS col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - COUNT ( * ) * - - 97 AS col1 FROM tab0 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-2540
SELECT ALL + ( + COUNT( * ) ), - ( - + 33 ) + + SUM( - - col0 ) AS col0 FROM tab2 AS cor0
----
3
218

skipif mysql # not compatible
query II rowsort label-2540
SELECT ALL + ( + COUNT ( * ) ), - ( - + 33 ) + + SUM ( - - col0 ) AS col0 FROM tab2 AS cor0
----
3
218

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - - 54 + + - COUNT( * ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2541
SELECT - - 54 + + - COUNT ( * ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT + + 30 * + - col1 FROM tab1 AS cor0
----
-1410
-150
-420

query I rowsort
SELECT DISTINCT 54 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + 89 - + - 3 * - + col0 * + 26 col1 FROM tab2 AS cor0
----
-11813
-11845
-8127

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE + 37 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT col1 - - - col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, - 6 col0 FROM tab0 AS cor0
----
1
-6
21
-6
81
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT + MAX( DISTINCT - + CAST( + col1 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2548
SELECT + MAX ( DISTINCT - + CAST ( + col1 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL - col0 * - - 79 FROM tab2 AS cor0
----
-3634
-5056
-5925

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 32 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - CAST( NULL AS SIGNED ) * col0 * - col2 + - - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - CAST ( NULL AS INTEGER ) * col0 * - col2 + - - col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 61 * col2 AS col2 FROM tab2
----
1403
2440
3538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2553
SELECT 39 DIV COUNT( * ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2553
SELECT 39 / COUNT ( * ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL ( col0 ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT + 38 * - 80 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-3040
-3040
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT 91 * + 72 + - - COUNT( * ) AS col2 FROM tab0
----
6555

skipif mysql # not compatible
query I rowsort label-2556
SELECT 91 * + 72 + - - COUNT ( * ) AS col2 FROM tab0
----
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL COUNT( * ) + 88 AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL COUNT ( * ) + 88 AS col0 FROM tab0
----
91

query I rowsort
SELECT + col0 + 27 FROM tab1
----
112
118
78

query I rowsort
SELECT DISTINCT - 73 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - 83 * + col1 AS col2 FROM tab2
----
-215883
-372587
-492107

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - 76 - - - COUNT( * ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - 76 - - - COUNT ( * ) FROM tab0
----
-79

query III rowsort
SELECT * FROM tab1 WHERE NULL = - - ( - col0 ) + - 34
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT - COUNT( * ) + - COUNT( * ) DIV 65 AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2563
SELECT - COUNT ( * ) + - COUNT ( * ) / 65 AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + - COUNT( + + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2565
SELECT + - COUNT ( + + col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL + col0 * + col0 - + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
2162
4160
5700

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + col0 * + col0 - + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - + MAX( DISTINCT + col1 ) * + 51 AS col0 FROM tab0 AS cor0
----
-4131

skipif mysql # not compatible
query I rowsort label-2567
SELECT - + MAX ( DISTINCT + col1 ) * + 51 AS col0 FROM tab0 AS cor0
----
-4131

query I rowsort
SELECT ALL col1 + - 51 FROM tab2
----
0
16
26

query I rowsort
SELECT ALL ( col2 ) * - col0 * + - col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT ALL + col1 DIV 76 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + col1 / 76 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1 * + + col2 + + ( - 49 ) + + col1
----

query I rowsort
SELECT col1 * + + col1 * - 15 AS col1 FROM tab0 AS cor0
----
-15
-6615
-98415

onlyif mysql # DIV for integer division: 
query II rowsort label-2573
SELECT DISTINCT - col0 DIV col0 AS col1, col0 col2 FROM tab1 cor0
----
-1
51
-1
85
-1
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2573
SELECT DISTINCT - col0 / col0 AS col1, col0 col2 FROM tab1 cor0
----
-1
51
-1
85
-1
91

query I rowsort
SELECT ALL + + 45 AS col0 FROM tab2 cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL + MAX( - 92 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + MAX ( - 92 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT DISTINCT + col1 DIV + 60 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + col1 / + 60 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 IN ( col1, col2, - + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * 52 * + - col1 col2 FROM tab0
----
-227448
-2808
-58968

query I rowsort
SELECT col1 * + + col1 AS col2 FROM tab0
----
1
441
6561

query II rowsort
SELECT ALL 34 AS col2, col0 AS col1 FROM tab1
----
34
51
34
85
34
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - ( - COUNT( ALL ( - - col2 ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2583
SELECT - ( - COUNT ( ALL ( - - col2 ) ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT MIN( + + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2584
SELECT MIN ( + + col2 ) AS col2 FROM tab2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2585
SELECT ALL - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT ALL col0, + col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT 95 * + 57 FROM tab2
----
5415
5415
5415

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + 18 * - 95 BETWEEN - col1 AND - 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2589
SELECT - 71 DIV + col0 col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2589
SELECT - 71 / + col0 col2 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT DISTINCT - col1 DIV 11 FROM tab0 cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT - col1 / 11 FROM tab0 cor0
----
-1
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + 66 col1, 68 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - col1 * 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + MIN( + + 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2593
SELECT + MIN ( + + 89 ) FROM tab0 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - MAX( DISTINCT + - col1 ) + + 22 + SUM( + col2 ) FROM tab0
----
179

skipif mysql # not compatible
query I rowsort label-2594
SELECT - MAX ( DISTINCT + - col1 ) + + 22 + SUM ( + col2 ) FROM tab0
----
179

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 12 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + 63 NOT BETWEEN NULL AND + + 48 * + - col2 - col1
----

query I rowsort
SELECT + + ( - + col1 ) + - - 91 FROM tab0 AS cor0
----
10
70
90

query I rowsort
SELECT DISTINCT - col0 + - - col1 FROM tab1 cor0 WHERE NOT NULL > ( + col1 ) * 68
----

query I rowsort
SELECT ALL 88 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( col1, + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT COUNT( * ) - COUNT( + 42 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2600
SELECT COUNT ( * ) - COUNT ( + 42 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col2 + + col2 + + 50 * + ( 98 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + + 55 + col2 AS col0 FROM tab0
----
155
183
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT ALL + col0 DIV col2 - + col2 - 81 AS col2 FROM tab2
----
-102
-120
-138

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL + col0 / col2 - + col2 - 81 AS col2 FROM tab2
----
-102
-120
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT DISTINCT COUNT( * ) + - 67 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT COUNT ( * ) + - 67 FROM tab2
----
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 45
----

query I rowsort
SELECT + col1 + + - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-195
-76
19

query I rowsort
SELECT - col1 + - 46 + + col2 AS col0 FROM tab2 AS cor0
----
-55
-74
-83

query I rowsort
SELECT ( - col1 ) * - col2 + + - col2 + + col1 + + col1 FROM tab2 cor0
----
1252
3194
3962

query I rowsort
SELECT + + col2 + - col2 - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - 88 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT DISTINCT 34 * COUNT( ALL + col1 ) AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT 34 * COUNT ( ALL + col1 ) AS col1 FROM tab2
----
102

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * - col0 AND + ( + col0 )
----

query I rowsort
SELECT ALL - col1 * + 1 * col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + col1 * + 27 + - + col0 FROM tab1 AS cor0
----
1178
327
50

query II rowsort
SELECT ALL 40, - col0 * col0 AS col1 FROM tab2 AS cor0
----
40
-2116
40
-4096
40
-5625

query I rowsort
SELECT ALL 72 AS col0 FROM tab0 cor0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT - - MIN( col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT - - MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
23

query II rowsort
SELECT + - col2 AS col0, - 28 FROM tab0 AS cor0
----
-10
-28
-47
-28
-99
-28

query I rowsort
SELECT DISTINCT - 43 FROM tab1 AS cor0 WHERE ( - 50 ) IS NULL
----

query I rowsort
SELECT 71 FROM tab0 WHERE NOT - col1 < 4 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + COUNT( * ) FROM tab0 WHERE + col1 / ( + + col2 ) + 56 >= - + 72
----
3

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col1 / ( + + col2 ) + 56 >= - + 72
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT 64 DIV col0 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2623
SELECT 64 / col0 AS col1 FROM tab2
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + + + col1 + col0 + + col1 col2 FROM tab1 AS cor0
----
-4817
-4920
-6003

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT ALL - + col2 DIV + - 51 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - + col2 / + - 51 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL - MAX( col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - MAX ( col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT DISTINCT col2 DIV + + 55 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT col2 / + + 55 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 27 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 40 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT - 38 * - + col0 AS col2 FROM tab2 cor0 WHERE + CAST( - + 22 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 38 * - + col0 AS col2 FROM tab2 cor0 WHERE + CAST ( - + 22 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 24 - + col0 AS col1 FROM tab0
----
-63
-73
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT AVG ( - CAST( NULL AS SIGNED ) ) + 54 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) + 54 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 + - ( - col2 ) col0 FROM tab1
----
103
66
75

query I rowsort
SELECT 37 + - - col2 AS col0 FROM tab1
----
105
133
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT MAX( DISTINCT + 95 ) AS col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-2637
SELECT MAX ( DISTINCT + 95 ) AS col1 FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT COUNT( * ) * + 78 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-2638
SELECT COUNT ( * ) * + 78 FROM tab0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT + + MAX( ALL 96 ) - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT + + MAX ( ALL 96 ) - COUNT ( * ) FROM tab1 AS cor0
----
93

query I rowsort
SELECT + - 0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL = + - col0 )
----

query I rowsort
SELECT + 76 * + col1 FROM tab1
----
1064
3572
380

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col1 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ALL - MAX( - - 71 ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - MAX ( - - 71 ) FROM tab1 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL + MIN( - 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + MIN ( - 21 ) FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL + COUNT( ALL - 79 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + COUNT ( ALL - 79 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 48 - col2 + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + col0 * + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL - AVG ( ALL + - col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( NOT + 11 NOT BETWEEN col1 * - col0 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - AVG ( ALL + - col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( NOT + 11 NOT BETWEEN col1 * - col0 AND NULL )
----
NULL

query I rowsort
SELECT + ( + ( - 49 ) ) * - 97 FROM tab0
----
4753
4753
4753

query I rowsort
SELECT ALL 77 * - 36 * + col2 FROM tab2
----
-110880
-160776
-63756

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT + 25 * + MIN( + col0 ) FROM tab2
----
1150

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + 25 * + MIN ( + col0 ) FROM tab2
----
1150

query II rowsort
SELECT - col0 AS col0, - 34 AS col2 FROM tab2
----
-46
-34
-64
-34
-75
-34

query I rowsort
SELECT DISTINCT + ( 37 ) AS col2 FROM tab2 cor0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT ALL - + COUNT( * ) DIV 53 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - + COUNT ( * ) / 53 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col1 / col2 * col2 >= - - 52 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT 35 + + + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
102
112
86

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT 35 + + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
102
112
86

query I rowsort
SELECT + + 50 AS col1 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL - - COUNT( 66 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - - COUNT ( 66 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 90 FROM tab2 cor0
----
90

query I rowsort
SELECT col0 - - 86 AS col2 FROM tab2
----
132
150
161

query III rowsort
SELECT * FROM tab1 WHERE + - col0 BETWEEN NULL AND - - 54
----

query I rowsort
SELECT ALL + col1 * + + col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN ( NULL ) AND col0 * - - col2 * + ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT DISTINCT ( 71 ) - COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT ( 71 ) - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2669
SELECT + SUM( ALL - - 99 ), MIN( + 0 ) AS col0 FROM tab1
----
297
0

skipif mysql # not compatible
query II rowsort label-2669
SELECT + SUM ( ALL - - 99 ), MIN ( + 0 ) AS col0 FROM tab1
----
297
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2670
SELECT DISTINCT COUNT( * ), ( + 86 ) + + 9 col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2670
SELECT DISTINCT COUNT ( * ), ( + 86 ) + + 9 col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 col2 FROM tab2 AS cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2672
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL + - MAX( + col2 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + - MAX ( + col2 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
297

query I rowsort
SELECT ALL - - 34 + col0 AS col2 FROM tab0 AS cor0
----
121
131
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col1
----

query I rowsort
SELECT DISTINCT ( - 52 ) AS col2 FROM tab1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2677
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2677
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > - ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2680
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 75 * ( + col2 ) * ( + - col1 ), col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2680
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 75 * ( + col2 ) * ( + - col1 ), col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2681
SELECT ALL - + COUNT( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - + COUNT ( ALL - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( + col0 ) + + - col2 AS col2 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-2683
SELECT DISTINCT 85 * + - ( + + 4 ) - - - col2 AS col2, col2 DIV col2 col0 FROM tab1
----
-399
1
-408
1
-436
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2683
SELECT DISTINCT 85 * + - ( + + 4 ) - - - col2 AS col2, col2 / col2 col0 FROM tab1
----
-399
1
-408
1
-436
1

query II rowsort
SELECT - col0 AS col1, col2 AS col2 FROM tab0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - - col2 IS NOT NULL AND col1 IS NULL
----

query I rowsort
SELECT 42 + col2 * 98 FROM tab2 AS cor0
----
2296
3962
5726

query I rowsort
SELECT ALL 24 AS col2 FROM tab0 cor0
----
24
24
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 63 BETWEEN - - col1 AND + + col2 + col1
----
46
51
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2690
SELECT SUM( + col0 ) DIV + COUNT( * ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2690
SELECT SUM ( + col0 ) / + COUNT ( * ) AS col0 FROM tab2
----
61

query I rowsort
SELECT 14 * + 55 AS col2 FROM tab1
----
770
770
770

query I rowsort
SELECT DISTINCT col1 - + - col2 * + + col1 AS col0 FROM tab2
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT 55 * + COUNT( + col0 ) AS col1 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-2693
SELECT 55 * + COUNT ( + col0 ) AS col1 FROM tab1
----
165

query I rowsort
SELECT - ( 98 ) AS col1 FROM tab2
----
-98
-98
-98

query I rowsort
SELECT - 64 * - col1 * + 59 AS col0 FROM tab0
----
305856
3776
79296

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT - CAST( NULL AS SIGNED ) * + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT - CAST ( NULL AS INTEGER ) * + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - - col2 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2699
SELECT COUNT( * ) DIV - + COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2699
SELECT COUNT ( * ) / - + COUNT ( * ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL col1 * + col0 * + 45 FROM tab0
----
4365
54675
82215

query II rowsort
SELECT - col2, col2 - - + 18 AS col2 FROM tab0
----
-10
28
-47
65
-99
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL ( + SUM( + col2 ) ) AS col2 FROM tab0 WHERE NOT + + col2 * - 98 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL ( + SUM ( + col2 ) ) AS col2 FROM tab0 WHERE NOT + + col2 * - 98 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 86 >= - + 64
----

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col1 * - col1, ( + col0 ) FROM tab2 cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, 84 col0 FROM tab0 AS cor0
----
-15
84
-87
84
-97
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2707
SELECT ALL + + CAST( + + col2 AS SIGNED ) * + col1 AS col2, col1 col2 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2707
SELECT ALL + + CAST ( + + col2 AS INTEGER ) * + col1 AS col2, col1 col2 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 col0, col1 col0 FROM tab2 AS cor0
----
37
51
37
67
37
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2709
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * + col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-2709
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) * + col1 < NULL
----

query I rowsort
SELECT ALL - col2 * - 45 + col1 FROM tab1 AS cor0
----
2660
3107
4334

onlyif mysql # aggregate syntax: 
query II rowsort label-2711
SELECT - MAX( + col1 ) AS col0, + 92 FROM tab1
----
-47
92

skipif mysql # not compatible
query II rowsort label-2711
SELECT - MAX ( + col1 ) AS col0, + 92 FROM tab1
----
-47
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ( + SUM( DISTINCT - 98 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-98

skipif mysql # not compatible
query I rowsort label-2712
SELECT ( + SUM ( DISTINCT - 98 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT - SUM( ALL + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2713
SELECT - SUM ( ALL + col2 ) AS col1 FROM tab1
----
-223

query I rowsort
SELECT 35 * 57 FROM tab1
----
1995
1995
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - COUNT( 94 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2715
SELECT - COUNT ( 94 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL COUNT( * ) + + ( - COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL COUNT ( * ) + + ( - COUNT ( * ) ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 <> col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2718
SELECT + COUNT( * ) - + - COUNT( * ) + - ( - - COUNT( DISTINCT + col2 ) ), - COUNT( * ) FROM tab2 AS cor0 WHERE 31 * + ( col2 ) <= - + 98
----
0
0

skipif mysql # not compatible
query II rowsort label-2718
SELECT + COUNT ( * ) - + - COUNT ( * ) + - ( - - COUNT ( DISTINCT + col2 ) ), - COUNT ( * ) FROM tab2 AS cor0 WHERE 31 * + ( col2 ) <= - + 98
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT ALL + CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + 28 AS col2 FROM tab1 AS cor0 WHERE col0 <= - ( 34 )
----

query I rowsort
SELECT - - col0 + + 81 FROM tab2 AS cor0
----
127
145
156

query II rowsort
SELECT - - col2 + + col0 AS col0, - ( + ( - + 62 ) ) AS col2 FROM tab1 AS cor0
----
144
62
147
62
159
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT DISTINCT - col0 * + 19 + - - col1 * - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-1190
-255
2548

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT - col0 * + 19 + - - col1 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-1190
-255
2548

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT DISTINCT - col0 DIV + + 44 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - col0 / + + 44 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2725
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - COUNT( * ) * ( + - COUNT( * ) ) + + MIN( DISTINCT col2 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-2726
SELECT - COUNT ( * ) * ( + - COUNT ( * ) ) + + MIN ( DISTINCT col2 ) FROM tab0
----
19

query I rowsort
SELECT DISTINCT 57 - col1 * - 17 FROM tab2
----
1196
1366
924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * + col1 col0 FROM tab0 AS cor0
----
3078
38
798

query I rowsort
SELECT DISTINCT ( 8 ) - 30 AS col0 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT DISTINCT + - col2 * + 42 - - 68 FROM tab0 cor0
----
-1906
-352
-4090

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL - 0 * + SUM( - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL - 0 * + SUM ( - col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - 11 + - 0 * col0 AS col2 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT + col1 * CAST( NULL AS SIGNED ) - - ( - col0 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT + col1 * CAST ( NULL AS INTEGER ) - - ( - col0 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT - + col0 - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT - + col0 - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 99 + + col1 + + - col1 * + + col2 FROM tab0 AS cor0
----
-3627
-90
1

query I rowsort
SELECT + + ( - 61 ) - - col0 FROM tab2 AS cor0
----
-15
14
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT - 42 DIV - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2737
SELECT - 42 / - col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT + 8 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2738
SELECT + 8 / - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT DISTINCT CAST( + - col0 AS SIGNED ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT - COUNT( * ) * MAX( 10 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2740
SELECT - COUNT ( * ) * MAX ( 10 ) FROM tab0
----
-30

query II rowsort
SELECT ALL + col0, col1 * + col2 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT + COUNT( * ) * - SUM( + 21 ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT + COUNT ( * ) * - SUM ( + 21 ) FROM tab2
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL + COUNT( - CAST( + col2 AS SIGNED ) ) * 62 AS col0 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + COUNT ( - CAST ( + col2 AS INTEGER ) ) * 62 AS col0 FROM tab2
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT ALL + + col0 DIV 4 FROM tab1 AS cor0
----
12
21
22

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + + col0 / 4 FROM tab1 AS cor0
----
12
21
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 28 FROM tab1 AS cor0
----
14
28
47
28
5
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2746
SELECT ALL COUNT( CAST( - col2 AS SIGNED ) ) DIV + COUNT( 24 ) + - 2, - 45 AS col1 FROM tab0 AS cor0
----
-1
-45

skipif mysql # not compatible
query II rowsort label-2746
SELECT ALL COUNT ( CAST ( - col2 AS INTEGER ) ) / + COUNT ( 24 ) + - 2, - 45 AS col1 FROM tab0 AS cor0
----
-1
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL - - CAST( 49 AS SIGNED ) FROM tab0 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - - CAST ( 49 AS INTEGER ) FROM tab0 AS cor0
----
49
49
49

query II rowsort
SELECT DISTINCT col2 AS col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 12 ) > - ( + col2 )
----

query I rowsort
SELECT ALL + + 73 + + 25 + - 29 FROM tab0 AS cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col1 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL - + col2 * + 56 + ( col0 ) * - + col0 FROM tab2 AS cor0
----
-3404
-6336
-8873

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2753
SELECT ALL 4 + + - CAST( NULL AS SIGNED ), + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2753
SELECT ALL 4 + + - CAST ( NULL AS INTEGER ), + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT DISTINCT - COUNT( * ) + 70 AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - COUNT ( * ) + 70 AS col2 FROM tab1
----
67

query I rowsort
SELECT + 99 - - 38 + + + 26 * + 79 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fd38d1f30e6f8c2cd195b07bfc20c56

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT DISTINCT 79 DIV 65 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT 79 / 65 FROM tab2
----
1

query I rowsort
SELECT ALL - 53 * + + col2 + + + 15 FROM tab0
----
-2476
-515
-5232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT + col2 + - CAST( NULL AS SIGNED ) + + col0 + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT + col2 + - CAST ( NULL AS INTEGER ) + + col0 + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col0, col1 * + - col0 * + col2, - 3 col2 FROM tab1
----
9 values hashing to dfa9e7f668bef858b7bcc5dd97ccfa55

query I rowsort
SELECT - 33 + col1 FROM tab1
----
-19
-28
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2761
SELECT col2 + 66 + + col1 * col1 DIV - col0 AS col1 FROM tab2
----
14
33
65

skipif mysql # not compatible
query I rowsort label-2761
SELECT col2 + 66 + + col1 * col1 / - col0 AS col1 FROM tab2
----
14
33
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT + - col0 DIV 79 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT + - col0 / 79 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 43 + - col2 * col0 AS col1 FROM tab1
----
-4939
-5058
-6231

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT + 60 DIV + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2764
SELECT + 60 / + col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL - SUM( col2 ) + - SUM( - col1 - col2 ) FROM tab1 WHERE ( 65 ) BETWEEN NULL AND + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL - SUM ( col2 ) + - SUM ( - col1 - col2 ) FROM tab1 WHERE ( 65 ) BETWEEN NULL AND + 22
----
NULL

query I rowsort
SELECT + 43 + col0 AS col2 FROM tab2
----
107
118
89

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN + 54 AND NULL
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab0 WHERE NOT 18 NOT BETWEEN NULL AND + col2 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT ALL - 9 DIV - col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - 9 / - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2770
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT ALL - col2 DIV 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - col2 / 76 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 32 + col0 * - col0 FROM tab1
----
-2633
-7257
-8313

query I rowsort
SELECT 72 * + col0 FROM tab0
----
1080
6264
6984

query I rowsort
SELECT 10 + col1 FROM tab2
----
61
77
87

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 * + 51 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + col0 + col2 * - 50 NOT IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( + 14 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 12 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab1 WHERE ( 93 + + col0 ) <> ( col1 )
----
0

query I rowsort
SELECT DISTINCT - col1 / 8 AS col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT col0 < col0 * col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 51 / col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL - SUM( 33 ) AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL - SUM ( 33 ) AS col1 FROM tab2
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 23 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 61 FROM tab0 cor0 CROSS JOIN tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT DISTINCT - 72 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-648

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - 72 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
-648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT ALL - - col2 * - CAST( + 33 AS SIGNED ) FROM tab1 cor0
----
-1947
-2244
-3168

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL - - col2 * - CAST ( + 33 AS INTEGER ) FROM tab1 cor0
----
-1947
-2244
-3168

query I rowsort
SELECT col2 * - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL SUM( DISTINCT - col2 ) * 37 + COUNT( * ) FROM tab2 AS cor0
----
-4474

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL SUM ( DISTINCT - col2 ) * 37 + COUNT ( * ) FROM tab2 AS cor0
----
-4474

query I rowsort
SELECT + + 84 + - col2 AS col1 FROM tab0 AS cor0
----
-15
37
74

query I rowsort
SELECT ALL col0 + col1 FROM tab2 cor0 WHERE NULL IN ( - 1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 27 / - 33 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT 43 + - MIN( DISTINCT col1 ) * - 51 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT 43 + - MIN ( DISTINCT col1 ) * - 51 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + - 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT SUM( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND - 14
----
1215
1827
97

query I rowsort
SELECT DISTINCT + col1 * - 54 + + col0 FROM tab0 AS cor0
----
-1047
-4359
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
103

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 + ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT + MIN( + - 62 ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-2799
SELECT + MIN ( + - 62 ) FROM tab1
----
-62

query I rowsort
SELECT - ( ( + 2 ) ) * 42 AS col2 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT ALL - ( - 38 ) + + col2 FROM tab1
----
106
134
97

query I rowsort
SELECT DISTINCT 31 + - 50 + col0 * + 29 AS col2 FROM tab2
----
1315
1837
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 WHERE NULL IN ( - col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2803
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 WHERE NULL IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - MIN( col2 ) FROM tab2 WHERE - col1 * - col2 + + col0 > ( + col1 + + ( col0 ) * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT - MIN ( col2 ) FROM tab2 WHERE - col1 * - col2 + + col0 > ( + col1 + + ( col0 ) * + col1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2805
SELECT ALL COUNT( * ) DIV + 16 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL COUNT ( * ) / + 16 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL + COUNT( DISTINCT + + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + COUNT ( DISTINCT + + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL SUM( DISTINCT 55 ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL SUM ( DISTINCT 55 ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT ALL + - col1 + - + 74 + - 90 FROM tab2 AS cor0
----
-215
-231
-241

query I rowsort
SELECT DISTINCT - col0 + + col1 * + col0 FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT - + 85 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL - col0 + col2 * + col2 FROM tab0
----
13
2194
9704

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE ( ( - 39 + + col0 ) IS NOT NULL )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 53 * - 64 AS col0 FROM tab2 AS cor0 WHERE NOT 11 NOT BETWEEN 48 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 <> + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 19 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT DISTINCT - - 77 AS col0, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
77
-3

skipif mysql # not compatible
query II rowsort label-2816
SELECT DISTINCT - - 77 AS col0, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
77
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - 10 * + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 <= - col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2819
SELECT DISTINCT 72, + col2 * - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-2819
SELECT DISTINCT 72, + col2 * - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
72
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT DISTINCT + ( + - ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 87 * - col2 AS col0 FROM tab1 AS cor0
----
-5133
-5916
-8352

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab0 AS cor0 WHERE + col1 * + - col0 = NULL
----

query I rowsort
SELECT + + ( - col0 ) AS col1 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT MAX( DISTINCT 14 ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2824
SELECT MAX ( DISTINCT 14 ) FROM tab0 AS cor0
----
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 77 * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 70 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * col2 FROM tab1 WHERE NOT NULL = - 55 * + + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN col2 AND ( col0 * + col1 + col2 )
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT + col0 NOT BETWEEN col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT + col0 NOT BETWEEN col0 AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT COUNT( * ) FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT DISTINCT - col0 col1 FROM tab1 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-2832
SELECT DISTINCT - col0 col1 FROM tab1 AS cor0 WHERE ( col2 ) = ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 IN ( + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2834
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( + - 4 AS SIGNED ) ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-2834
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( + - 4 AS INTEGER ) ) NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT - 97 * - COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2835
SELECT - 97 * - COUNT ( * ) FROM tab0 AS cor0
----
291

query I rowsort
SELECT - - col2 * 60 * 38 AS col2 FROM tab2 AS cor0
----
132240
52440
91200

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + MIN( ALL 79 ) AS col1 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-2837
SELECT + MIN ( ALL 79 ) AS col1 FROM tab0 cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT + 2 + MIN( ALL + 79 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT + 2 + MIN ( ALL + 79 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL + COUNT( * ) + - COUNT( ALL col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 30 ) + - + col0 + col0 * + 14 IS NULL AND NOT ( col0 / - 57 - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + COUNT ( * ) + - COUNT ( ALL col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 30 ) + - + col0 + col0 * + 14 IS NULL AND NOT ( col0 / - 57 - col0 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - col1 * 44 * - - col2 / - col2
----

query I rowsort
SELECT DISTINCT - col2 / + ( - 36 ) AS col1 FROM tab0 WHERE ( ( + ( + 75 ) ) BETWEEN ( + col0 ) AND ( NULL ) )
----

query I rowsort
SELECT col1 + - col2 + + 56 AS col0 FROM tab1
----
-26
2
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2843
SELECT DISTINCT 40 + - 75, COUNT( * ) + - 90 AS col1 FROM tab2
----
-35
-87

skipif mysql # not compatible
query II rowsort label-2843
SELECT DISTINCT 40 + - 75, COUNT ( * ) + - 90 AS col1 FROM tab2
----
-35
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT ALL + CAST( NULL AS SIGNED ) + col1 / CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 / CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + COUNT( * ) FROM tab2 WHERE col0 IN ( 56 )
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT + COUNT ( * ) FROM tab2 WHERE col0 IN ( 56 )
----
0

query I rowsort
SELECT ALL col0 + col0 * + 94 AS col2 FROM tab1
----
4845
8075
8645

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT DISTINCT ( 58 ) - + 29 DIV + 95 * col1 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT ( 58 ) - + 29 / + 95 * col1 FROM tab1
----
58

query I rowsort
SELECT + 72 FROM tab1 WHERE + col1 NOT IN ( + col2 )
----
72
72
72

query II rowsort
SELECT + col1 AS col0, + 42 AS col0 FROM tab0
----
1
42
21
42
81
42

query I rowsort
SELECT DISTINCT + - col0 * col0 - ( - 43 ) + col2 * - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-19167
-2391
-7626

query I rowsort
SELECT - - 20 AS col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT - 29 * - - col0 FROM tab2 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL - MIN( - ( col1 ) ) + - 69 AS col0 FROM tab1 AS cor0 WHERE NOT 62 NOT IN ( - col0 / - ( + col0 ) * + + col0 + 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL - MIN ( - ( col1 ) ) + - 69 AS col0 FROM tab1 AS cor0 WHERE NOT 62 NOT IN ( - col0 / - ( + col0 ) * + + col0 + 0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 51 col1 FROM tab2 cor0
----
51
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2856
SELECT ALL + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 80 * - + 58 + + - col0 + - col1 - - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 80 * - + 58 + + - col0 + - col1 - - col2 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT ALL COUNT( ALL + + 86 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL COUNT ( ALL + + 86 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( col0 ) col1, 34 col0 FROM tab0 cor0
----
15
34
87
34
97
34

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = - 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT SUM( DISTINCT + - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2860
SELECT SUM ( DISTINCT + - col2 ) AS col0 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 / + col1 - 4 col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND NULL OR ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2862
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - - CAST( - ( + + 71 ) AS SIGNED ) * + col2 + + col0 + col1 * + 32 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2862
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - - CAST ( - ( + + 71 ) AS INTEGER ) * + col2 + + col0 + col1 * + 32 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab0 WHERE NOT - 11 IS NOT NULL
----

query I rowsort
SELECT col2 * 27 FROM tab1
----
1593
1836
2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT 11 col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * + + CAST( - col0 AS SIGNED ) + - - 44 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2865
SELECT 11 col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 * + + CAST ( - col0 AS INTEGER ) + - - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT MIN( ALL - 78 ) AS col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2866
SELECT MIN ( ALL - 78 ) AS col2 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT 36 * + col1 + - - 20 + + - col0 * - + col0 AS col0 FROM tab1
----
3125
7425
9993

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2868
SELECT ALL - ( - - ( - COUNT( * ) ) ) + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL - ( - - ( - COUNT ( * ) ) ) + - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ( + SUM( 72 ) ) + - - COUNT( * ) FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-2869
SELECT ( + SUM ( 72 ) ) + - - COUNT ( * ) FROM tab0
----
219

query I rowsort
SELECT DISTINCT col2 + + + col1 + - col0 FROM tab1
----
-21
24
59

query II rowsort
SELECT col2 * - col1, col2 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT ALL - - 46 FROM tab2 cor0
----
46
46
46

query I rowsort
SELECT ALL + + col1 + 84 * - col1 AS col0 FROM tab1 AS cor0
----
-1162
-3901
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT DISTINCT + 11 + + COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT + 11 + + COUNT ( * ) FROM tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + SUM( ALL + 25 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2875
SELECT + SUM ( ALL + 25 ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT ( - + 50 ) AS col2 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - - 72 * ( + - col0 ) FROM tab1 AS cor0
----
-3672
-6120
-6552

query I rowsort
SELECT ALL + - 9 + + 79 + + 28 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2879
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) - - col2 / - col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2879
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) - - col2 / - col0 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * + col2 IS NOT NULL AND col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT ALL - CAST( NULL AS SIGNED ) + 14 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - CAST ( NULL AS INTEGER ) + 14 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2882
SELECT DISTINCT - 39 + 54 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT - 39 + 54 / + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( 41 ) - - 45 FROM tab2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT SUM( + CAST( NULL AS SIGNED ) ) + + COUNT( * ) + - + AVG ( ALL - col1 ) / + AVG ( DISTINCT + col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + - + AVG ( ALL - col1 ) / + AVG ( DISTINCT + col0 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT MAX( ( col2 ) ) FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT MAX ( ( col2 ) ) FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT + + 20 + 39 DIV - col1 FROM tab0 AS cor0
----
-19
19
20

skipif mysql # not compatible
query I rowsort label-2886
SELECT + + 20 + 39 / - col1 FROM tab0 AS cor0
----
-19
19
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT + SUM( col0 ) + + - ( COUNT( ALL col0 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
221

skipif mysql # not compatible
query I rowsort label-2887
SELECT + SUM ( col0 ) + + - ( COUNT ( ALL col0 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT - 92 + COUNT( * ) FROM tab1 AS cor0 WHERE ( ( - col2 < - 45 * - 33 * - col1 - col1 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-2888
SELECT - 92 + COUNT ( * ) FROM tab1 AS cor0 WHERE ( ( - col2 < - 45 * - 33 * - col1 - col1 ) )
----
-92

query I rowsort
SELECT + - col2 + - 45 AS col0 FROM tab1 AS cor0
----
-104
-113
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT COUNT( * ) DIV - + 9 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT COUNT ( * ) / - + 9 FROM tab2 cor0
----
0

query II rowsort
SELECT col0, + col0 AS col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT - ( 88 ) AS col2 FROM tab0 cor0
----
-88
-88
-88

query I rowsort
SELECT + + col1 + - 11 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + ( - col0 ) * + 12 * col2 * - 7 AND NULL
----

query II rowsort
SELECT + + 66 AS col0, col0 * + col0 FROM tab1 AS cor0
----
66
2601
66
7225
66
8281

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 89 + - 54 >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2896
SELECT ALL 23 DIV 68 * - 53 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL 23 / 68 * - 53 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, ( + col0 ) col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT DISTINCT col0 FROM tab2 WHERE NOT - + CAST( col1 AS SIGNED ) <= + col2
----

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT col0 FROM tab2 WHERE NOT - + CAST ( col1 AS INTEGER ) <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT - MIN( + 66 ) AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT - MIN ( + 66 ) AS col2 FROM tab2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT 58 * + ( + ( - CAST( - col1 AS SIGNED ) ) ) + 33 FROM tab1
----
2759
323
845

skipif mysql # not compatible
query I rowsort label-2901
SELECT 58 * + ( + ( - CAST ( - col1 AS INTEGER ) ) ) + 33 FROM tab1
----
2759
323
845

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 17 + + ( - ( col2 ) ) * + 78 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 84 = 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 + - col2 AS col1, - col2 AS col1 FROM tab0
----
-196
-99
-62
-47
-97
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - + col2 AND - + col1 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + ( + + col0 ) col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + col0 + - + 13 - - 54 FROM tab0 AS cor0
----
128
138
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 * + 16 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * - 46 AS col1 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * - 46 AS col1 FROM tab0 AS cor0
----
141

query I rowsort
SELECT DISTINCT + 35 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT ALL + CAST( - 34 AS SIGNED ) * + + 63 AS col1 FROM tab1
----
-2142
-2142
-2142

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL + CAST ( - 34 AS INTEGER ) * + + 63 AS col1 FROM tab1
----
-2142
-2142
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ( - COUNT( * ) ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2912
SELECT ( - COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + COUNT( * ) * + 72 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + COUNT ( * ) * + 72 FROM tab1 AS cor0
----
216

query I rowsort
SELECT - 62 * + 81 + col0 + col2 FROM tab0 AS cor0
----
-4826
-4925
-4960

query I rowsort
SELECT + 43 + col2 AS col2 FROM tab2 cor0
----
101
66
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT - col1 DIV + + col2 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT - col1 / + + col2 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
0
0
0

query I rowsort
SELECT col0 + + col2 * + - col0 AS col2 FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT ALL CAST( NULL AS SIGNED ) + - - 30 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL CAST ( NULL AS INTEGER ) + - - 30 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + 3 FROM tab0 AS cor0
----
24
4
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2920
SELECT ALL - col0 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - col0 / CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
-8
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2921
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 + + col1 * + 70 + + col0 AS col0 FROM tab0
----
1644
264
5700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2923
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) + + 99 AND - - col1
----

skipif mysql # not compatible
query III rowsort label-2923
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) + + 99 AND - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT + col2 DIV + ( - col1 ) * - - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT + col2 / + ( - col1 ) * - - col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT 20 * + COUNT( ALL 76 ) AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2925
SELECT 20 * + COUNT ( ALL 76 ) AS col0 FROM tab0
----
60

query I rowsort
SELECT DISTINCT col0 + + 11 * col1 FROM tab1
----
140
205
608

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT MIN( DISTINCT - col0 ) col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2927
SELECT MIN ( DISTINCT - col0 ) col1 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + col0 * - col1 * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 - + ( + col1 ) ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 - + ( + col1 ) ) = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
47

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 48 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + - 62 * + - col2 AS col2 FROM tab1 WHERE - - col2 NOT IN ( + - col0 )
----
3743
4307
6003

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 50 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT DISTINCT + - 76 DIV col2 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT + - 76 / col2 FROM tab2 AS cor0
----
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT - + SUM( ALL + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - + SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + + ( 12 ) FROM tab0 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT - - ( - + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2938
SELECT - - ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2939
SELECT - 5, + 45 * - ( + + MIN( + + col2 ) ) AS col1 FROM tab0
----
-5
-450

skipif mysql # not compatible
query II rowsort label-2939
SELECT - 5, + 45 * - ( + + MIN ( + + col2 ) ) AS col1 FROM tab0
----
-5
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 30 col0 FROM tab1
----
1770
2040
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL 24 * SUM( + 71 ) AS col2 FROM tab1
----
5112

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL 24 * SUM ( + 71 ) AS col2 FROM tab1
----
5112

query I rowsort
SELECT DISTINCT + 98 * - + 85 * + col1 FROM tab0
----
-174930
-674730
-8330

query I rowsort
SELECT ALL 51 * + 24 * col2 AS col1 FROM tab0
----
121176
12240
57528

query I rowsort
SELECT - col0 * - + 2 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL + ( 26 ) + - 68 AS col0 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT - 52 * - col1 AS col1 FROM tab1
----
2444
260
728

query I rowsort
SELECT DISTINCT + + 44 + + col0 AS col2 FROM tab1 AS cor0
----
129
135
95

query II rowsort
SELECT + 52 + + 5 AS col2, - 26 * - 48 + + col2 FROM tab1 AS cor0
----
57
1307
57
1316
57
1344

query I rowsort
SELECT col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE ( + 53 ) IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT + col2 * CAST( NULL AS SIGNED ) + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT + col2 * CAST ( NULL AS INTEGER ) + + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2951
SELECT col1 DIV - - 39 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2951
SELECT col1 / - - 39 AS col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT ( - - col1 ) * col0 DIV 62 FROM tab0 AS cor0
----
1
19
29

skipif mysql # not compatible
query I rowsort label-2952
SELECT ( - - col1 ) * col0 / 62 FROM tab0 AS cor0
----
1
19
29

query I rowsort
SELECT ALL - ( 46 ) * - - col0 FROM tab1 AS cor0
----
-2346
-3910
-4186

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + col0 - - col2 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT + col0 DIV + col2 - - - col0 + 6 + + + col2 * + col2 FROM tab2 AS cor0
----
1543
3296
491

skipif mysql # not compatible
query I rowsort label-2955
SELECT + col0 / + col2 - - - col0 + 6 + + + col2 * + col2 FROM tab2 AS cor0
----
1543
3296
491

query I rowsort
SELECT - - col1 - + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + COUNT( * ) - - + ( COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2957
SELECT + COUNT ( * ) - - + ( COUNT ( * ) ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT col0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT COUNT( * ) * COUNT( * ) - - 64 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2959
SELECT COUNT ( * ) * COUNT ( * ) - - 64 FROM tab0
----
73

query II rowsort
SELECT DISTINCT col0 AS col1, ( - 29 ) FROM tab1
----
51
-29
85
-29
91
-29

query I rowsort
SELECT - - col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( col2 ) + + col1 AND + 69
----

query I rowsort
SELECT DISTINCT 19 * - 33 + col2 AS col2 FROM tab2 WHERE ( NULL NOT IN ( 3 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 3 ) >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 27 ) <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 1 col1, - col0 AS col1 FROM tab1 AS cor0
----
-1
-51
-1
-85
-1
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2966
SELECT 83 * CAST( NULL AS SIGNED ) / + 58 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT 83 * CAST ( NULL AS INTEGER ) / + 58 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT + MAX( DISTINCT - col0 ) AS col2, + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-15
9

skipif mysql # not compatible
query II rowsort label-2968
SELECT + MAX ( DISTINCT - col0 ) AS col2, + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-15
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT + + 52 DIV col0 + - col2 AS col0 FROM tab2 AS cor0
----
-22
-40
-58

skipif mysql # not compatible
query I rowsort label-2969
SELECT + + 52 / col0 + - col2 AS col0 FROM tab2 AS cor0
----
-22
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL + MIN( - ( + 8 ) ) AS col2 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + MIN ( - ( + 8 ) ) AS col2 FROM tab0 AS cor0
----
-8

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 52 - 16 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT + + MAX( - 37 ) col1 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2972
SELECT DISTINCT + + MAX ( - 37 ) col1 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT DISTINCT - col2 * - col0 + col2 * col0 FROM tab1 AS cor0
----
10030
12376
9792

query I rowsort
SELECT DISTINCT + 94 + - 34 AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL 69 + - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 69 + - COUNT ( * ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT - 3 + - col0 AS col1 FROM tab0
----
-100
-18
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT - 60 + + ( COUNT( * ) ) FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - 60 + + ( COUNT ( * ) ) FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT + 69 + + COUNT( * ) * 52 col1 FROM tab1
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2978
SELECT + 69 + + COUNT ( * ) * 52 col1 FROM tab1
----
225

query II rowsort
SELECT + 88 + + + ( col2 ) AS col0, 73 AS col2 FROM tab0
----
135
73
187
73
98
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT - 4 DIV + + col0 + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 4 / + + col0 + + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( + 82 ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL + COUNT( - ( - + col2 ) ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + COUNT ( - ( - + col2 ) ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL - COUNT( * ) + 57 AS col0 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL - COUNT ( * ) + 57 AS col0 FROM tab1 cor0
----
54

query I rowsort
SELECT DISTINCT col0 - 3 * + col0 + 2 AS col1 FROM tab1 AS cor0
----
-100
-168
-180

query I rowsort
SELECT + col0 - + - col1 FROM tab1 cor0 WHERE col0 + - - col2 >= - 94
----
138
65
90

query I rowsort
SELECT DISTINCT + col1 + 47 FROM tab0 AS cor0
----
128
48
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 53 <= - 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col2 col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ( - 4 ) FROM tab0
----
-4
-4
-4

query I rowsort
SELECT + 27 + col0 + + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + 79, 42 * col0 + - + ( 35 ) / + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT 12 DIV col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT 12 / col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - MIN( ALL + 71 ) FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2992
SELECT - MIN ( ALL + 71 ) FROM tab1
----
-71

query I rowsort
SELECT col1 * 60 AS col1 FROM tab1
----
2820
300
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT DISTINCT + - COUNT( col0 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT + - COUNT ( col0 ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( - + col2 ) + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2996
SELECT - 87 * - 51, + col0 AS col1, + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
9 values hashing to 670319b6dc6608aae26741f23e05c259

skipif mysql # not compatible
query III rowsort label-2996
SELECT - 87 * - 51, + col0 AS col1, + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
9 values hashing to 670319b6dc6608aae26741f23e05c259

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL + MAX( ALL + - ( - - col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + MAX ( ALL + - ( - - col2 ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT ALL + + COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2999
SELECT ALL + + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 49 col1 FROM tab2 cor0
----
100
116
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 94 col1, col1 AS col1 FROM tab1 AS cor0
----
94
14
94
47
94
5

query II rowsort
SELECT ALL - col2 + + col1, + col2 FROM tab0
----
-98
99
11
10
34
47

query I rowsort
SELECT col2 * + - ( + col1 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3004
SELECT 11 * col2 DIV + 71 AS col0 FROM tab0
----
1
15
7

skipif mysql # not compatible
query I rowsort label-3004
SELECT 11 * col2 / + 71 AS col0 FROM tab0
----
1
15
7

query I rowsort
SELECT DISTINCT - 0 + + 19 * + - col2 AS col2 FROM tab2
----
-1102
-437
-760

query II rowsort
SELECT + col2, 97 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL ( 73 ) + + - col2 FROM tab1
----
-23
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE 79 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3008
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE 79 IS NOT NULL
----
3

query I rowsort
SELECT + - ( col1 ) * - + col0 + + col2 + col1 AS col1 FROM tab0 AS cor0
----
1343
1858
197

query I rowsort
SELECT + ( + col1 ) + - 75 FROM tab2 AS cor0
----
-24
-8
2

query I rowsort
SELECT col1 + col0 * col2 AS col2 FROM tab1 AS cor0
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT DISTINCT - MIN( ALL col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT - MIN ( ALL col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT COUNT( * ) + 59 AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3013
SELECT COUNT ( * ) + 59 AS col2 FROM tab2
----
62

query II rowsort
SELECT ALL + + col1, + 47 * - + col0 AS col0 FROM tab0 AS cor0
----
1
-4559
21
-4089
81
-705

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= col1 + - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( NOT col0 > - col1 - - col2 )
----
85
91

query I rowsort
SELECT ALL + 48 * + col1 AS col1 FROM tab2 AS cor0
----
2448
3216
3696

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 * + col1 + + - col1 NOT IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - 95 + col1 FROM tab0
----
10
-74
47
-14
99
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL - SUM( - col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - SUM ( - col2 ) AS col2 FROM tab2
----
121

query II rowsort
SELECT DISTINCT col2 AS col0, - 67 * + 9 + + col2 AS col1 FROM tab1
----
59
-544
68
-535
96
-507

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3023
SELECT - col1 AS col0, - CAST( NULL AS SIGNED ) col0 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3023
SELECT - col1 AS col0, - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT MIN( + col0 ) AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-3024
SELECT MIN ( + col0 ) AS col1 FROM tab0 cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 65 AS col2, + 6 - + ( - col0 ) col1 FROM tab1 AS cor0
----
-65
57
-65
91
-65
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + COUNT( 33 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3026
SELECT + COUNT ( 33 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT ALL - ( COUNT( * ) ) * + + 9 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - ( COUNT ( * ) ) * + + 9 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 39 * + + col2 * col1 * - 22 NOT BETWEEN NULL AND - col1 + - ( - 97 )
----

query I rowsort
SELECT - col0 * 86 AS col0 FROM tab1
----
-4386
-7310
-7826

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col2 FROM tab1 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 86 * + col1 * - 80 + - 3 col0, col2 + + 15 FROM tab1 AS cor0 WHERE 19 * - col2 + - 37 BETWEEN NULL AND - 33 + - col0 + + + col0 * - - 88
----

query II rowsort
SELECT DISTINCT ( col1 ) AS col2, - col1 AS col0 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL + 54 + col1 AS col2 FROM tab0 AS cor0
----
135
55
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL - SUM( col2 ) + + - ( - 35 ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL - SUM ( col2 ) + + - ( - 35 ) FROM tab2
----
-86

query I rowsort
SELECT DISTINCT col2 + - - 54 AS col2 FROM tab1
----
113
122
150

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT - col2 DIV - col2 + - 5 col1 FROM tab0
----
-4
-4
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3037
SELECT - col2 / - col2 + - 5 col1 FROM tab0
----
-4
-4
-4

query II rowsort
SELECT + 12 * - col1, col2 FROM tab1 WHERE + - 55 + col2 IS NOT NULL
----
-168
96
-564
68
-60
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col1 FROM tab2 WHERE NOT - col2 / 5 + + + col1 + + col1 IS NULL
----
38
38
38

query I rowsort
SELECT - ( + 1 ) AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 65 - col2 AS col2 FROM tab2
----
-105
-123
-88

query I rowsort
SELECT col2 * + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - 33 col1 FROM tab1 cor0
----
-51
-33
-85
-33
-91
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT DISTINCT - ( + 21 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT - ( + 21 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 90 >= col2 + + 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT ALL COUNT( * ) * + 50 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL COUNT ( * ) * + 50 FROM tab1
----
150

query I rowsort
SELECT ALL + col1 - - - col0 - col1 AS col2 FROM tab2
----
-46
-64
-75

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT ALL col2 * + - 72 + + 23 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1633
-2857
-4153

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 76 * - + 48 <> + col2 + - 69
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= col1 + - - 42
----

query I rowsort
SELECT - col0 * + col0 * - ( + 37 ) FROM tab2
----
151552
208125
78292

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT - col1 * 30 DIV + col2 AS col0 FROM tab0
----
-51
-63
0

skipif mysql # not compatible
query I rowsort label-3054
SELECT - col1 * 30 / + col2 AS col0 FROM tab0
----
-51
-63
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 96 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3056
SELECT ALL - 77 DIV - col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL - 77 / - col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3057
SELECT ALL - col1 DIV col2 + + col1 + + col2 - CAST( - col2 AS SIGNED ) * - 1 AS col0 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - col1 / col2 + + col1 + + col2 - CAST ( - col2 AS INTEGER ) * - 1 AS col0 FROM tab2
----
49
66
76

query III rowsort
SELECT * FROM tab2 cor0 WHERE 0 - + - 86 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 * - col1 <> + - col1 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - - 12 AS col2 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT + ( + COUNT( * ) ) * + + 69 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-3061
SELECT + ( + COUNT ( * ) ) * + + 69 FROM tab1 AS cor0
----
207

query I rowsort
SELECT ALL col0 * - - col1 + + 34 AS col0 FROM tab0
----
1249
131
1861

query I rowsort
SELECT + ( + 76 ) FROM tab0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - SUM( - + ( + col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3064
SELECT - SUM ( - + ( + col2 ) ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT col0 * + CAST( NULL AS SIGNED ) * - + col2 - + col2 * - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT col0 * + CAST ( NULL AS INTEGER ) * - + col2 - + col2 * - - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - + 57 FROM tab0
----
-36
-56
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT - + MAX( - col2 ) + - + 35 col2 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3067
SELECT - + MAX ( - col2 ) + - + 35 col2 FROM tab1 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT - ( - col2 ) DIV + + col1 + - - col1 + - + 51 AS col0 FROM tab2 AS cor0
----
0
16
26

skipif mysql # not compatible
query I rowsort label-3068
SELECT - ( - col2 ) / + + col1 + - - col1 + - + 51 AS col0 FROM tab2 AS cor0
----
0
16
26

query III rowsort
SELECT * FROM tab1 WHERE - 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT + + SUM( ALL - 94 ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT DISTINCT + + SUM ( ALL - 94 ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-846

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN - col0 AND col1
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN 44 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL + 82 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + 82 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT DISTINCT - col0 * - + col2 DIV + + col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT - col0 * - + col2 / + + col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - - 6 FROM tab0 AS cor0 WHERE NOT - col0 - 72 * - col2 + col2 - - + 76 IS NOT NULL
----

query II rowsort
SELECT + - 62, - col0 AS col0 FROM tab0 AS cor0
----
-62
-15
-62
-87
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT DISTINCT - ( + CAST( - + col2 AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT NULL = + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT - ( + CAST ( - + col2 AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT NULL = + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT CAST( NULL AS SIGNED ) * + 82 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3078
SELECT CAST ( NULL AS INTEGER ) * + 82 col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 AS col2 FROM tab0 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT ALL - 72 * - + 29 * + col2 AS col1 FROM tab0
----
206712
20880
98136

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 5 AND NULL
----

query I rowsort
SELECT + col1 * 24 * + col2 FROM tab0 AS cor0
----
2376
5040
91368

query I rowsort
SELECT ALL + 61 + - col2 AS col0 FROM tab2
----
21
3
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT - + 22 * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT - + 22 * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * ( - + ( ( + col0 ) ) ) + 13 + - 51 * + - col0 + + col1 AS col2 FROM tab0 AS cor0
----
2074
5058
6298

query I rowsort
SELECT col1 + + - 50 FROM tab0 AS cor0
----
-29
-49
31

query II rowsort
SELECT ALL 61, col1 FROM tab1 AS cor0
----
61
14
61
47
61
5

query I rowsort
SELECT ALL - + 88 AS col1 FROM tab0 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + + 46 * + col0 IS NULL AND NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL + SUM( DISTINCT - - 80 ) + COUNT( * ) AS col0 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL + SUM ( DISTINCT - - 80 ) + COUNT ( * ) AS col0 FROM tab1
----
83

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 >= NULL )
----

query I rowsort
SELECT ( 65 ) AS col1 FROM tab0
----
65
65
65

query I rowsort
SELECT ALL + 17 AS col0 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - MAX( col0 ) AS col0 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - MAX ( col0 ) AS col0 FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT + ( - - col0 ) * - 64 AS col1 FROM tab1
----
-3264
-5440
-5824

query I rowsort
SELECT ALL col1 * 25 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT DISTINCT + col2 * 24 AS col0 FROM tab1
----
1416
1632
2304

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 * col2 - - - col2 AND + - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT DISTINCT + + COUNT( * ) * + 40 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + + COUNT ( * ) * + 40 FROM tab2 AS cor0
----
120

query II rowsort
SELECT ALL - col2 * col2, - ( - 79 ) AS col1 FROM tab1 cor0
----
-3481
79
-4624
79
-9216
79

query II rowsort
SELECT + col0 * col2 AS col1, - 92 FROM tab1 AS cor0
----
4896
-92
5015
-92
6188
-92

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 70 + - 34 ) BETWEEN ( NULL ) AND + 56 * + col2 + - + col2
----

query I rowsort
SELECT ALL col1 * + - col2 AS col0 FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT 11, + col1 AS col1 FROM tab1
----
11
14
11
47
11
5

query I rowsort
SELECT ALL col0 + - col2 * + 51 / - col2 AS col2 FROM tab0 WHERE - + col2 IN ( + 97 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3107
SELECT + 86 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3107
SELECT + 86 / - col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT ALL - + MIN( ALL + 66 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL - + MIN ( ALL + 66 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT col2 + + col2 + - 82 * + 12 AS col0 FROM tab1 AS cor0
----
-792
-848
-866

query I rowsort
SELECT + col1 + + + col2 + + 57 FROM tab1
----
121
167
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 + - col0 + - col2 col1 FROM tab1
----
-100
-85
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + - ( col0 ) col1 FROM tab0
----
-40
-50
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT ALL + 27 DIV + col2 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + 27 / + col2 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + + 52 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT ALL - 78 * col1 * col1 + 9 + + col0 * 27 * col2 * + ( 63 ) FROM tab2
----
1596789
3892107
7049217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3116
SELECT - ( - - CAST( - - col2 AS SIGNED ) ) - - col0 * - - ( + col1 ) * - 31 * + - 82 AS col1 FROM tab1
----
1080291
10872066
1814892

skipif mysql # not compatible
query I rowsort label-3116
SELECT - ( - - CAST ( - - col2 AS INTEGER ) ) - - col0 * - - ( + col1 ) * - 31 * + - 82 AS col1 FROM tab1
----
1080291
10872066
1814892

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE 65 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3118
SELECT * FROM tab1 WHERE + CAST( - col1 AS SIGNED ) + - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3118
SELECT * FROM tab1 WHERE + CAST ( - col1 AS INTEGER ) + - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * 29 * + 97 FROM tab0
----
227853
2813
59073

query III rowsort
SELECT DISTINCT col1 AS col0, + col2 AS col0, + col0 AS col0 FROM tab1
----
9 values hashing to b0ac51706f2869cade256d8eb8fde0c6

query II rowsort
SELECT DISTINCT + - col0, + col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3122
SELECT ALL CAST( - 50 AS DECIMAL ) * - 64 / - CAST( NULL AS SIGNED ) * 74 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL CAST ( - 50 AS REAL ) * - 64 / - CAST ( NULL AS INTEGER ) * 74 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - + col0 * + 69 FROM tab0 AS cor0
----
-1035
-6003
-6693

query II rowsort
SELECT DISTINCT + - col2 AS col0, col0 + - - 93 AS col1 FROM tab0 AS cor0
----
-10
180
-47
108
-99
190

query I rowsort
SELECT DISTINCT 34 * + ( ( - + 46 ) ) AS col2 FROM tab2 AS cor0
----
-1564

query I rowsort
SELECT + col0 * 88 + + 89 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 + 37 AND + col1 + - 59
----

query I rowsort
SELECT ALL + + col1 * 86 + + - col2 + + - col1 * col1 + 30 AS col1 FROM tab2 AS cor0
----
1245
1792
683

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT 45 IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3130
SELECT ALL + col2 DIV col1 AS col1, - col0 FROM tab0
----
0
-15
0
-87
99
-97

skipif mysql # not compatible
query II rowsort label-3130
SELECT ALL + col2 / col1 AS col1, - col0 FROM tab0
----
0
-15
0
-87
99
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 NOT IN ( 50 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT + col2 - + col2 - 29 DIV - col0 + + col1 + col0 * 88 AS col2 FROM tab2
----
4099
5709
6667

skipif mysql # not compatible
query I rowsort label-3132
SELECT + col2 - + col2 - 29 / - col0 + + col1 + col0 * 88 AS col2 FROM tab2
----
4099
5709
6667

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT - SUM( 69 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-621

skipif mysql # not compatible
query I rowsort label-3133
SELECT - SUM ( 69 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - ( + - COUNT( * ) ) - + 95 * - - COUNT( * ) + - 13 FROM tab2
----
-295

skipif mysql # not compatible
query I rowsort label-3134
SELECT - ( + - COUNT ( * ) ) - + 95 * - - COUNT ( * ) + - 13 FROM tab2
----
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT 16 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT 16 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT ALL - col1 * 55 * 34 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL - col1 * 55 * 34 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 30 * - ( col2 ) + col0 + + col0 AS col1 FROM tab2 cor0
----
-1072
-1590
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3139
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT - - col1 DIV + + 16 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3140
SELECT - - col1 / + + 16 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3141
SELECT CAST( NULL AS SIGNED ) * col0 AS col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3141
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL 57 + - 35 AS col1 FROM tab0
----
22
22
22

query I rowsort
SELECT DISTINCT - ( - 53 ) + col0 FROM tab0
----
140
150
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - MAX( DISTINCT col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3144
SELECT - MAX ( DISTINCT col1 ) AS col1 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col0 + - 10 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT DISTINCT col1 DIV - ( - col2 ) FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT col1 / - ( - col2 ) FROM tab2
----
1
2

query I rowsort
SELECT ALL - ( - 97 ) AS col1 FROM tab1
----
97
97
97

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 11 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - MAX( - col2 ) * 83 FROM tab2
----
1909

skipif mysql # not compatible
query I rowsort label-3150
SELECT - MAX ( - col2 ) * 83 FROM tab2
----
1909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3151
SELECT - - COUNT( * ) + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) <= NULL )
----
14

skipif mysql # not compatible
query I rowsort label-3151
SELECT - - COUNT ( * ) + 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) <= NULL )
----
14

query I rowsort
SELECT - - 33 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT - col1, col0 * + col2 AS col0 FROM tab1 cor0
----
-14
4896
-47
6188
-5
5015

query II rowsort
SELECT - - col0 AS col0, - col2 FROM tab0 cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT DISTINCT - col2 * - 85 + - col1 + + col0 FROM tab0
----
3929
8511
916

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT MAX( ALL + col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3157
SELECT MAX ( ALL + col0 ) col0 FROM tab1
----
91

query II rowsort
SELECT + col1 AS col2, + col2 * col2 FROM tab2
----
51
529
67
3364
77
1600

query I rowsort
SELECT DISTINCT - 26 / + 55 + - 64 AS col2 FROM tab2 WHERE NULL > NULL
----

query II rowsort
SELECT ALL - col1 + + col2, col2 + - col2 * col0 * - 3 AS col2 FROM tab2
----
-28
3197
-37
7720
-9
13108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3161
SELECT ALL col1, + CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3161
SELECT ALL col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL 27 + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3162
SELECT ALL 27 + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND 0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( 84 ) - + - col1 FROM tab1
----
-37
-70
-79

query I rowsort
SELECT ALL col0 * - ( + - col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT 64 + + col1 * + col2 / - col1 - - - col1 AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col1 * - col1 + - 10 AS col1 FROM tab2 cor0
----
132641
300753
456523

query I rowsort
SELECT DISTINCT + col0 - - + col1 * col0 * - + 98 AS col1 FROM tab1 AS cor0
----
-41565
-419055
-69921

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT ALL 87 * + COUNT( * ) + - MAX( - ( col1 ) ), - 84 + - 27 AS col2 FROM tab0 AS cor0
----
262
-111

skipif mysql # not compatible
query II rowsort label-3170
SELECT ALL 87 * + COUNT ( * ) + - MAX ( - ( col1 ) ), - 84 + - 27 AS col2 FROM tab0 AS cor0
----
262
-111

query I rowsort
SELECT col0 * - + col2 * + + col0 + - - col2 FROM tab0 cor0
----
-10528
-75680
-931392

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT - col1 DIV + ( + col1 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3172
SELECT - col1 / + ( + col1 ) FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 0 - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, 30 * - 89 FROM tab0
----
-10
-2670
-47
-2670
-99
-2670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * + 65 col0 FROM tab1
----
4810
4810
4810

query I rowsort
SELECT ALL 40 * - - col0 FROM tab2
----
1840
2560
3000

query I rowsort
SELECT ( - 77 ) AS col1 FROM tab0 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL + MIN( col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3179
SELECT CAST( NULL AS SIGNED ) * 0 * - + col2 AS col0, - col0 * + col2 FROM tab2 cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
query II rowsort label-3179
SELECT CAST ( NULL AS INTEGER ) * 0 * - + col2 AS col0, - col0 * + col2 FROM tab2 cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 * - col0 + + 39 IN ( + col0 * col0 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3181
SELECT DISTINCT - ( col1 ) + CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT - ( col1 ) + CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT - ( + CAST( + col2 AS SIGNED ) ) col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3182
SELECT - ( + CAST ( + col2 AS INTEGER ) ) col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL 41 - + 31 AS col0 FROM tab0
----
10
10
10

query I rowsort
SELECT 20 * col2 + + 47 * col2 AS col1 FROM tab0
----
3149
6633
670

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 / col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) + - col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 * + col0 ) NOT BETWEEN + col0 AND 58 + ( + col1 - 48 ) * + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 20 + - col0 FROM tab1
----
-31
-65
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT COUNT( * ) + 94 AS col2 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-3189
SELECT COUNT ( * ) + 94 AS col2 FROM tab2
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( col0 ) + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN col1 AND + col0
----
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT 80 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT COUNT( * ) AS col2 FROM tab1 WHERE + 9 / - 23 <= 66
----
3

skipif mysql # not compatible
query I rowsort label-3193
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE + 9 / - 23 <= 66
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col1 * col1
----

query I rowsort
SELECT - 79 - - 94 FROM tab0
----
15
15
15

query I rowsort
SELECT + col0 + 32 AS col0 FROM tab2
----
107
78
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT - COUNT( * ) * MAX( DISTINCT col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-3197
SELECT - COUNT ( * ) * MAX ( DISTINCT col0 ) FROM tab2
----
-225

query I rowsort
SELECT - col1 * - 56 FROM tab1
----
2632
280
784

query I rowsort
SELECT DISTINCT - col1 + 70 FROM tab1
----
23
56
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT + COUNT( * ) * + SUM( + col1 ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-3200
SELECT + COUNT ( * ) * + SUM ( + col1 ) FROM tab2
----
585

query I rowsort
SELECT DISTINCT 58 - - 74 AS col1 FROM tab1
----
132

query I rowsort
SELECT ALL + col0 - col0 * 76 FROM tab1
----
-3825
-6375
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT 75 * COUNT( * ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-3203
SELECT 75 * COUNT ( * ) FROM tab1
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * - col0 col0 FROM tab2
----
4278
5952
6975

query III rowsort
SELECT ALL * FROM tab2 WHERE - 0 + col2 NOT BETWEEN 87 * - col2 AND ( col1 / ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT - 39 * CAST( + 8 AS SIGNED ) + 74 FROM tab1
----
-238
-238
-238

skipif mysql # not compatible
query I rowsort label-3206
SELECT - 39 * CAST ( + 8 AS INTEGER ) + 74 FROM tab1
----
-238
-238
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( col2 * ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( col2 * ( col2 ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 - - 48 ) IN ( col0 * 20 )
----

query I rowsort
SELECT ALL 24 * 6 FROM tab0 AS cor0
----
144
144
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT DISTINCT 43 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT 43 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT + col2 * + CAST( + 82 * col0 AS SIGNED ) FROM tab1 cor0
----
401472
411230
507416

skipif mysql # not compatible
query I rowsort label-3211
SELECT + col2 * + CAST ( + 82 * col0 AS INTEGER ) FROM tab1 cor0
----
401472
411230
507416

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + COUNT( * ) - 53 AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-3213
SELECT + COUNT ( * ) - 53 AS col1 FROM tab2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT MAX( ALL - col0 ) AS col2 FROM tab1 WHERE - ( 40 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT MAX ( ALL - col0 ) AS col2 FROM tab1 WHERE - ( 40 ) < NULL
----
NULL

query I rowsort
SELECT col1 + + 40 FROM tab0 AS cor0
----
121
41
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT CAST( col1 AS SIGNED ) + col2 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT CAST ( col1 AS INTEGER ) + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3217
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 - - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 - - col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 76 col0 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3219
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col2 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL ( - COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3222
SELECT ALL ( - COUNT ( * ) ) col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT + MAX( ALL + col1 ) * - SUM( - col1 * col1 ) AS col2 FROM tab2
----
1002463

skipif mysql # not compatible
query I rowsort label-3223
SELECT + MAX ( ALL + col1 ) * - SUM ( - col1 * col1 ) AS col2 FROM tab2
----
1002463

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT SUM( ALL - 6 ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3224
SELECT SUM ( ALL - 6 ) AS col1 FROM tab0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * col2 AS col2 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * col2 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT COUNT( * ) * - 46 col2 FROM tab2
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3226
SELECT COUNT ( * ) * - 46 col2 FROM tab2
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT ALL col0 DIV - + col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL col0 / - + col0 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT DISTINCT 49 DIV + + ( + col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT 49 / + + ( + col1 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT ALL + + SUM( DISTINCT + 52 ) DIV COUNT( * ) col1 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3229
SELECT ALL + + SUM ( DISTINCT + 52 ) / COUNT ( * ) col1 FROM tab2 AS cor0
----
17

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 ) NOT IN ( 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL MIN( ALL col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL MIN ( ALL col1 ) AS col1 FROM tab1 cor0
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 11 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 14 AS col2 FROM tab1 cor0
----
-14
-14
-14

query I rowsort
SELECT + 76 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col0 + 85 * + + col0 FROM tab0
----
1260
7308
8148

query I rowsort
SELECT - 62 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT 1 * + ( + col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3239
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + ( - CAST( col2 AS SIGNED ) ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3239
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + ( - CAST ( col2 AS INTEGER ) ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3240
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 = ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3240
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 = ( CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT + col2, 7 FROM tab0 AS cor0
----
10
7
47
7
99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - + MAX( - 93 ) + + COUNT( * ) + + 30 AS col0 FROM tab0 cor0
----
126

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - + MAX ( - 93 ) + + COUNT ( * ) + + 30 AS col0 FROM tab0 cor0
----
126

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 ) / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL + MAX( col2 ) + MIN( 33 ) AS col2 FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL + MAX ( col2 ) + MIN ( 33 ) AS col2 FROM tab0 AS cor0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT DISTINCT - 84 * - 88 + col1 DIV 69 FROM tab2 AS cor0
----
7392
7393

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - 84 * - 88 + col1 / 69 FROM tab2 AS cor0
----
7392
7393

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT + 73 * COUNT( ALL - + 76 ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-3246
SELECT + 73 * COUNT ( ALL - + 76 ) FROM tab0 AS cor0
----
219

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab1 WHERE NOT NULL IN ( ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT + - COUNT( + 58 ) AS col0 FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT + - COUNT ( + 58 ) AS col0 FROM tab0 WHERE NULL <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT ALL - CAST( NULL AS SIGNED ) - + + 99 * + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL - CAST ( NULL AS INTEGER ) - + + 99 * + - COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NULL AND NOT ( + 6 * col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 24 - - - 22 FROM tab2
----
-46

query I rowsort
SELECT 59 AS col0 FROM tab0 AS cor0 WHERE ( col1 + + 86 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT COUNT( * ) + 76 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3253
SELECT COUNT ( * ) + 76 FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( col1 ) + + col1 <= + col1 * - 14 - - col0
----

skipif mysql # not compatible
query I rowsort label-3254
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( col1 ) + + col1 <= + col1 * - 14 - - col0
----

query I rowsort
SELECT + col2 * - col2 * - - col1 - col1 * col2 FROM tab1 cor0
----
-130368
-17700
-220524

query III rowsort
SELECT * FROM tab1 WHERE 24 <= - 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3257
SELECT DISTINCT col0 AS col1, CAST( - ( + col0 ) AS SIGNED ) FROM tab1
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-3257
SELECT DISTINCT col0 AS col1, CAST ( - ( + col0 ) AS INTEGER ) FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT + ( 5 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
5

query I rowsort
SELECT DISTINCT + 81 - + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - - 63 AS col0 FROM tab2 cor0
----
63
63
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col0 + + 62 IS NOT NULL
----

query I rowsort
SELECT - - 0 * - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 67 * - + col0 FROM tab0 AS cor0
----
-1005
-5829
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL + MAX( DISTINCT - 7 ) AS col0 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + MAX ( DISTINCT - 7 ) AS col0 FROM tab2 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 6
----

query I rowsort
SELECT + col2 * 65 * + col2 AS col2 FROM tab0
----
143585
637065
6500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * col2 col2 FROM tab0
----
2773
5841
590

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE + 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT DISTINCT SUM( DISTINCT ( col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT SUM ( DISTINCT ( col1 ) ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3270
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) * + 29 * col1 * - - 59 + - col2 <= NULL
----

skipif mysql # not compatible
query III rowsort label-3270
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * + 29 * col1 * - - 59 + - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3271
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + - CAST( NULL AS SIGNED ), 68, - + col1 + col2 )
----

skipif mysql # not compatible
query III rowsort label-3271
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + - CAST ( NULL AS INTEGER ), 68, - + col1 + col2 )
----

query I rowsort
SELECT DISTINCT col1 * col0 * + 96 AS col2 FROM tab1 AS cor0
----
40800
410592
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - MIN( DISTINCT - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - MIN ( DISTINCT - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - 74 FROM tab1 AS cor0 WHERE NOT NULL = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT + col0 + 87 AS col2 FROM tab2 AS cor0 WHERE NOT - 0 * + 3 * + col1 NOT BETWEEN - + col0 AND - col1 DIV + 75
----
133
162

skipif mysql # not compatible
query I rowsort label-3275
SELECT + col0 + 87 AS col2 FROM tab2 AS cor0 WHERE NOT - 0 * + 3 * + col1 NOT BETWEEN - + col0 AND - col1 / + 75
----
133
162

query I rowsort
SELECT ALL ( - col2 ) * 68 + + - 15 FROM tab2
----
-1579
-2735
-3959

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT + SUM( DISTINCT 34 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-3277
SELECT + SUM ( DISTINCT 34 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query I rowsort
SELECT DISTINCT ( - - 71 ) * - col1 FROM tab1 WHERE NULL BETWEEN + col2 * - - 17 - + + 48 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3279
SELECT 50 DIV - 1, col1 FROM tab2
----
-50
51
-50
67
-50
77

skipif mysql # not compatible
query II rowsort label-3279
SELECT 50 / - 1, col1 FROM tab2
----
-50
51
-50
67
-50
77

query I rowsort
SELECT ALL - ( + 75 ) AS col1 FROM tab1 AS cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 + - - 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + 66 + + col2 * 20 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 45 + + + col1 + col0 FROM tab2 AS cor0
----
2392
3157
3606

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) <= + col0
----

query I rowsort
SELECT ALL + 82 FROM tab1 AS cor0 WHERE ( col0 * 51 ) NOT IN ( + col1, col1 )
----
82
82
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3287
SELECT - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * 33 FROM tab0 WHERE NOT - 34 / col2 NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - 51 - - - col0 AS col2 FROM tab1
----
-102
-136
-142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 93 FROM tab2
----
46
93
64
93
75
93

query I rowsort
SELECT ALL + ( + + 38 ) FROM tab0
----
38
38
38

query II rowsort
SELECT + col2 AS col0, col1 * - - col0 FROM tab0
----
10
1827
47
1215
99
97

query I rowsort
SELECT DISTINCT - col1 + - - ( - - col0 ) * col1 FROM tab0
----
1134
1806
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 54 col2, 19 AS col1 FROM tab2 AS cor0
----
-54
19
-54
19
-54
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3295
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT IN ( - col2, + col1, col1 ) AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT - COUNT( * ) + - - 26 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
17

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT - COUNT ( * ) + - - 26 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT ALL + CAST( - MIN( DISTINCT + col0 ) AS SIGNED ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL + CAST ( - MIN ( DISTINCT + col0 ) AS INTEGER ) FROM tab0 cor0
----
-15

query I rowsort
SELECT + 25 * + 92 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT - AVG ( DISTINCT col1 ) - - 79 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 48 - + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( + + col2 ) ) col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL > - col0
----
0

query I rowsort
SELECT col2 - - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 = - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - ( 40 ) ) col1 FROM tab0 cor0
----
-40

query I rowsort
SELECT DISTINCT col0 * + 40 FROM tab2
----
1840
2560
3000

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col2 NOT IN ( + 54, 73, 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT COUNT( * ) * - 68 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-3308
SELECT COUNT ( * ) * - 68 FROM tab2
----
-204

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3309
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col1 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT SUM( DISTINCT + 71 ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-3310
SELECT SUM ( DISTINCT + 71 ) AS col0 FROM tab1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT + CAST( NULL AS SIGNED ) * - - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT + CAST ( NULL AS INTEGER ) * - - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL + 30 * 79 * MIN( 54 ) FROM tab1
----
127980

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + 30 * 79 * MIN ( 54 ) FROM tab1
----
127980

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 23 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3314
SELECT ALL + COUNT( ALL + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + COUNT ( ALL + - CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
0

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( - + col2 + ( - 47 ) ) IN ( col0 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT - 68 col1, ( - - MIN( ALL + + 56 ) ) FROM tab0
----
-68
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3316
SELECT - 68 col1, ( - - MIN ( ALL + + 56 ) ) FROM tab0
----
-68
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col0 FROM tab1 WHERE NOT + - 48 * - + col1 IS NULL
----
-51
-85
-91

query II rowsort
SELECT + col0 AS col1, + 29 AS col0 FROM tab0 AS cor0
----
15
29
87
29
97
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col1 FROM tab0 AS cor0 WHERE col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3320
SELECT DISTINCT 86 * - - MIN( DISTINCT CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT 86 * - - MIN ( DISTINCT CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3322
SELECT ALL col1 AS col2, - col2 + + - CAST( NULL AS SIGNED ) FROM tab2 WHERE ( col0 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL col1 AS col2, - col2 + + - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT col1 * col1 + - col2 * - col1 FROM tab1 AS cor0
----
1540
320
5405

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT - 73 * + COUNT( ALL - + col0 ) * MIN( 53 ) col2 FROM tab1 AS cor0
----
-11607

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT DISTINCT - 73 * + COUNT ( ALL - + col0 ) * MIN ( 53 ) col2 FROM tab1 AS cor0
----
-11607

query I rowsort
SELECT col0 * + + col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - + col2 * + 5 AS col1 FROM tab0 AS cor0
----
-235
-495
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT MIN( ALL 7 ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3327
SELECT MIN ( ALL 7 ) FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + SUM( ALL 43 ) + 69 AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + SUM ( ALL 43 ) + 69 AS col2 FROM tab2 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT + col1 DIV + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-3329
SELECT + col1 / + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-49
-66
-76

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE + ( - col2 ) NOT IN ( + 31, - 67 * - col0 )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 34 col2 FROM tab1
----
119
125
85

query I rowsort
SELECT + col2 - 79 AS col1 FROM tab1
----
-11
-20
17

query I rowsort
SELECT ALL 47 + + col2 FROM tab0
----
146
57
94

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - + 6 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3335
SELECT DISTINCT * FROM tab2 WHERE + 93 BETWEEN + CAST( + col2 AS SIGNED ) * 72 / col0 * - col0 AND + col0 * - col0 / 83 * col2
----

skipif mysql # not compatible
query III rowsort label-3335
SELECT DISTINCT * FROM tab2 WHERE + 93 BETWEEN + CAST ( + col2 AS INTEGER ) * 72 / col0 * - col0 AND + col0 * - col0 / 83 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL 61 + + - COUNT( * ) FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL 61 + + - COUNT ( * ) FROM tab0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT ALL ( + col0 ) - 26 + - + col0 DIV + 85 + col2 col0 FROM tab2
----
107
43
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3337
SELECT ALL ( + col0 ) - 26 + - + col0 / + 85 + col2 col0 FROM tab2
----
107
43
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT + CAST( - 81 AS SIGNED ) FROM tab0 WHERE - 73 + col0 IS NOT NULL
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-3338
SELECT + CAST ( - 81 AS INTEGER ) FROM tab0 WHERE - 73 + col0 IS NOT NULL
----
-81
-81
-81

query III rowsort
SELECT * FROM tab1 WHERE - col0 < ( 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE + 36 * + ( - col0 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + ( 75 ) - - + col1 FROM tab1 AS cor0
----
122
80
89

query I rowsort
SELECT ALL col2 - - col0 * 9 FROM tab0 AS cor0
----
182
793
972

query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, ( + + col2 ) FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + MIN( - + col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3345
SELECT + MIN ( - + col2 ) FROM tab1 cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 75 ) * + ( - 51 ) col1 FROM tab0 WHERE col2 IS NOT NULL
----
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT + SUM( - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + SUM ( - col0 ) FROM tab2
----
-185

query II rowsort
SELECT ALL - 64 AS col0, 65 * col0 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + + 95 * - col0 <> col1
----

query I rowsort
SELECT + col1 * + + col2 - + + col1 + + - 47 + - + ( - + col0 ) * - col0 / + + 60 FROM tab1 AS cor0 WHERE NOT NULL IN ( 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + MAX( + 66 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3351
SELECT + MAX ( + 66 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT + col1 * + + col0 FROM tab2 cor0 WHERE NOT 77 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL + COUNT( ALL + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL + COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 35 + - + col0 AS col2 FROM tab0 AS cor0
----
15
20
87
-52
97
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT - SUM( DISTINCT - col1 ) * - MIN( 47 ) + 47 FROM tab0 AS cor0
----
-4794

skipif mysql # not compatible
query I rowsort label-3355
SELECT - SUM ( DISTINCT - col1 ) * - MIN ( 47 ) + 47 FROM tab0 AS cor0
----
-4794

query III rowsort
SELECT * FROM tab1 WHERE NOT + 6 * + - col1 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - 71
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + col1 IS NOT NULL
----

query I rowsort
SELECT 75 FROM tab0 WHERE NOT NULL > - col2 + - col0 * col2 * + 56
----

query I rowsort
SELECT - 85 + 64 AS col1 FROM tab0 AS cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + + col0 * - 61 col0 FROM tab2 AS cor0
----
-2707
-3805
-4476

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 6 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - + 36 AS col0 FROM tab2 AS cor0
----
15
31
41

query I rowsort
SELECT ALL - col2 * + col1 - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT - col0 + + - 16 DIV - + 48 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3366
SELECT - col0 + + - 16 / - + 48 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3367
SELECT DISTINCT COUNT( * ) DIV + 58 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT COUNT ( * ) / + 58 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3368
SELECT DISTINCT + col1 * CAST( NULL AS DECIMAL ) - - 19 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + col1 * CAST ( NULL AS REAL ) - - 19 AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT DISTINCT col0 DIV - col0 + + 49 AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT col0 / - col0 + + 49 AS col2 FROM tab1
----
48

query II rowsort
SELECT - 0 AS col1, + col1 AS col2 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT + ( col0 ) * + + col0 FROM tab2
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3372
SELECT ALL + - 88 DIV ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL + - 88 / ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-8
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col2 IN ( col2, - col0 * col1 * 78 * - 61 )
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query II rowsort label-3374
SELECT ALL + 78, col2 DIV + 92 AS col2 FROM tab1 AS cor0
----
78
0
78
0
78
1

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL + 78, col2 / + 92 AS col2 FROM tab1 AS cor0
----
78
0
78
0
78
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab1 WHERE NOT - - col2 IN ( + + 43 * + - col2, - 69, + 64 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab1 WHERE NOT - - col2 IN ( + + 43 * + - col2, - 69, + 64 )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - - 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
57

query II rowsort
SELECT ALL + col0 * + col1, col2 AS col0 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT ALL + col1 DIV + col2 - col0 AS col1 FROM tab2 AS cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL + col1 / + col2 - col0 AS col1 FROM tab2 AS cor0
----
-44
-63
-74

query I rowsort
SELECT ALL col2 * + + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT DISTINCT col1 * - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT col1 * - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3381
SELECT + + col0 DIV 21 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
2
23
3
40
3
58

skipif mysql # not compatible
query II rowsort label-3381
SELECT + + col0 / 21 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
2
23
3
40
3
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT ALL + + COUNT( * ) DIV + - COUNT( * ) + + ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL + + COUNT ( * ) / + - COUNT ( * ) + + ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 66 * col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3384
SELECT ALL + 13, - COUNT( * ) col0 FROM tab1
----
13
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3384
SELECT ALL + 13, - COUNT ( * ) col0 FROM tab1
----
13
-3

query I rowsort
SELECT DISTINCT - 61 + - col0 AS col1 FROM tab1
----
-112
-146
-152

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < 47
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3387
SELECT col1 * col2 DIV - + CAST( + ( - 50 ) AS SIGNED ) AS col1 FROM tab1
----
26
5
63

skipif mysql # not compatible
query I rowsort label-3387
SELECT col1 * col2 / - + CAST ( + ( - 50 ) AS INTEGER ) AS col1 FROM tab1
----
26
5
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3388
SELECT + col0, CAST( + - 1 AS SIGNED ) AS col1 FROM tab1
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-3388
SELECT + col0, CAST ( + - 1 AS INTEGER ) AS col1 FROM tab1
----
51
-1
85
-1
91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT COUNT( * ) * 87 AS col1 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-3389
SELECT COUNT ( * ) * 87 AS col1 FROM tab2
----
261

query II rowsort
SELECT DISTINCT + 69 AS col2, + col1 - - - col1 AS col2 FROM tab1
----
69
0

query I rowsort
SELECT - + col0 * + 35 + - col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1610
-2240
-2625

query I rowsort
SELECT ALL - - col0 * col2 * col2 + + - col1 FROM tab2 AS cor0
----
102323
24283
252233

query I rowsort
SELECT + col2 + - 62 * 0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT col1 AS col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) > - 69 / - 19
----

skipif mysql # not compatible
query I rowsort label-3394
SELECT col1 AS col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) > - 69 / - 19
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3395
SELECT - CAST( NULL AS DECIMAL ) + 22 AS col0 FROM tab2 WHERE col1 + - 11 * 88 + + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-3395
SELECT - CAST ( NULL AS REAL ) + 22 AS col0 FROM tab2 WHERE col1 + - 11 * 88 + + col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 51 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT COUNT( * ) - + 55 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT COUNT ( * ) - + 55 FROM tab1 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab0 AS cor0 WHERE ( ( - col1 + - + col0 = NULL ) )
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE 22 IS NULL
----

query I rowsort
SELECT - col2 * 15 + 63 - - col1 * + ( - col1 ) FROM tab0 cor0
----
-1423
-528
-7203

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - + col0 >= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT col1 DIV - - 21 - - + col1 + + ( - + col0 ) FROM tab0
----
-65
-96
69

skipif mysql # not compatible
query I rowsort label-3402
SELECT col1 / - - 21 - - + col1 + + ( - + col0 ) FROM tab0
----
-65
-96
69

query I rowsort
SELECT ( - - col1 ) + - ( - + col2 ) AS col0 FROM tab2
----
117
125
74

query II rowsort
SELECT - col0, - 28 + - - col1 AS col1 FROM tab2
----
-46
23
-64
49
-75
39

query I rowsort
SELECT ALL + col0 * + 35 * - 56 FROM tab0
----
-170520
-190120
-29400

query I rowsort
SELECT DISTINCT - ( - + col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT + + ( - 39 ) * - + 37 + - COUNT( 18 ) * + 95 AS col1 FROM tab2 AS cor0
----
1158

skipif mysql # not compatible
query I rowsort label-3407
SELECT + + ( - 39 ) * - + 37 + - COUNT ( 18 ) * + 95 AS col1 FROM tab2 AS cor0
----
1158

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IS NULL AND NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - ( + 44 ) FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT - 76 * - 45 FROM tab2 cor0
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3411
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + 29 col1 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT + SUM( + + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3413
SELECT + SUM ( + + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT - col2 * - + col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

query II rowsort
SELECT - + col0 AS col0, + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3416
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + col2 ) + 26 = - 25
----

query I rowsort
SELECT - col2 * + 27 + 87 AS col0 FROM tab2
----
-1479
-534
-993

query I rowsort
SELECT ALL - col0 * - 47 * - 28 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-111860
-119756
-67116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT 56 + - CAST( + col1 AS SIGNED ) FROM tab2
----
-11
-21
5

skipif mysql # not compatible
query I rowsort label-3420
SELECT 56 + - CAST ( + col1 AS INTEGER ) FROM tab2
----
-11
-21
5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL ) AND NOT - 14 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + 9 * - + 37 + COUNT( * ) FROM tab1
----
-330

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + 9 * - + 37 + COUNT ( * ) FROM tab1
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT DISTINCT ( + COUNT( ALL col2 ) ) * - - 99 AS col0 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT ( + COUNT ( ALL col2 ) ) * - - 99 AS col0 FROM tab2
----
297

query I rowsort
SELECT + col0 * - ( + + 35 ) AS col1 FROM tab2 AS cor0
----
-1610
-2240
-2625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3425
SELECT CAST( - col2 AS SIGNED ) * + - 74, col2 AS col1 FROM tab0 AS cor0
----
3478
47
7326
99
740
10

skipif mysql # not compatible
query II rowsort label-3425
SELECT CAST ( - col2 AS INTEGER ) * + - 74, col2 AS col1 FROM tab0 AS cor0
----
3478
47
7326
99
740
10

query I rowsort
SELECT ALL 58 + + ( + ( - + ( + + 36 ) ) ) AS col1 FROM tab0
----
22
22
22

query II rowsort
SELECT ALL + 48 * + 40 - - col1 AS col2, col2 AS col2 FROM tab2
----
1971
23
1987
58
1997
40

query I rowsort
SELECT col1 * 23 * - + col0 + + 26 FROM tab1
----
-16396
-9749
-98345

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + MIN( col2 ) - + - MAX( DISTINCT + col2 ) AS col0 FROM tab1
----
155

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + MIN ( col2 ) - + - MAX ( DISTINCT + col2 ) AS col0 FROM tab1
----
155

query I rowsort
SELECT col2 + + + 41 FROM tab0
----
140
51
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3432
SELECT - col0 + 20 DIV + 41 AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-3432
SELECT - col0 + 20 / + 41 AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT + col2 * ( + col2 ) + - + col2 AS col2, 99 AS col1 FROM tab2 AS cor0
----
1560
99
3306
99
506
99

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 79 - + col2
----

query I rowsort
SELECT 28 + - - 81 FROM tab0 AS cor0
----
109
109
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 + - col1 col2 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT 64 * + MIN( DISTINCT - col1 ) FROM tab2 cor0
----
-4928

skipif mysql # not compatible
query I rowsort label-3437
SELECT 64 * + MIN ( DISTINCT - col1 ) FROM tab2 cor0
----
-4928

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + 25 AND + 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col0 AS col0 FROM tab0 WHERE NOT 18 > + col1
----
-15
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3440
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + - - 64 + 2 / - 99 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3440
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + - - 64 + 2 / - 99 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + MAX( DISTINCT - col1 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3441
SELECT + MAX ( DISTINCT - col1 ) col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT COUNT( * ) * + MAX( DISTINCT 8 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT COUNT ( * ) * + MAX ( DISTINCT 8 ) FROM tab0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT - 30 DIV - 72 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3443
SELECT - 30 / - 72 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 79 * + col1 - + + 79 FROM tab0 AS cor0
----
0
1580
6320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT col2 AS col2 FROM tab1 WHERE NOT ( col2 ) + col0 NOT BETWEEN CAST( col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3445
SELECT col2 AS col2 FROM tab1 WHERE NOT ( col2 ) + col0 NOT BETWEEN CAST ( col0 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT + 39 AS col1, + MAX( ALL - col2 ) FROM tab0
----
39
-10

skipif mysql # not compatible
query II rowsort label-3446
SELECT + 39 AS col1, + MAX ( ALL - col2 ) FROM tab0
----
39
-10

query II rowsort
SELECT ALL - col2 AS col0, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL 4 * MAX( - 56 ) AS col1 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL 4 * MAX ( - 56 ) AS col1 FROM tab1
----
-224

query I rowsort
SELECT 72 + + - col0 AS col1 FROM tab0
----
-15
-25
57

query I rowsort
SELECT + 79 * col2 + 23 FROM tab1
----
4684
5395
7607

query II rowsort
SELECT ALL + col0, - 98 AS col1 FROM tab2 AS cor0
----
46
-98
64
-98
75
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT DISTINCT + 52, COUNT( * ) AS col0 FROM tab1 cor0
----
52
3

skipif mysql # not compatible
query II rowsort label-3452
SELECT DISTINCT + 52, COUNT ( * ) AS col0 FROM tab1 cor0
----
52
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 89, col0 + + 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3454
SELECT ALL + + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL + + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT - ( + - COUNT( + col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3455
SELECT - ( + - COUNT ( + col0 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = - 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT - + SUM( DISTINCT + + ( + ( - 34 ) ) ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3457
SELECT - + SUM ( DISTINCT + + ( + ( - 34 ) ) ) FROM tab1 AS cor0
----
34

query I rowsort
SELECT ALL + - 32 AS col2 FROM tab2 cor0
----
-32
-32
-32

query II rowsort
SELECT ALL - - 12 * 2 + + + 2 AS col0, col2 + - + col0 AS col1 FROM tab1 AS cor0
----
26
-23
26
-26
26
45

query II rowsort
SELECT DISTINCT + col1 + - - col2 AS col2, - 61 * + col0 FROM tab0
----
100
-5917
128
-915
31
-5307

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NULL IN ( + col1, - 63 / + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL COUNT( * ) + + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab0 WHERE - - col0 BETWEEN NULL AND - 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT SUM( ALL + 48 ) AS col1, COUNT( * ) AS col2 FROM tab1
----
144
3

skipif mysql # not compatible
query II rowsort label-3464
SELECT SUM ( ALL + 48 ) AS col1, COUNT ( * ) AS col2 FROM tab1
----
144
3

query I rowsort
SELECT ALL + col0 - - 57 - - 84 * - 89 + - + col0 FROM tab0 cor0
----
-7419
-7419
-7419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL + - col1 + - CAST( + col2 AS SIGNED ) + - + ( 96 ) + 60 * - col2 * col2 AS col2 FROM tab1 AS cor0
----
-209020
-277651
-553166

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + - col1 + - CAST ( + col2 AS INTEGER ) + - + ( 96 ) + 60 * - col2 * col2 AS col2 FROM tab1 AS cor0
----
-209020
-277651
-553166

query II rowsort
SELECT ALL + col2 AS col1, - col2 + - 77 + - col0 AS col0 FROM tab1 cor0
----
59
-221
68
-236
96
-224

query I rowsort
SELECT - 61 * - col2 + - + 2 + + ( - col0 ) - + col1 AS col0 FROM tab1 AS cor0
----
3507
4008
5789

query I rowsort
SELECT - + col2 + - - col1 - + col2 FROM tab2 AS cor0
----
-3
-49
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT ALL + 73 + + MAX( - 16 ) AS col2 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + 73 + + MAX ( - 16 ) AS col2 FROM tab1
----
57

query I rowsort
SELECT ALL - 83 - - col0 AS col1 FROM tab1 cor0
----
-32
2
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT + 73 AS col2, COUNT( * ) AS col1 FROM tab0
----
73
3

skipif mysql # not compatible
query II rowsort label-3472
SELECT + 73 AS col2, COUNT ( * ) AS col1 FROM tab0
----
73
3

query I rowsort
SELECT + + col1 * 19 + 71 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * + - 39 FROM tab2
----
-351

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * + - 39 FROM tab2
----
-351

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( - - col2 ) * col0 - 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab0 WHERE - - col0 IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + 3 col1 FROM tab0
----
15
3
87
3
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL ( + MIN( - - ( + ( + col1 ) ) ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL ( + MIN ( - - ( + ( + col1 ) ) ) ) FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3480
SELECT - col2 AS col2, col0 * - 44 * - CAST( + ( + - 1 ) AS SIGNED ) + - 72 AS col0 FROM tab1
----
-59
-3812
-68
-4076
-96
-2316

skipif mysql # not compatible
query II rowsort label-3480
SELECT - col2 AS col2, col0 * - 44 * - CAST ( + ( + - 1 ) AS INTEGER ) + - 72 AS col0 FROM tab1
----
-59
-3812
-68
-4076
-96
-2316

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 >= col2 * ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 24 AS col1, - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col0 * 49 FROM tab2 cor0
----
-2254
-3136
-3675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3484
SELECT DISTINCT - col1 * - + col1, + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) col2 FROM tab0
----
1
1
441
21
6561
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3484
SELECT DISTINCT - col1 * - + col1, + CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) col2 FROM tab0
----
1
1
441
21
6561
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 77 + + 96 + - 80 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3486
SELECT + col2 DIV col1 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
0
-10
0
-47
99
-99

skipif mysql # not compatible
query II rowsort label-3486
SELECT + col2 / col1 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
0
-10
0
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT - + SUM( - ( ( + col0 ) ) ) + - + 24 FROM tab1 AS cor0
----
203

skipif mysql # not compatible
query I rowsort label-3487
SELECT - + SUM ( - ( ( + col0 ) ) ) + - + 24 FROM tab1 AS cor0
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - COUNT( col0 ) + + 78 AS col1 FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3488
SELECT - COUNT ( col0 ) + + 78 AS col1 FROM tab1 cor0
----
75

query I rowsort
SELECT DISTINCT ( ( col2 ) ) * col2 FROM tab1 cor0
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - 58
----

query I rowsort
SELECT + 80 * + + 88 + 76 + + col0 * + - ( - 31 ) AS col0 FROM tab1
----
8697
9751
9937

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT DISTINCT + 38 DIV + - col0 + + col1 col2 FROM tab0
----
1
21
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3492
SELECT DISTINCT + 38 / + - col0 + + col1 col2 FROM tab0
----
1
21
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT - COUNT( * ) * + + 29 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-3493
SELECT - COUNT ( * ) * + + 29 FROM tab0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT ALL + COUNT( * ) + 71 DIV - 51 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + COUNT ( * ) + 71 / - 51 FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL + 83 * + col1 FROM tab1 AS cor0
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query II rowsort label-3496
SELECT ALL - 83 AS col2, - SUM( + col2 ) FROM tab0
----
-83
-156

skipif mysql # not compatible
query II rowsort label-3496
SELECT ALL - 83 AS col2, - SUM ( + col2 ) FROM tab0
----
-83
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT + col2 * + col0 - + col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - - col2 >= - col2
----

skipif mysql # not compatible
query I rowsort label-3497
SELECT + col2 * + col0 - + col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - - col2 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT SUM( ALL + - 41 ) AS col0 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3498
SELECT SUM ( ALL + - 41 ) AS col0 FROM tab1 AS cor0
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 - + - col2 + - col0 / + col0 col1 FROM tab0 AS cor0 WHERE NOT ( NOT + + col2 * - col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT + MAX( - 35 ) AS col2 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT + MAX ( - 35 ) AS col2 FROM tab2 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - + 48 * - COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3501
SELECT - + 48 * - COUNT ( * ) FROM tab0 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT ALL - col2 DIV - - col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - col2 / - - col2 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col2 * + ( col1 ) AS col0 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3505
SELECT col2 DIV - CAST( + ( 4 ) AS SIGNED ) FROM tab2 cor0
----
-10
-14
-5

skipif mysql # not compatible
query I rowsort label-3505
SELECT col2 / - CAST ( + ( 4 ) AS INTEGER ) FROM tab2 cor0
----
-10
-14
-5

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - - COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 * 64 + - col1 * - col0 + + col1 AS col0 FROM tab2
----
3869
7565
8804

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 10 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT + 55 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT DISTINCT + - ( col2 ) col1 FROM tab0 AS cor0 WHERE col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3511
SELECT DISTINCT + - ( col2 ) col1 FROM tab0 AS cor0 WHERE col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3512
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( + - 28, - 74, - 56 * col0 * + + col1 + - col0 * - ( CAST( + col1 AS SIGNED ) ), - - ( + col1 ) * col0 + + + 59 - - 21, + + col0 + - ( 41 ) )
----

skipif mysql # not compatible
query III rowsort label-3512
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( + - 28, - 74, - 56 * col0 * + + col1 + - col0 * - ( CAST ( + col1 AS INTEGER ) ), - - ( + col1 ) * col0 + + + 59 - - 21, + + col0 + - ( 41 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT + + COUNT( * ) DIV + - 36 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3513
SELECT + + COUNT ( * ) / + - 36 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col2 + 89 + + col2 FROM tab1 AS cor0
----
207
225
281

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 + + - col2 AS col0 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT - col0 * + 84 * + col1 * col1 - + 53 - + col0 + - - col0 FROM tab2
----
-10050317
-28280753
-31874357

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) + COUNT ( * ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT col2 DIV col1 * - col1 + - 3 AS col0 FROM tab1
----
-50
-58
-87

skipif mysql # not compatible
query I rowsort label-3519
SELECT col2 / col1 * - col1 + - 3 AS col0 FROM tab1
----
-50
-58
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT + COUNT( * ) FROM tab1 WHERE - ( col1 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT + COUNT ( * ) FROM tab1 WHERE - ( col1 ) < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT ALL - CAST( NULL AS SIGNED ) / + col0 - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - CAST ( NULL AS INTEGER ) / + col0 - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT ALL col2 AS col2 FROM tab2 WHERE col2 IS NOT NULL AND CAST( NULL AS SIGNED ) IN ( col1, + 83 - + - CAST( col2 AS SIGNED ) + 81, + ( + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL col2 AS col2 FROM tab2 WHERE col2 IS NOT NULL AND CAST ( NULL AS INTEGER ) IN ( col1, + 83 - + - CAST ( col2 AS INTEGER ) + 81, + ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT SUM( ALL - col2 ) - + COUNT( * ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT SUM ( ALL - col2 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT + 35 + + COUNT( * ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3524
SELECT + 35 + + COUNT ( * ) FROM tab2 AS cor0
----
38

query I rowsort
SELECT - col0 * + - col1 + col1 AS col2 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT ALL 20 + - + col2 * - col2 AS col0 FROM tab1 AS cor0
----
3501
4644
9236

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT DISTINCT - col0 DIV + 91 + col0 * + 53 * - col0 FROM tab2 AS cor0
----
-112148
-217088
-298125

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT - col0 / + 91 + col0 * + 53 * - col0 FROM tab2 AS cor0
----
-112148
-217088
-298125

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3529
SELECT - col2 DIV 74 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3529
SELECT - col2 / 74 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT col2 <> - col2 - - 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3531
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( 48, - CAST( col0 AS SIGNED ), - - 69 )
----

skipif mysql # not compatible
query III rowsort label-3531
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( 48, - CAST ( col0 AS INTEGER ), - - 69 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT DISTINCT - 5 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-3532
SELECT DISTINCT - 5 / + COUNT ( * ) col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - ( + 49 ) AS col0 FROM tab1 cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL + 35 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL + 35 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT ALL + 6 DIV + - 55 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL + 6 / + - 55 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, - 53 * col2 * + col1 col1 FROM tab0 AS cor0
----
-10
-11130
-47
-201771
-99
-5247

query I rowsort
SELECT + - ( col0 ) * + col2 * - col1 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT ALL + col2 * - - ( + + 92 ) FROM tab1
----
5428
6256
8832

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3539
SELECT DISTINCT - 90 AS col1, CAST( - 28 AS SIGNED ) FROM tab1
----
-90
-28

skipif mysql # not compatible
query II rowsort label-3539
SELECT DISTINCT - 90 AS col1, CAST ( - 28 AS INTEGER ) FROM tab1
----
-90
-28

query I rowsort
SELECT ALL 81 * - col2 AS col2 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT DISTINCT col1 + - + col0 * + 92 - col1 FROM tab2 WHERE NULL NOT IN ( ( + 87 ) - - col1 )
----

query II rowsort
SELECT DISTINCT col0 AS col1, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT DISTINCT - - 13 + COUNT( * ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - - 13 + COUNT ( * ) FROM tab0 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT ALL + col2 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL + col2 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
118
136
192

query II rowsort
SELECT 25 + + col0 + - 21, + col0 AS col1 FROM tab2
----
50
46
68
64
79
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 BETWEEN + col1 AND + + col2 * + col2 * - - 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 21 + col0 * - col0 AS col2, - col2 AS col2 FROM tab2 cor0
----
-2095
-23
-4075
-40
-5604
-58

query I rowsort
SELECT + ( + - 87 ) + - 9 AS col0 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL 60 + COUNT( * ) + 47 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL 60 + COUNT ( * ) + 47 FROM tab2 AS cor0
----
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE - col1 > + + col0 * col0
----

query I rowsort
SELECT ALL 25 * ( col0 ) + col0 + 69 + - + 27 FROM tab1 WHERE col2 * - 99 * - + 94 / + - col2 IS NOT NULL
----
1368
2252
2408

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 < - col0 + - - 63 + col0
----
46
51
23

query I rowsort
SELECT ALL col1 + 8 * + col1 FROM tab2
----
459
603
693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT DISTINCT + CAST( - col2 AS SIGNED ) - - + col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) - - + col2 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - MAX( + - 84 ) - 10 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - MAX ( + - 84 ) - 10 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT + - ( + 94 ) * 83 + - 72 * + COUNT( + col1 ) * + 90 AS col0 FROM tab2 AS cor0
----
-27242

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT + - ( + 94 ) * 83 + - 72 * + COUNT ( + col1 ) * + 90 AS col0 FROM tab2 AS cor0
----
-27242

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL - SUM( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL - SUM ( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
-227

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = col0 - - col2 * + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT + 78 DIV col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 78 / col0 AS col1 FROM tab2
----
1
1
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 48 >= - + 56
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + ( + col2 ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT DISTINCT - COUNT( DISTINCT + 23 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - COUNT ( DISTINCT + 23 ) / + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 53 AS col0 FROM tab0 cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT ALL 45 * + + COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL 45 * + + COUNT ( * ) FROM tab2
----
135

query I rowsort
SELECT 93 * - 85 FROM tab0
----
-7905
-7905
-7905

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT + ( + - 40 ) DIV + col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3567
SELECT + ( + - 40 ) / + col2 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3568
SELECT COUNT( * ) DIV - 29 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT COUNT ( * ) / - 29 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT ALL + ( + col2 ) DIV col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + ( + col2 ) / col1 FROM tab1
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT - col1 / - + ( 40 ) / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT - col1 / - + ( 40 ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT DISTINCT COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT DISTINCT - col0 FROM tab0 WHERE NOT - 36 * + col2 * - col2 + + col1 - - - CAST( NULL AS SIGNED ) <> col2 * + col1
----

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT - col0 FROM tab0 WHERE NOT - 36 * + col2 * - col2 + + col1 - - - CAST ( NULL AS INTEGER ) <> col2 * + col1
----

query I rowsort
SELECT + 79 + - col0 * + + col2 AS col2 FROM tab2 AS cor0
----
-2481
-4271
-979

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE + 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - 63 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE ( - 32 ) + + col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE - 63 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 77 - - col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col2, - 30 FROM tab2 AS cor0
----
23
-30
40
-30
58
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-3581
SELECT - 49 DIV + - 86 + ( + + col2 ) - - 1 DIV - col1, - ( col1 ) AS col1 FROM tab0 AS cor0
----
10
-21
47
-81
98
-1

skipif mysql # not compatible
query II rowsort label-3581
SELECT - 49 / + - 86 + ( + + col2 ) - - 1 / - col1, - ( col1 ) AS col1 FROM tab0 AS cor0
----
10
-21
47
-81
98
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 14 * - - 89 / - col1 <= 20
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT col1 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT col1 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL 34 + COUNT( * ) - - COUNT( * ) + - MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL 34 + COUNT ( * ) - - COUNT ( * ) + - MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3585
SELECT - COUNT( * ) - 66, 52 AS col1 FROM tab0
----
-69
52

skipif mysql # not compatible
query II rowsort label-3585
SELECT - COUNT ( * ) - 66, 52 AS col1 FROM tab0
----
-69
52

query I rowsort
SELECT col0 - - - col0 * ( - col2 ) AS col1 FROM tab2
----
1104
2624
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + + - col1, col0 col2 FROM tab1
----
-138
91
-65
51
-90
85

query I rowsort
SELECT DISTINCT + col2 + - - col2 * col0 - + col1 AS col0 FROM tab1
----
4978
5069
6209

query II rowsort
SELECT ALL col1 * - ( col1 ) + + + 25 * - 97, col0 AS col1 FROM tab1
----
-2450
85
-2621
51
-4634
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT ( COUNT( * ) ) + COUNT( * ) / - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT ( COUNT ( * ) ) + COUNT ( * ) / - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col1 + - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 81 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 56 FROM tab1 WHERE NOT col2 + col1 IS NULL
----
56
56
56

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3595
SELECT SUM( - col2 ) * + ( + + 18 ) + - COUNT( * ) AS col2, + 17 * + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1 cor0
----
-4017
NULL

skipif mysql # not compatible
query II rowsort label-3595
SELECT SUM ( - col2 ) * + ( + + 18 ) + - COUNT ( * ) AS col2, + 17 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 cor0
----
-4017
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT - - SUM( - col1 ) AS col0, - SUM( + - col2 ) + 97 FROM tab0 AS cor0
----
-103
253

skipif mysql # not compatible
query II rowsort label-3596
SELECT - - SUM ( - col1 ) AS col0, - SUM ( + - col2 ) + 97 FROM tab0 AS cor0
----
-103
253

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + col1 AND + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * 67 + col0 + col0 + 84 AS col2 FROM tab1 AS cor0
----
-2883
-752
-81

query II rowsort
SELECT + 80 * - - col1 AS col1, col0 + - col0 FROM tab2 AS cor0
----
4080
0
5360
0
6160
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + 19 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT DISTINCT COUNT( * ) AS col0, - 6 AS col1 FROM tab2 AS cor0
----
3
-6

skipif mysql # not compatible
query II rowsort label-3601
SELECT DISTINCT COUNT ( * ) AS col0, - 6 AS col1 FROM tab2 AS cor0
----
3
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3602
SELECT - - COUNT( * ) AS col1, MAX( ALL + 99 ) FROM tab2 AS cor0
----
3
99

skipif mysql # not compatible
query II rowsort label-3602
SELECT - - COUNT ( * ) AS col1, MAX ( ALL + 99 ) FROM tab2 AS cor0
----
3
99

query II rowsort
SELECT - + col1 AS col0, + ( - col1 ) FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col0 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT SUM( - 77 ) AS col2 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-3605
SELECT SUM ( - 77 ) AS col2 FROM tab0 AS cor0
----
-231

query I rowsort
SELECT ALL col1 * - 3 + + + col1 FROM tab1 cor0
----
-10
-28
-94

query I rowsort
SELECT DISTINCT 28 * 57 AS col1 FROM tab1
----
1596

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT + + COUNT( * ) AS col1, COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 3
----
0
0

skipif mysql # not compatible
query II rowsort label-3608
SELECT + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 3
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT - 23 AS col0 FROM tab2 WHERE NOT col2 IN ( - + col0, + CAST( NULL AS SIGNED ) * 94 )
----

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 23 AS col0 FROM tab2 WHERE NOT col2 IN ( - + col0, + CAST ( NULL AS INTEGER ) * 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT DISTINCT - ( - + COUNT( * ) ) + - 61 AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT - ( - + COUNT ( * ) ) + - 61 AS col2 FROM tab0
----
-58

query I rowsort
SELECT + col2 * + col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL + SUM( - col2 ) * - COUNT( * ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + SUM ( - col2 ) * - COUNT ( * ) FROM tab2
----
363

query I rowsort
SELECT - col1 * + ( + + ( + + col2 ) ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - - col0 * + + col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3615
SELECT COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - ( - 41 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + 32 * col2 * 39 + - + col2 AS col1 FROM tab2
----
28681
49880
72326

query I rowsort
SELECT ALL + col1 - - 55 FROM tab2
----
106
122
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - - + 64 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - - + 64 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + + 80 * col1 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL + - ( - - COUNT( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + - ( - - COUNT ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3622
SELECT * FROM tab1 WHERE NOT col0 + col2 BETWEEN NULL AND - + 22 - + - 97 * - ( + col1 ) + col2 * - + ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3622
SELECT * FROM tab1 WHERE NOT col0 + col2 BETWEEN NULL AND - + 22 - + - 97 * - ( + col1 ) + col2 * - + ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT col1 DIV - 59 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT col1 / - 59 AS col2 FROM tab2
----
-1
-1
0

query II rowsort
SELECT DISTINCT 71 AS col1, + 8 * - col2 FROM tab1
----
71
-472
71
-544
71
-768

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT DISTINCT - ( + col0 ) DIV 7 FROM tab2
----
-10
-6
-9

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT - ( + col0 ) / 7 FROM tab2
----
-10
-6
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 54 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT + MIN( DISTINCT + 91 ) AS col0 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-3627
SELECT + MIN ( DISTINCT + 91 ) AS col0 FROM tab2
----
91

query I rowsort
SELECT ALL - ( - + 1 ) FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 78 + + + 40 IS NULL
----

query II rowsort
SELECT - col1, col0 * + - 35 AS col1 FROM tab0 AS cor0
----
-1
-3395
-21
-3045
-81
-525

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3631
SELECT ALL + - 62 AS col0, COUNT( * ) DIV - + SUM( DISTINCT - - col2 ) * - + 6 AS col2 FROM tab2 AS cor0
----
-62
0

skipif mysql # not compatible
query II rowsort label-3631
SELECT ALL + - 62 AS col0, COUNT ( * ) / - + SUM ( DISTINCT - - col2 ) * - + 6 AS col2 FROM tab2 AS cor0
----
-62
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT - CAST( NULL AS SIGNED ) * - + col0 * + + col0 + - ( - 5 ) * col2 FROM tab0 AS cor0 WHERE NOT + col2 * 99 > col2
----

skipif mysql # not compatible
query I rowsort label-3632
SELECT - CAST ( NULL AS INTEGER ) * - + col0 * + + col0 + - ( - 5 ) * col2 FROM tab0 AS cor0 WHERE NOT + col2 * 99 > col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT DISTINCT - - COUNT( * ) AS col1, COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9
81

skipif mysql # not compatible
query II rowsort label-3633
SELECT DISTINCT - - COUNT ( * ) AS col1, COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9
81

query I rowsort
SELECT ALL 93 * - 15 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1395
-1395
-1395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col1 FROM tab2 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT - ( - SUM( - col0 ) ) + 34 AS col1 FROM tab1 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - ( - SUM ( - col0 ) ) + 34 AS col1 FROM tab1 AS cor0
----
-193

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + col2 * 76 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3638
SELECT DISTINCT 38 + + + col1 DIV col0, col1 FROM tab2
----
38
67
39
51
39
77

skipif mysql # not compatible
query II rowsort label-3638
SELECT DISTINCT 38 + + + col1 / col0, col1 FROM tab2
----
38
67
39
51
39
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - - col2 + - - col2 * 34 * col2 AS col0 FROM tab1 AS cor0
----
118413
157284
313440

query I rowsort
SELECT + + 69 AS col0 FROM tab2 cor0 WHERE col0 / - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > + col2 * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3644
SELECT ( + CAST( - MIN( ALL + 52 ) AS SIGNED ) ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-3644
SELECT ( + CAST ( - MIN ( ALL + 52 ) AS INTEGER ) ) FROM tab1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT ALL + 79 * 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-3645
SELECT ALL + 79 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col2 FROM tab1 WHERE NOT ( NULL ) < col0 + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3647
SELECT - SUM( ALL ( - ( 64 ) ) ) DIV + 75 FROM tab1 WHERE 7 >= - col0
----
2

skipif mysql # not compatible
query I rowsort label-3647
SELECT - SUM ( ALL ( - ( 64 ) ) ) / + 75 FROM tab1 WHERE 7 >= - col0
----
2

query I rowsort
SELECT + col1 + 48 * + col2 AS col0 FROM tab1
----
2837
3311
4622

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( col2 * 68 - + col1 ) BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col0 FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3651
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( + 36 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3651
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( + 36 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 53 + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 23 + + ( col2 + col0 * col2 ) FROM tab0 WHERE NOT - 9 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + + col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( - ( col2 ) ) + + col0 / + col0 AND ( + col1 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT ALL 86 DIV 34 AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL 86 / 34 AS col0 FROM tab2
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT - 31 DIV + col1 AS col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-3657
SELECT - 31 / + col1 AS col1 FROM tab1
----
-2
-6
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3658
SELECT MIN( 14 ) DIV + COUNT( * ) AS col2 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-3658
SELECT MIN ( 14 ) / + COUNT ( * ) AS col2 FROM tab2
----
4

query I rowsort
SELECT ALL 92 + + 93 * - 43 FROM tab2
----
-3907
-3907
-3907

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 - col0 * 12 AS col2 FROM tab1
----
-1001
-561
-935

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3662
SELECT DISTINCT * FROM tab0 WHERE col2 * + 83 NOT IN ( 22 / + CAST( NULL AS DECIMAL ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-3662
SELECT DISTINCT * FROM tab0 WHERE col2 * + 83 NOT IN ( 22 / + CAST ( NULL AS REAL ) + + col2 )
----

query I rowsort
SELECT DISTINCT ( col0 ) + - 97 FROM tab1
----
-12
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + COUNT( * ) + + 1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-3664
SELECT + COUNT ( * ) + + 1 FROM tab0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT ALL - col0 + col1 DIV col2 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - col0 + col1 / col2 FROM tab2
----
-44
-63
-74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT + COUNT( 16 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3667
SELECT + COUNT ( 16 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT SUM( ALL - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT SUM ( ALL - col1 ) AS col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN - 81 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3671
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) > - 89
----

skipif mysql # not compatible
query III rowsort label-3671
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) > - 89
----

query I rowsort
SELECT DISTINCT + 38 + + col2 / col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT CAST( - 40 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 95 * col1 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3673
SELECT CAST ( - 40 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 95 * col1 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT ALL + ( - col1 ) DIV + ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + ( - col1 ) / + ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 58 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT DISTINCT 62 FROM tab1 AS cor0 CROSS JOIN tab1
----
62

query I rowsort
SELECT col0 * + ( + col2 * col0 ) FROM tab1
----
249696
426275
563108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3678
SELECT COUNT( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3678
SELECT COUNT ( ALL - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT SUM( - 65 ) FROM tab1 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3679
SELECT SUM ( - 65 ) FROM tab1 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - 85 * - COUNT( * ) col0 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3680
SELECT - 85 * - COUNT ( * ) col0 FROM tab1 AS cor0
----
255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3681
SELECT CAST( NULL AS DECIMAL ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT CAST ( NULL AS REAL ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT + - COUNT( * ) + COUNT( * ) * ( 62 ) FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3683
SELECT + - COUNT ( * ) + COUNT ( * ) * ( 62 ) FROM tab1 AS cor0
----
183

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + ( - col2 ) col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3686
SELECT ALL * FROM tab0 WHERE 71 - 80 NOT IN ( 19 + + CAST( + 31 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3686
SELECT ALL * FROM tab0 WHERE 71 - 80 NOT IN ( 19 + + CAST ( + 31 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT + col2 + col2 FROM tab1 WHERE NOT + 42 >= + 58 * CAST( - 12 / col0 AS SIGNED ) + 44
----
118
136
192

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT + col2 + col2 FROM tab1 WHERE NOT + 42 >= + 58 * CAST ( - 12 / col0 AS INTEGER ) + 44
----
118
136
192

query I rowsort
SELECT + col1 FROM tab0 WHERE ( 60 + col1 ) BETWEEN - col0 AND ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3689
SELECT * FROM tab0 WHERE NOT + 85 BETWEEN + 6 * CAST( NULL AS SIGNED ) AND ( + col2 * ( 63 ) ) OR 48 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3689
SELECT * FROM tab0 WHERE NOT + 85 BETWEEN + 6 * CAST ( NULL AS INTEGER ) AND ( + col2 * ( 63 ) ) OR 48 IS NULL
----

query I rowsort
SELECT DISTINCT + 9 * + 67 FROM tab0
----
603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - - ( + 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 71 * 33 col1 FROM tab2 AS cor0
----
2366
2383
2401

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL AND NOT NULL NOT BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * ( + col1 + - ( col1 ) ) + 12 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 49 ) FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT MAX( DISTINCT 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3696
SELECT MAX ( DISTINCT 72 ) FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT - CAST( - col1 AS SIGNED ) * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3697
SELECT - CAST ( - col1 AS INTEGER ) * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( col2 ) * col1
----

query I rowsort
SELECT - + 55 * + col0 + - 5 + col0 FROM tab2 AS cor0
----
-2489
-3461
-4055

query I rowsort
SELECT ALL + + col0 * + 65 FROM tab2 WHERE NOT NULL = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 47 NOT IN ( 13 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT - 8 DIV - 36 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT - 8 / - 36 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * col1 * - col2 AS col2 FROM tab0
----
308367
4410
99

query I rowsort
SELECT ALL + col2 * 11 * + col2 FROM tab1
----
101376
38291
50864

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT + col2 DIV - - 79 * - - col1 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3705
SELECT + col2 / - - 79 * - - col1 col0 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 <> col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3707
SELECT DISTINCT CAST( - MAX( DISTINCT + col2 ) AS SIGNED ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT + 72 * - col0 AS col0 FROM tab1
----
-3672
-6120
-6552

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( ( col2 ) * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 94 * - 30 + + + ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 7 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 - + - col2 NOT IN ( + 71 * - 84 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL MIN( ALL + + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL MIN ( ALL + + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3715
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT ALL + - 34 + - - col0 AS col0 FROM tab0 AS cor0
----
-19
53
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 60 + - col0 col1 FROM tab2 AS cor0 WHERE + col0 * - - col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - col0 + col1 - + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-112
-133
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2
----
-6

query II rowsort
SELECT + 22 AS col2, col2 FROM tab2
----
22
23
22
40
22
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3721
SELECT + 38 AS col1, MAX( ALL 70 ) FROM tab2
----
38
70

skipif mysql # not compatible
query II rowsort label-3721
SELECT + 38 AS col1, MAX ( ALL 70 ) FROM tab2
----
38
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT + - 30 * + - MAX( + - col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT + - 30 * + - MAX ( + - col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT DISTINCT ( col2 ) DIV + 81 + 14 col0 FROM tab0
----
14
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3723
SELECT DISTINCT ( col2 ) / + 81 + 14 col0 FROM tab0
----
14
15

query I rowsort
SELECT ALL 26 + + col1 - - + ( col0 ) + + col1 FROM tab1
----
105
121
211

query I rowsort
SELECT + col0 * col1 AS col2 FROM tab1 WHERE - col2 BETWEEN + ( - + col1 ) AND ( + - 56 )
----

query I rowsort
SELECT ALL + 49 - - 37 AS col1 FROM tab2
----
86
86
86

query I rowsort
SELECT 93 + - - col0 AS col2 FROM tab2
----
139
157
168

query II rowsort
SELECT ALL + col0, + col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT col0 + - + col0 + - + col2 DIV - 8 FROM tab2 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3729
SELECT col0 + - + col0 + - + col2 / - 8 FROM tab2 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - ( - 62 ) AS col1 FROM tab2 AS cor0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3731
SELECT ALL COUNT( * ) DIV MIN( DISTINCT col2 ) - 93 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL OR CAST( + - 4 AS SIGNED ) IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL COUNT ( * ) / MIN ( DISTINCT col2 ) - 93 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL OR CAST ( + - 4 AS INTEGER ) IS NOT NULL
----
-93

query I rowsort
SELECT DISTINCT + - col1 * 41 - + 60 + - col1 FROM tab1 AS cor0
----
-2034
-270
-648

query I rowsort
SELECT + 89 * col1 FROM tab2 AS cor0
----
4539
5963
6853

query I rowsort
SELECT 42 AS col1 FROM tab1 WHERE 56 + col1 * + col0 BETWEEN + col2 AND 64
----

query I rowsort
SELECT 28 * + col0 AS col0 FROM tab1
----
1428
2380
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT 81 + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-3736
SELECT 81 + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
72

query I rowsort
SELECT ALL col2 + + 48 AS col2 FROM tab1 AS cor0 WHERE - ( col0 ) * - - col0 + - - col1 IN ( 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + COUNT( + ( - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + COUNT ( + ( - col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT - COUNT( DISTINCT - + col0 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT - COUNT ( DISTINCT - + col0 ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - MAX( - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3740
SELECT - MAX ( - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 <= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1, + col1, - 47 + + col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT 51 * + + COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT 51 * + + COUNT ( * ) FROM tab0
----
153

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NOT NULL >= col0 * 31
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * ( + col0 ) <= ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT col0 * + CAST( NULL AS SIGNED ) * + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT col0 * + CAST ( NULL AS INTEGER ) * + - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 17 * col2 * + 87 * + 82 FROM tab0
----
12006522
1212780
5700066

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3748
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 * - 4 col0, col1 * + + col1 FROM tab2
----
NULL
2601
NULL
4489
NULL
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3748
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 * - 4 col0, col1 * + + col1 FROM tab2
----
NULL
2601
NULL
4489
NULL
5929

query I rowsort
SELECT 65 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( - + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3750
SELECT ALL * FROM tab2 WHERE NOT + + CAST( NULL AS DECIMAL ) + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3750
SELECT ALL * FROM tab2 WHERE NOT + + CAST ( NULL AS REAL ) + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN + col1 AND col0
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + - ( - 91 ) AND ( + col1 )
----

query I rowsort
SELECT col0 * - 36 FROM tab2
----
-1656
-2304
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT - ( - + COUNT( * ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3754
SELECT DISTINCT - ( - + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - 80 BETWEEN NULL AND col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 57 IS NULL
----

query I rowsort
SELECT - + ( 72 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT - - 87 + + 55, + MIN( DISTINCT 27 ) AS col0 FROM tab1 AS cor0
----
142
27

skipif mysql # not compatible
query II rowsort label-3758
SELECT - - 87 + + 55, + MIN ( DISTINCT 27 ) AS col0 FROM tab1 AS cor0
----
142
27

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 * + col1 IS NULL
----

query I rowsort
SELECT ALL + col0 * + col0 * - - col1 AS col2 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3761
SELECT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) * + - ( col2 ) * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3761
SELECT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) * + - ( col2 ) * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 + col1 - - - 92 * col2 AS col1 FROM tab2 cor0 WHERE NOT NULL <= col1 * col0
----

query I rowsort
SELECT + 39 + + ( - 81 ) AS col2 FROM tab2 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3764
SELECT * FROM tab2 WHERE + 62 + + + col1 * + - CAST( NULL AS SIGNED ) - + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3764
SELECT * FROM tab2 WHERE + 62 + + + col1 * + - CAST ( NULL AS INTEGER ) - + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 FROM tab1 WHERE col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + COUNT( ALL 65 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3766
SELECT + COUNT ( ALL 65 ) FROM tab1
----
3

query I rowsort
SELECT ALL col0 - + 86 AS col0 FROM tab2 AS cor0
----
-11
-22
-40

query I rowsort
SELECT - - col1 - + + col1 * - col2 FROM tab0 AS cor0
----
100
231
3888

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 * 37 * + + col0 AS col0 FROM tab0
----
3589
44955
67599

query II rowsort
SELECT ( + col1 ), - col1 * col1 FROM tab0
----
1
-1
21
-441
81
-6561

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
36

query I rowsort
SELECT DISTINCT - col0 * 24 * + 25 AS col2 FROM tab2
----
-27600
-38400
-45000

query II rowsort
SELECT - 44, col2 FROM tab1 AS cor0
----
-44
59
-44
68
-44
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - 68 <= NULL
----

query I rowsort
SELECT ALL + + ( + 10 ) FROM tab1 cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 80 + + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 80 + + + col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 - + 60 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 24 BETWEEN + + col0 * + 70 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + MAX( - + col0 ) * + 67 col0 FROM tab1
----
-3417

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3781
SELECT + MAX ( - + col0 ) * + 67 col0 FROM tab1
----
-3417

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT ( NOT col1 IN ( - 19 * + 19 + - col1, col0 * + col0 + + col1, - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT - COUNT( ALL col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT - COUNT ( ALL col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col1 + + - col2 AS col1 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3785
SELECT DISTINCT + + COUNT( * ) DIV + 23 + - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - col2 * - 51 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + + COUNT ( * ) / + 23 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - col2 * - 51 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3786
SELECT ALL - CAST( - 25 AS SIGNED ) * - 37 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-925
10
-925
47
-925
99

skipif mysql # not compatible
query II rowsort label-3786
SELECT ALL - CAST ( - 25 AS INTEGER ) * - 37 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-925
10
-925
47
-925
99

query I rowsort
SELECT ALL - 96 * col2 AS col1 FROM tab0 AS cor0
----
-4512
-9504
-960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3788
SELECT ALL + ( - - 65 ) + + col1 AS col0, col0 + + CAST( 18 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
116
64
132
93
142
82

skipif mysql # not compatible
query II rowsort label-3788
SELECT ALL + ( - - 65 ) + + col1 AS col0, col0 + + CAST ( 18 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
116
64
132
93
142
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3789
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CAST( - - COUNT( col0 ) AS DECIMAL ) FROM tab2 AS cor0 WHERE - CAST( + 37 AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CAST ( - - COUNT ( col0 ) AS REAL ) FROM tab2 AS cor0 WHERE - CAST ( + 37 AS INTEGER ) = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL + col0 * - col0 + + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + col0 * - col0 + + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - + + col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT col0 * + col0 - col0 FROM tab1
----
2550
7140
8190

query II rowsort
SELECT + col0, ( 87 ) * - col0 AS col0 FROM tab2 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - 76 col0 FROM tab0
----
-123
-175
-86

query I rowsort
SELECT - col1 * col1 + + 29 AS col0 FROM tab0
----
-412
-6532
28

onlyif mysql # DIV for integer division: 
query II rowsort label-3796
SELECT ALL col0 DIV + col0 - - + col0 + - col1 col0, + col2 * - + 71 AS col0 FROM tab1
----
38
-6816
45
-4828
81
-4189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3796
SELECT ALL col0 / + col0 - - + col0 + - col1 col0, + col2 * - + 71 AS col0 FROM tab1
----
38
-6816
45
-4828
81
-4189

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - + SUM( col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3798
SELECT - + SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT - 41 * - 17 - SUM( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
896

skipif mysql # not compatible
query I rowsort label-3799
SELECT - 41 * - 17 - SUM ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
896

query I rowsort
SELECT ( - - 87 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT - CAST( + 37 AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

skipif mysql # not compatible
query I rowsort label-3801
SELECT - CAST ( + 37 AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT + + ( - col0 ) AS col2 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < - 74 * ( + 96 ) * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT + col0 * - col1 * col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT CAST( - + 22 AS SIGNED ) col0 FROM tab0 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3806
SELECT CAST ( - + 22 AS INTEGER ) col0 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT MIN( DISTINCT - + ( col0 ) ) col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3807
SELECT MIN ( DISTINCT - + ( col0 ) ) col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + 3 * 84 FROM tab1 AS cor0
----
252

query II rowsort
SELECT DISTINCT col0 + - col2 AS col2, + ( - col0 ) AS col0 FROM tab0
----
-2
-97
-32
-15
77
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT ( COUNT( ALL col0 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT ( COUNT ( ALL col0 ) ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT CAST( NULL AS SIGNED ) * - - col0 * - 6 + ( + col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT CAST ( NULL AS INTEGER ) * - - col0 * - 6 + ( + col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 * - 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col0 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3814
SELECT - + 92 * + + col2 + + col1 + - CAST( NULL AS DECIMAL ) AS col1, col0 * + 6 FROM tab2 AS cor0
----
NULL
276
NULL
384
NULL
450

skipif mysql # not compatible
query II rowsort label-3814
SELECT - + 92 * + + col2 + + col1 + - CAST ( NULL AS REAL ) AS col1, col0 * + 6 FROM tab2 AS cor0
----
NULL
276
NULL
384
NULL
450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 57 NOT BETWEEN - col1 AND col1 + + col1
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + col0, 67 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT - COUNT( * ) AS col1, + 13 AS col2 FROM tab0 AS cor0
----
-3
13

skipif mysql # not compatible
query II rowsort label-3817
SELECT - COUNT ( * ) AS col1, + 13 AS col2 FROM tab0 AS cor0
----
-3
13

query II rowsort
SELECT + col0 + - col2, ( + 82 ) * - col0 AS col1 FROM tab2
----
17
-6150
23
-3772
24
-5248

query I rowsort
SELECT - 77 + - - 70 * - + col2 FROM tab0
----
-3367
-7007
-777

onlyif mysql # DIV for integer division: 
query I rowsort label-3820
SELECT 78 + - - col0 DIV + - 27 FROM tab2 AS cor0
----
76
76
77

skipif mysql # not compatible
query I rowsort label-3820
SELECT 78 + - - col0 / + - 27 FROM tab2 AS cor0
----
76
76
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + - 73 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 + - col1 col2 FROM tab1 AS cor0
----
-33
0
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3823
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * - col0 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * - col0 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * 60 AS col2 FROM tab2
----
2760
3840
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 WHERE NULL > - + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3825
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 WHERE NULL > - + col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3826
SELECT + ( + ( + + COUNT( * ) ) ) DIV + - MIN( - col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3826
SELECT + ( + ( + + COUNT ( * ) ) ) / + - MIN ( - col0 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT - MIN( ALL - 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3827
SELECT - MIN ( ALL - 94 ) FROM tab1
----
94

query III rowsort
SELECT * FROM tab2 WHERE 16 = ( - col1 )
----

query I rowsort
SELECT DISTINCT col1 - - - col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + - 13 * 69 + + col0 AS col0 FROM tab2 AS cor0
----
-822
-833
-851

query I rowsort
SELECT ( - 3 ) * - col2 AS col2 FROM tab0
----
141
297
30

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL - 8 * - col0 AS col1 FROM tab0
----
120
696
776

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT - - COUNT( * ) FROM tab2 WHERE NOT - + col0 < - 38
----
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT - + col0 < - 38
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT + col2 / + CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT + col2 / + CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT + - 49 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST( NULL AS SIGNED ) * + 64 AND + + 17
----

skipif mysql # not compatible
query I rowsort label-3837
SELECT + - 49 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + CAST ( NULL AS INTEGER ) * + 64 AND + + 17
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3839
SELECT DISTINCT ( 35 ) DIV - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT ( 35 ) / - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + 11 * 59 - - ( + 55 ) IS NOT NULL
----

query II rowsort
SELECT + + col1 * - col1, + col0 FROM tab2 AS cor0
----
-2601
46
-4489
75
-5929
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col2 FROM tab1
----
144
147
159

query I rowsort
SELECT + ( 28 ) AS col1 FROM tab2
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 * + 41 * ( + col1 ) col1 FROM tab2
----
-112914
-148338
-170478

query I rowsort
SELECT - 52 * - col1 FROM tab1
----
2444
260
728

query I rowsort
SELECT ALL col1 * + 38 FROM tab0
----
3078
38
798

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3847
SELECT * FROM tab1 WHERE NULL IN ( + CAST( - col1 AS SIGNED ), 13 * col0, - col2 )
----

skipif mysql # not compatible
query III rowsort label-3847
SELECT * FROM tab1 WHERE NULL IN ( + CAST ( - col1 AS INTEGER ), 13 * col0, - col2 )
----

query I rowsort
SELECT + col1 + + - 12 AS col2 FROM tab1 cor0
----
-7
2
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL COUNT( + - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL COUNT ( + - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 * - 36 + - col0 FROM tab2 AS cor0
----
1790
2337
2708

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL COUNT( ALL col1 ) * + + 20 col0 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3852
SELECT ALL COUNT ( ALL col1 ) * + + 20 col0 FROM tab0 AS cor0
----
60

query II rowsort
SELECT - + col0 AS col1, col1 * - + 25 + + 4 FROM tab1 WHERE col2 IS NOT NULL
----
-51
-346
-85
-121
-91
-1171

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3854
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT - CAST( NULL AS SIGNED ) <= 9
----

skipif mysql # not compatible
query IIIIII rowsort label-3854
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT - CAST ( NULL AS INTEGER ) <= 9
----

query III rowsort
SELECT * FROM tab0 WHERE col2 <= - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT ALL 90, + COUNT( - - ( + col0 ) ) * COUNT( * ) col2 FROM tab2
----
90
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3856
SELECT ALL 90, + COUNT ( - - ( + col0 ) ) * COUNT ( * ) col2 FROM tab2
----
90
9

query I rowsort
SELECT ALL + col2 * + 54 AS col0 FROM tab0 cor0
----
2538
5346
540

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT - 84 - - 39 DIV - col2 AS col1 FROM tab1 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-3858
SELECT - 84 - - 39 / - col2 AS col1 FROM tab1 AS cor0
----
-84
-84
-84

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 88 * col0 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col1, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT DISTINCT - + CAST( + CAST( - + SUM( DISTINCT - - col0 ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT - + CAST ( + CAST ( - + SUM ( DISTINCT - - col0 ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL - 77 * + col2 * + + col1 FROM tab1
----
-103488
-22715
-246092

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - col2 > + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 39 / - col0 IS NOT NULL
----

query I rowsort
SELECT col2 * + 30 FROM tab2 cor0
----
1200
1740
690

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3866
SELECT - SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3868
SELECT - + col0, col1 DIV - 82 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-3868
SELECT - + col0, col1 / - 82 AS col2 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT ALL - COUNT( * ) + + + 58 AS col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL - COUNT ( * ) + + + 58 AS col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT ALL - - col2 * 83 * + - 9 FROM tab2 AS cor0
----
-17181
-29880
-43326

query I rowsort
SELECT - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT + - 64 DIV col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT + - 64 / col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( * ) + + 98 - COUNT( ALL col0 ) + + 53 AS col2 FROM tab0 cor0
----
151

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( * ) + + 98 - COUNT ( ALL col0 ) + + 53 AS col2 FROM tab0 cor0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT col0 * + + col1 + CAST( - 16 AS SIGNED ) FROM tab0 AS cor0
----
1199
1811
81

skipif mysql # not compatible
query I rowsort label-3874
SELECT col0 * + + col1 + CAST ( - 16 AS INTEGER ) FROM tab0 AS cor0
----
1199
1811
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 39 NOT BETWEEN - col1 * + - col0 / - + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 54 - - col0 col1 FROM tab1
----
119
144
192

query I rowsort
SELECT ALL 5 * - col1 + - + col2 AS col0 FROM tab0
----
-104
-115
-452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT 17 DIV CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT 17 / CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3879
SELECT ALL col1 DIV + 28 AS col0, col2 AS col2 FROM tab2
----
1
23
2
40
2
58

skipif mysql # not compatible
query II rowsort label-3879
SELECT ALL col1 / + 28 AS col0, col2 AS col2 FROM tab2
----
1
23
2
40
2
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3880
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS DECIMAL ) * - - 65 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3880
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS REAL ) * - - 65 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 79 + 37 * - + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 53 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT col2 - + + col0 + + col2 * - col0 * 9 FROM tab0 AS cor0
----
-6313
-7907
-86425

query II rowsort
SELECT ALL - col1 - ( + + 23 ) AS col0, 85 FROM tab2 AS cor0
----
-100
85
-74
85
-90
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 12 + + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 12 + + - col2 IS NOT NULL
----
0

query II rowsort
SELECT - 2 + - 76 + - ( - - col1 ) - col1, + col0 / - col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 52 BETWEEN ( NULL ) AND col0 / ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT COUNT( - ( 45 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3889
SELECT COUNT ( - ( 45 ) ) FROM tab0
----
3

query II rowsort
SELECT ALL 10, col0 FROM tab2
----
10
46
10
64
10
75

query II rowsort
SELECT ALL 65 AS col0, + 65 AS col2 FROM tab0
----
65
65
65
65
65
65

query II rowsort
SELECT col2, - 7 FROM tab1
----
59
-7
68
-7
96
-7

query II rowsort
SELECT - col1 AS col2, - col0 + - ( + - 73 ) AS col2 FROM tab0
----
-1
-24
-21
-14
-81
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, 70 AS col2 FROM tab2 AS cor0
----
-46
70
-64
70
-75
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col2 * 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT + 61 * - MAX( + 90 ) + ( - ( + - 73 ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-5417

skipif mysql # not compatible
query I rowsort label-3896
SELECT + 61 * - MAX ( + 90 ) + ( - ( + - 73 ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-5417

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 76 - + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
85

skipif mysql # not compatible
query I rowsort label-3897
SELECT 76 - + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3898
SELECT - CAST( NULL AS SIGNED ) * COUNT( + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( + col0 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 * - col1 + - - 33 FROM tab0 AS cor0
----
1248
130
1860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3900
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT - - SUM( + ( + col0 ) ) AS col0 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT - - SUM ( + ( + col0 ) ) AS col0 FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3902
SELECT + COUNT( - col0 ) DIV - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3902
SELECT + COUNT ( - col0 ) / - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col1 * - - 72 FROM tab1 cor0
----
1008
3384
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL - COUNT( * ) * - 91 + - MAX( col0 ) AS col2 FROM tab0
----
176

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - COUNT ( * ) * - 91 + - MAX ( col0 ) AS col2 FROM tab0
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT DISTINCT + col1 DIV - ( + - 54 ) + + col1 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + col1 / - ( + - 54 ) + + col1 AS col0 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT 1 * col1 * - CAST( NULL AS SIGNED ) * - ( 17 ) + + 75 + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT 1 * col1 * - CAST ( NULL AS INTEGER ) * - ( 17 ) + + 75 + col2 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95 col1, + 6 AS col0 FROM tab2
----
95
6
95
6
95
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3908
SELECT ALL col0 / + - CAST( NULL AS SIGNED ) * - col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3908
SELECT ALL col0 / + - CAST ( NULL AS INTEGER ) * - col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT CAST( NULL AS SIGNED ) + - col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3909
SELECT CAST ( NULL AS INTEGER ) + - col2 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT 65 + + + 92 + + - MIN( + col2 ) col2 FROM tab0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3910
SELECT 65 + + + 92 + + - MIN ( + col2 ) col2 FROM tab0
----
147

onlyif mysql # DIV for integer division: 
query II rowsort label-3911
SELECT ALL + col0 + col0 DIV - 21 AS col2, + 12 AS col2 FROM tab1
----
49
12
81
12
87
12

skipif mysql # not compatible
query II rowsort label-3911
SELECT ALL + col0 + col0 / - 21 AS col2, + 12 AS col2 FROM tab1
----
49
12
81
12
87
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL MIN( ALL col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL MIN ( ALL col0 ) AS col2 FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 WHERE - col2 + ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT 73 + - - COUNT( * ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-3914
SELECT 73 + - - COUNT ( * ) FROM tab1
----
76

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE ( + + col0 IS NOT NULL )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT COUNT( * ) - + 85 * 57 FROM tab2
----
-4842

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT COUNT ( * ) - + 85 * 57 FROM tab2
----
-4842

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - - col2 IS NOT NULL
----

query I rowsort
SELECT + 36 * - 77 + - 11 * - 55 FROM tab1 AS cor0
----
-2167
-2167
-2167

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
33
33
33

query I rowsort
SELECT + - col2 * col2 * col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT - 97 DIV - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 97 / - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT - 1 * + col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT - 1 * + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 41 > + - ( + ( + - 74 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - SUM( ALL + 64 ) col2 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3924
SELECT - SUM ( ALL + 64 ) col2 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT 49 * + col1 AS col2 FROM tab2
----
2499
3283
3773

query I rowsort
SELECT DISTINCT 16 FROM tab0, tab0 AS cor0
----
16

query I rowsort
SELECT DISTINCT + ( + 39 ) FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - COUNT( * ) + 91 col1 FROM tab2 cor0 WHERE NOT NULL <= + col0 * 88
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3928
SELECT - COUNT ( * ) + 91 col1 FROM tab2 cor0 WHERE NOT NULL <= + col0 * 88
----
91

query I rowsort
SELECT + col2 * + - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT + MIN( ALL 63 ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT + MIN ( ALL 63 ) AS col1 FROM tab1 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 61 IS NULL
----

query I rowsort
SELECT - + 26 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1150
-1600
-1875

query I rowsort
SELECT ALL col0 + - - col2 * 41 AS col2 FROM tab0 AS cor0
----
1942
4156
497

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT + 91 + - MAX( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
14

skipif mysql # not compatible
query I rowsort label-3937
SELECT + 91 + - MAX ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - 96 + - ( + - 43 ) * - + 71 + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-3149

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 96 + - ( + - 43 ) * - + 71 + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL MAX( DISTINCT - col1 ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL MAX ( DISTINCT - col1 ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3940
SELECT - col0 + - + col0 + 16 - + + col1 DIV + 13 col2 FROM tab0 AS cor0
----
-159
-178
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3940
SELECT - col0 + - + col0 + 16 - + + col1 / + 13 col2 FROM tab0 AS cor0
----
-159
-178
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3941
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
0

query I rowsort
SELECT + 94 FROM tab2 WHERE 85 IS NULL
----

query I rowsort
SELECT ALL + col2 * ( col2 ) + col1 AS col1 FROM tab1
----
3486
4671
9230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT ALL 24 + CAST( + col0 AS SIGNED ) FROM tab1
----
109
115
75

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL 24 + CAST ( + col0 AS INTEGER ) FROM tab1
----
109
115
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL + MIN( DISTINCT col0 ) + 68 + + + MIN( DISTINCT 80 ) AS col1 FROM tab0
----
163

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + MIN ( DISTINCT col0 ) + 68 + + + MIN ( DISTINCT 80 ) AS col1 FROM tab0
----
163

query I rowsort
SELECT 93 * - 8 AS col2 FROM tab1
----
-744
-744
-744

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT 55 * + 54, + COUNT( ALL + 45 ) AS col0 FROM tab0
----
2970
3

skipif mysql # not compatible
query II rowsort label-3947
SELECT 55 * + 54, + COUNT ( ALL + 45 ) AS col0 FROM tab0
----
2970
3

query I rowsort
SELECT + + ( 34 ) - + col2 AS col2 FROM tab1 AS cor0
----
-25
-34
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT + COUNT( * ) - - COUNT( * ) - + 70 AS col1 FROM tab1 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3949
SELECT + COUNT ( * ) - - COUNT ( * ) - + 70 AS col1 FROM tab1 cor0
----
-64

query II rowsort
SELECT ALL - 56 + - col0 AS col0, 69 FROM tab0 AS cor0
----
-143
69
-153
69
-71
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col2 + ( + - 54 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT COUNT( * ) + + - 77 AS col1 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT COUNT ( * ) + + - 77 AS col1 FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL ( SUM( + - 89 ) ) col1 FROM tab2
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3953
SELECT ALL ( SUM ( + - 89 ) ) col1 FROM tab2
----
-267

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 5 - - col0 + 93 * + 28 + + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
2819
2889
6632

query II rowsort
SELECT ALL + 19 AS col1, 60 AS col1 FROM tab1 AS cor0
----
19
60
19
60
19
60

query I rowsort
SELECT + - ( - + ( col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 34 + + - col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-102
-130
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT DISTINCT - col1 DIV + - 43 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT - col1 / + - 43 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - COUNT( DISTINCT - ( 2 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3959
SELECT - COUNT ( DISTINCT - ( 2 ) ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT - col1 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3960
SELECT - col1 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + col0 + + col1 IS NULL
----

query I rowsort
SELECT ALL + 83 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 9 col1 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT + col1 * - - 54 AS col2 FROM tab0 AS cor0
----
1134
4374
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 90 + 44
----

query I rowsort
SELECT DISTINCT + - ( + + col0 ) * 0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT + COUNT( ( + + col0 ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3968
SELECT + COUNT ( ( + + col0 ) ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 18 + 19 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 18 + 19 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT - MAX( - ( ( - col0 ) ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - MAX ( - ( ( - col0 ) ) ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col0 + + 1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT DISTINCT + col1 + + 7 + - - col2 AS col1 FROM tab2
----
124
132
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + COUNT( * ) * + 46 - - - 9 * - 69 AS col1 FROM tab2
----
759

skipif mysql # not compatible
query I rowsort label-3975
SELECT + COUNT ( * ) * + 46 - - - 9 * - 69 AS col1 FROM tab2
----
759

query I rowsort
SELECT ALL + col2 + + 32 AS col1 FROM tab1
----
100
128
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT DISTINCT - col1 + + 21 * col2 * - + CAST( + + 5 AS SIGNED ) + - 27 AS col0 FROM tab0
----
-10423
-1098
-5043

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - col1 + + 21 * col2 * - + CAST ( + + 5 AS INTEGER ) + - 27 AS col0 FROM tab0
----
-10423
-1098
-5043

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> - col0 / + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 94 + 35 + + 43 * - + col2 > col2 / - col2 * + - 44
----

query I rowsort
SELECT ALL 54 - 92 AS col0 FROM tab2
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT DISTINCT col1 * 50 DIV 47 FROM tab1 cor0
----
14
5
50

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT col1 * 50 / 47 FROM tab1 cor0
----
14
5
50

query II rowsort
SELECT DISTINCT - col1, ( + col1 ) FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col0 ) - + col1 IN ( + 41, 28 * 98, col0, + col1 * + + ( + col1 ) + col2, + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 60 col1 FROM tab0 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT ALL + - CAST( NULL AS SIGNED ) - + 4 FROM tab2 AS cor0 WHERE NOT + ( col2 ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + - CAST ( NULL AS INTEGER ) - + 4 FROM tab2 AS cor0 WHERE NOT + ( col2 ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 90 * ( + col1 ) - col1 + + 92 FROM tab0 AS cor0
----
181
1961
7301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT + col2 * - col2 * col1 - + ( - - CAST( - + CAST( - col2 AS SIGNED ) AS SIGNED ) ) * - 89 + col2 AS col1 FROM tab0 AS cor0
----
-1200
-174699
-891

skipif mysql # not compatible
query I rowsort label-3988
SELECT + col2 * - col2 * col1 - + ( - - CAST ( - + CAST ( - col2 AS INTEGER ) AS INTEGER ) ) * - 89 + col2 AS col1 FROM tab0 AS cor0
----
-1200
-174699
-891

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - 22 FROM tab2
----
51
-22
67
-22
77
-22

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * - 23 + - + 7 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT - - col2 * - + col0 AS col1 FROM tab2 WHERE NOT NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3992
SELECT - - col2 * - + col0 AS col1 FROM tab2 WHERE NOT NULL <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 * + 68 AS col1 FROM tab1
----
3196
340
952

onlyif mysql # DIV for integer division: 
query II rowsort label-3994
SELECT + - col1 DIV - 84 * - 65 AS col0, - col1 FROM tab0 cor0
----
0
-1
0
-21
0
-81

skipif mysql # not compatible
query II rowsort label-3994
SELECT + - col1 / - 84 * - 65 AS col0, - col1 FROM tab0 cor0
----
0
-1
0
-21
0
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT + - SUM( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3995
SELECT + - SUM ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL - 44 + - 27 FROM tab1 AS cor0
----
-71
-71
-71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + - COUNT( * ) + - + 65 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3998
SELECT + - COUNT ( * ) + - + 65 FROM tab1 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT - CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-3999
SELECT - CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT - ( - 72 ) * - COUNT( * ) + 17 * + - 75 col1 FROM tab2 AS cor0
----
-1491

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4000
SELECT - ( - 72 ) * - COUNT ( * ) + 17 * + - 75 col1 FROM tab2 AS cor0
----
-1491

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT - 3 * - col2 + + col1 DIV + + ( col0 ) FROM tab2 AS cor0
----
121
174
70

skipif mysql # not compatible
query I rowsort label-4001
SELECT - 3 * - col2 + + col1 / + + ( col0 ) FROM tab2 AS cor0
----
121
174
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4002
SELECT DISTINCT - col1 * + + 44 + col1 * col2 * - CAST( NULL AS SIGNED ) * + - col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT - col1 * + + 44 + col1 * col2 * - CAST ( NULL AS INTEGER ) * + - col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 67 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT - MAX( ALL + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * - 48 - + col1 * + 45 AS col1 FROM tab2
----
-4743
-6231
-7161

query I rowsort
SELECT ALL col0 * - + col0 - col1 FROM tab1
----
-2615
-7230
-8328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 56 col2 FROM tab2
----
-5
11
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ( - COUNT( * ) ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4008
SELECT ( - COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL - + COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - + COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col0 AS col1, col2 * - col1 AS col2 FROM tab1
----
-51
-1344
-85
-295
-91
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT DISTINCT + col2 * - + CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + col2 * - + CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 72 col2, col0, + col0 * + 63 + - col2 FROM tab2
----
9 values hashing to b2ad05798b0ca1595520f6516328774f

query I rowsort
SELECT - + 32 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - 79 * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
711

skipif mysql # not compatible
query I rowsort label-4014
SELECT - 79 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
711

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - 28
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col1, + 90 AS col0 FROM tab2 cor0
----
46
90
64
90
75
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4018
SELECT COUNT( * ) col2, 35 * - 6 AS col1 FROM tab2 AS cor0
----
3
-210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4018
SELECT COUNT ( * ) col2, 35 * - 6 AS col1 FROM tab2 AS cor0
----
3
-210

query I rowsort
SELECT DISTINCT - - col0 / + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 4 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT + 81 * - col1 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 55 * - 39 FROM tab2
----
-2145

query I rowsort
SELECT ALL col1 * + 32 FROM tab1
----
1504
160
448

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT 18 * - + col0 AS col2 FROM tab0
----
-1566
-1746
-270

query I rowsort
SELECT DISTINCT col1 * + col0 * + 21 AS col0 FROM tab0
----
2037
25515
38367

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT ALL 56 DIV col2 DIV + 65 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL 56 / col2 / + 65 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 + + 73 FROM tab1 AS cor0
----
124
158
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - col0 + 89, 19 + - + 43 col2 FROM tab0 AS cor0
----
-105
-24
-85
-24
59
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4029
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * - - 2 - 59 + 90 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * - - 2 - 59 + 90 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + 49 col0 FROM tab2
----
100
116
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT + 35 * - 66 * - 33 - COUNT( * ) AS col0 FROM tab1
----
76227

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT + 35 * - 66 * - 33 - COUNT ( * ) AS col0 FROM tab1
----
76227

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 52 <> - - 67
----
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 52 <> - - 67
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4033
SELECT DISTINCT - CAST( + + CAST( - 58 AS SIGNED ) AS SIGNED ) + col2 DIV + 55 AS col1 FROM tab0 AS cor0
----
58
59

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT - CAST ( + + CAST ( - 58 AS INTEGER ) AS INTEGER ) + col2 / + 55 AS col1 FROM tab0 AS cor0
----
58
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4034
SELECT * FROM tab1 cor0 WHERE ( ( NOT - col0 NOT BETWEEN + col0 AND col1 * + - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4034
SELECT * FROM tab1 cor0 WHERE ( ( NOT - col0 NOT BETWEEN + col0 AND col1 * + - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT + 72 + COUNT( * ) col1 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4035
SELECT DISTINCT + 72 + COUNT ( * ) col1 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - + COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN + 23 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4036
SELECT - + COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN + 23 AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4037
SELECT - ( CAST( NULL AS DECIMAL ) ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT - ( CAST ( NULL AS REAL ) ) + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - col0 * - 93 FROM tab1
----
4839
7964
8531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT + COUNT( ALL 74 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4040
SELECT DISTINCT + COUNT ( ALL 74 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT - + MAX( - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4041
SELECT - + MAX ( - + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT - + 34 DIV - - ( 94 ) DIV + col2 DIV - + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4042
SELECT - + 34 / - - ( 94 ) / + col2 / - + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT - ( col1 ) * - CAST( + 62 AS SIGNED ) col0 FROM tab1
----
2914
310
868

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4043
SELECT - ( col1 ) * - CAST ( + 62 AS INTEGER ) col0 FROM tab1
----
2914
310
868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT DISTINCT col2 * + CAST( + ( + col0 ) AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT col2 * + CAST ( + ( + col0 ) AS INTEGER ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 78 IS NOT NULL
----
5

query II rowsort
SELECT DISTINCT - + 35 AS col0, col1 + - col1 * + 1 FROM tab2 cor0
----
-35
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * - + ( + - ( col2 ) ) * - col2 + + + 55 >= + 23 + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT - ( 9 ) * - COUNT( + + col0 ) - COUNT( * ) AS col0, + SUM( - col0 ) FROM tab1 AS cor0
----
24
-227

skipif mysql # not compatible
query II rowsort label-4048
SELECT - ( 9 ) * - COUNT ( + + col0 ) - COUNT ( * ) AS col0, + SUM ( - col0 ) FROM tab1 AS cor0
----
24
-227

query II rowsort
SELECT DISTINCT + col0 AS col0, - 2 AS col0 FROM tab0 AS cor0
----
15
-2
87
-2
97
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 38 * col2 * - 63 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 / 54 * + - 59 NOT BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT + + 70 + + col2 FROM tab1 AS cor0
----
129
138
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT DISTINCT 3 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT 3 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4054
SELECT DISTINCT - col0 DIV col0 * - 44 * col2 FROM tab1 AS cor0
----
2596
2992
4224

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - col0 / col0 * - 44 * col2 FROM tab1 AS cor0
----
2596
2992
4224

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 * 8 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4056
SELECT DISTINCT col1 + + + 10 * + col2 - 95 AS col1, col0 DIV - + col1 FROM tab0
----
26
-4
456
0
896
-97

skipif mysql # not compatible
query II rowsort label-4056
SELECT DISTINCT col1 + + + 10 * + col2 - 95 AS col1, col0 / - + col1 FROM tab0
----
26
-4
456
0
896
-97

query I rowsort
SELECT DISTINCT 36 * + + 81 * - 11 AS col0 FROM tab2 WHERE NOT + 98 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 3 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - - col0 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, 13 col2 FROM tab1
----
59
13
68
13
96
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4061
SELECT COUNT( * ) DIV - - COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4061
SELECT COUNT ( * ) / - - COUNT ( * ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4062
SELECT ALL - ( COUNT( * ) ) DIV - + MIN( + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - ( COUNT ( * ) ) / - + MIN ( + col0 ) FROM tab1
----
0

query II rowsort
SELECT - + col2 * + - col0 * + + col2 * 58, + col1 + - ( - 58 ) AS col2 FROM tab2 AS cor0
----
1411372
109
14633400
125
5939200
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4064
SELECT DISTINCT CAST( col0 AS SIGNED ), - ( - col2 ) col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4064
SELECT DISTINCT CAST ( col0 AS INTEGER ), - ( - col2 ) col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT 41 + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-4065
SELECT 41 + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
50

query I rowsort
SELECT DISTINCT + 85 FROM tab0 WHERE - col0 BETWEEN + - 15 AND + - col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT 91 + - COUNT( * ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-4067
SELECT 91 + - COUNT ( * ) FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL - ( 17 ) - 91 * - COUNT( * ) AS col2 FROM tab2
----
256

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL - ( 17 ) - 91 * - COUNT ( * ) AS col2 FROM tab2
----
256

query I rowsort
SELECT - col2 + + 27 FROM tab2 cor0
----
-13
-31
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + 28 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 97 <= NULL
----

query I rowsort
SELECT DISTINCT + - ( - + 23 ) AS col0 FROM tab0 AS cor0
----
23

query I rowsort
SELECT col1 + + - 48 + + - col2 FROM tab1 AS cor0
----
-102
-130
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 17 <= - col1
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT + + ( + + col2 ) + - + col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + col1 - + col2 + - - col2 FROM tab1 AS cor0 WHERE NOT col1 IN ( + col2 )
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 61 IS NULL )
----

query II rowsort
SELECT + 38 AS col2, col2 * + 96 + col1 + col2 FROM tab0
----
38
4640
38
9604
38
991

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - MAX( - - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4079
SELECT - MAX ( - - col1 ) FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 88 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 61 FROM tab2 WHERE NOT col0 IS NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT - COUNT( * ) + - SUM( col2 ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-4082
SELECT - COUNT ( * ) + - SUM ( col2 ) FROM tab0
----
-159

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 ) + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab1 WHERE + 82 IS NOT NULL
----
425
4277
714

query I rowsort
SELECT DISTINCT col1 * 66 + + ( col2 ) AS col0 FROM tab2
----
3389
4480
5122

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab0 WHERE + 36 BETWEEN ( col1 * + 41 ) AND ( - col1 + 92 * - 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * - 35 col1 FROM tab0
----
-2788
-725
64

query I rowsort
SELECT 63 - 15 FROM tab2
----
48
48
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4089
SELECT COUNT( CAST( 33 AS DECIMAL ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4089
SELECT COUNT ( CAST ( 33 AS REAL ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT SUM( DISTINCT + 78 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-4090
SELECT SUM ( DISTINCT + 78 ) FROM tab0
----
78

query I rowsort
SELECT ALL ( + 56 ) * - col1 AS col0 FROM tab1
----
-2632
-280
-784

query III rowsort
SELECT ALL * FROM tab1 WHERE + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT - 8 + + 8 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT - 8 + + 8 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - 5 + col0 FROM tab2 WHERE NOT + 13 NOT BETWEEN + col2 * col1 AND - col0
----

query I rowsort
SELECT ALL - 18 * 77 AS col2 FROM tab1
----
-1386
-1386
-1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT ALL CAST( 27 AS SIGNED ) * col0 AS col0 FROM tab1
----
1377
2295
2457

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL CAST ( 27 AS INTEGER ) * col0 AS col0 FROM tab1
----
1377
2295
2457

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 / col1 ) IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - 83 > - col1
----
10
47
99

query I rowsort
SELECT ALL col0 * + col0 + - col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4101
SELECT DISTINCT - 59 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT - 59 * CAST ( NULL AS REAL ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col2 FROM tab2 WHERE NOT col0 IS NULL
----
82

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( col1 ) > 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * col1 col1 FROM tab0 WHERE ( + col0 ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT + COUNT( * ) * + 40 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-4105
SELECT + COUNT ( * ) * + 40 FROM tab1
----
120

query I rowsort
SELECT DISTINCT 45 - col1 AS col1 FROM tab2
----
-22
-32
-6

query I rowsort
SELECT + col0 - - 49 AS col2 FROM tab1
----
100
134
140

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 56 )
----

query I rowsort
SELECT ALL - 0 + 24 FROM tab0 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4110
SELECT ALL col0 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL col0 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT 65 col1 FROM tab2 WHERE + CAST( col0 AS SIGNED ) NOT IN ( col0 + + col1 * col0 )
----
65
65
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4111
SELECT 65 col1 FROM tab2 WHERE + CAST ( col0 AS INTEGER ) NOT IN ( col0 + + col1 * col0 )
----
65
65
65

query I rowsort
SELECT col0 * - col2 + 47 FROM tab0 WHERE NULL IS NULL
----
-658
-823
-9556

query I rowsort
SELECT ALL + ( col2 ) - + col0 * ( 46 ) AS col1 FROM tab2
----
-2093
-2904
-3392

query I rowsort
SELECT ALL + 91 AS col1 FROM tab1 AS cor0 WHERE - col1 / + col0 IS NULL
----

query I rowsort
SELECT + col1 - 17 AS col2 FROM tab1 cor0
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT 47 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4116
SELECT 47 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-141

query I rowsort
SELECT ALL + 54 * + col2 AS col0 FROM tab2 AS cor0
----
1242
2160
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT COUNT( * ) * 96 AS col2 FROM tab2 AS cor0 WHERE NOT ( + ( 85 ) ) NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4118
SELECT COUNT ( * ) * 96 AS col2 FROM tab2 AS cor0 WHERE NOT ( + ( 85 ) ) NOT BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT + - col2 * 20 AS col2 FROM tab2 AS cor0
----
-1160
-460
-800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT ALL - COUNT( DISTINCT col0 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL - COUNT ( DISTINCT col0 ) / COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT MIN( 82 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 + 22 BETWEEN col2 AND + ( - col2 ) / 69
----
82

skipif mysql # not compatible
query I rowsort label-4121
SELECT MIN ( 82 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 + 22 BETWEEN col2 AND + ( - col2 ) / 69
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4122
SELECT DISTINCT CAST( - col2 AS SIGNED ) DIV col0 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / col0 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4123
SELECT DISTINCT - ( + ( - 4 ) ) DIV COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT - ( + ( - 4 ) ) / COUNT ( * ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT COUNT( * ) * + 73 AS col2 FROM tab2 WHERE NOT ( 93 ) IS NULL
----
219

skipif mysql # not compatible
query I rowsort label-4124
SELECT COUNT ( * ) * + 73 AS col2 FROM tab2 WHERE NOT ( 93 ) IS NULL
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT DISTINCT + col1 + + col0 FROM tab0 WHERE NOT NULL <> ( - col2 + CAST( 53 + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + col1 + + col0 FROM tab0 WHERE NOT NULL <> ( - col2 + CAST ( 53 + col1 AS INTEGER ) )
----

query I rowsort
SELECT 87 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 < ( - 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT COUNT( * ) FROM tab1 WHERE NOT + col2 / - 71 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4131
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col2 / - 71 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab1 WHERE col1 * - 92 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab1 WHERE col1 * - 92 IS NULL
----
0

query I rowsort
SELECT - 53 * 92 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09e0ee4c7134ad06ceee4a38a1c4b7e1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT - + col0 DIV col2 - - col0 * - ( col0 ) FROM tab0 AS cor0
----
-225
-7577
-9409

skipif mysql # not compatible
query I rowsort label-4135
SELECT - + col0 / col2 - - col0 * - ( col0 ) FROM tab0 AS cor0
----
-225
-7577
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT CAST( NULL AS SIGNED ) * + - ( + 68 ) * - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT CAST ( NULL AS INTEGER ) * + - ( + 68 ) * - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4137
SELECT - COUNT( * ) + - + 63 * - + ( CAST( NULL AS SIGNED ) ) + + 45 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT - COUNT ( * ) + - + 63 * - + ( CAST ( NULL AS INTEGER ) ) + + 45 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT + - col1 + - - 84 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT + - col1 + - - 84 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 33 * + col1 + 28 + col2 * 81 FROM tab1 AS cor0
----
4972
7087
8266

query I rowsort
SELECT col0 * col2 AS col1 FROM tab1 AS cor0 WHERE col1 * + + col2 * + 27 + + 74 NOT IN ( - col2 )
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT col2 + + col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-4141
SELECT col2 + + col0 / + col1 AS col1 FROM tab0 AS cor0
----
14
196
47

query I rowsort
SELECT ALL + col1 + - col1 + col2 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT - - col0 FROM tab1 WHERE - - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL - MAX( + col1 ) * - SUM( ALL + + ( 68 ) ) + - 12 * + SUM( - col2 * - col0 ) FROM tab0
----
-117612

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL - MAX ( + col1 ) * - SUM ( ALL + + ( 68 ) ) + - 12 * + SUM ( - col2 * - col0 ) FROM tab0
----
-117612

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT CAST( 80 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE ( NULL ) = 56
----

skipif mysql # not compatible
query I rowsort label-4147
SELECT CAST ( 80 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE ( NULL ) = 56
----

query I rowsort
SELECT + - col2 * - 92 AS col0 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT ALL + col2 * + col0 - col2 AS col0 FROM tab1 AS cor0
----
4800
4956
6120

query II rowsort
SELECT DISTINCT - col1 * col1 AS col0, col1 * + col2 FROM tab0 cor0
----
-1
99
-441
210
-6561
3807

query I rowsort
SELECT + - col2 - col0 - col2 AS col2 FROM tab0 AS cor0
----
-107
-109
-295

query III rowsort
SELECT * FROM tab2 WHERE - 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL - COUNT( * ) + + 67 * 82 FROM tab0
----
5491

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL - COUNT ( * ) + + 67 * 82 FROM tab0
----
5491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL + 76 * col1 - - col0 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + 76 * col1 - - col0 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE - col1 = - col1
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4157
SELECT DISTINCT + COUNT( * ) DIV 63 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + COUNT ( * ) / 63 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 4 NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4159
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4159
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT + col2, 64 AS col1 FROM tab1 AS cor0
----
59
64
68
64
96
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT ALL + ( + col1 ) * CAST( NULL AS SIGNED ) * col0 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-4161
SELECT ALL + ( + col1 ) * CAST ( NULL AS INTEGER ) * col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT + - ( + col0 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = + col2
----

skipif mysql # not compatible
query I rowsort label-4162
SELECT + - ( + col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = + col2
----

query II rowsort
SELECT col0 AS col2, - 54 * - col2 FROM tab0 AS cor0
----
15
2538
87
540
97
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT DISTINCT + ( COUNT( ALL - col2 ) ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT + ( COUNT ( ALL - col2 ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab0 AS cor0 WHERE NOT col0 + - 92 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 30 * - + 88 + + 39 FROM tab1 AS cor0
----
-2601

query I rowsort
SELECT + 6 FROM tab1 AS cor0 WHERE NOT 52 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 + 38 col1 FROM tab2 AS cor0 WHERE NOT ( + col1 - - 62 ) BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4169
SELECT ALL - CAST( NULL AS DECIMAL ) * + - 2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - CAST ( NULL AS REAL ) * + - 2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, + col0 * + col2 col0 FROM tab1
----
14
4896
47
6188
5
5015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4171
SELECT ALL - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-4171
SELECT ALL - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT ALL + ( + - 37 ) * - col1 AS col1 FROM tab0
----
2997
37
777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 96 col0 FROM tab2
----
4416
6144
7200

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col2 + - - 19 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * col2 col1 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT - col0 * col1 * + 56 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT 82 * - COUNT( * ) + - 65 FROM tab2
----
-311

skipif mysql # not compatible
query I rowsort label-4179
SELECT 82 * - COUNT ( * ) + - 65 FROM tab2
----
-311

query I rowsort
SELECT DISTINCT - col1 * - ( + - col0 ) AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - + 29 + col0 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 13 + + col2 FROM tab2
----
36
53
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4184
SELECT DISTINCT 41 DIV SUM( 14 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT 41 / SUM ( 14 ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 50 IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL SUM( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL SUM ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT col1 * - col0 + 93 FROM tab2 cor0
----
-2253
-4835
-4932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT - 94 * CAST( + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4188
SELECT - 94 * CAST ( + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 33 + - col0 + + - col0 + - col0 + + - 59 AS col0 FROM tab1
----
-179
-281
-299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, - col0 col1 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2 WHERE col2 + + + 19 NOT BETWEEN NULL AND NULL OR + col1 / col1 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2 WHERE col2 + + + 19 NOT BETWEEN NULL AND NULL OR + col1 / col1 + - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 + - + ( + - col2 ) FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4193
SELECT ALL * FROM tab2 WHERE ( 28 - - + CAST( NULL AS SIGNED ) + CAST( + - col1 AS SIGNED ) + + col2 ) = + 14 * col0 - col1
----

skipif mysql # not compatible
query III rowsort label-4193
SELECT ALL * FROM tab2 WHERE ( 28 - - + CAST ( NULL AS INTEGER ) + CAST ( + - col1 AS INTEGER ) + + col2 ) = + 14 * col0 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT - 82 + col1 * - + CAST( - 11 AS SIGNED ) FROM tab2
----
479
655
765

skipif mysql # not compatible
query I rowsort label-4194
SELECT - 82 + col1 * - + CAST ( - 11 AS INTEGER ) FROM tab2
----
479
655
765

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + + 15 NOT IN ( - 83 * 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + COUNT( * ) + + 22 AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-4196
SELECT + COUNT ( * ) + + 22 AS col0 FROM tab1
----
25

query I rowsort
SELECT ALL + 38 - + col1 FROM tab1
----
-9
24
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 85 < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4199
SELECT ( + - CAST( 28 AS SIGNED ) ), col1 FROM tab1 AS cor0
----
-28
14
-28
47
-28
5

skipif mysql # not compatible
query II rowsort label-4199
SELECT ( + - CAST ( 28 AS INTEGER ) ), col1 FROM tab1 AS cor0
----
-28
14
-28
47
-28
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4200
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 + + CAST( col1 AS SIGNED ) AND ( col1 + + 22 + col2 * - col0 )
----

skipif mysql # not compatible
query III rowsort label-4200
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 + + CAST ( col1 AS INTEGER ) AND ( col1 + + 22 + col2 * - col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 21 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT DISTINCT 36 * - COUNT( - 47 ) AS col2 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT 36 * - COUNT ( - 47 ) AS col2 FROM tab0
----
-108

query I rowsort
SELECT ALL 68 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 - 33 * - 27 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - - 62, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - + SUM( ALL - 48 ) AS col1 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4205
SELECT - + SUM ( ALL - 48 ) AS col1 FROM tab1 AS cor0
----
144

query II rowsort
SELECT + + col1 * - 98 AS col2, + col0 AS col1 FROM tab1 AS cor0
----
-1372
51
-4606
91
-490
85

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT 49 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT 27 * COUNT( * ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4208
SELECT DISTINCT 27 * COUNT ( * ) col1 FROM tab0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 / ( 7 ) NOT BETWEEN - col2 + col1 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT DISTINCT MIN( + + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT MIN ( + + col1 ) FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * col2 col0 FROM tab0
----
-1287
-130
-611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL + - 18 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL + - 18 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT + SUM( ( - + 5 ) ), 45 AS col1 FROM tab1 AS cor0
----
-15
45

skipif mysql # not compatible
query II rowsort label-4213
SELECT + SUM ( ( - + 5 ) ), 45 AS col1 FROM tab1 AS cor0
----
-15
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <> - + col1 * 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 29 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
29

query I rowsort
SELECT - 47 + - - 41 AS col2 FROM tab0
----
-6
-6
-6

query II rowsort
SELECT DISTINCT + col0, col2 * - col0 FROM tab2 AS cor0
----
46
-1058
64
-2560
75
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT - col1 + + col2 DIV - col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4218
SELECT - col1 + + col2 / - col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + + col2 + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( ( + 51 ) + - 90 * col0, - col0 * - - 32 * - col0 * col1 / col2 * - 32 + - 22 )
----

query II rowsort
SELECT DISTINCT - - 32 * col0 * - col2 + + col0 + + col0 * - 43 AS col1, + col0 AS col0 FROM tab0 AS cor0
----
-23190
15
-311370
97
-31494
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ( + MIN( ALL + + col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4222
SELECT ( + MIN ( ALL + + col0 ) ) FROM tab0
----
15

query I rowsort
SELECT ALL col2 * - + 12 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-1152
-708
-816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4224
SELECT ALL MAX( DISTINCT + col0 ) * + 14 - - 85 DIV - + 16 FROM tab0
----
1353

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL MAX ( DISTINCT + col0 ) * + 14 - - 85 / - + 16 FROM tab0
----
1353

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - + 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL CAST( NULL AS SIGNED ) - col0 + col1 + + + col2 + - 71 + + col2 + 14 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL CAST ( NULL AS INTEGER ) - col0 + col1 + + + col2 + - 71 + + col2 + 14 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col2 NOT IN ( + col2, col1 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + col0 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - - 78
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT - - 4 AS col1, - COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
4
9

skipif mysql # not compatible
query II rowsort label-4230
SELECT - - 4 AS col1, - COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
4
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col1 * + + col2 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL COUNT( - + 12 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL COUNT ( - + 12 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab2 cor0
----
-71

query I rowsort
SELECT DISTINCT + 56 + + + col0 FROM tab0 AS cor0 WHERE NOT col1 * - col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 18 * + 88 AS col1 FROM tab1
----
1584
1584
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT MIN( ALL + - 83 ) AS col1 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-4236
SELECT MIN ( ALL + - 83 ) AS col1 FROM tab2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT - ( - SUM( ALL - col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT - ( - SUM ( ALL - col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT 68 + col2 * + 94 FROM tab0 AS cor0 WHERE NOT - col0 * + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT - - MAX( + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT - - MAX ( + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4240
SELECT ALL + + col0 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4240
SELECT ALL + + col0 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col2 / - col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT + - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 * - - 55 FROM tab2 AS cor0
----
-1265
-2200
-3190

query I rowsort
SELECT + col2 * - - col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT - CAST( NULL AS SIGNED ) * + - col2 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT - CAST ( NULL AS INTEGER ) * + - col2 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - - ( + - col1 ) * - - 87 + 24 + - 30 <= - + 42
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + ( - - col0 ) ) IN ( ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - + 29 AS col1 FROM tab2
----
1479
1943
2233

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT - 24 DIV - - col1 FROM tab0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-4249
SELECT - 24 / - - col1 FROM tab0
----
-1
-24
0

query I rowsort
SELECT 3 * col0 AS col0 FROM tab2
----
138
192
225

query II rowsort
SELECT DISTINCT col0 * - col1 AS col0, + 6 AS col0 FROM tab0
----
-1215
6
-1827
6
-97
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL - CAST( NULL AS SIGNED ) * SUM( ALL + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - CAST ( NULL AS INTEGER ) * SUM ( ALL + col0 ) FROM tab2
----
NULL

query I rowsort
SELECT - col2 * + - col1 AS col2 FROM tab2 WHERE NOT - 69 + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - - col2 IN ( col2 + + 53 + col1 * - 87 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT ALL + col2 DIV - + 62 + + - col0 FROM tab0 AS cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + col2 / - + 62 + + - col0 FROM tab0 AS cor0
----
-15
-87
-98

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + + col1 * - col1 + + 14 + - col0 IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 + + col2 * col2 + - 87 FROM tab1 cor0
----
3419
6746
9325

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col0 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT - + col2 * + + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - 63 - - 6 * + 74 * - 84 FROM tab2 AS cor0
----
-37359
-37359
-37359

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT - 66 - + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 66 - + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT - 75 - + col1 - + 12 FROM tab2 AS cor0
----
-138
-154
-164

query II rowsort
SELECT - - col1, + col1 AS col1 FROM tab0 WHERE 69 IS NOT NULL
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 60 * - 99 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 60 * - 99 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT DISTINCT 89 + - + 10 + 13 DIV + 71 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT 89 + - + 10 + 13 / + 71 FROM tab2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT CAST( col0 AS SIGNED ) * - - col1 + + col0 FROM tab0
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-4267
SELECT CAST ( col0 AS INTEGER ) * - - col1 + + col0 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL COUNT( - col0 ) - - 81 AS col2 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL COUNT ( - col0 ) - - 81 AS col2 FROM tab1
----
84

query I rowsort
SELECT DISTINCT - 53 * + - col0 AS col1 FROM tab2 AS cor0
----
2438
3392
3975

query I rowsort
SELECT DISTINCT 26 * col2 AS col0 FROM tab1 AS cor0
----
1534
1768
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT - - MAX( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4271
SELECT - - MAX ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59

query II rowsort
SELECT + 82 AS col2, col2 FROM tab0 AS cor0
----
82
10
82
47
82
99

query II rowsort
SELECT + 68 AS col2, + 98 AS col2 FROM tab1 AS cor0
----
68
98
68
98
68
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT 87 AS col0, - MIN( DISTINCT + 17 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
87
-17

skipif mysql # not compatible
query II rowsort label-4274
SELECT 87 AS col0, - MIN ( DISTINCT + 17 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
87
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) col0, 74 FROM tab2
----
23
74
40
74
58
74

query III rowsort
SELECT ALL * FROM tab0 WHERE - 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT - - CAST( - col0 AS SIGNED ) * + col0 FROM tab0 AS cor0 WHERE NOT NULL <> + col0
----

skipif mysql # not compatible
query I rowsort label-4277
SELECT - - CAST ( - col0 AS INTEGER ) * + col0 FROM tab0 AS cor0 WHERE NOT NULL <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 col1 FROM tab2 AS cor0
----
67

query I rowsort
SELECT - col2 + - 90 * col0 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ( col0 ) AS col2, + 55 * - col1 AS col1 FROM tab0 AS cor0
----
15
-4455
87
-1155
97
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4281
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 76 / - col2 + ( + CAST( + 63 AS SIGNED ) ) - - col2
----

skipif mysql # not compatible
query III rowsort label-4281
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 76 / - col2 + ( + CAST ( + 63 AS INTEGER ) ) - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - COUNT( * ) + + 7 * + 24 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-4282
SELECT - COUNT ( * ) + + 7 * + 24 FROM tab0 AS cor0
----
165

query I rowsort
SELECT DISTINCT 2 + - col0 FROM tab0
----
-13
-85
-95

query I rowsort
SELECT + 55 * + col1 FROM tab1 WHERE NOT + col2 IS NULL
----
2585
275
770

query II rowsort
SELECT ALL col2, col1 * - col1 + - - col2 FROM tab1
----
59
34
68
-2141
96
-100

query I rowsort
SELECT col1 * + + ( - + col0 ) AS col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - ( 91 ) FROM tab2
----
-91

query II rowsort
SELECT - 10 AS col0, col1 AS col0 FROM tab0 AS cor0
----
-10
1
-10
21
-10
81

query I rowsort
SELECT DISTINCT + col0 + + - col0 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * + col2 col0 FROM tab2 WHERE ( - 29 ) = 31 / col0
----

query I rowsort
SELECT - - ( col1 ) + + - col2 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT col1 AS col0, + 6 * - + col1 FROM tab2 AS cor0 WHERE + col1 > + - col1
----
51
-306
67
-402
77
-462

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 70 * + + 9 FROM tab1 AS cor0
----
-32130
-53550
-57330

query II rowsort
SELECT + 78 + + col0 AS col2, - col1 - col2 + + - ( - - col1 ) AS col0 FROM tab0 AS cor0
----
165
-52
175
-101
93
-209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4296
SELECT DISTINCT col1 - + + CAST( NULL AS SIGNED ) AS col1, + 47 FROM tab2 AS cor0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-4296
SELECT DISTINCT col1 - + + CAST ( NULL AS INTEGER ) AS col1, + 47 FROM tab2 AS cor0
----
NULL
47

query I rowsort
SELECT ALL - 42 * + - col2 + col2 + col2 * - + col0 FROM tab1 AS cor0
----
-2478
-3264
-768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT - CAST( + 78 AS SIGNED ) * - col1 col2 FROM tab1 AS cor0
----
1092
3666
390

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4298
SELECT - CAST ( + 78 AS INTEGER ) * - col1 col2 FROM tab1 AS cor0
----
1092
3666
390

query I rowsort
SELECT - + col1 * - - col0 AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 99 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND col1 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4302
SELECT DISTINCT + COUNT( ALL + CAST( + 16 AS DECIMAL ) ) + - 83 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + COUNT ( ALL + CAST ( + 16 AS REAL ) ) + - 83 FROM tab2 AS cor0
----
-80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + - 6 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - + 59 + - + col1 + + + col2 * - 93 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - + 59 + - + col1 + + + col2 * - 93 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + ( col1 ) FROM tab2 WHERE + 78 / + + 40 - + ( col1 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT - MAX( DISTINCT + 65 ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT - MAX ( DISTINCT + 65 ) FROM tab2
----
-65

query II rowsort
SELECT ALL col2, 73 FROM tab1
----
59
73
68
73
96
73

query I rowsort
SELECT ALL - - 94 AS col2 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT + 60 * + - col0 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - MAX( + 39 ) AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-4310
SELECT - MAX ( + 39 ) AS col0 FROM tab1
----
-39

query I rowsort
SELECT DISTINCT 98 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 45 * - - col1 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT 48 DIV + - 89 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT 48 / + - 89 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT DISTINCT + + 40 DIV 73 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT + + 40 / 73 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT - COUNT( + col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4315
SELECT - COUNT ( + col2 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT 49 * + ( - COUNT( * ) ) AS col0 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-4316
SELECT 49 * + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-147

query I rowsort
SELECT col0 * - + 93 FROM tab2
----
-4278
-5952
-6975

query I rowsort
SELECT + 55 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 5 AND - col2 * col2
----

query I rowsort
SELECT DISTINCT + col1 + - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT - SUM( - 12 ) AS col1 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-4320
SELECT - SUM ( - 12 ) AS col1 FROM tab0
----
36

query I rowsort
SELECT col0 * ( - - 8 ) FROM tab1
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT COUNT( * ) - + + 88 AS col2 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT COUNT ( * ) - + + 88 AS col2 FROM tab0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - COUNT( * ) - - 28 col2 FROM tab1 cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4323
SELECT - COUNT ( * ) - - 28 col2 FROM tab1 cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 - col1 * + col0 col1, col2 AS col1 FROM tab0 AS cor0
----
-1200
47
-1740
10
0
99

query I rowsort
SELECT DISTINCT + col1 * - + 98 + 36 - col1 FROM tab1 cor0
----
-1350
-459
-4617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT + + CAST( NULL AS SIGNED ) + + 65 - - col2 * + col0 FROM tab1 AS cor0 WHERE col2 + - - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT + + CAST ( NULL AS INTEGER ) + + 65 - - col2 * + col0 FROM tab1 AS cor0 WHERE col2 + - - col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - + - col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT - col1 DIV - + col2 - - - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4328
SELECT - col1 / - + col2 - - - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - 40 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - 81 * 77 * - 97 FROM tab1 AS cor0
----
604989

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * - 82 FROM tab1
----
738

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * - 82 FROM tab1
----
738

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4333
SELECT - COUNT( * ) DIV COUNT( * ) * - - 52 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-4333
SELECT - COUNT ( * ) / COUNT ( * ) * - - 52 FROM tab0
----
-52

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 14 + + + 50
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, 64 col2 FROM tab0
----
-10
64
-47
64
-99
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT + COUNT( ALL - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT + COUNT ( ALL - col2 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4340
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2, + 64 + + + CAST( NULL AS SIGNED ), + 94, + + 31 * + col2 + + 60 * - - 11 * - + col2 )
----

skipif mysql # not compatible
query III rowsort label-4340
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2, + 64 + + + CAST ( NULL AS INTEGER ), + 94, + + 31 * + col2 + + 60 * - - 11 * - + col2 )
----

query II rowsort
SELECT - col0 + - 76 * 24 AS col0, + 33 * + + col0 FROM tab2 AS cor0
----
-1870
1518
-1888
2112
-1899
2475

query II rowsort
SELECT 62 + - col0 + - 43 AS col2, col1 AS col2 FROM tab1 cor0
----
-32
14
-66
5
-72
47

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab2 AS cor0 WHERE - col2 + col0 IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT DISTINCT col0 DIV + ( + col2 ) FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT col0 / + ( + col2 ) FROM tab2
----
1
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 * - + col2 <= col2
----

query II rowsort
SELECT col2, - 0 * - col1 * col2 AS col0 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT col2 * 2 * col0 AS col0 FROM tab2
----
2116
5120
8700

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT SUM( + - 51 ) FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4348
SELECT SUM ( + - 51 ) FROM tab2 cor0
----
-153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 57 * 90 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL - MAX( - CAST( col1 AS SIGNED ) ) + + - COUNT( * ) AS col1 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - MAX ( - CAST ( col1 AS INTEGER ) ) + + - COUNT ( * ) AS col1 FROM tab1 cor0
----
2

query I rowsort
SELECT ALL + col0 + - + col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ( - SUM( DISTINCT + col2 ) ) + + - 6 AS col2 FROM tab2
----
-127

skipif mysql # not compatible
query I rowsort label-4352
SELECT ( - SUM ( DISTINCT + col2 ) ) + + - 6 AS col2 FROM tab2
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-4353
SELECT + 47 + + COUNT( * ) AS col1, + MAX( col0 ) AS col2 FROM tab1
----
50
91

skipif mysql # not compatible
query II rowsort label-4353
SELECT + 47 + + COUNT ( * ) AS col1, + MAX ( col0 ) AS col2 FROM tab1
----
50
91

query I rowsort
SELECT - 83 AS col0 FROM tab0 AS cor0 WHERE - 81 * - + ( + 87 ) * + - col1 + - 41 - - - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4355
SELECT DISTINCT ( + 95 ), COUNT( * ) DIV - 38 AS col0 FROM tab1 cor0
----
95
0

skipif mysql # not compatible
query II rowsort label-4355
SELECT DISTINCT ( + 95 ), COUNT ( * ) / - 38 AS col0 FROM tab1 cor0
----
95
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4356
SELECT COUNT( * ) AS col0, - 80 FROM tab1
----
3
-80

skipif mysql # not compatible
query II rowsort label-4356
SELECT COUNT ( * ) AS col0, - 80 FROM tab1
----
3
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4357
SELECT + 14 DIV - - COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4357
SELECT + 14 / - - COUNT ( * ) AS col2 FROM tab1
----
4

query II rowsort
SELECT ALL col2, - col0 + + 3 FROM tab0
----
10
-84
47
-12
99
-94

query I rowsort
SELECT DISTINCT 33 * col1 AS col0 FROM tab1
----
1551
165
462

query II rowsort
SELECT 96 + - 35, col0 * + col0 FROM tab1 WHERE NOT - col2 * + - 18 NOT BETWEEN - 49 AND - + 25 + - 88
----

query II rowsort
SELECT ALL + + col0 AS col0, 42 * 62 AS col1 FROM tab2 AS cor0
----
46
2604
64
2604
75
2604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 53 AS col2, col1 col2 FROM tab2 AS cor0
----
-53
51
-53
67
-53
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col2 col2 FROM tab0 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT DISTINCT + col2 * - - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4364
SELECT DISTINCT + col2 * - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + ( - 36 ) ) + - col2 col0 FROM tab1
----
-23
-32
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT ALL - col1 DIV + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - col1 / + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT ALL + 28 DIV + col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4367
SELECT ALL + 28 / + col0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 10 AS col0 FROM tab0 cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT - - ( + SUM( + + col0 ) ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT - - ( + SUM ( + + col0 ) ) FROM tab0 cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col1, 8 FROM tab2 AS cor0 WHERE + col2 BETWEEN - col1 * + + 33 + col2 AND 15
----

query II rowsort
SELECT DISTINCT - col2 + - col1 AS col2, + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-110
-14
-115
-47
-64
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4373
SELECT + SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT ALL - col2 + + ( CAST( 18 AS SIGNED ) ) FROM tab2
----
-22
-40
-5

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - col2 + + ( CAST ( 18 AS INTEGER ) ) FROM tab2
----
-22
-40
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL - 73 + COUNT( * ) AS col2 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - 73 + COUNT ( * ) AS col2 FROM tab1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT + 85 + - - COUNT( * ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-4376
SELECT + 85 + - - COUNT ( * ) AS col1 FROM tab2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL + MAX( ALL + 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + MAX ( ALL + 71 ) FROM tab0
----
71

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * col1 + - 0 + - col2 FROM tab0
----
-2
1168
1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4380
SELECT DISTINCT - 45 * + SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT - 45 * + SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 + - - col0 - + col2 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT + MAX( + - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4382
SELECT + MAX ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT col1 AS col1, - 58 FROM tab1
----
14
-58
47
-58
5
-58

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT col2 * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query III rowsort label-4386
SELECT ALL col2, col1, - 38 DIV col0 FROM tab1 AS cor0
----
9 values hashing to 89bc6e5623f37236e333cee59121577f

skipif mysql # not compatible
query III rowsort label-4386
SELECT ALL col2, col1, - 38 / col0 FROM tab1 AS cor0
----
9 values hashing to 89bc6e5623f37236e333cee59121577f

query I rowsort
SELECT DISTINCT - + 62 * - col1 AS col1 FROM tab2 AS cor0
----
3162
4154
4774

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + col2 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab0 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT + CAST( NULL AS SIGNED ) / - 30 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT + CAST ( NULL AS INTEGER ) / - 30 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col1 ) col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL + col0 + - col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-13
-5
8

query I rowsort
SELECT 62 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE col1 <> 57
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT + + COUNT( * ) * + - 46 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT + + COUNT ( * ) * + - 46 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT 48 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4397
SELECT 48 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * + + col0 + + - col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * + + col0 + + - col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + 2 + 52 AS col0 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL 18 * - MIN( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL 18 * - MIN ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT + - col1 + - 10 - + col1 + + + col0 - col0 FROM tab0 AS cor0
----
-12
-172
-52

query II rowsort
SELECT ALL 70 + - - col2 AS col0, col2 * + - 87 / - 2 + + 92 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 + - col0 col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL 34 + - 47 - - col0 * + 15 * - - 92 AS col2 FROM tab1
----
117287
125567
70367

query I rowsort
SELECT 95 * + 55 * + col1 AS col2 FROM tab2
----
266475
350075
402325

query I rowsort
SELECT - - 17 FROM tab1 WHERE NULL IS NULL
----
17
17
17

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL + ( 67 ) + + + COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + ( 67 ) + + + COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 52 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 48 <> 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 98 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL - ( - COUNT( 23 ) ) col0 FROM tab0 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-4413
SELECT ALL - ( - COUNT ( 23 ) ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ( - 1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT - COUNT( - 8 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT - COUNT ( - 8 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT + - 82 AS col0 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT + + ( + ( + ( - - ( + col1 ) ) ) ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL + 88 * + 71 * ( - ( + col0 ) ) FROM tab2 AS cor0 WHERE NOT col0 * + col1 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - + ( + - 1 ) * MAX( ALL + - col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4420
SELECT - + ( + - 1 ) * MAX ( ALL + - col2 ) AS col0 FROM tab0 cor0
----
-10

query I rowsort
SELECT ALL + - 41 AS col0 FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + 2 AS col2 FROM tab1 AS cor0 WHERE NOT + 39 IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4423
SELECT ( + COUNT( * ) ) DIV + 13 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4423
SELECT ( + COUNT ( * ) ) / + 13 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT 94 DIV + col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-4424
SELECT 94 / + col0 FROM tab0
----
0
1
6

query I rowsort
SELECT + ( - 1 ) FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col0 * col0 col1 FROM tab2
----
-163840
-326250
-48668

query II rowsort
SELECT - col1 AS col1, - col1 AS col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 42 IS NOT NULL
----

query I rowsort
SELECT ALL + 89 * + col2 + - 6 + + + col0 AS col2 FROM tab2 AS cor0
----
2087
3618
5231

query II rowsort
SELECT DISTINCT col1 + + col2 AS col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
97
128
15
31
87

query I rowsort
SELECT DISTINCT + 73 * col1 AS col1 FROM tab0 AS cor0
----
1533
5913
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT + COUNT( * ) - + - 57 col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4432
SELECT + COUNT ( * ) - + - 57 col0 FROM tab2 AS cor0
----
60

query I rowsort
SELECT + + 71 - - + col2 + - col1 AS col2 FROM tab1 AS cor0
----
125
153
92

query I rowsort
SELECT DISTINCT col2 + + col1 * - col2 AS col0 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT DISTINCT + col2 + - col1 * + 91 AS col1 FROM tab1
----
-1178
-396
-4209

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4436
SELECT * FROM tab1 WHERE 49 - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4436
SELECT * FROM tab1 WHERE 49 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL - 11 * + COUNT( ALL + + col2 ) - - - 67 col1 FROM tab0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4437
SELECT ALL - 11 * + COUNT ( ALL + + col2 ) - - - 67 col1 FROM tab0
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT col1 * col2 + + - 19 DIV - col0 * - col0 + + - col0 * col0 * + - col1 AS col0 FROM tab2
----
109089
318472
380761

skipif mysql # not compatible
query I rowsort label-4438
SELECT col1 * col2 + + - 19 / - col0 * - col0 + + - col0 * col0 * + - col1 AS col0 FROM tab2
----
109089
318472
380761

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT COUNT( * ) + - + ( - - 62 ) AS col0 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-4439
SELECT COUNT ( * ) + - + ( - - 62 ) AS col0 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT + 95 - - - col2 + 19 FROM tab2
----
56
74
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 * + + col0 col2 FROM tab0 AS cor0
----
1740
1940
300

query II rowsort
SELECT - 76, + 15 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-76
15
-76
15
-76
15

query II rowsort
SELECT DISTINCT - - 92 AS col0, - col1 FROM tab0 AS cor0
----
92
-1
92
-21
92
-81

query I rowsort
SELECT - col1 * - - 24 FROM tab0
----
-1944
-24
-504

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 > + col1 * + col0 * - ( + - 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT COUNT( * ) - + 47 col2 FROM tab1, tab1 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4446
SELECT COUNT ( * ) - + 47 col2 FROM tab1, tab1 AS cor0
----
-38

query II rowsort
SELECT ALL + col1 * + - col1, + col1 FROM tab1 AS cor0
----
-196
14
-2209
47
-25
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT DISTINCT + col0 DIV - col2 + - - col1 FROM tab0 AS cor0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT + col0 / - col2 + - - col1 FROM tab0 AS cor0
----
1
13
81

onlyif mysql # DIV for integer division: 
query II rowsort label-4449
SELECT DISTINCT col0 DIV + 72 AS col0, col1 FROM tab0 AS cor0
----
0
81
1
1
1
21

skipif mysql # not compatible
query II rowsort label-4449
SELECT DISTINCT col0 / + 72 AS col0, col1 FROM tab0 AS cor0
----
0
81
1
1
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL MAX( - 25 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL MAX ( - 25 ) FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT COUNT( * ) + - 19 AS col1 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-4451
SELECT COUNT ( * ) + - 19 AS col1 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT COUNT( + ( - + col0 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT COUNT ( + ( - + col0 ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT + - SUM( ALL + 6 ) FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4453
SELECT + - SUM ( ALL + 6 ) FROM tab2 cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT + col0 - - ( + - col2 ) AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4454
SELECT + col0 - - ( + - col2 ) AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL 31 * + col0 + + col2 * col1 AS col2 FROM tab0
----
2907
3106
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT - COUNT( * ) + + COUNT( * ) * + - 48 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-4456
SELECT - COUNT ( * ) + + COUNT ( * ) * + - 48 FROM tab2
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - COUNT( * ) + MAX( ALL - col0 ) AS col1 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-4457
SELECT - COUNT ( * ) + MAX ( ALL - col0 ) AS col1 FROM tab0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4458
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4458
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT + + 62 + + - COUNT( * ) + + - 79 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4459
SELECT + + 62 + + - COUNT ( * ) + + - 79 FROM tab0 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN + - col0 + - 3 AND 62
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4461
SELECT * FROM tab0 AS cor0 WHERE - CAST( + col0 AS SIGNED ) * col0 + + col2 * col0 * - + col1 - + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4461
SELECT * FROM tab0 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) * col0 + + col2 * col0 * - + col1 - + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 73 + + 60 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE - 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT COUNT( * ) * 78 AS col2 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-4464
SELECT COUNT ( * ) * 78 AS col2 FROM tab1
----
234

query II rowsort
SELECT ALL + ( + col1 ) - - - col0 AS col0, - col0 AS col1 FROM tab2
----
-8
-75
13
-64
5
-46

query I rowsort
SELECT DISTINCT ( + + col2 ) - - col1 + col2 AS col0 FROM tab1
----
123
183
206

query I rowsort
SELECT ALL - ( - 54 ) * + 62 FROM tab0
----
3348
3348
3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT + SUM( ALL ( CAST( NULL AS SIGNED ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT + SUM ( ALL ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT MAX( ALL - + 55 ) * + 95 AS col1 FROM tab0 AS cor0
----
-5225

skipif mysql # not compatible
query I rowsort label-4469
SELECT MAX ( ALL - + 55 ) * + 95 AS col1 FROM tab0 AS cor0
----
-5225

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 76 + - - 39 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * + ( + col2 ) AS col1, - 29 FROM tab0
----
705
-29
870
-29
9603
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT ALL - COUNT( * ) col1, + 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4472
SELECT ALL - COUNT ( * ) col1, + 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT MIN( + 54 ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4473
SELECT MIN ( + 54 ) AS col1 FROM tab0
----
54

query I rowsort
SELECT - + col0 * + + col0 + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-2536
-7135
-8143

query II rowsort
SELECT + col1, + 79 FROM tab0 AS cor0
----
1
79
21
79
81
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 77 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT DISTINCT + ( + COUNT( DISTINCT - 28 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT + ( + COUNT ( DISTINCT - 28 ) ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 32 ), col0 col2 FROM tab2 WHERE NULL IS NULL
----
-32
46
-32
64
-32
75

query I rowsort
SELECT ALL - - 98 AS col2 FROM tab1 WHERE NOT - + col0 IS NULL
----
98
98
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT + SUM( 8 ), SUM( + + col1 ) AS col2 FROM tab0
----
24
103

skipif mysql # not compatible
query II rowsort label-4481
SELECT + SUM ( 8 ), SUM ( + + col1 ) AS col2 FROM tab0
----
24
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL - 43 + + + COUNT( ALL + col1 ) * + COUNT( * ) FROM tab1 WHERE NOT - + col1 / + + col1 + - col2 BETWEEN NULL AND + - CAST( NULL AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - 43 + + + COUNT ( ALL + col1 ) * + COUNT ( * ) FROM tab1 WHERE NOT - + col1 / + + col1 + - col2 BETWEEN NULL AND + - CAST ( NULL AS INTEGER )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4483
SELECT + 93 DIV - - COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4483
SELECT + 93 / - - COUNT ( * ) FROM tab0
----
31

query I rowsort
SELECT DISTINCT col2 * + + col2 + + + col2 FROM tab1
----
3540
4692
9312

query I rowsort
SELECT - 60 * + col2 FROM tab1
----
-3540
-4080
-5760

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT 99 DIV - - col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT 99 / - - col2 FROM tab2
----
1
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT DISTINCT 47 DIV + + 57 * - col1 * - col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT 47 / + + 57 * - col1 * - col0 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT COUNT( + ( + + col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4488
SELECT COUNT ( + ( + + col2 ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT COUNT( * ) * 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
216

skipif mysql # not compatible
query I rowsort label-4489
SELECT COUNT ( * ) * 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
216

query I rowsort
SELECT DISTINCT 45 - - col1 AS col2 FROM tab0
----
126
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT + - MIN( - 43 ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + - MIN ( - 43 ) FROM tab1 AS cor0
----
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 * + 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 74 + col1 - 38 AS col2 FROM tab0 AS cor0
----
-111
-31
-91

query I rowsort
SELECT - col1 * - - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-420
-6480
0

query I rowsort
SELECT + col2 * + 72 * + + col2 AS col0 FROM tab1
----
250632
332928
663552

query I rowsort
SELECT ALL + - 71 AS col1 FROM tab1 WHERE NULL IS NULL
----
-71
-71
-71

query I rowsort
SELECT - - col1 * - col2 FROM tab2 WHERE NOT - col2 * 47 IS NULL
----
-1173
-3080
-3886

query I rowsort
SELECT - 45 AS col2 FROM tab2 cor0
----
-45
-45
-45

query I rowsort
SELECT - 43 * + ( - 9 ) AS col1 FROM tab1 AS cor0
----
387
387
387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col2 FROM tab0 AS cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + + col2 ) col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT + 55 * - col0 + + 72 * + col1 + - col0 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT + 55 * - col0 + + 72 * + col1 + - col0 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4503
SELECT DISTINCT + - 7 * - 9, COUNT( + CAST( + - 63 AS SIGNED ) ) DIV 28 AS col2 FROM tab1 AS cor0
----
63
0

skipif mysql # not compatible
query II rowsort label-4503
SELECT DISTINCT + - 7 * - 9, COUNT ( + CAST ( + - 63 AS INTEGER ) ) / 28 AS col2 FROM tab1 AS cor0
----
63
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT - + 78 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-125
-83
-92

skipif mysql # not compatible
query I rowsort label-4504
SELECT - + 78 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-125
-83
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4505
SELECT DISTINCT + COUNT( * ) * CAST( + + 47 AS DECIMAL ) + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + COUNT ( * ) * CAST ( + + 47 AS REAL ) + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 73 col2 FROM tab0
----
1095
6351
7081

onlyif mysql # aggregate syntax: 
query II rowsort label-4507
SELECT - - 44 AS col0, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
44
3

skipif mysql # not compatible
query II rowsort label-4507
SELECT - - 44 AS col0, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
44
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT DISTINCT - 37 + col1 * + - 94 + + 13 + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-19
-1988
-7591

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT - 37 + col1 * + - 94 + + 13 + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-19
-1988
-7591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4509
SELECT COUNT( * ) DIV + CAST( MIN( DISTINCT col2 ) AS SIGNED ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT COUNT ( * ) / + CAST ( MIN ( DISTINCT col2 ) AS INTEGER ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab0 WHERE - 58 / - col2 - - col2 NOT BETWEEN NULL AND 86 * - 31
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT - COUNT( * ) + - COUNT( ALL - col2 ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4511
SELECT - COUNT ( * ) + - COUNT ( ALL - col2 ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT - col2 * - 19 AS col1 FROM tab0
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT MIN( 54 ) + MIN( + 73 ) AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT MIN ( 54 ) + MIN ( + 73 ) AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT ALL COUNT( ALL - 26 ) DIV 36 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4514
SELECT ALL COUNT ( ALL - 26 ) / 36 col1 FROM tab1
----
0

query I rowsort
SELECT 55 + - col0 AS col1 FROM tab0
----
-32
-42
40

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( + col1 ) - col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - col1 FROM tab0 WHERE NOT ( + 62 ) IS NOT NULL
----

query I rowsort
SELECT + 15 * + col0 FROM tab0
----
1305
1455
225

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT ALL col0 DIV + ( col2 ) AS col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL col0 / + ( col2 ) AS col1 FROM tab0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL - SUM( + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - SUM ( + col2 ) FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4521
SELECT * FROM tab2 WHERE ( - col1 * + CAST( ( + col1 ) AS SIGNED ) ) IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4521
SELECT * FROM tab2 WHERE ( - col1 * + CAST ( ( + col1 ) AS INTEGER ) ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL SUM( - 41 ) AS col1 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL SUM ( - 41 ) AS col1 FROM tab0
----
-123

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 ) <> 52 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + 21 * + col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col0 * - col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT DISTINCT + ( col2 ) DIV - 23 + - 34 FROM tab0
----
-34
-36
-38

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT + ( col2 ) / - 23 + - 34 FROM tab0
----
-34
-36
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT MIN( + col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4526
SELECT MIN ( + col1 ) col2 FROM tab0
----
1

query I rowsort
SELECT + 88 - 88 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT DISTINCT - MAX( + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT - MAX ( + col1 ) FROM tab2
----
-77

query I rowsort
SELECT DISTINCT ( - 28 ) * - 11 AS col0 FROM tab2 WHERE col0 + 49 IS NULL
----

query I rowsort
SELECT DISTINCT - 88 FROM tab1 cor0 WHERE col1 <> - col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT - col1 + CAST( - col0 AS SIGNED ) FROM tab1 WHERE NOT ( col1 ) NOT IN ( col1 )
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-4531
SELECT - col1 + CAST ( - col0 AS INTEGER ) FROM tab1 WHERE NOT ( col1 ) NOT IN ( col1 )
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT CAST( ( 16 ) AS SIGNED ) FROM tab1
----
16
16
16

skipif mysql # not compatible
query I rowsort label-4532
SELECT CAST ( ( 16 ) AS INTEGER ) FROM tab1
----
16
16
16

query I rowsort
SELECT ALL + col0 * ( + col1 * col2 ) AS col0 FROM tab1 WHERE 18 IS NULL
----

query I rowsort
SELECT - ( ( - ( - col1 ) ) ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL MAX( DISTINCT 2 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL MAX ( DISTINCT 2 ) FROM tab1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4536
SELECT - MIN( ALL CAST( col1 AS SIGNED ) ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT - MIN ( ALL CAST ( col1 AS INTEGER ) ) * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 50 + + 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
-9

query I rowsort
SELECT DISTINCT - col0 * 70 + 17 AS col0 FROM tab0 AS cor0
----
-1033
-6073
-6773

query I rowsort
SELECT ALL + + 61 AS col1 FROM tab1 cor0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT ALL + 21 + - 3 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL + 21 + - 3 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <= 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 * - 11 + + col0 FROM tab2 AS cor0
----
-207
-376
-563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4544
SELECT DISTINCT 67 + + CAST( - col2 AS SIGNED ) + + col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT 67 + + CAST ( - col2 AS INTEGER ) + + col2 FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT 6 + + + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT 6 + + + COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 3 * + ( + col0 ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + col2 * + col1 FROM tab0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT SUM( - ( 76 ) ) AS col2 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT SUM ( - ( 76 ) ) AS col2 FROM tab2
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT 17 + - SUM( col2 ) + 76 FROM tab1
----
-130

skipif mysql # not compatible
query I rowsort label-4549
SELECT 17 + - SUM ( col2 ) + 76 FROM tab1
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4550
SELECT MIN( - col0 ) * COUNT( * ) + - COUNT( * ) DIV 50 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-4550
SELECT MIN ( - col0 ) * COUNT ( * ) + - COUNT ( * ) / 50 FROM tab2
----
-225

query I rowsort
SELECT + col0 + + 89 AS col0 FROM tab1
----
140
174
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT + col0 / + - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT + col0 / + - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 40 + 86 FROM tab2
----
126
126
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT - col0 * - - col0 + col2 AS col0 FROM tab1
----
-2505
-7166
-8213

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col0 ) * - 57 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT ALL CAST( NULL AS SIGNED ) * - - MIN( 50 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL CAST ( NULL AS INTEGER ) * - - MIN ( 50 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT + 17 / 61 * + 80 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 17 / 61 * + 80 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 17 + + col1 >= 35 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + MIN( col1 ) col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( 14 * col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4560
SELECT + MIN ( col1 ) col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( 14 * col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT DISTINCT col1 + + CAST( + + col2 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT col1 + + CAST ( + + col2 AS INTEGER ) FROM tab1
----
110
115
64

query I rowsort
SELECT ( - - col1 ) * - col1 AS col0 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab2 WHERE + + 80 / col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 99 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT col1 FROM tab0 cor0 WHERE NOT ( CAST( + ( col2 ) AS SIGNED ) + col1 ) = - col2
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4565
SELECT col1 FROM tab0 cor0 WHERE NOT ( CAST ( + ( col2 ) AS INTEGER ) + col1 ) = - col2
----
1
21
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col2 ) <= ( ( + col1 ) * col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT - + ( col2 ) ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT - + ( col2 ) ) FROM tab0 AS cor0
----
-468

query II rowsort
SELECT - 72, + col1 AS col2 FROM tab2 AS cor0
----
-72
51
-72
67
-72
77

query I rowsort
SELECT DISTINCT - col2 * 63 FROM tab2 AS cor0
----
-1449
-2520
-3654

query I rowsort
SELECT ALL 20 FROM tab2 cor0 WHERE NOT NULL BETWEEN - col1 + + 93 - 58 * col1 AND - 86 + + ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4571
SELECT - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT 45 * + 95 * - col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4571
SELECT - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT 45 * + 95 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT - - 49 DIV COUNT( * ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - - 49 / COUNT ( * ) FROM tab1 AS cor0
----
16

query I rowsort
SELECT + - col2 * + 95 - col0 AS col2 FROM tab1 AS cor0
----
-5690
-6551
-9171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT SUM( col1 ) DIV COUNT( * ) AS col2 FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-4574
SELECT SUM ( col1 ) / COUNT ( * ) AS col2 FROM tab0 cor0
----
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 95 )
----

query II rowsort
SELECT - col1 * col1, + col0 FROM tab2
----
-2601
46
-4489
75
-5929
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT ( - col2 ) * - CAST( NULL AS SIGNED ) * 41 / 11 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ( - col2 ) * - CAST ( NULL AS INTEGER ) * 41 / 11 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab0 WHERE NOT NULL NOT IN ( + col2 )
----

query I rowsort
SELECT + col0 * - 2 * + col1 FROM tab2
----
-10050
-4692
-9856

query I rowsort
SELECT DISTINCT col2 * + 24 FROM tab1
----
1416
1632
2304

query I rowsort
SELECT ALL + + 29 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 43 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL CAST( ( MAX( ALL col2 ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL CAST ( ( MAX ( ALL col2 ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL - + COUNT( + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - + COUNT ( + col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( + col2 ) <> + col0
----

query I rowsort
SELECT - 30 * - col2 AS col1 FROM tab0
----
1410
2970
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 76 <= - col2 AND ( - col0 ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4587
SELECT CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 76 <= - col2 AND ( - col0 ) > ( NULL )
----

query I rowsort
SELECT - - col2 + - + 39 FROM tab2 cor0
----
-16
1
19

query I rowsort
SELECT 69 + 16 AS col2 FROM tab2 AS cor0
----
85
85
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + - + col0 BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( + AVG ( - 10 ) ) FROM tab0 cor0 WHERE NOT - 62 + 63 >= - col1 * + col0 + + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT - col1 + - - CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT - col1 + - - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 + + col1 FROM tab2 AS cor0
----
-3
13
23

query I rowsort
SELECT - col0 * + ( 45 ) + + col2 AS col1 FROM tab2 AS cor0
----
-2047
-2840
-3317

query I rowsort
SELECT 52 + col0 * + - col2 FROM tab0 AS cor0
----
-653
-818
-9551

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4596
SELECT + CAST( col1 AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT + CAST ( col1 AS REAL ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + ( - 2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT - CAST( - col1 AS SIGNED ) + - 24 + - col2 * - col2 FROM tab2 AS cor0
----
1653
3407
556

skipif mysql # not compatible
query I rowsort label-4598
SELECT - CAST ( - col1 AS INTEGER ) + - 24 + - col2 * - col2 FROM tab2 AS cor0
----
1653
3407
556

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT + - 39 + COUNT( * ) FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4599
SELECT + - 39 + COUNT ( * ) FROM tab2 cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - SUM( ( + 45 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT - SUM ( ( + 45 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 64 + col2 AS col2, col2 FROM tab2
----
104
40
122
58
87
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 43 * col2 / col2 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4604
SELECT ALL - CAST( - CAST( + 10 AS SIGNED ) AS SIGNED ) + 46 + + COUNT( * ) * CAST( NULL AS DECIMAL ) * 73 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - CAST ( - CAST ( + 10 AS INTEGER ) AS INTEGER ) + 46 + + COUNT ( * ) * CAST ( NULL AS REAL ) * 73 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + ( + 73 ) FROM tab2
----
73
73
73

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE - 69 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT 92 FROM tab1 WHERE NOT - col1 NOT BETWEEN + col0 * - col2 + + col1 AND col1 / + col1
----
92

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 * - col1 + + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT 43 - COUNT( * ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4610
SELECT 43 - COUNT ( * ) FROM tab2 AS cor0
----
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( - + ( - + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT - 92 + 61 * - 78 - + + col1 + - ( + col0 ) + 47 * - ( CAST( NULL AS SIGNED ) ) * + 49 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT - 92 + 61 * - 78 - + + col1 + - ( + col0 ) + 47 * - ( CAST ( NULL AS INTEGER ) ) * + 49 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT + col0 * + + CAST( col1 AS SIGNED ) + + col0 + col0 FROM tab1
----
4459
595
816

skipif mysql # not compatible
query I rowsort label-4613
SELECT + col0 * + + CAST ( col1 AS INTEGER ) + + col0 + col0 FROM tab1
----
4459
595
816

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT MIN( - - col0 ) col0, + 9 AS col2 FROM tab2 AS cor0
----
46
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4615
SELECT MIN ( - - col0 ) col0, + 9 AS col2 FROM tab2 AS cor0
----
46
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT ALL ( + - MIN( ALL - CAST( - 76 AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL ( + - MIN ( ALL - CAST ( - 76 AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
-76

query II rowsort
SELECT ALL - 26, col1 AS col1 FROM tab2
----
-26
51
-26
67
-26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - 8 * - COUNT( * ) AS col0 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4619
SELECT - 8 * - COUNT ( * ) AS col0 FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4620
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 = + col0 * - col2 * col2 + - 28 / CAST( col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4620
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 = + col0 * - col2 * col2 + - 28 / CAST ( col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 85 * + 56 + 84 - + 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - - col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT + 1 DIV - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT + 1 / - col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT ALL - 91 DIV + 72 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - 91 / + 72 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4625
SELECT 37 AS col2, SUM( ALL + + col1 ) AS col0 FROM tab2
----
37
195

skipif mysql # not compatible
query II rowsort label-4625
SELECT 37 AS col2, SUM ( ALL + + col1 ) AS col0 FROM tab2
----
37
195

query I rowsort
SELECT ALL + - 67 AS col2 FROM tab0 cor0
----
-67
-67
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT col2 DIV - 89 + col2 FROM tab0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-4627
SELECT col2 / - 89 + col2 FROM tab0
----
10
47
98

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > + 7
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4629
SELECT DISTINCT + ( + 28 ) AS col1, SUM( + col1 ) FROM tab2 AS cor0
----
28
195

skipif mysql # not compatible
query II rowsort label-4629
SELECT DISTINCT + ( + 28 ) AS col1, SUM ( + col1 ) FROM tab2 AS cor0
----
28
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT ALL + 71 * + CAST( NULL AS SIGNED ) + + 1 FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + 71 * + CAST ( NULL AS INTEGER ) + + 1 FROM tab1 cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN - - 82 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + ( col0 ) AS col2, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 56 * col2 + - col2 * col0 ) NOT BETWEEN ( NULL ) AND - col0
----
46
51
23

query I rowsort
SELECT ALL - + col1 * + - col0 + col2 AS col0 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT DISTINCT - 66 + + ( + 95 ) FROM tab1 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + col2 col1, 8 * - 73 * - col2 AS col0 FROM tab2 AS cor0
----
104
23360
133
33872
69
13432

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL + 3 * + COUNT( * ) + + 41 + + 62 AS col1 FROM tab1 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL + 3 * + COUNT ( * ) + + 41 + + 62 AS col1 FROM tab1 AS cor0
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( - - col0 ) col2 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT 65 + COUNT( DISTINCT col2 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4640
SELECT 65 + COUNT ( DISTINCT col2 ) FROM tab2
----
68

query I rowsort
SELECT DISTINCT - col2 - - 30 FROM tab2
----
-10
-28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - COUNT( * ) * + MAX( ALL + + 63 ) + + + 70 + + + 36 AS col2 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-4642
SELECT - COUNT ( * ) * + MAX ( ALL + + 63 ) + + + 70 + + + 36 AS col2 FROM tab0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) - - MAX( ALL - col1 ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) - - MAX ( ALL - col1 ) AS col0 FROM tab1
----
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 47, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 * 58 - col0 + 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col0 + + 52 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL - col0 * + + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - col0 * + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col2 > NULL
----

query II rowsort
SELECT - col1 AS col1, 51 AS col2 FROM tab2 AS cor0
----
-51
51
-67
51
-77
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT - - COUNT( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4651
SELECT - - COUNT ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT ALL - 12 DIV + col1 + + 71 + + - col2 * - - col0 AS col1 FROM tab2 AS cor0
----
-2489
-4279
-987

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - 12 / + col1 + + 71 + + - col2 * - - col0 AS col1 FROM tab2 AS cor0
----
-2489
-4279
-987

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4653
SELECT ALL + + col0, + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-4653
SELECT ALL + + col0, + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query I rowsort
SELECT - 97 * + + col2 * col0 FROM tab2 AS cor0
----
-102626
-248320
-421950

query I rowsort
SELECT DISTINCT - 23 * - + 99 FROM tab0 AS cor0
----
2277

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4656
SELECT + CAST( - 18 AS SIGNED ) DIV + 64 * - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT + CAST ( - 18 AS INTEGER ) / + 64 * - col0 FROM tab0
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 + col2 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - + col2 - + + col1 * - 41, - col1, - col1 + col2 + - col1 )
----

query I rowsort
SELECT - col1 + + - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4660
SELECT ALL col2 DIV + CAST( + 65 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL col2 / + CAST ( + 65 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT DISTINCT col1 DIV - + 62 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT col1 / - + 62 AS col1 FROM tab0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT - CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4662
SELECT - CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT DISTINCT + col1 + + 74, col1 AS col0 FROM tab0 AS cor0
----
155
81
75
1
95
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT ALL + - 53 + + COUNT( * ) * + CAST( ( 97 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + - 53 + + COUNT ( * ) * + CAST ( ( 97 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
238

query I rowsort
SELECT DISTINCT - - 19 * - col2 + + col2 FROM tab1 AS cor0
----
-1062
-1224
-1728

query I rowsort
SELECT 91 + - col1 + col2 - - col2 * ( - 89 ) FROM tab0
----
-4126
-810
-8622

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT - col1 + + + col0 DIV - - ( + - col1 ) FROM tab0 AS cor0
----
-25
-81
-98

skipif mysql # not compatible
query I rowsort label-4667
SELECT - col1 + + + col0 / - - ( + - col1 ) FROM tab0 AS cor0
----
-25
-81
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4668
SELECT + CAST( + 39 AS SIGNED ) * - 36 + - 87 + COUNT( * ) FROM tab2 AS cor0
----
-1488

skipif mysql # not compatible
query I rowsort label-4668
SELECT + CAST ( + 39 AS INTEGER ) * - 36 + - 87 + COUNT ( * ) FROM tab2 AS cor0
----
-1488

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT 29 <> - - col1 / 28
----

query I rowsort
SELECT - ( - - 79 ) FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4671
SELECT ALL - COUNT( * ) * - + ( SUM( DISTINCT - col2 ) ) + 53 AS col1, + 48 + + 22 FROM tab1
----
-616
70

skipif mysql # not compatible
query II rowsort label-4671
SELECT ALL - COUNT ( * ) * - + ( SUM ( DISTINCT - col2 ) ) + 53 AS col1, + 48 + + 22 FROM tab1
----
-616
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 45 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 45 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4673
SELECT ALL * FROM tab1 WHERE - col2 / + CAST( NULL AS SIGNED ) * + col2 + - col1 + + 30 BETWEEN 47 AND - col1
----

skipif mysql # not compatible
query III rowsort label-4673
SELECT ALL * FROM tab1 WHERE - col2 / + CAST ( NULL AS INTEGER ) * + col2 + - col1 + + 30 BETWEEN 47 AND - col1
----

query I rowsort
SELECT ALL col0 - + col0 - - 21 * col2 AS col2 FROM tab0
----
2079
210
987

query III rowsort
SELECT * FROM tab2 WHERE - col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL 94 * - + COUNT( * ) + - COUNT( * ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL 94 * - + COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-285

query I rowsort
SELECT DISTINCT + 53 - - - 94 AS col2 FROM tab2
----
-41

query II rowsort
SELECT + 89 - + + col1, - 52 AS col0 FROM tab1
----
42
-52
75
-52
84
-52

query I rowsort
SELECT + 52 * - col2 - + 32 AS col2 FROM tab0
----
-2476
-5180
-552

query I rowsort
SELECT DISTINCT - 93 - - 86 AS col1 FROM tab1 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT ALL + - CAST( ( + + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + - CAST ( ( + + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4682
SELECT + - col1 * - 73 AS col0, 58 * ( - col0 ) * + col2 * - CAST( NULL AS DECIMAL ) / - 23 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----
1022
NULL
3431
NULL
365
NULL

skipif mysql # not compatible
query II rowsort label-4682
SELECT + - col1 * - 73 AS col0, 58 * ( - col0 ) * + col2 * - CAST ( NULL AS REAL ) / - 23 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----
1022
NULL
3431
NULL
365
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 29 * + 84 / - 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 44 * + 63 FROM tab2 AS cor0
----
2772
2772
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT 74 + + 27 + - + COUNT( * ) * + - 19 AS col2 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
158

skipif mysql # not compatible
query I rowsort label-4685
SELECT 74 + + 27 + - + COUNT ( * ) * + - 19 AS col2 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
158

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab0 cor0
----
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 87 * + 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT COUNT( ALL + 38 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4688
SELECT COUNT ( ALL + 38 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT col2 * col2 + 22 + + + ( col0 ) AS col2, col1 FROM tab1 AS cor0
----
3588
5
4737
47
9289
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT SUM( ALL + 34 ) * + 59 AS col2 FROM tab0
----
6018

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT SUM ( ALL + 34 ) * + 59 AS col2 FROM tab0
----
6018

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT 66 * SUM( DISTINCT + + 59 ) col0 FROM tab0
----
3894

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4692
SELECT 66 * SUM ( DISTINCT + + 59 ) col0 FROM tab0
----
3894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT DISTINCT + MAX( DISTINCT - col1 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + MAX ( DISTINCT - col1 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * + 11 * - col0 FROM tab1
----
4675
47047
7854

query II rowsort
SELECT - col2 AS col0, col0 + - 3 FROM tab1
----
-59
82
-68
88
-96
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - + COUNT( * ) + 38 AS col0 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4696
SELECT - + COUNT ( * ) + 38 AS col0 FROM tab0 AS cor0
----
35

query I rowsort
SELECT - col0 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
0
1200
1740

query II rowsort
SELECT ALL + - 6 AS col2, col0 FROM tab2 AS cor0
----
-6
46
-6
64
-6
75

query III rowsort
SELECT * FROM tab0 WHERE + col0 + + col2 NOT BETWEEN + col2 AND + col2 - - - col0 + - + 39
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + + col1 + - col1 * col2 FROM tab1
----
-1316
-285
-3102

query I rowsort
SELECT DISTINCT + + 37 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ALL - MAX( + - col2 ) * 25 col2 FROM tab0
----
250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4702
SELECT ALL - MAX ( + - col2 ) * 25 col2 FROM tab0
----
250

query II rowsort
SELECT ALL - col1 + + col0 AS col2, 14 FROM tab1 AS cor0
----
37
14
44
14
80
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT DISTINCT col2 * - col1 + + col1 * - 24 + - CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
-2374
-4888
-5436

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT col2 * - col1 + + col1 * - 24 + - CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
-2374
-4888
-5436

query I rowsort
SELECT DISTINCT - - 30 + + - ( + + col2 ) * - col0 FROM tab1 AS cor0
----
4926
5045
6218

onlyif mysql # DIV for integer division: 
query II rowsort label-4706
SELECT ALL + col2 + + - col2 AS col0, 75 DIV + - col1 + 1 col0 FROM tab1 AS cor0
----
0
-14
0
-4
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4706
SELECT ALL + col2 + + - col2 AS col0, 75 / + - col1 + 1 col0 FROM tab1 AS cor0
----
0
-14
0
-4
0
0

query I rowsort
SELECT DISTINCT - col1 + 36 AS col0 FROM tab0 AS cor0
----
-45
15
35

query I rowsort
SELECT - - ( col1 ) + + 78 FROM tab1 AS cor0
----
125
83
92

query I rowsort
SELECT + - col0 * + + 0 + + ( - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT 81 + - MAX( ALL col0 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT 81 + - MAX ( ALL col0 ) FROM tab2
----
6

query I rowsort
SELECT ALL - 13 - + 95 * + col0 FROM tab2
----
-4383
-6093
-7138

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT 58 + - + 42 + - col1 DIV + - col2 AS col1 FROM tab0
----
16
17
18

skipif mysql # not compatible
query I rowsort label-4712
SELECT 58 + - + 42 + - col1 / + - col2 AS col1 FROM tab0
----
16
17
18

query I rowsort
SELECT DISTINCT - 30 * - - col2 - + - 94 AS col2 FROM tab1
----
-1676
-1946
-2786

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT - ( + SUM( + ( - col0 ) ) ) * + - 67 + - COUNT( * ) + + + COUNT( * ) FROM tab2
----
-12395

skipif mysql # not compatible
query I rowsort label-4714
SELECT - ( + SUM ( + ( - col0 ) ) ) * + - 67 + - COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
-12395

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4715
SELECT - CAST( NULL AS DECIMAL ) + CAST( + 15 AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT - CAST ( NULL AS REAL ) + CAST ( + 15 AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 1 + - + col0 AS col1 FROM tab1
----
-52
-86
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4717
SELECT - MIN( DISTINCT + + col0 ) DIV - - 57 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4717
SELECT - MIN ( DISTINCT + + col0 ) / - - 57 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 82 BETWEEN NULL AND + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + SUM( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 74 AND - + col2 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + SUM ( DISTINCT + - col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 74 AND - + col2 + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL + 86 + - COUNT( * ) * - 36 FROM tab2
----
194

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + 86 + - COUNT ( * ) * - 36 FROM tab2
----
194

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4723
SELECT ALL * FROM tab2 WHERE NOT ( + + CAST( + - 45 AS SIGNED ) ) <> ( + 70 )
----

skipif mysql # not compatible
query III rowsort label-4723
SELECT ALL * FROM tab2 WHERE NOT ( + + CAST ( + - 45 AS INTEGER ) ) <> ( + 70 )
----

query I rowsort
SELECT + col0 + - - 74 + + col1 * + 43 * + 78 AS col0 FROM tab1
----
157803
16929
47081

query I rowsort
SELECT DISTINCT + col2 + + col2 * + 1 * col1 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT ALL - 59 DIV COUNT( * ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - 59 / COUNT ( * ) FROM tab0
----
-19

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NOT NULL > - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + COUNT( ALL - col2 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4728
SELECT + COUNT ( ALL - col2 ) col2 FROM tab2
----
3

query I rowsort
SELECT 64 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT - - MAX( ALL + + ( + col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT - - MAX ( ALL + + ( + col1 ) ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4732
SELECT ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 24 * col0 - + col1 AS col2 FROM tab1
----
1210
2035
2137

query I rowsort
SELECT ALL + + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query II rowsort
SELECT ALL + ( - 82 ) AS col2, 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to ba0ee2b53eb41e278f88d5968ceb912f

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + COUNT( DISTINCT + 40 ) - - 53 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + COUNT ( DISTINCT + 40 ) - - 53 FROM tab0
----
54

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT DISTINCT 32 - + col2 - - + CAST( + col1 AS SIGNED ) * - 0 * + col2 + + - col2 * col1 * + col2 + - col2 FROM tab0
----
-178991
-2088
-9967

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT 32 - + col2 - - + CAST ( + col1 AS INTEGER ) * - 0 * + col2 + + - col2 * col1 * + col2 + - col2 FROM tab0
----
-178991
-2088
-9967

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 81 <> NULL
----

query I rowsort
SELECT + 45 + - col1 AS col1 FROM tab0 cor0
----
-36
24
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4741
SELECT DISTINCT + 59 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + 59 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 80 + - + col0 FROM tab2 AS cor0
----
16
34
5

query I rowsort
SELECT ALL + col2 * 21 + + col0 AS col0 FROM tab2 AS cor0
----
1293
529
904

query I rowsort
SELECT + - col2 * + + col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT 64 * - MAX( ALL - col2 ) FROM tab1
----
3776

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT 64 * - MAX ( ALL - col2 ) FROM tab1
----
3776

query I rowsort
SELECT ALL + 52 * - 0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT DISTINCT 30 * 45 DIV 6 AS col1 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT 30 * 45 / 6 AS col1 FROM tab1
----
225

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN + 5 AND + 89 + + + 87 * - 79
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + ( col1 ), - col2 - col2 FROM tab2 AS cor0
----
51
-46
67
-116
77
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col2 FROM tab2 WHERE NOT col2 * 38 > - - 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4752
SELECT + - ( + 35 ) * - MAX( - - CAST( NULL AS SIGNED ) ) * - + 86 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT + - ( + 35 ) * - MAX ( - - CAST ( NULL AS INTEGER ) ) * - + 86 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * + col2 col1 FROM tab1 AS cor0
----
295
340
480

query I rowsort
SELECT ( - + 68 ) FROM tab1 AS cor0
----
-68
-68
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - col0 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - COUNT( ALL + ( - col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4756
SELECT - COUNT ( ALL + ( - col2 ) ) FROM tab1
----
-3

query I rowsort
SELECT col0 * - 11 + col2 AS col1 FROM tab0
----
-118
-947
-968

query I rowsort
SELECT ALL - 5 - + - 25 + + 24 + col1 FROM tab1 AS cor0 WHERE NOT NULL <> 60
----

query I rowsort
SELECT col0 + - + col0 FROM tab2 AS cor0 WHERE NULL < - 17
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 8 ) + - 32 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 11 - + col1 * - - col1 col1 FROM tab2 AS cor0
----
-2561
-4433
-5863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL col1 + + CAST( col1 AS SIGNED ) FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL col1 + + CAST ( col1 AS INTEGER ) FROM tab0
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4763
SELECT DISTINCT ( - col1 ) DIV - col0 + col2 FROM tab2
----
24
41
58

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT ( - col1 ) / - col0 + col2 FROM tab2
----
24
41
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT ALL + ( - - MAX( - ( 10 ) ) ) - + COUNT( * ) AS col1, 91 FROM tab0 AS cor0
----
-13
91

skipif mysql # not compatible
query II rowsort label-4765
SELECT ALL + ( - - MAX ( - ( 10 ) ) ) - + COUNT ( * ) AS col1, 91 FROM tab0 AS cor0
----
-13
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * + + col1 - col2 col1 FROM tab0 AS cor0
----
-98
531394
9251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT ALL 36 DIV + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL 36 / + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4769
SELECT 81 DIV COUNT( * ), - COUNT( * ) col0 FROM tab1
----
27
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4769
SELECT 81 / COUNT ( * ), - COUNT ( * ) col0 FROM tab1
----
27
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - MAX( + - col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4770
SELECT - MAX ( + - col0 ) col2 FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT + 44 <= - 12 - + col1 * - 5 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL SUM( - - 75 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL SUM ( - - 75 ) FROM tab0
----
225

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 + - 89 + col1 < 88
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL COUNT( * ) * - - 45 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL COUNT ( * ) * - - 45 FROM tab2
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT DISTINCT col0 DIV + ( - col1 ) AS col0 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT col0 / + ( - col1 ) AS col0 FROM tab1
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT + 86 AS col2, ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
86
-3

skipif mysql # not compatible
query II rowsort label-4777
SELECT + 86 AS col2, ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
86
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + SUM( 54 ) AS col1 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4778
SELECT + SUM ( 54 ) AS col1 FROM tab1 AS cor0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4779
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4779
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + + col1 * - 70 FROM tab2 AS cor0
----
-3570
-4690
-5390

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT + + COUNT( * ) col2, + 89 FROM tab2 AS cor0
----
3
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4781
SELECT + + COUNT ( * ) col2, + 89 FROM tab2 AS cor0
----
3
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT ALL + CAST( 85 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL + CAST ( 85 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE - 43 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT ALL col1 * + + ( - 75 ) FROM tab1 WHERE NOT NULL <= + CAST( NULL AS SIGNED ) + - - 37 + col1 * + + col0
----

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL col1 * + + ( - 75 ) FROM tab1 WHERE NOT NULL <= + CAST ( NULL AS INTEGER ) + - - 37 + col1 * + + col0
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT - 54 < + 6 * - - 33 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT DISTINCT - 57 DIV col1 + - col1 FROM tab2 AS cor0
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT - 57 / col1 + - col1 FROM tab2 AS cor0
----
-52
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col0 * + 58 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4788
SELECT DISTINCT - 18 + + COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-4788
SELECT DISTINCT - 18 + + COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - MIN( + - 90 ) AS col0 FROM tab2 cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT - MIN ( + - 90 ) AS col0 FROM tab2 cor0 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT + col1 * + 79 + col2 AS col0 FROM tab1 AS cor0
----
1202
3781
454

query I rowsort
SELECT ALL 99 + - ( + - 81 ) AS col1 FROM tab0 AS cor0
----
180
180
180

query I rowsort
SELECT DISTINCT - 85 * - 54 AS col2 FROM tab0
----
4590

query II rowsort
SELECT col0 AS col1, col1 * col2 AS col0 FROM tab1
----
51
1344
85
295
91
3196

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 74 IS NULL
----

query II rowsort
SELECT ALL - col2 AS col1, col1 AS col1 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT COUNT( * ) + - 43 AS col1 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT COUNT ( * ) + - 43 AS col1 FROM tab0
----
-40

query II rowsort
SELECT DISTINCT col2, 21 FROM tab2
----
23
21
40
21
58
21

query I rowsort
SELECT ALL col1 + 66 AS col1 FROM tab2
----
117
133
143

query I rowsort
SELECT ALL - col2 - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 * + - 73 ) IS NULL
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT + COUNT( * ), + 93 AS col1 FROM tab2 AS cor0
----
3
93

skipif mysql # not compatible
query II rowsort label-4800
SELECT + COUNT ( * ), + 93 AS col1 FROM tab2 AS cor0
----
3
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT DISTINCT - - 69 col1, - COUNT( * ) col1 FROM tab2 AS cor0
----
69
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4801
SELECT DISTINCT - - 69 col1, - COUNT ( * ) col1 FROM tab2 AS cor0
----
69
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + col1 + - + col1 col0 FROM tab1
----
-1358
-300
-3243

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4803
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) + + col1 + - col2 + - - col2 * + - 45 * + + col0 + + col1 NOT BETWEEN - ( col0 ) AND - + col2 * - col2 * - col0
----

skipif mysql # not compatible
query III rowsort label-4803
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + + col1 + - col2 + - - col2 * + - 45 * + + col0 + + col1 NOT BETWEEN - ( col0 ) AND - + col2 * - col2 * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT - CAST( - MIN( 5 ) AS SIGNED ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4804
SELECT - CAST ( - MIN ( 5 ) AS INTEGER ) FROM tab0 AS cor0
----
5

query I rowsort
SELECT - col1 * - col2 - col1 AS col2 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT + COUNT( * ) * - 1 - 18 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT + COUNT ( * ) * - 1 - 18 FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT - col2 * + + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4807
SELECT - col2 * + + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL = + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col2 + + col2 + + col1
----

query I rowsort
SELECT DISTINCT - ( + 76 ) AS col2 FROM tab2
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT DISTINCT + SUM( DISTINCT - col2 ) * + - 7 AS col1, 23 AS col2 FROM tab1
----
1561
23

skipif mysql # not compatible
query II rowsort label-4811
SELECT DISTINCT + SUM ( DISTINCT - col2 ) * + - 7 AS col1, 23 AS col2 FROM tab1
----
1561
23

query II rowsort
SELECT DISTINCT col0 * + col1 * + - col1, + 6 AS col2 FROM tab1
----
-201019
6
-2125
6
-9996
6

query II rowsort
SELECT col0 AS col0, + col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4814
SELECT - ( - - MIN( ALL - col1 ) ) col0, 42 col1 FROM tab1
----
47
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4814
SELECT - ( - - MIN ( ALL - col1 ) ) col0, 42 col1 FROM tab1
----
47
42

query I rowsort
SELECT ALL col0 * + 41 FROM tab0
----
3567
3977
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4816
SELECT MIN( + CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT MIN ( + CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 62 * 39 * + - col1 col2 FROM tab2 AS cor0
----
-123318
-162006
-186186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL + col2 * - + col2 AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT DISTINCT 6 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT 6 / - col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4822
SELECT DISTINCT col2 - - col2 + 67 + 32 DIV col0 + + + col1 col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN + - col0 AND ( + col2 ) )
----
108
244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4822
SELECT DISTINCT col2 - - col2 + 67 + 32 / col0 + + + col1 col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN + - col0 AND ( + col2 ) )
----
108
244

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT + 81 DIV col0 * + 84 + - col0 + + + col0 * - col0 FROM tab0 cor0
----
-7656
-9506
180

skipif mysql # not compatible
query I rowsort label-4823
SELECT + 81 / col0 * + 84 + - col0 + + + col0 * - col0 FROM tab0 cor0
----
-7656
-9506
180

query I rowsort
SELECT ALL + col1 + 95 - + - 28 FROM tab2 cor0
----
174
190
200

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 38 * col0 - + 6 > NULL
----

query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( - ( 51 ) ) + - col0 FROM tab2
----
-13
-24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT COUNT( * ) + + SUM( ALL 82 ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-4828
SELECT COUNT ( * ) + + SUM ( ALL 82 ) FROM tab2
----
249

query I rowsort
SELECT + 63 + + - 55 - + - col2 * ( - 51 ) FROM tab1
----
-3001
-3460
-4888

query I rowsort
SELECT - 42 + - col1 + - col0 + - 3 AS col2 FROM tab1
----
-110
-135
-183

query I rowsort
SELECT 43 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + ( - col1 ) = NULL
----

query I rowsort
SELECT DISTINCT ( + ( + - col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL + - 20 * + 17 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-343

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL + - 20 * + 17 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-343

onlyif mysql # DIV for integer division: 
query II rowsort label-4835
SELECT - + col1 DIV - - col0 AS col2, - col1 FROM tab0 AS cor0
----
-5
-81
0
-1
0
-21

skipif mysql # not compatible
query II rowsort label-4835
SELECT - + col1 / - - col0 AS col2, - col1 FROM tab0 AS cor0
----
-5
-81
0
-1
0
-21

query I rowsort
SELECT ALL col2 / + col2 FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4837
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-3
3

query II rowsort
SELECT DISTINCT - + col0 AS col2, - ( - col0 ) FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT + ( + 65 ) FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT - 69 * - + 35 * - 65 FROM tab2 AS cor0
----
-156975
-156975
-156975

query II rowsort
SELECT DISTINCT + - col1 AS col0, - col0 * + + col1 FROM tab2 AS cor0
----
-51
-2346
-67
-5025
-77
-4928

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + ( + 43 ) / - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + ( 76 )
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - col1 * 72 * - + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - ( - 79 ) ) * + col0 AS col1 FROM tab0
----
1185
6873
7663

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND col0 + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4847
SELECT ALL col0 / col0 + - col2 * + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL col0 / col0 + - col2 * + CAST ( NULL AS REAL ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - col2 AS col2, - col1 col1 FROM tab1 AS cor0
----
-45
-14
23
-47
26
-5

query I rowsort
SELECT - 94 * + - ( col2 ) FROM tab1 AS cor0
----
5546
6392
9024

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN 88 AND NULL
----

query I rowsort
SELECT + 47 FROM tab2 WHERE - 29 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 83 IS NOT NULL
----

query I rowsort
SELECT - 41 + - col0 - - + col2 + + 48 AS col1 FROM tab1
----
-16
-19
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * + 45 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT - - 31 DIV - 89 + + + 35 FROM tab1 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-4855
SELECT - - 31 / - 89 + + + 35 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT - - col2 + - - 58 + - col0 * col1 FROM tab0 AS cor0
----
-1110
-1759
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT - - COUNT( * ) + - ( 10 ) AS col0 FROM tab0 cor0 WHERE NOT - col1 BETWEEN col0 AND col0
----
-7

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT - - COUNT ( * ) + - ( 10 ) AS col0 FROM tab0 cor0 WHERE NOT - col1 BETWEEN col0 AND col0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + + - 22 col1 FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT + 68 + + - col0 * + col1 * - + col1 - + col1 + - + 57 AS col2 FROM tab2 AS cor0
----
119606
336619
379390

query I rowsort
SELECT DISTINCT 36 * - col1 FROM tab2 AS cor0
----
-1836
-2412
-2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - - 80 col1 FROM tab0 AS cor0
----
-1
59
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col1 * 15 FROM tab0
----
1215
15
315

query I rowsort
SELECT DISTINCT - + col1 * - 92 AS col2 FROM tab1 AS cor0 WHERE NOT + 88 * + + col0 <= NULL
----

query I rowsort
SELECT ALL ( ( col1 ) ) * col2 + + col0 + - col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 - + + 73 AS col2 FROM tab0 AS cor0
----
-52
-72
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT DISTINCT - - COUNT( * ) + - 70 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - - COUNT ( * ) + - 70 FROM tab2 AS cor0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT DISTINCT col0 DIV - - 95 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT col0 / - - 95 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT ALL + ( + COUNT( * ) ) DIV + COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + ( + COUNT ( * ) ) / + COUNT ( * ) AS col1 FROM tab1
----
1

query I rowsort
SELECT + + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + col0 + + - 8 AS col2 FROM tab2 AS cor0
----
-1066
-2568
-4358

query I rowsort
SELECT + col2 * + + col2 + + + ( + 35 ) AS col1 FROM tab1 AS cor0
----
3516
4659
9251

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT + ( + SUM( ALL + + col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + ( + SUM ( ALL + + col0 ) ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE + 24 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT 23 NOT BETWEEN NULL AND col2 )
----
1

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT 23 NOT BETWEEN NULL AND col2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT - MAX( DISTINCT + - 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-4877
SELECT - MAX ( DISTINCT + - 32 ) FROM tab0
----
32

query I rowsort
SELECT col0 * - 51 FROM tab0 WHERE NOT - ( + + col1 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col2, - 77 AS col1 FROM tab0
----
10
-77
47
-77
99
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT ( - ( + COUNT( * ) ) ) + + + 91 * ( - 61 ) FROM tab0 AS cor0
----
-5554

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) + + + 91 * ( - 61 ) FROM tab0 AS cor0
----
-5554

query I rowsort
SELECT DISTINCT + col1 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 82 AND ( - 70 )
----

query I rowsort
SELECT ALL + + 69 + col2 FROM tab1 AS cor0
----
128
137
165

query I rowsort
SELECT ALL 49 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 38 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL - + col1 + - + col2 * + col0 + + 48 - col1 AS col0 FROM tab1 AS cor0
----
-4876
-4977
-6234

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - 93 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 * + col1 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
210
21
3807
81
99
1

query I rowsort
SELECT ALL - 47 FROM tab2 AS cor0 WHERE ( NULL ) <> col2 * 14 - + 43
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT COUNT( ALL + col1 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT COUNT ( ALL + col1 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 87 + + + 62 AS col0 FROM tab2 AS cor0
----
149
149
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 25 * col2 + 99 + col2 * + - col0 + - col0 - - + col2 col2, col1 AS col1 FROM tab2 AS cor0
----
-1485
77
-2818
67
-407
51

query III rowsort
SELECT * FROM tab2 WHERE - 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT MAX( DISTINCT + 52 ) * COUNT( * ) + + MIN( ALL - + 20 ) FROM tab0
----
136

skipif mysql # not compatible
query I rowsort label-4893
SELECT MAX ( DISTINCT + 52 ) * COUNT ( * ) + + MIN ( ALL - + 20 ) FROM tab0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT COUNT( * ) + - + 39 AS col0 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-4894
SELECT COUNT ( * ) + - + 39 AS col0 FROM tab1
----
-36

query I rowsort
SELECT + 83 + + 57 FROM tab0
----
140
140
140

query I rowsort
SELECT ALL col0 * col2 - - - ( + col2 ) AS col1 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT DISTINCT + ( 16 ) FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4898
SELECT + - COUNT( * ) AS col1, - 85 FROM tab0 AS cor0 WHERE NOT NULL = 16
----
0
-85

skipif mysql # not compatible
query II rowsort label-4898
SELECT + - COUNT ( * ) AS col1, - 85 FROM tab0 AS cor0 WHERE NOT NULL = 16
----
0
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT DISTINCT + 59 * - col1 + - col0 + - 91 * col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-2926
-387
-890

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT + 59 * - col1 + - col0 + - 91 * col1 / col2 AS col2 FROM tab1 AS cor0
----
-2926
-387
-890

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT 9 NOT IN ( col0 * - col2 * + 25 + 58 - + - 16, col2, col1 * + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4901
SELECT COUNT( DISTINCT + col1 ) DIV + COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4901
SELECT COUNT ( DISTINCT + col1 ) / + COUNT ( * ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + 0 * + col1 * + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4903
SELECT COUNT( * ), 38 AS col1 FROM tab0 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-4903
SELECT COUNT ( * ), 38 AS col1 FROM tab0 AS cor0
----
3
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4904
SELECT DISTINCT 18 DIV + col1 col2 FROM tab0 cor0
----
0
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4904
SELECT DISTINCT 18 / + col1 col2 FROM tab0 cor0
----
0
18

query II rowsort
SELECT ALL col1, + col0 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - ( - - SUM( - col0 ) ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4906
SELECT - ( - - SUM ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( + col2 ) )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + 18 + + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND col0 + - + 73
----

query I rowsort
SELECT + 8 + 38 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL COUNT( * ) col0 FROM tab1 WHERE NOT NULL <> col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4911
SELECT ALL COUNT ( * ) col0 FROM tab1 WHERE NOT NULL <> col0
----
0

query I rowsort
SELECT DISTINCT + + 76 * + 17 AS col2 FROM tab2 AS cor0
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT + + COUNT( DISTINCT + 28 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4913
SELECT + + COUNT ( DISTINCT + 28 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4914
SELECT DISTINCT - + 26 + - - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT - + 26 + - - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17
NULL

query I rowsort
SELECT ALL + col0 * - - 53 FROM tab2
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ( ( + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4916
SELECT ( ( + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - + col2 + + - 85 FROM tab1 cor0
----
-144
-153
-181

query I rowsort
SELECT col2 + - - col1 AS col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * + - 20 + - col1 FROM tab2 AS cor0
----
1273
1463
969

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * + - 20 + - col1 FROM tab2 AS cor0
----
1273
1463
969

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( + ( - 76 ) ) NOT BETWEEN - col0 * ( - - 6 ) + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT DISTINCT + 5 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + 5 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT MIN( DISTINCT - - 52 ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4922
SELECT MIN ( DISTINCT - - 52 ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT ALL + ( 61 ) * + col0 FROM tab1 AS cor0
----
3111
5185
5551

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT DISTINCT + 19 + + - COUNT( * ) DIV 51 AS col2 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + 19 + + - COUNT ( * ) / 51 AS col2 FROM tab0
----
19

query I rowsort
SELECT ALL + ( - 71 ) AS col2 FROM tab2 WHERE - + col2 IS NOT NULL
----
-71
-71
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-4926
SELECT + col2 - - + col1 AS col2, - col1 DIV - col0 FROM tab0
----
100
0
128
5
31
0

skipif mysql # not compatible
query II rowsort label-4926
SELECT + col2 - - + col1 AS col2, - col1 / - col0 FROM tab0
----
100
0
128
5
31
0

query I rowsort
SELECT - col1 * col2 FROM tab0 WHERE NOT + col1 * + col2 + + col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 * - ( - - col0 ) * - - 23 AS col2 FROM tab2
----
1119364
3768320
7503750

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT + 28 DIV + 23 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-4929
SELECT + 28 / + 23 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( ( 74 ) ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 54 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 30 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT - + 31 * col1 DIV - 61 FROM tab1 AS cor0
----
2
23
7

skipif mysql # not compatible
query I rowsort label-4933
SELECT - + 31 * col1 / - 61 FROM tab1 AS cor0
----
2
23
7

query I rowsort
SELECT DISTINCT - + 7 + 8 + - col2 FROM tab0 AS cor0
----
-46
-9
-98

query I rowsort
SELECT DISTINCT + + 43 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col2 + - col1
----

query I rowsort
SELECT ALL + 38 + col0 FROM tab2 cor0
----
102
113
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + 44 IS NULL
----

query I rowsort
SELECT ALL - 20 * - - col0 FROM tab1
----
-1020
-1700
-1820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 + - col2 col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT + ( - ( + - col1 ) ) * 98 * + - col2 AS col2 FROM tab0
----
-20580
-373086
-9702

onlyif mysql # aggregate syntax: 
query II rowsort label-4941
SELECT + COUNT( col0 ), + 25 col2 FROM tab1
----
3
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4941
SELECT + COUNT ( col0 ), + 25 col2 FROM tab1
----
3
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4942
SELECT + col2 * + + col1 AS col0, + CAST( + - col0 AS SIGNED ) AS col0 FROM tab2
----
1173
-46
3080
-64
3886
-75

skipif mysql # not compatible
query II rowsort label-4942
SELECT + col2 * + + col1 AS col0, + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2
----
1173
-46
3080
-64
3886
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT SUM( DISTINCT - + col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4943
SELECT SUM ( DISTINCT - + col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL MAX( DISTINCT - 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL MAX ( DISTINCT - 40 ) FROM tab2
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4945
SELECT col0 * - col0 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT col0 * - col0 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT - COUNT( + 41 ) * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - COUNT ( + 41 ) * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT COUNT( * ) + - ( - + ( 59 ) ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4947
SELECT COUNT ( * ) + - ( - + ( 59 ) ) FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT - + MAX( col2 ) + - CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-61

skipif mysql # not compatible
query I rowsort label-4948
SELECT - + MAX ( col2 ) + - CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4949
SELECT - ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ( + - MAX( + + 17 ) ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-4950
SELECT ( + - MAX ( + + 17 ) ) FROM tab1
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 42 ) * + ( - + 52 ) col2 FROM tab1 WHERE NULL BETWEEN + col0 / + + col1 AND NULL
----

query I rowsort
SELECT - col0 + - - ( + col2 ) FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4953
SELECT + 18 * 97 + + + SUM( ALL - + ( - ( - 46 ) ) ) + + MAX( DISTINCT + ( + - col1 ) ) * + COUNT( - col0 ) + 34 DIV - COUNT( * ) FROM tab0 AS cor0
----
1594

skipif mysql # not compatible
query I rowsort label-4953
SELECT + 18 * 97 + + + SUM ( ALL - + ( - ( - 46 ) ) ) + + MAX ( DISTINCT + ( + - col1 ) ) * + COUNT ( - col0 ) + 34 / - COUNT ( * ) FROM tab0 AS cor0
----
1594

query II rowsort
SELECT ALL - col2 + - + col2 AS col2, col2 * - 12 FROM tab1 AS cor0
----
-118
-708
-136
-816
-192
-1152

query I rowsort
SELECT col0 * - 10 AS col2 FROM tab2
----
-460
-640
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT + col2 DIV + 25 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4956
SELECT + col2 / + 25 FROM tab0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * col2 + + 31 + - 73 <> 42 / - col2 / col2 + + + col2 + + 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - - 44 * + col2 * + - col1 >= NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 - + col1 - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT - + col1 AS col2, + col0 AS col2 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT - 75 * col2 + + col2 FROM tab1
----
-4366
-5032
-7104

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 16 ) >= col1 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 41 ) IN ( - col1 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT ALL + MAX( 34 ) AS col0 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + MAX ( 34 ) AS col0 FROM tab0
----
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 19 + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * - col2 + - ( - col0 ) * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 88 + - col2 AS col2 FROM tab1 WHERE NOT NULL >= ( + 78 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + col2 + + 36 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 76 ) <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4970
SELECT * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4970
SELECT * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-4971
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col1
----
0

query I rowsort
SELECT - 92 * col1 AS col2 FROM tab0
----
-1932
-7452
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT DISTINCT col2 + + 56 FROM tab2 WHERE 77 * 87 < col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT col2 + + 56 FROM tab2 WHERE 77 * 87 < col0 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4974
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + col0 * + col2 BETWEEN col2 AND + 99 * 23 + - col1
----

skipif mysql # not compatible
query III rowsort label-4974
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + col0 * + col2 BETWEEN col2 AND + 99 * 23 + - col1
----

query I rowsort
SELECT DISTINCT col2 + col2 * - 79 FROM tab0
----
-3666
-7722
-780

query I rowsort
SELECT col0 - col2 * + 79 FROM tab0
----
-3698
-703
-7724

query I rowsort
SELECT ALL + ( + col2 ) FROM tab0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 59 col0 FROM tab0 WHERE NULL NOT IN ( + col0 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4979
SELECT + CAST( - col1 AS SIGNED ) FROM tab2 WHERE NOT + 45 - + col1 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4979
SELECT + CAST ( - col1 AS INTEGER ) FROM tab2 WHERE NOT + 45 - + col1 IS NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - ( col2 * 27 ) + + col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 + + col0 FROM tab0 AS cor0 WHERE ( + col0 ) + col2 = - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4983
SELECT 1 DIV 15 - CAST( - COUNT( * ) AS SIGNED ) * - 36 AS col0 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4983
SELECT 1 / 15 - CAST ( - COUNT ( * ) AS INTEGER ) * - 36 AS col0 FROM tab2 AS cor0
----
-108

query I rowsort
SELECT ALL ( - 50 ) + col2 AS col1 FROM tab1 AS cor0
----
18
46
9

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE - 48 * col2 + + col2 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 40 ) > col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT ALL ( col2 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 3 col2 FROM tab0
----
102
13
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4989
SELECT DISTINCT 67 + col1 DIV - col0 AS col1 FROM tab0
----
62
67

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT 67 + col1 / - col0 AS col1 FROM tab0
----
62
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT col1 + - CAST( NULL AS SIGNED ) * - col1 FROM tab1 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4990
SELECT col1 + - CAST ( NULL AS INTEGER ) * - col1 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT - 38 + - ( + col1 ) AS col1 FROM tab1
----
-43
-52
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE - col1 + + ( CAST( NULL AS SIGNED ) ) BETWEEN - col2 AND ( + 13 )
----

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE - col1 + + ( CAST ( NULL AS INTEGER ) ) BETWEEN - col2 AND ( + 13 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 + + 56 * - col2 ) IN ( 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 - 84 FROM tab0 AS cor0
----
-171
-181
-99

query I rowsort
SELECT 39 AS col0 FROM tab2 AS cor0 WHERE col2 - + col1 IS NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT + 51 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4997
SELECT + 51 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT + - 77 * - col0 - - 14 AS col1 FROM tab2 AS cor0
----
3556
4942
5789

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col0 ) <> col1 + 92
----
0

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col0 ) <> col1 + 92
----
0

query I rowsort
SELECT 2 * col0 * 35 AS col2 FROM tab0
----
1050
6090
6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT MIN( CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT MIN ( CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT DISTINCT + CAST( - 63 AS SIGNED ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + CAST ( - 63 AS INTEGER ) FROM tab2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5003
SELECT ALL * FROM tab2 WHERE CAST( col2 AS SIGNED ) * + 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5003
SELECT ALL * FROM tab2 WHERE CAST ( col2 AS INTEGER ) * + 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL CAST( 92 AS SIGNED ) AS col0 FROM tab1
----
92
92
92

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL CAST ( 92 AS INTEGER ) AS col0 FROM tab1
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 97 ) < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 * + - 16 + ( col2 ) FROM tab1 cor0
----
1003
1156
1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE - col1 * 24 IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE - col1 * 24 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT + COUNT( * ) * - 21 AS col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + COUNT ( * ) * - 21 AS col1 FROM tab1 AS cor0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - col2 )
----
0

query I rowsort
SELECT ALL - - 95 AS col0 FROM tab1 cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT + COUNT( DISTINCT - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT DISTINCT ( COUNT( * ) ) * + 20 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
60

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT ( COUNT ( * ) ) * + 20 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5015
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5015
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT ALL + CAST( - + 60 AS SIGNED ) + + + col2 + 98 * + col2 FROM tab0 AS cor0
----
4593
930
9741

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + CAST ( - + 60 AS INTEGER ) + + + col2 + 98 * + col2 FROM tab0 AS cor0
----
4593
930
9741

onlyif mysql # aggregate syntax: 
query II rowsort label-5017
SELECT ALL - + COUNT( * ) AS col2, COUNT( * ) * + - 46 FROM tab0 cor0
----
-3
-138

skipif mysql # not compatible
query II rowsort label-5017
SELECT ALL - + COUNT ( * ) AS col2, COUNT ( * ) * + - 46 FROM tab0 cor0
----
-3
-138

query I rowsort
SELECT ALL 29 + + col1 AS col1 FROM tab0 AS cor0
----
110
30
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 + - + col2 col0 FROM tab2 AS cor0
----
-17
-35
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL - - CAST( + 49 AS SIGNED ) FROM tab0 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - - CAST ( + 49 AS INTEGER ) FROM tab0 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT MAX( + ( - ( + 25 ) ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN - 70 * + - 45 AND ( 41 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT MAX ( + ( - ( + 25 ) ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN - 70 * + - 45 AND ( 41 / col0 )
----
NULL

query I rowsort
SELECT DISTINCT + + 61 + - col0 FROM tab2 cor0
----
-14
-3
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT col1 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT col1 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 17 / + col1 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL - 80 * col0 + - ( + col1 ) - - col1 FROM tab2
----
-3680
-5120
-6000

query I rowsort
SELECT col0 + + ( - ( col0 ) ) * 30 FROM tab2
----
-1334
-1856
-2175

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col0 FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + col1 col2 FROM tab0
----
1743
6723
83

query I rowsort
SELECT DISTINCT - col2 - + + 30 AS col2 FROM tab0
----
-129
-40
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5031
SELECT ( + + CAST( NULL AS DECIMAL ) ) 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-5031
SELECT ( + + CAST ( NULL AS REAL ) ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - COUNT( * ) * 71 - - 93 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - COUNT ( * ) * 71 - - 93 FROM tab0 AS cor0
----
-120

query I rowsort
SELECT + 20 * - + 72 - + col1 - - - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1537
-1581
-1582

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 >= - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT + MAX( - 88 ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + MAX ( - 88 ) FROM tab2 AS cor0
----
-88

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 54 - + ( - 83 ) BETWEEN ( - 9 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT ( - 99 IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT ALL + SUM( ALL - + 15 ) DIV + 27 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL + SUM ( ALL - + 15 ) / + 27 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT + col0 * + CAST( col0 AS SIGNED ) FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-5039
SELECT + col0 * + CAST ( col0 AS INTEGER ) FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT ALL + CAST( NULL AS SIGNED ) * 92 / + SUM( DISTINCT + - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + CAST ( NULL AS INTEGER ) * 92 / + SUM ( DISTINCT + - col1 ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + + col0 + - 23 + + 55 / 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5042
SELECT + col0, - col2 DIV + 8 FROM tab2
----
46
-2
64
-5
75
-7

skipif mysql # not compatible
query II rowsort label-5042
SELECT + col0, - col2 / + 8 FROM tab2
----
46
-2
64
-5
75
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-5043
SELECT ALL - 53, ( - + COUNT( * ) ) AS col2 FROM tab0
----
-53
-3

skipif mysql # not compatible
query II rowsort label-5043
SELECT ALL - 53, ( - + COUNT ( * ) ) AS col2 FROM tab0
----
-53
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL + COUNT( DISTINCT + + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + COUNT ( DISTINCT + + col1 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL - ( + COUNT( DISTINCT + col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - ( + COUNT ( DISTINCT + col1 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 + + + 8 + - + col1 FROM tab2 AS cor0
----
2303
4859
4966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + 58 + - - 60 + - col0 - 14 * col1 AS col0 FROM tab0
----
-242
-950
8

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + 58 + - - 60 + - col0 - 14 * col1 AS col0 FROM tab0
----
-242
-950
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5048
SELECT - CAST( NULL AS DECIMAL ) / - + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT - CAST ( NULL AS REAL ) / - + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) + - 18 col0 FROM tab0 AS cor0
----
-17
3
63

query I rowsort
SELECT col0 + + + col2 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab1 AS cor0 WHERE ( ( NULL IS NULL ) )
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT - 19 + + 89 AS col0, COUNT( * ) FROM tab1 AS cor0
----
70
3

skipif mysql # not compatible
query II rowsort label-5052
SELECT - 19 + + 89 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
70
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT DISTINCT + + 72 + 0 DIV - 35 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + + 72 + 0 / - 35 FROM tab1 AS cor0
----
72

query I rowsort
SELECT - - 1 * 67 + ( - 53 ) AS col2 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - COUNT( * ) - + AVG ( DISTINCT - 97 ) + - AVG ( DISTINCT - 18 ) * MIN( + col2 ) FROM tab1 cor0 WHERE ( NOT NULL >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT - COUNT ( * ) - + AVG ( DISTINCT - 97 ) + - AVG ( DISTINCT - 18 ) * MIN ( + col2 ) FROM tab1 cor0 WHERE ( NOT NULL >= NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( - 84 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5056
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( - 84 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE 37 IS NULL
----

query I rowsort
SELECT 65 + 10 * 81 AS col1 FROM tab0 cor0
----
875
875
875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5059
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0, col1 * - + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5059
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0, col1 * - + CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + - ( - COUNT( + - col0 ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5061
SELECT + - ( - COUNT ( + - col0 ) ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT ( - col0 * col0 + + col1 - + col1 + - col1 * - col1 ) >= NULL
----

query I rowsort
SELECT ALL - col1 * - - col0 AS col2 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( - - 27 + - - col2 + + 11 + + col2 / + col2 * + 29 * + 1 )
----

query I rowsort
SELECT 85 * - + col2 AS col2 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT DISTINCT 25 * + 91 AS col2 FROM tab1
----
2275

query I rowsort
SELECT col2 - + col1 AS col2 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL - COUNT( * ) + - 1 AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - COUNT ( * ) + - 1 AS col1 FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5069
SELECT DISTINCT - + col1 + + + CAST( NULL AS SIGNED ) - + 76, 67 col0 FROM tab0 AS cor0
----
NULL
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5069
SELECT DISTINCT - + col1 + + + CAST ( NULL AS INTEGER ) - + 76, 67 col0 FROM tab0 AS cor0
----
NULL
67

query I rowsort
SELECT 88 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # DIV for integer division: 
query I rowsort label-5071
SELECT DISTINCT col1 DIV - 42 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT col1 / - 42 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT DISTINCT + COUNT( * ) DIV SUM( - 20 ) + + + ( - COUNT( * ) ) + 37 + 54 DIV + 76 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT + COUNT ( * ) / SUM ( - 20 ) + + + ( - COUNT ( * ) ) + 37 + 54 / + 76 FROM tab0 AS cor0
----
34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 35 BETWEEN 39 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5074
SELECT * FROM tab1 AS cor0 WHERE NOT 51 * - 67 * - col1 * + + CAST( NULL AS SIGNED ) * ( + 96 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5074
SELECT * FROM tab1 AS cor0 WHERE NOT 51 * - 67 * - col1 * + + CAST ( NULL AS INTEGER ) * ( + 96 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + 66 * + 78 * COUNT( DISTINCT - col0 ) FROM tab1
----
15444

skipif mysql # not compatible
query I rowsort label-5075
SELECT + 66 * + 78 * COUNT ( DISTINCT - col0 ) FROM tab1
----
15444

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 89 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + - col0 / - col0 > NULL
----

query I rowsort
SELECT ALL + + col2 + + col2 AS col1 FROM tab2 WHERE NOT - 66 NOT IN ( 59, col1 * - + col0, + col0 * col1 )
----

query I rowsort
SELECT - 46 * ( - - 42 ) AS col1 FROM tab0
----
-1932
-1932
-1932

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL - CAST( - + 38 AS SIGNED ) FROM tab1 cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL - CAST ( - + 38 AS INTEGER ) FROM tab1 cor0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT DISTINCT col0 * col2 + - CAST( NULL AS SIGNED ) * ( - col2 ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT col0 * col2 + - CAST ( NULL AS INTEGER ) * ( - col2 ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * col1 + + 77 FROM tab1
----
-348
-4200
-637

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) BETWEEN + 0 AND NULL
----

query I rowsort
SELECT 68 * - 16 FROM tab2
----
-1088
-1088
-1088

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NULL OR + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * - + 16 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT - 98 + - + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - 98 + - + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL - ( + MIN( - 79 ) ) + + 10 FROM tab1 cor0
----
89

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - ( + MIN ( - 79 ) ) + + 10 FROM tab1 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + + COUNT( * ) + 45 AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5090
SELECT + + COUNT ( * ) + 45 AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT + + 31 * + 79 + + - col2 + - 85 FROM tab0 AS cor0
----
2265
2317
2354

query I rowsort
SELECT 94 FROM tab1 AS cor0 WHERE NULL IS NULL
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - col1 col2, + 73 FROM tab0
----
-66
73
66
73
96
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + col2 / col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5094
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + col2 / col0 col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT 46 + - + SUM( ( + - 59 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5095
SELECT 46 + - + SUM ( ( + - 59 ) ) FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5096
SELECT + ( CAST( NULL AS SIGNED ) ) + + + col1 + - col0 / + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT + ( CAST ( NULL AS INTEGER ) ) + + + col1 + - col0 / + - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT + + col2 DIV + - 50 + 60 AS col2 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-5097
SELECT + + col2 / + - 50 + 60 AS col2 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + 11 * - 19 FROM tab0
----
-209
-209
-209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5099
SELECT DISTINCT + MIN( + CAST( + col0 AS SIGNED ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + MIN ( + CAST ( + col0 AS INTEGER ) ) FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE 38 IN ( 17, ( + - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5101
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT 56 AS col1, 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 4f52dd58a20f90492d4cca46e7ec4a5e

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - + col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - - 60 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL + - SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT DISTINCT CAST( NULL AS SIGNED ) / - - ( + - 44 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - - ( + - 44 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT - - 99 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + 0 NOT IN ( - col1, 81 )
----

skipif mysql # not compatible
query I rowsort label-5107
SELECT - - 99 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + 0 NOT IN ( - col1, 81 )
----

query I rowsort
SELECT ALL - - ( 66 ) AS col1 FROM tab1 AS cor0
----
66
66
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * col2 IS NULL
----

query II rowsort
SELECT + - col1 AS col2, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - - 94 + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
94

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - - 94 + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * - 22 col0 FROM tab1
----
-29568
-6490
-70312

query I rowsort
SELECT DISTINCT col0 * + - 47 * + - col0 FROM tab1
----
122247
339575
389207

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + + col0 ) * - - 83 AS col1 FROM tab1
----
4233
7055
7553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT - CAST( + MAX( ALL + + col2 ) AS SIGNED ) FROM tab1 WHERE NOT + - col0 > ( - CAST( NULL AS SIGNED ) * 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT - CAST ( + MAX ( ALL + + col2 ) AS INTEGER ) FROM tab1 WHERE NOT + - col0 > ( - CAST ( NULL AS INTEGER ) * 66 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT DISTINCT ( col0 ) DIV + ( - col1 ) AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT ( col0 ) / + ( - col1 ) AS col2 FROM tab0
----
-4
-97
0

query I rowsort
SELECT ALL + 20 * + ( + col2 ) * 13 + + col0 * 63 FROM tab2
----
14432
19805
8878

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 62 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT DISTINCT + CAST( - 32 AS SIGNED ) * + col2 AS col1 FROM tab1
----
-1888
-2176
-3072

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + CAST ( - 32 AS INTEGER ) * + col2 AS col1 FROM tab1
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT + - SUM( ALL + col1 ) AS col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-103
-3

skipif mysql # not compatible
query II rowsort label-5121
SELECT + - SUM ( ALL + col1 ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-103
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT 4 + - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-5122
SELECT 4 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
7

query I rowsort
SELECT 47 + + col2 + + col2 FROM tab0
----
141
245
67

query I rowsort
SELECT DISTINCT + col0 + 51 + + col1 AS col2 FROM tab1 cor0
----
116
141
189

query II rowsort
SELECT ALL col2, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5126
SELECT ALL + CAST( NULL AS DECIMAL ) + + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + CAST ( NULL AS REAL ) + + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5127
SELECT * FROM tab2 cor0 WHERE ( ( CAST( NULL AS SIGNED ) ) ) >= - 60 * + - col0
----

skipif mysql # not compatible
query III rowsort label-5127
SELECT * FROM tab2 cor0 WHERE ( ( CAST ( NULL AS INTEGER ) ) ) >= - 60 * + - col0
----

query I rowsort
SELECT ALL 47 + + - 26 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT ALL - col2 * col2 - + + 60 * - col1 FROM tab0
----
-9741
1160
2651

query III rowsort
SELECT * FROM tab1 WHERE col1 <> - - 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND + 91 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5133
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE col2 > col2 AND ( NULL > NULL )
----

query I rowsort
SELECT 85 - - col0 + 25 AS col2 FROM tab0
----
125
197
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT + ( - + ( + - col2 ) ) / ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT + ( - + ( + - col2 ) ) / ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT COUNT( * ) * + - 32 + + 46 col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col2 * 24 - - - ( - col0 )
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5137
SELECT DISTINCT COUNT ( * ) * + - 32 + + 46 col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col2 * 24 - - - ( - col0 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL - MIN( - - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - MIN ( - - col2 ) FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5139
SELECT COUNT( * ) * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT COUNT ( * ) * + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT - 5 * col1 * 18 DIV ( - 90 ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5140
SELECT - 5 * col1 * 18 / ( - 90 ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5141
SELECT DISTINCT col0 col0, - CAST( - col2 AS SIGNED ) col2 FROM tab2
----
46
23
64
40
75
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5141
SELECT DISTINCT col0 col0, - CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ALL + 59 * - 42 FROM tab1
----
-2478
-2478
-2478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - + col2 AS col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT col1 + - + col0 AS col2 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5146
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5146
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 > + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5147
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5147
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col1 col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT - SUM( + 31 ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT - SUM ( + 31 ) AS col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT - - 10 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT - MAX( DISTINCT 11 ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - MAX ( DISTINCT 11 ) FROM tab1
----
-11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 23 - col1 + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 26 ) <> + - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - - MIN( - col1 ) - - 85 + - - 45 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-5154
SELECT - - MIN ( - col1 ) - - 85 + - - 45 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5155
SELECT DISTINCT + CAST( NULL AS SIGNED ), col1 AS col1 FROM tab2 AS cor0 WHERE NOT + ( - 47 ) IS NULL
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5155
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab2 AS cor0 WHERE NOT + ( - 47 ) IS NULL
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL 58 * + col2 FROM tab2 AS cor0
----
1334
2320
3364

query I rowsort
SELECT - - 85 + - - 61 - - 89 AS col1 FROM tab2 AS cor0
----
235
235
235

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NULL <= - 40
----

query I rowsort
SELECT ALL + 20 + + ( + + col0 ) FROM tab2 AS cor0
----
66
84
95

query II rowsort
SELECT + col1 + + - col0, ( - + col0 ) AS col1 FROM tab1 cor0
----
-37
-51
-44
-91
-80
-85

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE NOT col1 = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + 32 col1 FROM tab0 cor0
----
131
42
79

query I rowsort
SELECT 98 + + col1 + + - col1 + + + 54 FROM tab2
----
152
152
152

query I rowsort
SELECT + 78 + - col2 FROM tab0
----
-21
31
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT CAST( - + 23 AS SIGNED ) + col1 FROM tab2
----
28
44
54

skipif mysql # not compatible
query I rowsort label-5165
SELECT CAST ( - + 23 AS INTEGER ) + col1 FROM tab2
----
28
44
54

query I rowsort
SELECT ALL - 50 + - + col2 * col2 AS col2 FROM tab2
----
-1650
-3414
-579

query I rowsort
SELECT + 76 + + col0 AS col1 FROM tab2
----
122
140
151

query II rowsort
SELECT DISTINCT - col1, + col2 AS col2 FROM tab1 cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT + - col2 * + + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL + 25 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL + 25 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 11 * - col1 AS col2 FROM tab1
----
-154
-517
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5172
SELECT COUNT( CAST( NULL AS SIGNED ) ) * + 35 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) * + 35 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT + - COUNT( * ) * - 64 + - 25 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
551

skipif mysql # not compatible
query I rowsort label-5173
SELECT + - COUNT ( * ) * - 64 + - 25 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
551

query II rowsort
SELECT + - col2 AS col1, - 9 AS col2 FROM tab0 AS cor0
----
-10
-9
-47
-9
-99
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - 21 BETWEEN - 99 / col2 AND - + col2 * - - col2 + col0 * + col1 * + col0
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT MAX( + col1 ) col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5176
SELECT MAX ( + col1 ) col0 FROM tab1 cor0
----
47

query I rowsort
SELECT - - col0 + + + 7 FROM tab0 AS cor0
----
104
22
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 74
----

query I rowsort
SELECT - 43 + + 50 FROM tab0 AS cor0
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = - col0 + + col0
----

query I rowsort
SELECT 45 * - ( + col0 ) AS col1 FROM tab1
----
-2295
-3825
-4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT CAST( 2 AS SIGNED ) * col1 * - + col1 * + 55 + + col2 FROM tab1
----
-21464
-242922
-2691

skipif mysql # not compatible
query I rowsort label-5182
SELECT CAST ( 2 AS INTEGER ) * col1 * - + col1 * + 55 + + col2 FROM tab1
----
-21464
-242922
-2691

query I rowsort
SELECT - ( 71 ) FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5184
SELECT * FROM tab2 AS cor0 WHERE 31 + + 71 <> + CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-5184
SELECT * FROM tab2 AS cor0 WHERE 31 + + 71 <> + CAST ( NULL AS INTEGER ) * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col0 FROM tab1 cor0 WHERE - col0 + - col0 <= col0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT - CAST( NULL AS SIGNED ) * col2 - + + col1 / - + 90 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT - CAST ( NULL AS INTEGER ) * col2 - + + col1 / - + 90 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 21 + 36 * col0 AS col0 FROM tab0
----
3111
3471
519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 - + + 71 col2 FROM tab1
----
-215
-218
-230

query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab2 WHERE ( + 1 ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + col1 + + 64 AS col2 FROM tab0
----
145
65
85

query I rowsort
SELECT ALL + col0 * - 6 + + + col2 FROM tab0 AS cor0
----
-43
-483
-512

onlyif mysql # DIV for integer division: 
query II rowsort label-5192
SELECT + col1 * ( col1 ) AS col2, col2 * col2 + 91 DIV + - col1 FROM tab1 AS cor0
----
196
9210
2209
4623
25
3463

skipif mysql # not compatible
query II rowsort label-5192
SELECT + col1 * ( col1 ) AS col2, col2 * col2 + 91 / + - col1 FROM tab1 AS cor0
----
196
9210
2209
4623
25
3463

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT COUNT( * ) AS col0, + 90 FROM tab2 AS cor0
----
3
90

skipif mysql # not compatible
query II rowsort label-5193
SELECT COUNT ( * ) AS col0, + 90 FROM tab2 AS cor0
----
3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL - 42 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - 42 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-126

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + col1 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * col2 col2 FROM tab2 AS cor0
----
197120
291450
53958

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * 81 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( - 73 )
----

query II rowsort
SELECT DISTINCT + col0 AS col1, 87 AS col1 FROM tab2 AS cor0
----
46
87
64
87
75
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT DISTINCT + MAX( + 6 ) + - MAX( - col2 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT + MAX ( + 6 ) + - MAX ( - col2 ) FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT ALL + + MAX( + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL + + MAX ( + + col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5202
SELECT - col2, col2 AS col0 FROM tab0 WHERE NOT - - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-10
10
-47
47
-99
99

skipif mysql # not compatible
query II rowsort label-5202
SELECT - col2, col2 AS col0 FROM tab0 WHERE NOT - - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-10
10
-47
47
-99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT 15 DIV + col1 FROM tab0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-5203
SELECT 15 / + col1 FROM tab0
----
0
0
15

query I rowsort
SELECT ( + + 64 ) FROM tab0
----
64
64
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 12 * 74 * 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT MAX( ALL col0 ) * COUNT( * ) FROM tab0 cor0
----
291

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT MAX ( ALL col0 ) * COUNT ( * ) FROM tab0 cor0
----
291

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT 26 DIV MAX( + - ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT 26 / MAX ( + - ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5209
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + CAST( NULL AS SIGNED ) IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-5209
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + CAST ( NULL AS INTEGER ) IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col2 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5211
SELECT + 64, - COUNT( * ) * - 44 AS col1 FROM tab0
----
64
132

skipif mysql # not compatible
query II rowsort label-5211
SELECT + 64, - COUNT ( * ) * - 44 AS col1 FROM tab0
----
64
132

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT + col2 * col0 * 3 + + ( + - 46 ) DIV - 74 FROM tab1
----
14688
15045
18564

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + col2 * col0 * 3 + + ( + - 46 ) / - 74 FROM tab1
----
14688
15045
18564

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col2 + + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT COUNT( * ) * + + MIN( - col0 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT COUNT ( * ) * + + MIN ( - col0 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - 32 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT col0 + - CAST( + 13 AS SIGNED ) AS col0 FROM tab2
----
33
51
62

skipif mysql # not compatible
query I rowsort label-5216
SELECT col0 + - CAST ( + 13 AS INTEGER ) AS col0 FROM tab2
----
33
51
62

query I rowsort
SELECT DISTINCT + 18 * - ( - 60 ) FROM tab1 AS cor0
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL - 44 + - 32 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL - 44 + - 32 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
52

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col0 * col0 AND - - col1
----

query I rowsort
SELECT + - 78 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT + 24 - + 69 AS col2 FROM tab2 cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT DISTINCT - col1 DIV ( - col1 ) + - + 57 AS col1 FROM tab1 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - col1 / ( - col1 ) + - + 57 AS col1 FROM tab1 cor0
----
-56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN - - col0 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT DISTINCT - col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT - col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 col1, + col2 - + - col0 + + col2 AS col2 FROM tab2 AS cor0
----
2346
92
4928
144
5025
191

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + 11 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 54, col0 FROM tab2
----
54
46
54
64
54
75

query II rowsort
SELECT DISTINCT - 98, + 57 AS col0 FROM tab1
----
-98
57

query II rowsort
SELECT - col2 AS col1, 10 FROM tab0
----
-10
10
-47
10
-99
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT - MAX( DISTINCT 67 ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-5230
SELECT - MAX ( DISTINCT 67 ) FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL - COUNT( * ) * 85 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL - COUNT ( * ) * 85 FROM tab0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT - col1 DIV 72 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5232
SELECT - col1 / 72 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT DISTINCT - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) / COUNT( * ) / + - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5234
SELECT + CAST( NULL AS DECIMAL ) + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col1
----

skipif mysql # not compatible
query I rowsort label-5234
SELECT + CAST ( NULL AS REAL ) + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT MIN( ALL - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT MIN ( ALL - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL - + CAST( + - 56 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE 31 NOT BETWEEN 61 AND NULL
----
56
56
56

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - + CAST ( + - 56 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE 31 NOT BETWEEN 61 AND NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT + - COUNT( - col1 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5237
SELECT DISTINCT + - COUNT ( - col1 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 + + col1 * - 4 FROM tab1 AS cor0
----
-120
39
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5239
SELECT - 53 * - COUNT( * ) * 91 + - CAST( NULL AS SIGNED ) + + 53 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT - 53 * - COUNT ( * ) * 91 + - CAST ( NULL AS INTEGER ) + + 53 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - + 39 * - + ( + 40 ) + + col1 FROM tab1 AS cor0
----
-132595
-141913
-79546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 + - col0 + + + col1 col0 FROM tab2 AS cor0
----
-78
-86
-99

query I rowsort
SELECT ALL ( + 93 ) + - - col0 FROM tab1 AS cor0
----
144
178
184

query II rowsort
SELECT ALL 1 AS col1, - col1 FROM tab2 AS cor0
----
1
-51
1
-67
1
-77

query I rowsort
SELECT + col0 - - - 66 FROM tab0 AS cor0
----
-51
21
31

query I rowsort
SELECT + 11 - col0 + - 98 - - col2 FROM tab1 cor0
----
-110
-113
-42

query I rowsort
SELECT ALL + col2 + + + col2 AS col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT ALL + col2 DIV col0 + col1 + - + col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + col2 / col0 + col1 + - + col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT ALL SUM( + col2 ) * - 95 - + 56 - - MAX( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL SUM ( + col2 ) * - 95 - + 56 - - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT 72 + - - col1 FROM tab1
----
119
77
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + - 53 + + - 97 + - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5250
SELECT + - 53 + + - 97 + - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-159

query I rowsort
SELECT DISTINCT + 90 * col0 - + col0 AS col1 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT DISTINCT col1 * - - 33 AS col1 FROM tab1
----
1551
165
462

query I rowsort
SELECT ALL + col1 * + - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT ALL col2, col0, + col1 FROM tab0 AS cor0
----
9 values hashing to 32015b7fe2b950b49a13c53412c163f7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5255
SELECT DISTINCT - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5255
SELECT DISTINCT - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col1 ), - col0 col2 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT - 13 DIV + col1 AS col2 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5257
SELECT - 13 / + col1 AS col2 FROM tab1
----
-2
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT ALL ( - MAX( DISTINCT 81 ) ), 56 AS col1 FROM tab1
----
-81
56

skipif mysql # not compatible
query II rowsort label-5258
SELECT ALL ( - MAX ( DISTINCT 81 ) ), 56 AS col1 FROM tab1
----
-81
56

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 34 * + + ( col2 ) * - - 22 + + - 92 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL COUNT( * ) * - 14 * - 34 FROM tab2
----
1428

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL COUNT ( * ) * - 14 * - 34 FROM tab2
----
1428

query II rowsort
SELECT 8 * + col0 AS col1, col2 FROM tab0
----
120
47
696
10
776
99

query I rowsort
SELECT ALL + 10 * - col1 AS col2 FROM tab2
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT - - COUNT( * ) AS col0, - 34 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5263
SELECT - - COUNT ( * ) AS col0, - 34 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT + COUNT( * ) * 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + COUNT ( * ) * 0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 90 ) col1 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT ALL col2 + col2 - - col0 * col0 AS col0 FROM tab2 AS cor0
----
2162
4176
5741

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE - 88 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT DISTINCT + ( + + ( + 51 ) ) DIV - col1 + 27 AS col0 FROM tab1 cor0
----
17
24
26

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + ( + + ( + 51 ) ) / - col1 + 27 AS col0 FROM tab1 cor0
----
17
24
26

query I rowsort
SELECT ALL col1 - - 6 FROM tab1 cor0
----
11
20
53

query I rowsort
SELECT + col0 + + 79 FROM tab0
----
166
176
94

query I rowsort
SELECT ALL - ( 26 ) + - col0 FROM tab1
----
-111
-117
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + - 24 col0 FROM tab0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL COUNT( - 32 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL COUNT ( - 32 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT ALL col1 DIV + - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL col1 / + - col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT DISTINCT + 87 + + col2, 37 AS col2 FROM tab0
----
134
37
186
37
97
37

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( + col1 ) AND 1
----

query I rowsort
SELECT DISTINCT - - 78 - + 0 AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE 79 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - col0 / 39 - + col1 FROM tab1 AS cor0 WHERE NOT 29 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + COUNT( * ) * 32 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5282
SELECT + COUNT ( * ) * 32 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - COUNT( ALL - 16 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5283
SELECT - COUNT ( ALL - 16 ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab2 cor0
----
4
4
4

query I rowsort
SELECT + ( ( + + col2 ) ) * col1 * col2 AS col1 FROM tab2 AS cor0
----
123200
225388
26979

query I rowsort
SELECT ALL 72 * 71 FROM tab1
----
5112
5112
5112

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - COUNT( * ) * MAX( + 30 ) col0 FROM tab0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5287
SELECT - COUNT ( * ) * MAX ( + 30 ) col0 FROM tab0
----
-90

query I rowsort
SELECT ALL 87 AS col1 FROM tab0 WHERE NOT + - 53 <= - 6 * - col1
----

query I rowsort
SELECT ALL - col2 * - 66 * 6 FROM tab2
----
15840
22968
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL - MAX( ALL - col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL - MAX ( ALL - col0 ) AS col2 FROM tab2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col1 NOT BETWEEN - 95 AND - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - 14, col1 FROM tab0 AS cor0
----
-14
1
-14
21
-14
81

query II rowsort
SELECT DISTINCT - col0 + col1 AS col2, - 0 AS col0 FROM tab0 AS cor0
----
-66
0
-96
0
66
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5295
SELECT + 30 AS col0, + CAST( NULL AS SIGNED ) + + 99 * + 87 col0 FROM tab1 cor0
----
30
NULL
30
NULL
30
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5295
SELECT + 30 AS col0, + CAST ( NULL AS INTEGER ) + + 99 * + 87 col0 FROM tab1 cor0
----
30
NULL
30
NULL
30
NULL

query I rowsort
SELECT - col0 + - 19 * + col2 FROM tab0 AS cor0
----
-1978
-277
-908

onlyif mysql # aggregate syntax: 
query II rowsort label-5297
SELECT DISTINCT + - ( COUNT( ALL + 2 ) ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5297
SELECT DISTINCT + - ( COUNT ( ALL + 2 ) ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT - - 16 FROM tab1 AS cor0 WHERE NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT DISTINCT - 91 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 21
----
-91

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT - 91 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 21
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT SUM( col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5300
SELECT SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - ( - + col2 ) * 92 * 46 AS col1 FROM tab2 AS cor0
----
169280
245456
97336

query I rowsort
SELECT ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT + COUNT( * ) * - 70 - - 57 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT + COUNT ( * ) * - 70 - - 57 FROM tab2
----
-153

query I rowsort
SELECT col1 + + col1 FROM tab0 WHERE NULL IS NULL
----
162
2
42

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE - col0 * - 9 + + + col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT - - ( + 15 ) * - COUNT( * ) AS col1 FROM tab0 WHERE + col1 * + + col0 + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT - - ( + 15 ) * - COUNT ( * ) AS col1 FROM tab0 WHERE + col1 * + + col0 + - col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col0 col1 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT 63 - - - col0 FROM tab0
----
-24
-34
48

query I rowsort
SELECT 68 - + + col0 AS col1 FROM tab0
----
-19
-29
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5310
SELECT * FROM tab1 WHERE + - CAST( + col1 AS SIGNED ) / col1 + - col1 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5310
SELECT * FROM tab1 WHERE + - CAST ( + col1 AS INTEGER ) / col1 + - col1 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL - COUNT( ALL - + col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - COUNT ( ALL - + col1 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + 5 + col2 AS col2 FROM tab2 AS cor0
----
28
45
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + - col2 = 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + 72 FROM tab2
----
3312
4608
5400

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = ( col0 + 26 - - + col0 * col1 * - col2 - 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5316
SELECT + + CAST( + col2 AS SIGNED ) * + col1 * col1 AS col0, 63 FROM tab1 AS cor0
----
1475
63
150212
63
18816
63

skipif mysql # not compatible
query II rowsort label-5316
SELECT + + CAST ( + col2 AS INTEGER ) * + col1 * col1 AS col0, 63 FROM tab1 AS cor0
----
1475
63
150212
63
18816
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - MIN( ALL 80 ) FROM tab0 WHERE NOT + + col1 BETWEEN NULL AND - 29
----
-80

skipif mysql # not compatible
query I rowsort label-5317
SELECT - MIN ( ALL 80 ) FROM tab0 WHERE NOT + + col1 BETWEEN NULL AND - 29
----
-80

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT - col2 + + col2 * col1 + - 18 * + col0 * col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 71 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT col1 DIV + - 21 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT col1 / + - 21 FROM tab0
----
-1
-3
0

query I rowsort
SELECT + - col2 * col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + 57 IS NULL
----

query I rowsort
SELECT ALL - + 26 + + col2 + + - col1 AS col1 FROM tab2 AS cor0
----
-35
-54
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5324
SELECT ALL + + MIN( ALL - - col0 ) DIV + CAST( + 30 AS SIGNED ) + COUNT( * ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + + MIN ( ALL - - col0 ) / + CAST ( + 30 AS INTEGER ) + COUNT ( * ) FROM tab1 cor0
----
4

query I rowsort
SELECT - col0 + + + col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT ALL - col1, + col2 FROM tab2
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL - 95 + + - CAST( + 92 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-112
-123
-141

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - 95 + + - CAST ( + 92 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-112
-123
-141

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col2 + - - col0 * col2 FROM tab1 cor0
----
4800
4956
6120

query I rowsort
SELECT 32 + - + 34 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + - col2 * - - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5332
SELECT 32 + + COUNT( * ) DIV 44 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5332
SELECT 32 + + COUNT ( * ) / 44 FROM tab2
----
32

query I rowsort
SELECT DISTINCT + ( - col0 ) + + 51 AS col0 FROM tab0
----
-36
-46
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT + 6 + + COUNT( col2 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5334
SELECT + 6 + + COUNT ( col2 ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT - col0 * - - 45 FROM tab0
----
-3915
-4365
-675

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT ALL col0 DIV - col2 - - - 9 + col1 * - + col2 FROM tab1
----
-1353
-305
-3206

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL col0 / - col2 - - - 9 + col1 * - + col2 FROM tab1
----
-1353
-305
-3206

query I rowsort
SELECT ALL + - 84 FROM tab0 WHERE NOT - col1 * col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * - ( col0 ) FROM tab1 WHERE + 35 + + ( - col1 ) + - col0 * - - col0 >= NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT - + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT - + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5341
SELECT ALL col2 DIV + + col1, col1 AS col2 FROM tab0 AS cor0
----
0
21
0
81
99
1

skipif mysql # not compatible
query II rowsort label-5341
SELECT ALL col2 / + + col1, col1 AS col2 FROM tab0 AS cor0
----
0
21
0
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 54 * - + col0 + col0 + 35 * - col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col1 FROM tab0 AS cor0 WHERE - col0 + + - 26 IS NOT NULL
----
52

query I rowsort
SELECT col0 * 46 * + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT - MIN( DISTINCT + 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5345
SELECT - MIN ( DISTINCT + 82 ) FROM tab1 AS cor0
----
-82

query II rowsort
SELECT col2, col1 * - 28 AS col1 FROM tab1 AS cor0
----
59
-140
68
-1316
96
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT - 0 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5347
SELECT - 0 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 96
----

query I rowsort
SELECT - col1 * - col2 * col2 + col1 FROM tab2 AS cor0
----
123277
225455
27030

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5350
SELECT ALL + + 54 DIV - ( - CAST( + 60 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + + 54 / - ( - CAST ( + 60 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT + 10 + + COUNT( * ) * SUM( 61 ) AS col1 FROM tab1 cor0
----
559

skipif mysql # not compatible
query I rowsort label-5351
SELECT + 10 + + COUNT ( * ) * SUM ( 61 ) AS col1 FROM tab1 cor0
----
559

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT + SUM( ALL + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5352
SELECT + SUM ( ALL + col0 ) AS col1 FROM tab2
----
185

query I rowsort
SELECT ( - - 71 ) * - - col0 FROM tab0
----
1065
6177
6887

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT - - 31 * - - COUNT( * ) col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5354
SELECT - - 31 * - - COUNT ( * ) col0 FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL + + ( COUNT( DISTINCT - - col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + + ( COUNT ( DISTINCT - - col1 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5356
SELECT ALL + 67 + - col1 + - 6 DIV - col2 col0 FROM tab0 cor0
----
-14
46
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5356
SELECT ALL + 67 + - col1 + - 6 / - col2 col0 FROM tab0 cor0
----
-14
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT COUNT( * ) + 65 + - MAX( DISTINCT - col2 ) * 59 FROM tab2 AS cor0
----
1425

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT COUNT ( * ) + 65 + - MAX ( DISTINCT - col2 ) * 59 FROM tab2 AS cor0
----
1425

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + + COUNT( * ) * + - COUNT( * ) - - 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + + COUNT ( * ) * + - COUNT ( * ) - - 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

query I rowsort
SELECT + col0 * - col2 + + col1 + - col2 AS col2 FROM tab0
----
-671
-859
-9701

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT COUNT( ALL 4 ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5362
SELECT COUNT ( ALL 4 ) + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT - + col0 + + ( + - col2 ) * + + col0 * + col2 FROM tab0 AS cor0
----
-33150
-8787
-950794

query II rowsort
SELECT + 64 AS col2, - col1 FROM tab0 cor0
----
64
-1
64
-21
64
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT MAX( - ( - + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT MAX ( - ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL - ( + - 87 ) * + col0, + col2 FROM tab2 AS cor0
----
4002
23
5568
40
6525
58

query I rowsort
SELECT 36 AS col0 FROM tab0 AS cor0 WHERE col0 + + col2 BETWEEN 66 AND + col2 * col0 + col1
----
36
36

query I rowsort
SELECT + - ( col1 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT + col1 * + col0 * + col2 AS col2 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT 43 * + ( - 18 ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT - 67 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT - 67 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT 9 - - COUNT( * ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5373
SELECT 9 - - COUNT ( * ) AS col1 FROM tab2
----
12

query I rowsort
SELECT ALL + ( - 33 ) + 50 + + col0 * + col2 * + col0 FROM tab1
----
249713
426292
563125

onlyif mysql # aggregate syntax: 
query II rowsort label-5375
SELECT DISTINCT - COUNT( * ) - - 14 AS col2, + 6 FROM tab1
----
11
6

skipif mysql # not compatible
query II rowsort label-5375
SELECT DISTINCT - COUNT ( * ) - - 14 AS col2, + 6 FROM tab1
----
11
6

query II rowsort
SELECT DISTINCT - 84 + col1, - col1 AS col0 FROM tab1
----
-37
-47
-70
-14
-79
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT COUNT( ALL - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5377
SELECT COUNT ( ALL - - col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5378
SELECT - col0 * + col0 * + + ( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT - col0 * + col0 * + + ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 42 * + 12 AS col0 FROM tab0
----
504
504
504

query II rowsort
SELECT + 30, + col0 AS col0 FROM tab2 AS cor0
----
30
46
30
64
30
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT DISTINCT 28 DIV col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT 28 / col0 AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + 7 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5382
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + 7 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-31
-31
-31

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col0 * 38 BETWEEN col2 * + - col2 AND - + 71 + col1 * + + col2 * + 22
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + 75 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT ALL - col0 + + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - col0 + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-104
-133
-69

query II rowsort
SELECT ALL - 30, col0 FROM tab2
----
-30
46
-30
64
-30
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - MAX( DISTINCT + - col2 ) + + COUNT( * ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-5388
SELECT - MAX ( DISTINCT + - col2 ) + + COUNT ( * ) AS col2 FROM tab1
----
62

query I rowsort
SELECT DISTINCT col0 * 3 AS col0 FROM tab2
----
138
192
225

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT ALL - col1 DIV + col0 * col0 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5390
SELECT ALL - col1 / + col0 * col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 10 + + + col1 * col0 AS col2 FROM tab1 AS cor0
----
4287
435
724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5392
SELECT ALL - CAST( NULL AS SIGNED ) + + MAX( ALL + ( + + col1 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - CAST ( NULL AS INTEGER ) + + MAX ( ALL + ( + + col1 ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + 71 AS col1, - ( + col1 ) * + + col1 AS col2 FROM tab1 AS cor0
----
71
-196
71
-2209
71
-25

query I rowsort
SELECT ALL ( col1 ) * - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-196
-2209
-25

query I rowsort
SELECT ALL 75 * col1 AS col2 FROM tab1
----
1050
3525
375

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT 92 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 15 - col2 NOT BETWEEN ( col1 ) + + 42 / - col2 AND col1 * col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5398
SELECT DISTINCT COUNT( * ) DIV - 76 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT COUNT ( * ) / - 76 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT 59 DIV + col1 FROM tab1
----
1
11
4

skipif mysql # not compatible
query I rowsort label-5399
SELECT 59 / + col1 FROM tab1
----
1
11
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT DISTINCT ( - CAST( - 51 AS SIGNED ) ) - - 99 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT ( - CAST ( - 51 AS INTEGER ) ) - - 99 FROM tab2
----
150

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 48 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT 59 DIV col1 AS col2 FROM tab0
----
0
2
59

skipif mysql # not compatible
query I rowsort label-5402
SELECT 59 / col1 AS col2 FROM tab0
----
0
2
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) + + MIN( ALL - ( 23 ) - - ( - col1 ) * ( + col0 * col0 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MIN ( ALL - ( 23 ) - - ( - col1 ) * ( + col0 * col0 ) ) FROM tab2
----
NULL

query I rowsort
SELECT 28 + 27 FROM tab2 WHERE NOT - ( col0 ) IS NULL
----
55
55
55

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE - 51 + 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 80 * 18 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT 50 DIV MAX( DISTINCT col1 ) + + MAX( DISTINCT col2 + + 49 ) AS col0 FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-5409
SELECT 50 / MAX ( DISTINCT col1 ) + + MAX ( DISTINCT col2 + + 49 ) AS col0 FROM tab1
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT col2 DIV col2 + + col2 DIV col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5410
SELECT col2 / col2 + + col2 / col1 AS col1 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT - ( 92 ) * - 31 + - 11 DIV col0 FROM tab0
----
2852
2852
2852

skipif mysql # not compatible
query I rowsort label-5411
SELECT - ( 92 ) * - 31 + - 11 / col0 FROM tab0
----
2852
2852
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - COUNT( * ) * ( 86 ) AS col2 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-5412
SELECT - COUNT ( * ) * ( 86 ) AS col2 FROM tab2
----
-258

query I rowsort
SELECT DISTINCT 33 * col1 + + col2 * col2 FROM tab0
----
4882
793
9834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 73 ) + col1 col2 FROM tab2
----
-22
-6
4

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( 27 ) AND ( 45 )
----

query I rowsort
SELECT DISTINCT + ( ( + 14 ) ) FROM tab1
----
14

query I rowsort
SELECT col2 + 50 AS col2 FROM tab2 WHERE ( col1 + 15 ) NOT IN ( col0 * - 87 )
----
108
73
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * col2 IN ( - col0 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE ( NULL ) > + ( - 35 )
----

query I rowsort
SELECT DISTINCT - - 74 AS col2 FROM tab0 cor0
----
74

query I rowsort
SELECT 55 FROM tab1 AS cor0 WHERE NOT 94 / col2 IS NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT 64 + 26 * COUNT( * ) FROM tab1 AS cor0
----
142

skipif mysql # not compatible
query I rowsort label-5422
SELECT 64 + 26 * COUNT ( * ) FROM tab1 AS cor0
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5423
SELECT MAX( col1 ) * + COUNT( DISTINCT col0 DIV col2 ) + 49 FROM tab0 AS cor0
----
211

skipif mysql # not compatible
query I rowsort label-5423
SELECT MAX ( col1 ) * + COUNT ( DISTINCT col0 / col2 ) + 49 FROM tab0 AS cor0
----
211

query I rowsort
SELECT DISTINCT + 82 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
4978
5097
6270

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 80 NOT IN ( - 85 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 52 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-29
31
51

query I rowsort
SELECT + ( col0 ) + - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT - CAST( NULL AS SIGNED ) / - SUM( + col2 ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT - CAST ( NULL AS INTEGER ) / - SUM ( + col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * - 97 + - ( - 49 + col2 * - col0 ) * 63 FROM tab2 AS cor0
----
156898
270638
64794

query I rowsort
SELECT ALL + - ( col0 ) + 70 AS col2 FROM tab1 AS cor0
----
-15
-21
19

query I rowsort
SELECT + - col1 + 47 AS col0 FROM tab1 AS cor0
----
0
33
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT + COUNT( * ) + + 57 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5432
SELECT + COUNT ( * ) + + 57 FROM tab0 AS cor0
----
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col2 + col0 )
----

query I rowsort
SELECT DISTINCT ( col1 ) / + col1 FROM tab0 WHERE col0 * col2 IN ( + 20 )
----

query I rowsort
SELECT DISTINCT - col1 * - 66 * - ( col1 ) AS col2 FROM tab2
----
-171666
-296274
-391314

query I rowsort
SELECT ALL - 48 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT DISTINCT - col0 DIV + + col1 col0 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5438
SELECT DISTINCT - col0 / + + col1 col0 FROM tab0
----
-4
-97
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 74 * - 27 AND ( - col2 )
----

query I rowsort
SELECT ALL - ( + col0 ) + col2 FROM tab0
----
-77
2
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 95 * col0 + - col2 * + ( - 86 * ( col1 ) ) ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 28 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5443
SELECT - COUNT( * ) DIV + 85 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5443
SELECT - COUNT ( * ) / + 85 col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 BETWEEN + 12 + + 5 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT CAST( NULL AS SIGNED ) + - 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5445
SELECT CAST ( NULL AS INTEGER ) + - 41 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col0 + col0 * + - col1 AS col0 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT col1 + + - 18 AS col0 FROM tab2
----
33
49
59

query I rowsort
SELECT - col2 * - 86 + col0 + col2 FROM tab2
----
2047
3544
5121

query II rowsort
SELECT DISTINCT col0, - col2 * col0 FROM tab0
----
15
-705
87
-870
97
-9603

query I rowsort
SELECT ALL + + col1 - 32 FROM tab2 AS cor0
----
19
35
45

query II rowsort
SELECT - 72, + col1 AS col0 FROM tab2 AS cor0
----
-72
51
-72
67
-72
77

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT - col0 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL + + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL col1 AS col1, 92 FROM tab0 AS cor0
----
1
92
21
92
81
92

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE ( + 69 ) IS NOT NULL OR NOT NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + - ( - 33 ) AS col0 FROM tab0 cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * col0 col2 FROM tab1 AS cor0 WHERE NOT col1 >= 29 * col2
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT 35 * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 * + col1 * 92 > ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT 35 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 * + col1 * 92 > ( - col2 )
----
0

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) <> ( ( + 48 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 22 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + 49 * - 63 * COUNT( * ) * + + 71 AS col1 FROM tab0
----
-657531

skipif mysql # not compatible
query I rowsort label-5461
SELECT + 49 * - 63 * COUNT ( * ) * + + 71 AS col1 FROM tab0
----
-657531

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN + col1 * col1 + col0 AND ( - 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL COUNT( DISTINCT ( - col1 ) ) * - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL COUNT ( DISTINCT ( - col1 ) ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT 56 AS col2 FROM tab0 WHERE NOT ( + col0 + + - 80 ) IS NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT + COUNT( DISTINCT 99 ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5465
SELECT + COUNT ( DISTINCT 99 ) col0 FROM tab1
----
1

query I rowsort
SELECT - - col0 * - 48 * - - col0 FROM tab0 AS cor0
----
-10800
-363312
-451632

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL MIN( ALL 2 ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL MIN ( ALL 2 ) AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT 85 DIV + col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5468
SELECT 85 / + col2 FROM tab0
----
0
1
8

query I rowsort
SELECT + col2 * - 89 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT + SUM( ALL col0 ) AS col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + SUM ( ALL col0 ) AS col1 FROM tab1 cor0
----
227

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( 34 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5473
SELECT - + col1 + - + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT - + col1 + - + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 91 AND - + 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + - + col0 col2 FROM tab0
----
-57
-67
15

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( - + col0 ) * - + 86 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( * ) + - - 29 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-5477
SELECT COUNT ( * ) + - - 29 FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT ALL ( + - 31 ) AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL ( + - 31 ) AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5479
SELECT ALL 85 DIV + 50 - + 98 FROM tab1
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 85 / + 50 - + 98 FROM tab1
----
-97
-97
-97

query I rowsort
SELECT + + 43 AS col0 FROM tab0 AS cor0 WHERE 13 IS NOT NULL
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT DISTINCT col2 DIV col2 FROM tab2 AS cor0 WHERE NOT col0 + + + col2 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT col2 / col2 FROM tab2 AS cor0 WHERE NOT col0 + + + col2 IS NULL
----
1

query II rowsort
SELECT DISTINCT + - 69, col0 AS col2 FROM tab1 AS cor0
----
-69
51
-69
85
-69
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ( 13 ) * ( + COUNT( * ) ) col1 FROM tab2 AS cor0 WHERE + 18 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT ( 13 ) * ( + COUNT ( * ) ) col1 FROM tab2 AS cor0 WHERE + 18 <= NULL
----
0

query II rowsort
SELECT + col0 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE + 54 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - 88 * + 48 AS col2 FROM tab2 AS cor0
----
4224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 4 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

query I rowsort
SELECT + 86 - - col0 FROM tab1
----
137
171
177

query II rowsort
SELECT - col2 - - col2 AS col0, 20 * - col2 AS col2 FROM tab2
----
0
-1160
0
-460
0
-800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5490
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 97 > - + 64
----

skipif mysql # not compatible
query III rowsort label-5490
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 97 > - + 64
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5491
SELECT - col1 DIV col0, ( col0 ) FROM tab0 AS cor0
----
-5
15
0
87
0
97

skipif mysql # not compatible
query II rowsort label-5491
SELECT - col1 / col0, ( col0 ) FROM tab0 AS cor0
----
-5
15
0
87
0
97

query I rowsort
SELECT + - ( - - col0 ) * 58 AS col2 FROM tab1 AS cor0
----
-2958
-4930
-5278

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5493
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( + 98 AS SIGNED ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5493
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( + 98 AS INTEGER ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 40 * col0 * + 14 FROM tab2
----
-25760
-35840
-42000

query I rowsort
SELECT col2 * - col0 * - 14 + - col2 + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
12257
134440
9838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - 7 col2 FROM tab0
----
-147
-567
-7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5498
SELECT DISTINCT - CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5498
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( - - 46 ) + + + col1 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col2 ) * + 52 IS NOT NULL
----

query I rowsort
SELECT ALL - 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT - 80 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT ALL + 27 DIV 35 AS col1 FROM tab1 AS cor0 WHERE col1 + + - col2 * col2 + + ( - 55 ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + 27 / 35 AS col1 FROM tab1 AS cor0 WHERE col1 + + - col2 * col2 + + ( - 55 ) IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5504
SELECT ALL - CAST( - 86 AS SIGNED ) AS col2, - col0 FROM tab2 AS cor0
----
86
-46
86
-64
86
-75

skipif mysql # not compatible
query II rowsort label-5504
SELECT ALL - CAST ( - 86 AS INTEGER ) AS col2, - col0 FROM tab2 AS cor0
----
86
-46
86
-64
86
-75

query I rowsort
SELECT ALL col1 * - - 67 - + col2 FROM tab1 AS cor0
----
276
3081
842

query I rowsort
SELECT 94 + - + 19 + + + ( 19 ) * 84 FROM tab2 AS cor0
----
1671
1671
1671

query I rowsort
SELECT ALL + 23 * - col1 + + col2 + + + col2 * - col2 FROM tab0 AS cor0
----
-4025
-573
-9725

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT + SUM( + 14 ) AS col1 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-5508
SELECT + SUM ( + 14 ) AS col1 FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + COUNT( * ) FROM tab2 WHERE + col0 * col2 + ( - col2 ) + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT + COUNT ( * ) FROM tab2 WHERE + col0 * col2 + ( - col2 ) + col1 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT ALL + 44 DIV - col2 + + + ( + + col0 ) * + - 97 * - col2 + - 27 DIV + col1 + + - col2 FROM tab1
----
474815
486391
600168

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + 44 / - col2 + + + ( + + col0 ) * + - 97 * - col2 + - 27 / + col1 + + - col2 FROM tab1
----
474815
486391
600168

query III rowsort
SELECT * FROM tab0 WHERE ( + + 16 ) * - - ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT DISTINCT COUNT( * ) - - 66 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT COUNT ( * ) - - 66 FROM tab2
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 22 * + col2 col1 FROM tab1
----
29568
6490
70312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 - - col1 col1 FROM tab2
----
70
86
96

query I rowsort
SELECT ( + col1 ) - - - col0 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + 98 ) BETWEEN ( + col1 + - - 55 + + + col0 * ( - + col0 ) ) AND col0 )
----

query I rowsort
SELECT col1 + - ( - + col1 ) AS col0 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL + COUNT( * ) * + COUNT( 3 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + COUNT ( * ) * + COUNT ( 3 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5519
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE - - 9 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 67 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5522
SELECT - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5522
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 69 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 81 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT MIN( - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5525
SELECT MIN ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - col1 * 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT + col0 * - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT + col0 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 24 FROM tab0
----
2088
2328
360

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL COUNT( * ) * MAX( DISTINCT + 93 ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL COUNT ( * ) * MAX ( DISTINCT + 93 ) FROM tab0
----
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) * + 47 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 47 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL = col2 + + - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT SUM( ALL + 80 ) col1, - 75 FROM tab0 AS cor0
----
240
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5532
SELECT SUM ( ALL + 80 ) col1, - 75 FROM tab0 AS cor0
----
240
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT IN ( + col1 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5534
SELECT ALL * FROM tab0 WHERE NULL IN ( - CAST( col0 AS SIGNED ) * - + col0 )
----

skipif mysql # not compatible
query III rowsort label-5534
SELECT ALL * FROM tab0 WHERE NULL IN ( - CAST ( col0 AS INTEGER ) * - + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 - + 82 >= NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE col0 < - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5537
SELECT DISTINCT + + 75, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-5537
SELECT DISTINCT + + 75, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
75
3

query II rowsort
SELECT ALL + 42, col0 + - col0 AS col1 FROM tab1 AS cor0
----
42
0
42
0
42
0

query I rowsort
SELECT DISTINCT 80 * - col1 + 58 * + col2 * - col0 * col2 FROM tab0 AS cor0
----
-1928310
-506280
-55140506

query I rowsort
SELECT ALL - 12 FROM tab1 WHERE ( NULL ) IS NULL
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 - - ( + 71 ) col2 FROM tab0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT ALL - 27 DIV + col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - 27 / + col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT - MAX( DISTINCT + 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5543
SELECT - MAX ( DISTINCT + 2 ) FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT - COUNT( * ) + + ( 30 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5544
SELECT - COUNT ( * ) + + ( 30 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21

query III rowsort
SELECT * FROM tab1 WHERE NOT - 75 * - + ( - col0 ) + + col2 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT - COUNT( * ) * - SUM( - col0 ) AS col0 FROM tab0 cor0
----
-597

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT - COUNT ( * ) * - SUM ( - col0 ) AS col0 FROM tab0 cor0
----
-597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT ALL - CAST( NULL AS SIGNED ) / + + ( - + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL - CAST ( NULL AS INTEGER ) / + + ( - + col0 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + + col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT - col0 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT - col0 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = col0 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 21 * + + col2 FROM tab2
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT COUNT( - + 65 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5553
SELECT DISTINCT COUNT ( - + 65 ) col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 + - 38 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-125
-135
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16 col1, + col0 * - + col0 * + 81 AS col0 FROM tab0
----
16
-18225
16
-613089
16
-762129

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + ( + col1 )
----

query I rowsort
SELECT ALL - col1 * - 34 * + ( col1 ) * col0 AS col2 FROM tab0
----
1304478
3298
3346110

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT DISTINCT 79 DIV + 73 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT 79 / + 73 AS col2 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT ALL - col2 DIV + + 26 + 64 - - + col2 + + + col0 AS col0 FROM tab0 AS cor0
----
125
161
257

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - col2 / + + 26 + 64 - - + col2 + + + col0 AS col0 FROM tab0 AS cor0
----
125
161
257

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT - + col0 DIV + - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5560
SELECT - + col0 / + - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT + COUNT( * ) AS col0, + 82 FROM tab2 AS cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-5562
SELECT + COUNT ( * ) AS col0, + 82 FROM tab2 AS cor0
----
3
82

query II rowsort
SELECT ALL - + 5, + 98 + - 31 AS col1 FROM tab0 cor0
----
-5
67
-5
67
-5
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5564
SELECT + + CAST( - MAX( ALL + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5564
SELECT + + CAST ( - MAX ( ALL + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65, col1 col1 FROM tab2 AS cor0
----
-65
51
-65
67
-65
77

query I rowsort
SELECT DISTINCT - - col1 + - + col1 + + 93 FROM tab1 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 * - col2 + - col1 BETWEEN NULL AND ( - col0 ) * + 48
----

query I rowsort
SELECT 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5569
SELECT * FROM tab1 WHERE - CAST( + 23 AS DECIMAL ) NOT IN ( - 12 / CAST( NULL AS DECIMAL ), col2, 71 )
----

skipif mysql # not compatible
query III rowsort label-5569
SELECT * FROM tab1 WHERE - CAST ( + 23 AS REAL ) NOT IN ( - 12 / CAST ( NULL AS REAL ), col2, 71 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5570
SELECT + col1 * - 0 + + CAST( - - col1 AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE col2 BETWEEN + 53 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5570
SELECT + col1 * - 0 + + CAST ( - - col1 AS REAL ) AS col2 FROM tab1 AS cor0 WHERE col2 BETWEEN + 53 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + 32 * + SUM( ALL + col0 ) + 60 FROM tab1 AS cor0
----
7324

skipif mysql # not compatible
query I rowsort label-5571
SELECT + 32 * + SUM ( ALL + col0 ) + 60 FROM tab1 AS cor0
----
7324

query I rowsort
SELECT - + 41 * ( + 87 ) + - col2 + + 99 FROM tab2 AS cor0
----
-3491
-3508
-3526

query I rowsort
SELECT DISTINCT + - 36 + - + 49 - col2 + col1 + - 54 * col1 FROM tab0 AS cor0
----
-1208
-237
-4425

query I rowsort
SELECT + col0 * + - 22 FROM tab2 AS cor0
----
-1012
-1408
-1650

query I rowsort
SELECT ALL + - 42 AS col2 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - col0 + - + 39 FROM tab1 AS cor0
----
-124
-130
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 / - + col1 NOT BETWEEN NULL AND + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE col1 <= + col0 / 33
----

query I rowsort
SELECT ALL - 50 + + col1 AS col2 FROM tab2
----
1
17
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5580
SELECT - col1 - - ( col2 ) AS col0, - CAST( - + 88 AS SIGNED ) * col2 * - CAST( + 46 AS SIGNED ) FROM tab1
----
21
-275264
54
-238832
82
-388608

skipif mysql # not compatible
query II rowsort label-5580
SELECT - col1 - - ( col2 ) AS col0, - CAST ( - + 88 AS INTEGER ) * col2 * - CAST ( + 46 AS INTEGER ) FROM tab1
----
21
-275264
54
-238832
82
-388608

query I rowsort
SELECT + 58 - - col0 * - 35 AS col2 FROM tab0
----
-2987
-3337
-467

query III rowsort
SELECT * FROM tab1 WHERE 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( + 86 ) * col1 FROM tab0 AS cor0
----
1806
6966
86

query II rowsort
SELECT ALL - col2 AS col1, + col0 - - 37 FROM tab0 AS cor0
----
-10
124
-47
52
-99