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
134

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT DISTINCT + + MAX( 83 ) FROM tab2 AS cor0 WHERE + CAST( col1 AS SIGNED ) * col1 * + + 55 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + + MAX ( 83 ) FROM tab2 AS cor0 WHERE + CAST ( col1 AS INTEGER ) * col1 * + + 55 <= NULL
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ALL - 28 * + COUNT( * ) AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL - 28 * + COUNT ( * ) AS col1 FROM tab1
----
-84

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5591
SELECT - COUNT ( * ) * + - 40 col2 FROM tab0
----
120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL - MIN( ALL + 87 ) * + 3 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - MIN ( ALL + 87 ) * + 3 FROM tab1
----
-261

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL < + ( - - col1 ) + - col0 ) OR NOT + + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT + COUNT( DISTINCT col0 ) * - + 91 + - + 18 FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-5595
SELECT + COUNT ( DISTINCT col0 ) * - + 91 + - + 18 FROM tab2
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT DISTINCT 76 DIV - + 49 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT 76 / - + 49 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - - COUNT( * ) + - 84 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

skipif mysql # not compatible
query I rowsort label-5597
SELECT - - COUNT ( * ) + - 84 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL BETWEEN 86 AND 71
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE - 12 NOT BETWEEN + + 94 AND NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT ALL col1 AS col1, + 84 FROM tab0 cor0
----
1
84
21
84
81
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 78 + - col1 AS col2, + col2 col1 FROM tab1 AS cor0
----
31
68
64
96
73
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT - CAST( - col1 AS SIGNED ) + col2 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-5602
SELECT - CAST ( - col1 AS INTEGER ) + col2 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT + col2 * - 15 AS col1 FROM tab1 WHERE col1 * - col0 + col2 + - col2 * - col1 * - ( - 42 ) IS NOT NULL
----
-1020
-1440
-885

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT DISTINCT 94 DIV - - col2 - - - ( + 70 ) + + + 78 DIV - + col1 AS col2 FROM tab1
----
-70
-75
-84

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT 94 / - - col2 - - - ( + 70 ) + + + 78 / - + col1 AS col2 FROM tab1
----
-70
-75
-84

query I rowsort
SELECT + 68 + + 42 FROM tab0
----
110
110
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL 47 + + - COUNT( ALL - - col2 ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL 47 + + - COUNT ( ALL - - col2 ) AS col0 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT COUNT( * ) * + MAX( ALL col1 ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5607
SELECT COUNT ( * ) * + MAX ( ALL col1 ) AS col0 FROM tab0
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5608
SELECT + MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5609
SELECT DISTINCT SUM( - col1 ), - COUNT( DISTINCT + col1 ) DIV + MAX( - + col1 ) col0 FROM tab0
----
-103
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5609
SELECT DISTINCT SUM ( - col1 ), - COUNT ( DISTINCT + col1 ) / + MAX ( - + col1 ) col0 FROM tab0
----
-103
3

query I rowsort
SELECT + col2 * col1 - - + 51 FROM tab0 AS cor0
----
150
261
3858

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL - COUNT( DISTINCT 18 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - COUNT ( DISTINCT 18 ) FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----
0

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

query II rowsort
SELECT + + col2, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT DISTINCT - + 20 AS col2, col2 FROM tab1 AS cor0
----
-20
59
-20
68
-20
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT DISTINCT - - 94 DIV col1 + + - 46 AS col1 FROM tab0 cor0
----
-42
-45
48

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT - - 94 / col1 + + - 46 AS col1 FROM tab0 cor0
----
-42
-45
48

query I rowsort
SELECT - - col1 + 82 + - + 6 AS col1 FROM tab2 cor0
----
127
143
153

query I rowsort
SELECT col1 + 89 FROM tab1 AS cor0
----
103
136
94

query I rowsort
SELECT col2 * col1 + - - col2 + + 41 * + + 21 * - + col2 AS col1 FROM tab2 AS cor0
----
-18607
-31320
-45994

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL - + COUNT( DISTINCT - col0 ) + - 67 AS col1 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL - + COUNT ( DISTINCT - col0 ) + - 67 AS col1 FROM tab2 AS cor0
----
-70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT MAX( + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5622
SELECT MAX ( + + col0 ) FROM tab0
----
97

query I rowsort
SELECT ALL + 74 * 43 FROM tab2
----
3182
3182
3182

query I rowsort
SELECT DISTINCT col1 * - 45 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2115
-225
-630

query II rowsort
SELECT - col0 * col1 AS col0, - col1 * ( ( col2 ) ) * - 17 AS col0 FROM tab2
----
-2346
19941
-4928
52360
-5025
66062

query II rowsort
SELECT + col0 * + col0 AS col1, + col2 + + col1 AS col1 FROM tab2 AS cor0
----
2116
74
4096
117
5625
125

query II rowsort
SELECT - 72 * + - 5 AS col2, + 91 - col1 AS col1 FROM tab0 AS cor0
----
360
10
360
70
360
90

query I rowsort
SELECT ALL - 77 * + + 72 * col2 + + ( + col2 ) + col1 - + - col0 * + ( col0 ) - 13 + + 46 AS col0 FROM tab0 AS cor0
----
-260182
-47807
-539314

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

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

query I rowsort
SELECT + ( - - col2 ) + + 84 AS col2 FROM tab2 AS cor0
----
107
124
142

query I rowsort
SELECT ALL col1 - + - 74 * + ( - 27 ) + col1 AS col1 FROM tab1
----
-1904
-1970
-1988

query I rowsort
SELECT ALL - 79 + 7 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

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

query II rowsort
SELECT + col2 + - - col1 * col2, 8 * - col0 * + col2 AS col1 FROM tab1
----
1440
-39168
3264
-49504
354
-40120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT - - 84 * + + MAX( ALL - 89 ) AS col0 FROM tab2 cor0
----
-7476

skipif mysql # not compatible
query I rowsort label-5636
SELECT - - 84 * + + MAX ( ALL - 89 ) AS col0 FROM tab2 cor0
----
-7476

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

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

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

skipif mysql # not compatible
query III rowsort label-5638
SELECT * FROM tab0 AS cor0 WHERE ( NOT col0 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) + col2 + + + col1 * - 7 * + col0 * + col2 >= - - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

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

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

query II rowsort
SELECT DISTINCT + col2, + 38 * + 75 AS col1 FROM tab2 AS cor0
----
23
2850
40
2850
58
2850

query I rowsort
SELECT DISTINCT + 40 * 67 AS col1 FROM tab2 AS cor0
----
2680

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

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

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

query II rowsort
SELECT DISTINCT - 76 AS col1, col0 FROM tab1
----
-76
51
-76
85
-76
91

query II rowsort
SELECT col2, + 71 AS col2 FROM tab1
----
59
71
68
71
96
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5648
SELECT - - 66, COUNT( * ) * - + 68 AS col2 FROM tab0 AS cor0
----
66
-204

skipif mysql # not compatible
query II rowsort label-5648
SELECT - - 66, COUNT ( * ) * - + 68 AS col2 FROM tab0 AS cor0
----
66
-204

query I rowsort
SELECT + col0 * - 8 + + 3 AS col2 FROM tab2 cor0
----
-365
-509
-597

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT - 31 DIV 89 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT - 31 / 89 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + col2 col0, - 28 * 68 FROM tab2 cor0
----
0
-1904

query I rowsort
SELECT ALL + - 63 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * col0 * + ( + - col1 ) * + 71 AND NULL
----

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

query II rowsort
SELECT DISTINCT + col2 AS col0, 46 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 / - col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( 25 ) AND NULL
----

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

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

query I rowsort
SELECT ALL col1 + - 98 AS col2 FROM tab0 cor0
----
-17
-77
-97

query I rowsort
SELECT ALL - 90 FROM tab2 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT 50 + - - COUNT( * ) + 79 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT 50 + - - COUNT ( * ) + 79 FROM tab2
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5662
SELECT DISTINCT - MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5663
SELECT ALL - ( - 69 ) + - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL - ( - 69 ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
66

query I rowsort
SELECT - 38 + + - col1 FROM tab1
----
-43
-52
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT + 56 + + COUNT( * ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5665
SELECT + 56 + + COUNT ( * ) AS col1 FROM tab1
----
59

query II rowsort
SELECT DISTINCT + 36 * col2 + + col1, col2 * - 49 AS col2 FROM tab0
----
1773
-2303
3565
-4851
381
-490

query I rowsort
SELECT DISTINCT - AVG ( ALL 46 ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col1 + col1 * - 36 )
----
NULL

query I rowsort
SELECT 13 + + col0 FROM tab2
----
59
77
88

query I rowsort
SELECT + ( + 34 ) + - 61 AS col2 FROM tab2 AS cor0
----
-27
-27
-27

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

query I rowsort
SELECT - 42 FROM tab0 AS cor0 WHERE + 32 * + 84 NOT BETWEEN + + col0 - + ( + col1 ) * 75 - + col2 / - 65 - + col2 AND NULL
----

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

query I rowsort
SELECT DISTINCT col1 + + 95 + col1 * col1 - ( + col1 ) + - 41 AS col2 FROM tab2
----
2655
4543
5983

query I rowsort
SELECT ALL - 29 - + - 46 * + - col1 * + - col1 * - col0 + + 61 AS col0 FROM tab1
----
-459784
-9246842
-97718

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT ALL + COUNT( * ) * + COUNT( * ) * + + 75 - 39 AS col2 FROM tab1
----
636

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * + + 75 - 39 AS col2 FROM tab1
----
636

onlyif mysql # DIV for integer division: 
query II rowsort label-5676
SELECT ALL + col2 * - col0 * - col1 - - col2 AS col1, col2 DIV col1 col1 FROM tab2 cor0
----
197160
0
291508
0
53981
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5676
SELECT ALL + col2 * - col0 * - col1 - - col2 AS col1, col2 / col1 col1 FROM tab2 cor0
----
197160
0
291508
0
53981
0

query I rowsort
SELECT + 91 * 13 FROM tab0 cor0
----
1183
1183
1183

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL - SUM( + ( - - 99 ) ) FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - SUM ( + ( - - 99 ) ) FROM tab2 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5679
SELECT + + 53 * + col1 AS col1, + 38 * + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1113
3306
4293
570
53
3686

skipif mysql # not compatible
query II rowsort label-5679
SELECT + + 53 * + col1 AS col1, + 38 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1113
3306
4293
570
53
3686

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT - + SUM( DISTINCT col0 ) * + 38 AS col1 FROM tab1 AS cor0
----
-8626

skipif mysql # not compatible
query I rowsort label-5680
SELECT - + SUM ( DISTINCT col0 ) * + 38 AS col1 FROM tab1 AS cor0
----
-8626

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

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

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

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

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

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

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

query I rowsort
SELECT 52 * + col1 FROM tab0 AS cor0
----
1092
4212
52

query II rowsort
SELECT - 71 AS col2, - 35 - + col0 FROM tab0
----
-71
-122
-71
-132
-71
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5688
SELECT + MIN( + col2 ) AS col0, CAST( NULL AS DECIMAL ) - + + COUNT( * ) FROM tab0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-5688
SELECT + MIN ( + col2 ) AS col0, CAST ( NULL AS REAL ) - + + COUNT ( * ) FROM tab0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT + 18 + - COUNT( * ) + + + 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-5689
SELECT + 18 + - COUNT ( * ) + + + 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
74

query I rowsort
SELECT DISTINCT - col0 * + - col2 * col0 + + col2 AS col1 FROM tab1
----
249792
426334
563176

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 71 + - + col1 + + - 21 >= 4
----
91
47
68

query I rowsort
SELECT DISTINCT - + col0 + - 25 + + - 71 + - - 6 FROM tab0 AS cor0
----
-105
-177
-187

query II rowsort
SELECT DISTINCT - 59 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-59
15
-59
87
-59
97

query I rowsort
SELECT - 31 * + - 53 + - + col2 AS col2 FROM tab1 AS cor0
----
1547
1575
1584

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

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

query II rowsort
SELECT + col1 AS col1, - col0 * 74 * - col1 * 4 AS col1 FROM tab1 AS cor0
----
14
211344
47
1265992
5
125800

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-3486
-4671
-9230

query I rowsort
SELECT + 98 AS col1 FROM tab0 WHERE + col1 BETWEEN + 4 + - 49 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE - col0 <> - col2
----
3

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE - col0 <> - col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5700
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5700
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT 79 * - col0 - + col1 AS col0 FROM tab1
----
-4043
-6720
-7236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 - col2 col0 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT 94 * - 61 * + + COUNT( * ) - + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
-17293

skipif mysql # not compatible
query I rowsort label-5703
SELECT 94 * - 61 * + + COUNT ( * ) - + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
-17293

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT - CAST( NULL AS SIGNED ) - + ( + COUNT( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT - CAST ( NULL AS INTEGER ) - + ( + COUNT ( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 12 / 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5711
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS DECIMAL ) NOT IN ( + 46 )
----

skipif mysql # not compatible
query III rowsort label-5711
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS REAL ) NOT IN ( + 46 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5713
SELECT col0 DIV + col1, + col2 FROM tab1
----
1
68
17
59
3
96

skipif mysql # not compatible
query II rowsort label-5713
SELECT col0 / + col1, + col2 FROM tab1
----
1
68
17
59
3
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL COUNT( * ) * + ( + 45 ) AS col0 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL COUNT ( * ) * + ( + 45 ) AS col0 FROM tab0
----
135

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 37 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( 78 ) AS col2, 91 col1 FROM tab1 WHERE - ( - + 86 ) >= - - 42
----
78
91

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

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

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

query I rowsort
SELECT DISTINCT - 62 + col0 AS col2 FROM tab0 cor0
----
-47
25
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + + 51
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 52 + 50 IS NULL
----

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

query I rowsort
SELECT ALL 74 * + 78 FROM tab1, tab1 AS cor0
----
9 values hashing to 723cc14935d4673a091c3cd0db4bd243

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

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

query I rowsort
SELECT 64 + + ( col1 ) FROM tab2
----
115
131
141

query I rowsort
SELECT ALL col0 * + 82 - + col2 - + + 77 FROM tab2
----
3672
5131
6015

query I rowsort
SELECT ALL col0 * - col1 - - col1 FROM tab1
----
-420
-4230
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT ALL - CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL - CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 64 col1, + 31 + 72 AS col1 FROM tab0 AS cor0
----
64
103

query I rowsort
SELECT ALL + ( + + col1 ) + + col1 * 87 AS col2 FROM tab1 cor0
----
1232
4136
440

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT - COUNT( DISTINCT + + col1 ) - - + MAX( ALL 14 ) AS col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5733
SELECT - COUNT ( DISTINCT + + col1 ) - - + MAX ( ALL 14 ) AS col1 FROM tab0 AS cor0
----
11

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

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

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 29 col2, col1 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5738
SELECT - 31 * + col2 DIV + col2 FROM tab1 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-5738
SELECT - 31 * + col2 / + col2 FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5739
SELECT + MAX( + + col0 ) AS col1, 6 - - 46 AS col1 FROM tab0 AS cor0
----
97
52

skipif mysql # not compatible
query II rowsort label-5739
SELECT + MAX ( + + col0 ) AS col1, 6 - - 46 AS col1 FROM tab0 AS cor0
----
97
52

query I rowsort
SELECT 62 * 43 * + + col0 FROM tab0 AS cor0
----
231942
258602
39990

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

query I rowsort
SELECT - col2 * + col2 * col1 * - + 73 FROM tab1 AS cor0
----
1270565
15864944
9418752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 * - col2 col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL - MAX( - col1 ) * - + SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
-330

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - MAX ( - col1 ) * - + SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
-330

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL 81 + + COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL 81 + + COUNT ( * ) FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT + COUNT( * ) FROM tab0 WHERE - col0 <= - - 45
----
3

skipif mysql # not compatible
query I rowsort label-5747
SELECT + COUNT ( * ) FROM tab0 WHERE - col0 <= - - 45
----
3

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

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

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

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

query I rowsort
SELECT 37 + + + 79 FROM tab1 cor0
----
116
116
116

query I rowsort
SELECT + - 30 * + 14 AS col0 FROM tab0 AS cor0
----
-420
-420
-420

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 <= + col1
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 47 col2 FROM tab1 AS cor0
----
132
138
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - MIN( 66 ) * + 94 AS col0 FROM tab0 AS cor0
----
-6204

skipif mysql # not compatible
query I rowsort label-5757
SELECT - MIN ( 66 ) * + 94 AS col0 FROM tab0 AS cor0
----
-6204

query II rowsort
SELECT ALL ( + - col0 ) + + + col1, 40 AS col2 FROM tab1
----
-37
40
-44
40
-80
40

query I rowsort
SELECT + ( + col0 ) * - - col2 * - col0 * + col0 - + col2 AS col1 FROM tab0
----
-158672
-6585040
-90354726

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL AND - 82 * 82 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT + COUNT ( + 5 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL 39 - - MAX( ALL col2 ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL 39 - - MAX ( ALL col2 ) FROM tab2
----
97

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

query I rowsort
SELECT DISTINCT + col0 * 32 * - col2 * - col1 FROM tab0 AS cor0
----
1827360
307296
584640

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

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

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

query I rowsort
SELECT col1 * - col2 + 94 FROM tab2 AS cor0
----
-1079
-2986
-3792

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 76 <= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5770
SELECT COUNT ( DISTINCT + col2 ) * + MAX ( + col2 ) col0 FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT - - col2 + + col1 FROM tab2 cor0 WHERE + - col0 + + CAST( NULL AS SIGNED ) * - + col1 IS NULL AND ( NULL <> 68 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-5771
SELECT - - col2 + + col1 FROM tab2 cor0 WHERE + - col0 + + CAST ( NULL AS INTEGER ) * - + col1 IS NULL AND ( NULL <> 68 * + col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5773
SELECT * FROM tab0 AS cor0 WHERE NOT - 92 NOT IN ( - ( + CAST( NULL AS SIGNED ) ), 23, col1 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-5773
SELECT * FROM tab0 AS cor0 WHERE NOT - 92 NOT IN ( - ( + CAST ( NULL AS INTEGER ) ), 23, col1 + + col2 )
----

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
23
40
58

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5776
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + ( - ( 29 ) ) * - col1 AND col2 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5776
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + ( - ( 29 ) ) * - col1 AND col2 * CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL ( - 54 ) * 37 AS col1 FROM tab0
----
-1998
-1998
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT SUM( + - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5778
SELECT SUM ( + - col0 ) AS col2 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - COUNT( * ) + - 11 FROM tab1 WHERE NOT ( - col1 + - + 62 > NULL )
----
-11

skipif mysql # not compatible
query I rowsort label-5779
SELECT - COUNT ( * ) + - 11 FROM tab1 WHERE NOT ( - col1 + - + 62 > NULL )
----
-11

query I rowsort
SELECT + 11 * - + col1 AS col2 FROM tab2
----
-561
-737
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT - SUM( ALL ( - col1 ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT - SUM ( ALL ( - col1 ) ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT - col2 + 96 + col0 FROM tab2 WHERE NOT col1 + - 37 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5785
SELECT col1 * - col1 DIV + - col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5785
SELECT col1 * - col1 / + - col1 FROM tab0
----
1
21
81

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

query I rowsort
SELECT ALL + col2 * + 64 FROM tab1 AS cor0
----
3776
4352
6144

query I rowsort
SELECT ALL 23 * + + col1 AS col1 FROM tab0 AS cor0
----
1863
23
483

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 37 NOT BETWEEN 48 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT 43 / + col1 = - + col2 )
----

query I rowsort
SELECT DISTINCT - 4 + col0 FROM tab1 cor0
----
47
81
87

query I rowsort
SELECT col1 + - - col2 + - col1 AS col2 FROM tab2 AS cor0
----
23
40
58

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

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

query I rowsort
SELECT DISTINCT + 70 - - + col1 + - 69 FROM tab1
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL 3 - + SUM( DISTINCT col2 ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL 3 - + SUM ( DISTINCT col2 ) FROM tab1
----
-220

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

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

query I rowsort
SELECT ALL + col1 * + - 67 FROM tab1 AS cor0
----
-3149
-335
-938

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

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

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

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT - + MIN ( + 86 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 73 IS NOT NULL
----

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

query I rowsort
SELECT + + 99 * col0 FROM tab2 AS cor0
----
4554
6336
7425

query I rowsort
SELECT col0 + 61 AS col0 FROM tab2 AS cor0
----
107
125
136

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5806
SELECT col1 AS col1, ( + CAST( - - 14 AS SIGNED ) ) AS col2 FROM tab0
----
1
14
21
14
81
14

skipif mysql # not compatible
query II rowsort label-5806
SELECT col1 AS col1, ( + CAST ( - - 14 AS INTEGER ) ) AS col2 FROM tab0
----
1
14
21
14
81
14

query I rowsort
SELECT ALL 22 + 54 - + + col2 + + col2 AS col1 FROM tab0
----
76
76
76

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - - col2 * 55
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT DISTINCT 77, + COUNT( DISTINCT 32 ) AS col2 FROM tab1
----
77
1

skipif mysql # not compatible
query II rowsort label-5809
SELECT DISTINCT 77, + COUNT ( DISTINCT 32 ) AS col2 FROM tab1
----
77
1

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

query III rowsort
SELECT DISTINCT + col0 AS col1, col0, + col2 AS col2 FROM tab0
----
9 values hashing to 2571593cbc814a3df7cd751ecd0b765f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT 27 DIV + SUM( ALL col2 ) * - + 55 * - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT 27 / + SUM ( ALL col2 ) * - + 55 * - COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5813
SELECT ALL - col2 AS col0, CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-5813
SELECT ALL - col2 AS col0, CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT MAX( - 49 ) + + ( + 53 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-5814
SELECT MAX ( - 49 ) + + ( + 53 ) FROM tab2
----
4

query I rowsort
SELECT - 77 * - + col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
377006
386160
476523

query I rowsort
SELECT ALL - ( - + 86 ) - + 23 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT + col0 * 56 AS col2 FROM tab2 AS cor0
----
2576
3584
4200

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT DISTINCT ( - MIN( - - 64 ) ) + - 58 FROM tab0 AS cor0
----
-122

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT ( - MIN ( - - 64 ) ) + - 58 FROM tab0 AS cor0
----
-122

query II rowsort
SELECT ALL - 24, col1 * - col1 + col0 FROM tab1 WHERE + col1 IS NULL
----

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

query I rowsort
SELECT ALL + 97 FROM tab2 WHERE NULL >= + - 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 79 AS col0, 65 col0 FROM tab0
----
79
65
79
65
79
65

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

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

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL COUNT ( * ) * - + 16 * COUNT ( * ) FROM tab1
----
-144

query I rowsort
SELECT ALL + ( col0 ) * col1 FROM tab1
----
425
4277
714

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

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

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

query I rowsort
SELECT DISTINCT + + 75 * + - col0 AS col1 FROM tab0 AS cor0
----
-1125
-6525
-7275

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17, - 89 col0 FROM tab2 cor0
----
-17
-89
-17
-89
-17
-89

query I rowsort
SELECT + 17 + + col2 FROM tab2
----
40
57
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 + - col1 col0 FROM tab0
----
16
76
96

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

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

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

query I rowsort
SELECT - 7 + col1 FROM tab2
----
44
60
70

query I rowsort
SELECT ALL + 69 - col2 AS col2 FROM tab1
----
-27
1
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5842
SELECT DISTINCT 66 * + 49 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT 66 * + 49 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 53 ) col1 FROM tab1
----
53
53
53

query I rowsort
SELECT ALL col0 * 8 FROM tab2
----
368
512
600

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - SUM( ALL ( col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - SUM ( ALL ( col2 ) ) AS col2 FROM tab1
----
-223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5846
SELECT ALL MIN( - col0 ) AS col0 FROM tab1 WHERE NOT NULL <= + CAST( NULL AS SIGNED ) * col0 - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL MIN ( - col0 ) AS col0 FROM tab1 WHERE NOT NULL <= + CAST ( NULL AS INTEGER ) * col0 - + col2
----
NULL

query I rowsort
SELECT - col0 + + 40 FROM tab2
----
-24
-35
-6

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 52 / - 46 > NULL
----

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

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

query I rowsort
SELECT ALL 35 * col1 AS col1 FROM tab1
----
1645
175
490

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5852
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) * + 37 AND + 89 * col0
----

skipif mysql # not compatible
query III rowsort label-5852
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) * + 37 AND + 89 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 60 + + 10 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL + CAST ( - 12 AS INTEGER ) FROM tab2
----
-12
-12
-12

query I rowsort
SELECT ( - col2 ) * + 40 FROM tab0
----
-1880
-3960
-400

query I rowsort
SELECT ALL - 79 * col1 FROM tab2 WHERE + 66 IN ( 16 / - col2 )
----

query I rowsort
SELECT - col1 * 73 + - col0 FROM tab1
----
-1073
-3522
-450

query I rowsort
SELECT DISTINCT - col1 + + col0 * col2 AS col0 FROM tab2
----
1007
2483
4283

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL + COUNT( * ) + - 11 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + COUNT ( * ) + - 11 FROM tab0
----
-8

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

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

query I rowsort
SELECT DISTINCT - col0 * + ( 74 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3774
-6290
-6734

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

query I rowsort
SELECT col0 * 92 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4692
7820
8372

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 93 AND ( col2 * col0 )
----

query I rowsort
SELECT AVG ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE - col1 * col1 + + 0 IS NULL
----
NULL

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 41 FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5872
SELECT * FROM tab2 WHERE ( 32 ) BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5872
SELECT * FROM tab2 WHERE ( 32 ) BETWEEN NULL AND CAST ( NULL AS REAL )
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5874
SELECT DISTINCT col1 - + col0 DIV CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT col1 - + col0 / CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-96
17
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT col2 FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + + col0 ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5875
SELECT col2 FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + + col0 ) IS NULL
----
23
40
58

query I rowsort
SELECT ALL + col2 * 95 AS col2 FROM tab2 AS cor0
----
2185
3800
5510

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 98 + col1 ) IS NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + 15 * col1 IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5880
SELECT ALL + - CAST( COUNT( + CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + - CAST ( COUNT ( + CAST ( NULL AS REAL ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col0 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 cor0 WHERE NOT ( col0 ) NOT IN ( - col1 * + 73 )
----

query I rowsort
SELECT DISTINCT + 80 * 90 FROM tab2 AS cor0
----
7200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5885
SELECT * FROM tab1 WHERE NOT 33 IS NULL OR NOT CAST( 41 AS SIGNED ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5885
SELECT * FROM tab1 WHERE NOT 33 IS NULL OR NOT CAST ( 41 AS INTEGER ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col1 * col1 col1 FROM tab2
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 WHERE + col1 > - col1
----
-9

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE + col1 > - col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT + 77 DIV + COUNT( * ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-5888
SELECT + 77 / + COUNT ( * ) AS col1 FROM tab0
----
25

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

query I rowsort
SELECT ALL 57 * + - col1 AS col2 FROM tab0
----
-1197
-4617
-57

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 25 * + col1 FROM tab2
----
-1275
-1675
-1925

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( 18 + ( - col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 85 NOT IN ( 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * - 90 * col1 FROM tab0
----
-18900
-342630
-8910

query I rowsort
SELECT DISTINCT + - 99 * + col1 * 1 AS col1 FROM tab2 AS cor0
----
-5049
-6633
-7623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( col1 ) IN ( - 35 )
----

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( col1 ) IN ( - 35 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( 30 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - 4 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

query II rowsort
SELECT ALL - col0 AS col2, - col0 * + col1 + col2 FROM tab0 AS cor0
----
-15
-1168
-87
-1817
-97
2

query I rowsort
SELECT DISTINCT 36 + - 32 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-2556
-636
4

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 53 ) IS NULL OR NOT col1 BETWEEN - col2 * col1 AND NULL
----

query I rowsort
SELECT DISTINCT + - 71 + - + col1 FROM tab2 AS cor0
----
-122
-138
-148

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

query I rowsort
SELECT 60 * + - col2 AS col1 FROM tab1
----
-3540
-4080
-5760

query I rowsort
SELECT ALL - col2 + col1 - + col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT 71 * + col2 AS col1 FROM tab1 WHERE 53 < - col2
----

query I rowsort
SELECT DISTINCT - 80 + - col2 * - 9 + + ( ( - col2 ) ) AS col0 FROM tab1
----
392
464
688

query III rowsort
SELECT * FROM tab2 WHERE + - 28 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL + SUM( - + 98 ) * + COUNT( * ) + + COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-879

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5912
SELECT ALL + SUM ( - + 98 ) * + COUNT ( * ) + + COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-879

query I rowsort
SELECT ( col2 ) AS col0 FROM tab1 WHERE - - col0 * ( - 75 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT ( + + 43 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT ( + + 43 ) <= NULL
----
0

query I rowsort
SELECT ALL + col1 + + - col2 * - + 1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5916
SELECT * FROM tab2 WHERE ( 73 ) NOT IN ( + 18 * + - col0 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5916
SELECT * FROM tab2 WHERE ( 73 ) NOT IN ( + 18 * + - col0 * - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL col1 AS col2, col2 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5918
SELECT + CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-3

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

query I rowsort
SELECT DISTINCT - + 13 - ( - 87 ) * 19 FROM tab2 AS cor0
----
1640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 27 * - col0 col1 FROM tab0 cor0 WHERE col2 = + 52 * + 54 * + col0 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 97 * - col1 * + + col2 * - 96 > NULL
----

query I rowsort
SELECT DISTINCT + - col0 * + + col1 + col1 FROM tab1 AS cor0
----
-420
-4230
-700

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + + col2 > NULL
----

query II rowsort
SELECT ALL - col2, - col1 + + 2 AS col2 FROM tab1
----
-59
-3
-68
-45
-96
-12

query I rowsort
SELECT - 25 * col0 FROM tab0 WHERE NOT 56 + col1 BETWEEN NULL AND - ( + + 76 )
----
-2175
-2425
-375

onlyif mysql # DIV for integer division: 
query II rowsort label-5926
SELECT 55 col0, + col2 * + col2 DIV + col2 col0 FROM tab2
----
55
23
55
40
55
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5926
SELECT 55 col0, + col2 * + col2 / + col2 col0 FROM tab2
----
55
23
55
40
55
58

query I rowsort
SELECT ( 73 ) * - 70 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + ( 60 ) ) * - col2 AND NULL
----

query II rowsort
SELECT ALL col1 * col2 AS col2, col0 * - col1 FROM tab1
----
1344
-714
295
-425
3196
-4277

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

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

skipif mysql # not compatible
query I rowsort label-5930
SELECT - CAST ( ( 47 ) AS INTEGER ) AS col0 FROM tab0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT DISTINCT + MAX( col0 ) * - ( - - 26 ) + - 81 AS col1 FROM tab1
----
-2447

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT + MAX ( col0 ) * - ( - - 26 ) + - 81 AS col1 FROM tab1
----
-2447

query II rowsort
SELECT 4, col2 FROM tab0 AS cor0
----
4
10
4
47
4
99

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

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

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

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

query I rowsort
SELECT DISTINCT 26 * + col1 AS col2 FROM tab2
----
1326
1742
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT - MIN( - 34 ) AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-5936
SELECT - MIN ( - 34 ) AS col1 FROM tab2
----
34

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

query I rowsort
SELECT ALL col1 + + + 60 + + col0 FROM tab0 AS cor0
----
156
158
168

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

query I rowsort
SELECT ALL - col0 + + 63 FROM tab0 AS cor0
----
-24
-34
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5941
SELECT * FROM tab0 AS cor0 WHERE col0 * + + col2 * - CAST( NULL AS SIGNED ) * - ( - CAST( NULL AS SIGNED ) ) * - - col0 * + col0 <> - 77
----

skipif mysql # not compatible
query III rowsort label-5941
SELECT * FROM tab0 AS cor0 WHERE col0 * + + col2 * - CAST ( NULL AS INTEGER ) * - ( - CAST ( NULL AS INTEGER ) ) * - - col0 * + col0 <> - 77
----

query I rowsort
SELECT DISTINCT col0 + - 69 * - ( + - 2 ) AS col2 FROM tab0 AS cor0
----
-123
-41
-51

query I rowsort
SELECT ALL - 58 * - + ( - col0 ) * col1 * - col2 FROM tab2
----
11432960
16904100
3129564

query I rowsort
SELECT col2 + + 18 AS col1 FROM tab2
----
41
58
76

query I rowsort
SELECT DISTINCT + col0 + + - col0 FROM tab0
----
0

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

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

query I rowsort
SELECT col0 + col0 + - 68 AS col0 FROM tab2
----
24
60
82

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

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

query II rowsort
SELECT - col1 + + + ( + col2 ), col2 AS col2 FROM tab0
----
-11
10
-34
47
98
99

query I rowsort
SELECT DISTINCT 27 + + col1 AS col1 FROM tab1
----
32
41
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ALL COUNT( * ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
9

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

query I rowsort
SELECT DISTINCT - - 44 * - col0 AS col1 FROM tab0 cor0
----
-3828
-4268
-660

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 95 / + + 61 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + + MIN( ( 17 ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5954
SELECT + + MIN ( ( 17 ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17

query I rowsort
SELECT - ( + - col1 ) - - col0 + - col1 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - 26 + - - 12 + 76 * + + 63 * col2 + + col0 AS col0 FROM tab0
----
225037
474095
47953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 76 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL + - 20 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT ALL + COUNT( col2 ) + - 20 AS col1 FROM tab2 AS cor0 WHERE + col2 * + 29 IS NULL
----
-20

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL + COUNT ( col2 ) + - 20 AS col1 FROM tab2 AS cor0 WHERE + col2 * + 29 IS NULL
----
-20

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

query I rowsort
SELECT + col1 * 88 FROM tab0 cor0
----
1848
7128
88

query I rowsort
SELECT ALL - - col0 * + - 46 + col2 FROM tab1 AS cor0
----
-2250
-3851
-4118

query I rowsort
SELECT DISTINCT + col0 * + 91 AS col0 FROM tab1 cor0
----
4641
7735
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT DISTINCT - ( + + 9 ) DIV - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT - ( + + 9 ) / - col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5965
SELECT + 54 * 98 + SUM( ALL CAST( - + col1 AS SIGNED ) ) * - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL = - 51
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5965
SELECT + 54 * 98 + SUM ( ALL CAST ( - + col1 AS INTEGER ) ) * - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL = - 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5966
SELECT DISTINCT + CAST( - ( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT + CAST ( - ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5967
SELECT + 99 * COUNT( DISTINCT 53 ) DIV + 44 AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5967
SELECT + 99 * COUNT ( DISTINCT 53 ) / + 44 AS col0 FROM tab1
----
2

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

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

query I rowsort
SELECT + 97 * - col1 AS col2 FROM tab2
----
-4947
-6499
-7469

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT + SUM( 97 ) col0 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5972
SELECT + SUM ( 97 ) col0 FROM tab2 AS cor0
----
291

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT + - col0 * col1 * + - 73 col0 FROM tab1 AS cor0 WHERE NOT + col1 = + + 98 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5975
SELECT + - col0 * col1 * + - 73 col0 FROM tab1 AS cor0 WHERE NOT + col1 = + + 98 * - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT + 43, - col2 AS col1 FROM tab1 AS cor0
----
43
-59
43
-68
43
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-5977
SELECT ALL + col0, 6 DIV col1 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5977
SELECT ALL + col0, 6 / col1 FROM tab2
----
46
0
64
0
75
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5979
SELECT ALL + 81 col2, COUNT( * ) FROM tab2
----
81
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT + + 78 DIV + col0 FROM tab2 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5980
SELECT + + 78 / + col0 FROM tab2 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT + col1 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - col1 <> NULL
----

query I rowsort
SELECT ALL + - 76 + - - col1 AS col2 FROM tab1 AS cor0
----
-29
-62
-71

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE - 20 / - + 83 / - - 21 * - - 89 <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + 70 FROM tab0
----
117
169
80

query I rowsort
SELECT ALL - 98 FROM tab0 WHERE NOT + col2 BETWEEN NULL AND + - col2 + - col2
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + col2 - + + col1 AS col1 FROM tab1
----
21
54
82

onlyif mysql # DIV for integer division: 
query II rowsort label-5989
SELECT col2 - + + col1, + col0 DIV + col0 AS col2 FROM tab1
----
21
1
54
1
82
1

skipif mysql # not compatible
query II rowsort label-5989
SELECT col2 - + + col1, + col0 / + col0 AS col2 FROM tab1
----
21
1
54
1
82
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5990
SELECT - + col0 + + + col1 + col1 DIV - + col0 AS col2 FROM tab0 cor0
----
-66
-96
61

skipif mysql # not compatible
query I rowsort label-5990
SELECT - + col0 + + + col1 + col1 / - + col0 AS col2 FROM tab0 cor0
----
-66
-96
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT ALL col1 DIV + 17 + + + col0 + + col1 - - col2 DIV - col2 col0 FROM tab0 AS cor0
----
108
97
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5991
SELECT ALL col1 / + 17 + + + col0 + + col1 - - col2 / - col2 col0 FROM tab0 AS cor0
----
108
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - + ( + - 67 ) + + MAX( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-5992
SELECT - + ( + - 67 ) + + MAX ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
163

query II rowsort
SELECT DISTINCT - 77 * - - 92 AS col2, col1 FROM tab1 AS cor0
----
-7084
14
-7084
47
-7084
5

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

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

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

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

query I rowsort
SELECT DISTINCT - 14 - + 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

query I rowsort
SELECT DISTINCT 83 * + col1 FROM tab0 AS cor0
----
1743
6723
83

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * + - col0 BETWEEN - ( + 25 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT + - MAX( ALL + col2 ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6001
SELECT + - MAX ( ALL + col2 ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6003
SELECT ALL SUM( ALL + - CAST( - - col2 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * 2 * col2 + col0 * col1 + col2 IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL SUM ( ALL + - CAST ( - - col2 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * 2 * col2 + col0 * col1 + col2 IS NOT NULL
----
-156

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 * 61 / - ( + + 49 ) ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( - col2 ), + col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab2 WHERE NOT col1 / col2 IS NULL
----
116
46
80

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

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

query I rowsort
SELECT + col2 * + 39 * + + ( 4 ) FROM tab2
----
3588
6240
9048

query I rowsort
SELECT + col1 * + - 61 AS col0 FROM tab0
----
-1281
-4941
-61

query I rowsort
SELECT + 81 * - + ( + + col1 ) AS col0 FROM tab2
----
-4131
-5427
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT + ( + COUNT( * ) ) * + 84 col0 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6011
SELECT DISTINCT + ( + COUNT ( * ) ) * + 84 col0 FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN NULL AND + col0
----
0

query I rowsort
SELECT ALL + + 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL 46 + + ( - COUNT( * ) ) AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL 46 + + ( - COUNT ( * ) ) AS col0 FROM tab0
----
43

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

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

query I rowsort
SELECT - 79 * - col2 FROM tab1
----
4661
5372
7584

query I rowsort
SELECT - + 73 - - 53 FROM tab1 AS cor0
----
-20
-20
-20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6018
SELECT ALL col2 + 3 DIV - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL col2 + 3 / - col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 * - 61 * - - col0 * ( col1 ) + - + col0 AS col1 FROM tab0 AS cor0
----
1114383
3483390
585686

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT 15 * COUNT( * ) + + MAX( + - col0 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-6022
SELECT 15 * COUNT ( * ) + + MAX ( + - col0 ) FROM tab0
----
30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6024
SELECT DISTINCT + + col2 AS col1 FROM tab0 WHERE NULL NOT IN ( + col1, 99 + - CAST( NULL AS SIGNED ), + col0 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + + col2 AS col1 FROM tab0 WHERE NULL NOT IN ( + col1, 99 + - CAST ( NULL AS INTEGER ), + col0 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NULL IN ( col2 * + - 24 )
----
0

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NULL IN ( col2 * + - 24 )
----
0

query I rowsort
SELECT DISTINCT + 86 * - col1 AS col2 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL + COUNT( * ) - + + 10 + + 49 AS col1 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL + COUNT ( * ) - + + 10 + + 49 AS col1 FROM tab2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6028
SELECT * FROM tab2 AS cor0 WHERE - 52 = - col0 - + CAST( NULL AS SIGNED ) - col0
----

skipif mysql # not compatible
query III rowsort label-6028
SELECT * FROM tab2 AS cor0 WHERE - 52 = - col0 - + CAST ( NULL AS INTEGER ) - col0
----

query I rowsort
SELECT 33 AS col1 FROM tab0 AS cor0 WHERE + 59 + 59 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT DISTINCT + COUNT( + 79 ) FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) > NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT + COUNT ( + 79 ) FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) > NULL ) )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 58 NOT IN ( + ( col2 ), + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-6032
SELECT CAST ( NULL AS REAL ) * - 40 + + col0 + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + - - col1 col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-10
-43
-52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT + SUM( + + ( 81 ) ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-6035
SELECT + SUM ( + + ( 81 ) ) FROM tab1
----
243

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

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + MAX ( DISTINCT col2 ) AS col2 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL ( 66 ) * + - 5 * + ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
990

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6038
SELECT ALL ( 66 ) * + - 5 * + ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
990

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT 21 >= NULL
----

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT ( + col1 IS NULL )
----
-51
-85
-91

query I rowsort
SELECT 29 FROM tab1 WHERE NOT ( + 96 < 79 + col0 * - 98 )
----
29
29
29

query I rowsort
SELECT ALL 38 * col2 FROM tab1
----
2242
2584
3648

query I rowsort
SELECT + 29 FROM tab2 WHERE NOT + col0 / + col1 <> NULL
----

query II rowsort
SELECT + col2, col2 + - + col0 AS col0 FROM tab2 AS cor0
----
23
-23
40
-24
58
-17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL - + CAST( - ( - col0 ) AS SIGNED ) FROM tab0 cor0 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL - + CAST ( - ( - col0 ) AS INTEGER ) FROM tab0 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT - COUNT( * ) + + 12 + - 29 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-6052
SELECT - COUNT ( * ) + + 12 + - 29 FROM tab2
----
-20

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6054
SELECT - - MIN( - 22 ) * + - 29 + 56 AS col0, - 55 AS col0 FROM tab1 AS cor0
----
694
-55

skipif mysql # not compatible
query II rowsort label-6054
SELECT - - MIN ( - 22 ) * + - 29 + 56 AS col0, - 55 AS col0 FROM tab1 AS cor0
----
694
-55

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

query I rowsort
SELECT - - 96 AS col2 FROM tab2 cor0
----
96
96
96

query I rowsort
SELECT + col2 * - ( + + 70 ) * col1 + + col1 + col0 AS col1 FROM tab0 AS cor0
----
-14592
-266394
-6832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6058
SELECT - SUM( ALL + + col1 ), + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-6058
SELECT - SUM ( ALL + + col1 ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-66
NULL

query II rowsort
SELECT ALL - col2 * - col1 + + col2 + col2 AS col2, col1 FROM tab0 AS cor0
----
230
21
297
1
3901
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 * col0 col2 FROM tab2 AS cor0
----
1748
2432
2850

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = - 79
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 cor0 WHERE ( col2 ) IS NOT NULL
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL - MAX( - - col2 ) AS col1 FROM tab0 WHERE + 33 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - MAX ( - - col2 ) AS col1 FROM tab0 WHERE + 33 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT DISTINCT + 19 - + + COUNT( * ) * + 24 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT + 19 - + + COUNT ( * ) * + 24 FROM tab2
----
-53

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6067
SELECT DISTINCT 29 - + 72 DIV - 16 AS col1, 86 * + COUNT( * ) * - 5 - + + 55 * - 89 + + 95 col1 FROM tab0
----
33
3700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6067
SELECT DISTINCT 29 - + 72 / - 16 AS col1, 86 * + COUNT ( * ) * - 5 - + + 55 * - 89 + + 95 col1 FROM tab0
----
33
3700

query I rowsort
SELECT ALL - + 5 * col0 FROM tab0 AS cor0
----
-435
-485
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6069
SELECT ALL 96 AS col1, 43 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + + CAST( NULL AS SIGNED ) * - 61 + - - ( + 68 ) + - + col0 )
----

skipif mysql # not compatible
query II rowsort label-6069
SELECT ALL 96 AS col1, 43 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + + CAST ( NULL AS INTEGER ) * - 61 + - - ( + 68 ) + - + col0 )
----

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

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

query I rowsort
SELECT col2 * + col2 * - 27 FROM tab0 AS cor0
----
-264627
-2700
-59643

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6073
SELECT DISTINCT 89 AS col2, - col2 DIV + 99 AS col0 FROM tab2 cor0
----
89
0

skipif mysql # not compatible
query II rowsort label-6073
SELECT DISTINCT 89 AS col2, - col2 / + 99 AS col0 FROM tab2 cor0
----
89
0

query II rowsort
SELECT DISTINCT + ( 7 ) AS col0, ( - col0 ) AS col0 FROM tab2 cor0
----
7
-46
7
-64
7
-75

query I rowsort
SELECT DISTINCT + col1 + - + 35 AS col1 FROM tab0 AS cor0
----
-14
-34
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT + 29 = NULL
----

skipif mysql # not compatible
query I rowsort label-6076
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT + 29 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6077
SELECT ALL + col2 DIV - col2, col0 AS col0 FROM tab0
----
-1
15
-1
87
-1
97

skipif mysql # not compatible
query II rowsort label-6077
SELECT ALL + col2 / - col2, col0 AS col0 FROM tab0
----
-1
15
-1
87
-1
97

query II rowsort
SELECT + col2 + - col2, col1 FROM tab0
----
0
1
0
21
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6079
SELECT + col1 + + col1 DIV - - ( + col0 ) AS col2 FROM tab2
----
52
67
78

skipif mysql # not compatible
query I rowsort label-6079
SELECT + col1 + + col1 / - - ( + col0 ) AS col2 FROM tab2
----
52
67
78

query I rowsort
SELECT col1 + + 96 FROM tab2 AS cor0 WHERE ( col0 IS NOT NULL )
----
147
163
173

query I rowsort
SELECT ALL + - 51 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT 68 + 1 FROM tab2
----
69

query II rowsort
SELECT ALL - col1 * ( + 68 ) AS col0, col2 + col2 FROM tab2
----
-3468
46
-4556
116
-5236
80

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE ( + + col1 ) * + col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT + col1 * + col1 - + + col1 + - col1 DIV - 29 AS col0 FROM tab1
----
182
20
2163

skipif mysql # not compatible
query I rowsort label-6085
SELECT + col1 * + col1 - + + col1 + - col1 / - 29 AS col0 FROM tab1
----
182
20
2163

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NULL NOT IN ( col1, - col0 * + 16 + - col0 - - 62 )
----

query I rowsort
SELECT ALL - - col0 - + ( - - col1 ) + col0 - col1 - + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1347
-1695
95

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ( MIN( DISTINCT - 1 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6091
SELECT ( MIN ( DISTINCT - 1 ) ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT - SUM( ALL + 84 ) AS col2 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-6092
SELECT - SUM ( ALL + 84 ) AS col2 FROM tab1
----
-252

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 WHERE NULL > 48
----

query I rowsort
SELECT - ( col0 ) * - col1 * col0 + - + col0 * + 31 AS col0 FROM tab2 cor0
----
106490
313408
374550

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col2 + col1
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + + 93 AS col2 FROM tab0 AS cor0
----
12
72
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
SELECT + + CAST( 95 AS SIGNED ) * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-940

skipif mysql # not compatible
query I rowsort label-6103
SELECT + + CAST ( 95 AS INTEGER ) * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-940

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6105
SELECT SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
-227

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

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

query I rowsort
SELECT DISTINCT - col0 + + + col0 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6108
SELECT DISTINCT + COUNT( * ) AS col1, 46 + + SUM( + col2 ) * - COUNT( * ) AS col2 FROM tab1
----
3
-623

skipif mysql # not compatible
query II rowsort label-6108
SELECT DISTINCT + COUNT ( * ) AS col1, 46 + + SUM ( + col2 ) * - COUNT ( * ) AS col2 FROM tab1
----
3
-623

query I rowsort
SELECT col0 * - + 80 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # DIV for integer division: 
query I rowsort label-6110
SELECT ALL col0 DIV - + ( + col0 ) AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL col0 / - + ( + col0 ) AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT ALL + SUM( - col1 ) AS col1, 88 FROM tab1
----
-66
88

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL + SUM ( - col1 ) AS col1, 88 FROM tab1
----
-66
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT COUNT( * ) * - - 29 AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-6114
SELECT COUNT ( * ) * - - 29 AS col0 FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col1 FROM tab2
----
-51
-67
-77

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

query I rowsort
SELECT - 0 * 52 + - 1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + col2 + 85 * col1 AS col0 FROM tab1 cor0
----
1094
366
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - + COUNT( * ) + 99 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6119
SELECT - + COUNT ( * ) + 99 FROM tab0 AS cor0
----
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT DISTINCT - - 80 DIV + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT - - 80 / + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col2 ) AS col1, 56 col1 FROM tab0 AS cor0
----
-10
56
-47
56
-99
56

query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 + + 95 AS col2 FROM tab2 AS cor0
----
-2506
-4394
-5834

query I rowsort
SELECT - + col1 * + 78 - - col0 FROM tab1 AS cor0
----
-1041
-305
-3575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col0 * - col0 col2 FROM tab1 AS cor0
----
-132651
-614125
-753571

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6126
SELECT - 19 - + col2 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IN ( + 20 * + - 80 + col0, - col2 / CAST( NULL AS DECIMAL ) / - col2 )
----

skipif mysql # not compatible
query I rowsort label-6126
SELECT - 19 - + col2 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IN ( + 20 * + - 80 + col0, - col2 / CAST ( NULL AS REAL ) / - col2 )
----

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 93 ) col0 FROM tab1
----
93
93
93

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

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

query II rowsort
SELECT 75, + col2 FROM tab1
----
75
59
75
68
75
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 37 + - col0 FROM tab1 AS cor0
----
59
-48
68
-54
96
-14

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL ( - - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL + - col0 + - 30 + col1 AS col1 FROM tab1 cor0
----
-110
-67
-74

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 86 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col0 FROM tab1
----
-31
-31
-31

query III rowsort
SELECT * FROM tab2 WHERE 79 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 47 col1 FROM tab2
----
-24
-7
11

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 >= - col2 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + + ( + 48 ) FROM tab0
----
135
145
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ALL MIN( ALL - - 94 ) col0 FROM tab2
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6148
SELECT ALL MIN ( ALL - - 94 ) col0 FROM tab2
----
94

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

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

query I rowsort
SELECT - col2 * + - col0 - 79 FROM tab1
----
4817
4936
6109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6152
SELECT DISTINCT + 83 * - CAST( NULL AS DECIMAL ) - - - 34 - + 60 / - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT + 83 * - CAST ( NULL AS REAL ) - - - 34 - + 60 / - col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT - MAX( DISTINCT 47 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-47

skipif mysql # not compatible
query I rowsort label-6153
SELECT - MAX ( DISTINCT 47 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6156
SELECT DISTINCT col2 DIV - + ( - + 77 ) * 88 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT col2 / - + ( - + 77 ) * 88 FROM tab2 AS cor0
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT 73 * + - COUNT( * ) * - 58 * + ( + 40 ) * - 23 FROM tab0
----
-11685840

skipif mysql # not compatible
query I rowsort label-6159
SELECT 73 * + - COUNT ( * ) * - 58 * + ( + 40 ) * - 23 FROM tab0
----
-11685840

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6162
SELECT CAST( MAX( DISTINCT 88 ) AS SIGNED ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-6162
SELECT CAST ( MAX ( DISTINCT 88 ) AS INTEGER ) FROM tab2
----
88

query I rowsort
SELECT - 46 * + ( + 58 ) FROM tab1
----
-2668
-2668
-2668

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 <> + 76
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6165
SELECT - col1 DIV col1 AS col1, 93 * - - col1 * - 58 AS col2 FROM tab0
----
-1
-113274
-1
-436914
-1
-5394

skipif mysql # not compatible
query II rowsort label-6165
SELECT - col1 / col1 AS col1, 93 * - - col1 * - 58 AS col2 FROM tab0
----
-1
-113274
-1
-436914
-1
-5394

query II rowsort
SELECT ALL - 81 * col1, - 14 AS col1 FROM tab0
----
-1701
-14
-6561
-14
-81
-14

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

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

query I rowsort
SELECT - 88 + 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT + 44 + + col2 DIV + 62 AS col2 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-6170
SELECT + 44 + + col2 / + 62 AS col2 FROM tab2 AS cor0
----
44
44
44

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 99 IS NULL
----

query I rowsort
SELECT ALL col0 * + 19 FROM tab1 AS cor0 WHERE col1 IS NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT DISTINCT 32 DIV - 62 + + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT 32 / - 62 + + - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-6179
SELECT ALL + col1 + - - col2 AS col2, col2 + - 15 DIV col1 * + 85 FROM tab2
----
117
40
125
58
74
23

skipif mysql # not compatible
query II rowsort label-6179
SELECT ALL + col1 + - - col2 AS col2, col2 + - 15 / col1 * + 85 FROM tab2
----
117
40
125
58
74
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL MIN( ALL + + 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL MIN ( ALL + + 91 ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT 25 + + COUNT( * ) AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT 25 + + COUNT ( * ) AS col0 FROM tab1
----
28

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

query I rowsort
SELECT DISTINCT + ( - col0 ) * + - col1 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL col1 * - + 92 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1932
-7452
-92

query I rowsort
SELECT 61 + col2 + 37 + + + 78 * - - col2 * col1 AS col0 FROM tab0 AS cor0
----
16488
297091
7919

query I rowsort
SELECT + 84 + - col1 AS col1 FROM tab2 AS cor0
----
17
33
7

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

query I rowsort
SELECT - 38 * - 11 * + col1 + - col2 - col2 AS col1 FROM tab1
----
19510
1972
5660

query I rowsort
SELECT ALL - col0 * + 27 + + + col1 FROM tab0
----
-2328
-2618
-324

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT - SUM( ALL - 68 ) * - ( + 76 ) AS col0 FROM tab0
----
-15504

skipif mysql # not compatible
query I rowsort label-6191
SELECT - SUM ( ALL - 68 ) * - ( + 76 ) AS col0 FROM tab0
----
-15504

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT DISTINCT - COUNT( * ) * + - 98 AS col1 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT - COUNT ( * ) * + - 98 AS col1 FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + - 88 * + + COUNT( * ) FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-6193
SELECT + - 88 * + + COUNT ( * ) FROM tab1 AS cor0
----
-264

query I rowsort
SELECT ALL + + 54 * ( - + col1 ) FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT DISTINCT col0 * + - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, - 0 col0 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * col2 + - 64 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + col0 * 75 BETWEEN 26 * + col2 + col0 AND - - 50
----
2496
4286
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 64 col0, col2 + + 54 AS col0 FROM tab0 AS cor0
----
-64
101
-64
153
-64
64

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6201
SELECT 14 DIV + COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6201
SELECT 14 / + COUNT ( * ) AS col2 FROM tab1
----
4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 10 ) + col1 col1 FROM tab2 AS cor0
----
61
77
87

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

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

query I rowsort
SELECT DISTINCT + col0 + + 99 AS col1 FROM tab2 cor0
----
145
163
174

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

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT MAX ( DISTINCT + 28 ) * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 * 27 * - col2 + - col2 AS col1 FROM tab0 WHERE NOT + ( col2 ) IS NULL
----
-19082
-23500
-259380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6208
SELECT DISTINCT CAST( NULL AS SIGNED ) / col1, col2 col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6208
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1, col2 col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - 95 + + + col1 * + col2 FROM tab1 WHERE NULL IS NULL
----
1249
200
3101

query I rowsort
SELECT DISTINCT + col2 * 91 * - col2 + col0 * col2 * - + 33 * + col0 + - col1 FROM tab0 AS cor0
----
-2506891
-31631095
-550075

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

query I rowsort
SELECT DISTINCT + 70 * + col1 FROM tab0 AS cor0 WHERE NULL > 52 * - - 88 + + 92
----

query I rowsort
SELECT DISTINCT - col2 + - col1 * + col2 - + col1 * col1 FROM tab1 AS cor0
----
-1636
-379
-5473

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6214
SELECT ALL + col0 * + col2 + - - ( - col0 ) - - col2 + col1 AS col2, + CAST( + col1 AS SIGNED ) + - col2 FROM tab1
----
4955
-82
4994
-54
6212
-21

skipif mysql # not compatible
query II rowsort label-6214
SELECT ALL + col0 * + col2 + - - ( - col0 ) - - col2 + col1 AS col2, + CAST ( + col1 AS INTEGER ) + - col2 FROM tab1
----
4955
-82
4994
-54
6212
-21

query I rowsort
SELECT ALL + col0 - + col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6216
SELECT 15, 10 * - COUNT( * ) * + COUNT( + - 11 ) AS col1 FROM tab0
----
15
-90

skipif mysql # not compatible
query II rowsort label-6216
SELECT 15, 10 * - COUNT ( * ) * + COUNT ( + - 11 ) AS col1 FROM tab0
----
15
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col1 * col0 col1 FROM tab2
----
23
-2346
40
-4928
58
-5025

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6218
SELECT CAST( + + 46 AS SIGNED ) * col2 DIV - ( - + col1 ) + + + col1 DIV col2 + + col0 AS col1 FROM tab1 WHERE + col0 * - col2 IS NOT NULL
----
157
366
627

skipif mysql # not compatible
query I rowsort label-6218
SELECT CAST ( + + 46 AS INTEGER ) * col2 / - ( - + col1 ) + + + col1 / col2 + + col0 AS col1 FROM tab1 WHERE + col0 * - col2 IS NOT NULL
----
157
366
627

query I rowsort
SELECT col1 * + 74 * - - 12 FROM tab0
----
18648
71928
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 67 - - col1 col2 FROM tab0 AS cor0
----
-46
-66
14

query I rowsort
SELECT ALL + - col2 - + col0 + + col1 * + 86 AS col1 FROM tab0 AS cor0
----
-110
1709
6904

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL - SUM( + 18 ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - SUM ( + 18 ) FROM tab0
----
-54

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6229
SELECT + + MIN ( - CAST ( NULL AS INTEGER ) ) * - - 20 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6230
SELECT col2 DIV 12 * - CAST( - col0 AS SIGNED ) col1 FROM tab1
----
340
408
455

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6230
SELECT col2 / 12 * - CAST ( - col0 AS INTEGER ) col1 FROM tab1
----
340
408
455

query I rowsort
SELECT ALL + ( + col1 ) * + + col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL col1 * + - col1 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( 89 ), ( - 2 ) * + col2 col1 FROM tab0 WHERE NOT NULL >= + - col1
----

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

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

query I rowsort
SELECT - col1 * + + 68 + col1 FROM tab0 WHERE NOT NULL IN ( + col2, - 7, col2 / ( ( ( - + col2 ) ) ), + 23 * - col1, + 43 * - col0 / + + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6236
SELECT ALL MAX( DISTINCT + 86 ) DIV + + ( - ( COUNT( * ) ) ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL MAX ( DISTINCT + 86 ) / + + ( - ( COUNT ( * ) ) ) FROM tab0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT DISTINCT + MIN( DISTINCT - + 42 ) - + ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE 56 NOT IN ( - - col2 + - col2 * - col1 )
----
-45

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT + MIN ( DISTINCT - + 42 ) - + ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE 56 NOT IN ( - - col2 + - col2 * - col1 )
----
-45

query I rowsort
SELECT ALL - + col1 + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 19 - + - col2 col0 FROM tab2
----
135
65
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - COUNT( * ) * + COUNT( * ) + 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-6240
SELECT - COUNT ( * ) * + COUNT ( * ) + 85 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
4

query II rowsort
SELECT - 88 AS col2, - col1 * - col1 FROM tab0 AS cor0
----
-88
1
-88
441
-88
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT ALL SUM( - col1 ) + - + 26 AS col0 FROM tab2 AS cor0 WHERE NOT 34 + CAST( NULL AS SIGNED ) < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL SUM ( - col1 ) + - + 26 AS col0 FROM tab2 AS cor0 WHERE NOT 34 + CAST ( NULL AS INTEGER ) < - col2
----
NULL

query I rowsort
SELECT ALL + ( + col2 ) AS col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - + 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-6244
SELECT - + COUNT ( + col1 ) col0 FROM tab2 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT 32 * - MIN( - - 83 ) AS col2 FROM tab1 cor0
----
-2656

skipif mysql # not compatible
query I rowsort label-6246
SELECT 32 * - MIN ( - - 83 ) AS col2 FROM tab1 cor0
----
-2656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 66 ) + - - col0 col2 FROM tab0 AS cor0
----
-51
21
31

onlyif mysql # DIV for integer division: 
query II rowsort label-6248
SELECT + ( col1 ) DIV + + ( - + col1 ) + col2 + - col1, - col2 AS col0 FROM tab0 AS cor0
----
-12
-10
-35
-47
97
-99

skipif mysql # not compatible
query II rowsort label-6248
SELECT + ( col1 ) / + + ( - + col1 ) + col2 + - col1, - col2 AS col0 FROM tab0 AS cor0
----
-12
-10
-35
-47
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col0 FROM tab0 cor0 WHERE + col1 BETWEEN + col1 AND + + 11
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT ALL + col2 + - col2 DIV col1 * + + col1 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + col2 + - col2 / col1 * + + col1 AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6251
SELECT ALL + CAST( MAX( ALL 44 ) AS SIGNED ) - - 81 - + - ( + 37 ) AS col2 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + CAST ( MAX ( ALL 44 ) AS INTEGER ) - - 81 - + - ( + 37 ) AS col2 FROM tab1
----
162

query I rowsort
SELECT col2 FROM tab0 WHERE - col0 + + ( - - 1 ) >= NULL
----

query I rowsort
SELECT ALL col0 * col1 FROM tab1 WHERE ( - col0 * + - 13 ) IS NULL
----

query I rowsort
SELECT ALL - col2 + - 27 FROM tab0
----
-126
-37
-74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6256
SELECT DISTINCT SUM( DISTINCT + + col0 ) AS col0, COUNT( * ) AS col1 FROM tab1
----
227
3

skipif mysql # not compatible
query II rowsort label-6256
SELECT DISTINCT SUM ( DISTINCT + + col0 ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
227
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT 82 * + 52 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
4261

skipif mysql # not compatible
query I rowsort label-6257
SELECT 82 * + 52 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 37 ) + + col2 col2 FROM tab0 AS cor0
----
-27
10
62

query I rowsort
SELECT 97 FROM tab2 AS cor0 WHERE NOT col0 - + 56 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 90 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6261
SELECT + + MIN ( - 15 ) AS col2 FROM tab2 AS cor0
----
-15

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

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

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

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

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

query I rowsort
SELECT ALL col0 * col2 * 57 AS col2 FROM tab1
----
279072
285855
352716

query II rowsort
SELECT ALL - ( - 88 ) AS col0, + col2 FROM tab2
----
88
23
88
40
88
58

query II rowsort
SELECT col1 AS col2, ( - col2 ) + col1 FROM tab2 WHERE NOT + - col0 IS NULL
----
51
28
67
9
77
37

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

query II rowsort
SELECT - col1 + - col1, col1 AS col1 FROM tab0
----
-162
81
-2
1
-42
21

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

query II rowsort
SELECT - - 19 + col2 AS col0, col2 AS col2 FROM tab0 AS cor0
----
118
99
29
10
66
47

query I rowsort
SELECT - 97 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE - col2 * + col0 > + - 1
----

query I rowsort
SELECT col2 + + 49 AS col2 FROM tab1 AS cor0
----
108
117
145

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 + + - 92 FROM tab0 AS cor0
----
-113
-173
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT ALL 83 DIV + ( - col1 ) - + 52 + col2 AS col0 FROM tab2
----
-13
-30
5

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL 83 / + ( - col1 ) - + 52 + col2 AS col0 FROM tab2
----
-13
-30
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - 6 / + + col0
----

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

query I rowsort
SELECT col0 * + + col0 AS col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + 6
----

query I rowsort
SELECT - col1 * + 88 AS col0 FROM tab2
----
-4488
-5896
-6776

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT + ( MAX( ALL col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6286
SELECT + ( MAX ( ALL col2 ) ) AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL - COUNT( col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL - COUNT ( col1 ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col0 * - 29 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT DISTINCT - 12 DIV - + 42 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - 12 / - + 42 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6290
SELECT DISTINCT + col0 DIV + col2 AS col2, - 93 FROM tab1 cor0
----
0
-93
1
-93

skipif mysql # not compatible
query II rowsort label-6290
SELECT DISTINCT + col0 / + col2 AS col2, - 93 FROM tab1 cor0
----
0
-93
1
-93

query II rowsort
SELECT DISTINCT - 62 * - - 59, 78 * + col0 AS col0 FROM tab2 AS cor0
----
-3658
3588
-3658
4992
-3658
5850

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - 47 BETWEEN - + 55 / - - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - 47 BETWEEN - + 55 / - - col1 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT COUNT ( + 42 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT - MAX( ALL - col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6298
SELECT - MAX ( ALL - col1 ) AS col1 FROM tab0
----
1

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

query I rowsort
SELECT col1 * 96 + + 93 AS col1 FROM tab1 AS cor0
----
1437
4605
573

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

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

query I rowsort
SELECT - 4 * + ( + 75 ) FROM tab0
----
-300
-300
-300

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + col1 >= + col0
----
91
47
68

query I rowsort
SELECT - col2 * ( - col1 ) FROM tab0
----
210
3807
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT ALL CAST( AVG ( - CAST( + col0 AS SIGNED ) ) AS SIGNED ) * + 53 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL CAST ( AVG ( - CAST ( + col0 AS INTEGER ) ) AS INTEGER ) * + 53 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + COUNT( * ) * 84 AS col2 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-6308
SELECT + COUNT ( * ) * 84 AS col2 FROM tab1
----
252

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT col2 DIV 61 + 30 AS col2 FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-6310
SELECT col2 / 61 + 30 AS col2 FROM tab2
----
30
30
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL SUM( ALL col0 ) AS col0 FROM tab1 WHERE NOT NULL <> 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL SUM ( ALL col0 ) AS col0 FROM tab1 WHERE NOT NULL <> 44
----
NULL

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

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

query I rowsort
SELECT DISTINCT 32 * + 60 FROM tab2
----
1920

query I rowsort
SELECT ALL 87 * 45 AS col2 FROM tab2
----
3915
3915
3915

query I rowsort
SELECT ( col2 ) - - col2 AS col2 FROM tab0
----
198
20
94

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NULL NOT IN ( col1 )
----

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

query I rowsort
SELECT DISTINCT + ( + 22 ) + + col2 AS col0 FROM tab0
----
121
32
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT + COUNT( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + COUNT ( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ( - 91 ) FROM tab0
----
-91
-91
-91

query I rowsort
SELECT col2 + 22 AS col2 FROM tab2
----
45
62
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + col0 col0 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT + ( - col1 ) * col1 FROM tab2 WHERE col2 - col1 * + col1 IN ( ( - 85 ) * ( col0 + - col2 ) )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT DISTINCT col1 DIV - 95 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT col1 / - 95 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = ( 20 - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 11 col0 FROM tab0 AS cor0
----
-11
-231
-891

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN 97 + - col1 AND ( 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT ( col0 ) NOT IN ( + col0 )
----
23
40
58

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

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

query I rowsort
SELECT col1 * - 54 FROM tab0 AS cor0
----
-1134
-4374
-54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT ALL + col2 DIV 50 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL + col2 / 50 FROM tab0 AS cor0
----
0
0
1

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

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

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

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

query I rowsort
SELECT + col0 * col2 + - col2 FROM tab1 WHERE + col1 * - col2 + + col1 IS NOT NULL
----
4800
4956
6120

query I rowsort
SELECT 64 * + 69 AS col0 FROM tab0 WHERE + col0 * col1 + col1 BETWEEN ( NULL ) AND + col2 * col1
----

query I rowsort
SELECT col1 * - 93 + + col1 FROM tab0
----
-1932
-7452
-92

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 8 col2 FROM tab1
----
51
60
88

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

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

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

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

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

query I rowsort
SELECT - ( - col0 ) * - col1 AS col2 FROM tab0 WHERE NULL < - col1 * - 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT 76 * + col0 + col1 FROM tab0 WHERE ( 55 ) <> col2 + col1
----
1221
6633
7373

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col1 NOT IN ( col1 - + col1 ) )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE + col1 + - - col0 + - col0 / + col0 > col1
----
51
85
91

query I rowsort
SELECT 59 + - 86 AS col1 FROM tab0 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT DISTINCT COUNT( * ) - + MIN( ALL + + col0 ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT COUNT ( * ) - + MIN ( ALL + + col0 ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT DISTINCT + - col1 * - ( + col2 ) + col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT - + ( + 24 ) * + + col2 AS col0 FROM tab1 AS cor0
----
-1416
-1632
-2304

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - ( + col2 ) + - col2 * - col2 col1 FROM tab1 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab1 WHERE ( + 23 ) IS NOT NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT + COUNT( ALL + 48 ) * + 66 - COUNT( * ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + COUNT ( ALL + 48 ) * + 66 - COUNT ( * ) FROM tab2
----
195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT + 81 * + + SUM( ALL - - 23 ) col2 FROM tab2
----
5589

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6370
SELECT + 81 * + + SUM ( ALL - - 23 ) col2 FROM tab2
----
5589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT ALL COUNT( ALL col1 ) DIV + 98 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL COUNT ( ALL col1 ) / + 98 AS col2 FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT - - MAX( 99 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6373
SELECT - - MAX ( 99 ) FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT + - MAX( - 43 ) * - COUNT( * ) FROM tab2 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-6374
SELECT + - MAX ( - 43 ) * - COUNT ( * ) FROM tab2 cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL + ( - SUM( + col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + ( - SUM ( + col2 ) ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT + MIN( DISTINCT - + 38 ) * + 14 AS col0 FROM tab0 AS cor0
----
-532

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + MIN ( DISTINCT - + 38 ) * + 14 AS col0 FROM tab0 AS cor0
----
-532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6377
SELECT DISTINCT 40 DIV - COUNT( * ) AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT 40 / - COUNT ( * ) AS col0 FROM tab0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL - - CAST( col1 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - 25 * ( COUNT( * ) ) + + 88 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6379
SELECT - 25 * ( COUNT ( * ) ) + + 88 FROM tab1 AS cor0
----
13

query I rowsort
SELECT col2 + 99 + + 57 AS col1 FROM tab0 cor0
----
166
203
255

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT DISTINCT + MAX( + 6 ) + 18 * COUNT( - - 36 ) AS col0 FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT + MAX ( + 6 ) + 18 * COUNT ( - - 36 ) AS col0 FROM tab0 cor0
----
60

query I rowsort
SELECT - - col0 + - - col2 FROM tab1 cor0
----
144
147
159

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

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

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

query II rowsort
SELECT col2, - col1 + 72 + - col1 FROM tab1 AS cor0
----
59
62
68
-22
96
44

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 82 * + + col2 IN ( - + ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT MAX( ALL 55 ) AS col2 FROM tab1 WHERE ( + col1 + - - 1 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT MAX ( ALL 55 ) AS col2 FROM tab1 WHERE ( + col1 + - - 1 ) = NULL
----
NULL

query I rowsort
SELECT DISTINCT - 54 - + 60 AS col2 FROM tab1 WHERE NOT ( 78 * - col0 * col1 IN ( col0 + + col0 ) )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL + SUM( - col1 ) FROM tab2 cor0 WHERE NOT ( NULL ) < ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + SUM ( - col1 ) FROM tab2 cor0 WHERE NOT ( NULL ) < ( - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT ALL col0 * - col2 + + 76 DIV + - 88 + + 0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL col0 * - col2 + + 76 / + - 88 + + 0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6393
SELECT col1 DIV 51 + + col2 + + + col0, + CAST( NULL AS SIGNED ) + - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

skipif mysql # not compatible
query II rowsort label-6393
SELECT col1 / 51 + + col2 + + + col0, + CAST ( NULL AS INTEGER ) + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
144
NULL
147
NULL
159
NULL

query II rowsort
SELECT ALL - col0 - + + col0, col2 FROM tab1
----
-102
96
-170
59
-182
68

query I rowsort
SELECT 68 * - 11 + + col0 * + col1 FROM tab0 AS cor0
----
-651
1079
467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6396
SELECT - + 25 * + CAST( - - col0 AS SIGNED ) - - col0 AS col1 FROM tab0 AS cor0
----
-2088
-2328
-360

skipif mysql # not compatible
query I rowsort label-6396
SELECT - + 25 * + CAST ( - - col0 AS INTEGER ) - - col0 AS col1 FROM tab0 AS cor0
----
-2088
-2328
-360

query I rowsort
SELECT 12 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col0 * + - col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT 58, + 69 AS col2 FROM tab0
----
58
69
58
69
58
69

query II rowsort
SELECT + - 57, col1 FROM tab1 WHERE NOT ( NULL ) = ( - ( + col2 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 0 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * - + 78 AS col0 FROM tab2
----
-3978
-5226
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT DISTINCT - COUNT( * ) * + COUNT( ALL col1 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT - COUNT ( * ) * + COUNT ( ALL col1 ) AS col2 FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 65 * 26 + ( + ( + 51 ) ) ) IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT ALL col0 + + + col2 AS col0 FROM tab2 WHERE col1 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL col0 + + + col2 AS col0 FROM tab2 WHERE col1 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) >= ( NULL )
----

query II rowsort
SELECT DISTINCT 14, - 9 AS col1 FROM tab0
----
14
-9

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

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

query II rowsort
SELECT ALL + col1 AS col2, col1 * + col1 AS col2 FROM tab1 AS cor0
----
14
196
47
2209
5
25

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> + 54 * 56 / + col0
----

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

query I rowsort
SELECT ALL + - 65 * col1 FROM tab2 AS cor0
----
-3315
-4355
-5005

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

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

query I rowsort
SELECT ALL - 72 * + col2 + - col2 FROM tab0 AS cor0
----
-3431
-7227
-730

query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE + col2 NOT IN ( col0 )
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 <= + col2
----
15
81
47
97
1
99

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

query I rowsort
SELECT 98 + + + col2 FROM tab1
----
157
166
194

query I rowsort
SELECT DISTINCT ( 88 ) - ( + col1 ) + + 37 * col1 FROM tab2
----
1924
2500
2860

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

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL <> - - col1
----

query I rowsort
SELECT col2 + ( col1 ) FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * - col1 + + 78 col1 FROM tab1
----
-167
-2225
-608

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 90 NOT IN ( + col0 + + col0, 82 + - col0 - - + col1 / - ( + 66 ) - - - 21 )
----

query II rowsort
SELECT DISTINCT col1, + col0 * col0 FROM tab1 AS cor0
----
14
2601
47
8281
5
7225

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( 54, - col0 * col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT ALL - 98 * + + col0 * - - col1 * - col2 DIV - + col2 FROM tab1
----
-41650
-419146
-69972

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - 98 * + + col0 * - - col1 * - col2 / - + col2 FROM tab1
----
-41650
-419146
-69972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT DISTINCT - CAST( + 84 AS SIGNED ) + col2 FROM tab0
----
-37
-74
15

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT - CAST ( + 84 AS INTEGER ) + col2 FROM tab0
----
-37
-74
15

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

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

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

query II rowsort
SELECT ALL col2, - col2 + - - col1 AS col1 FROM tab2
----
23
28
40
37
58
9

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + - MIN ( DISTINCT CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6442
SELECT ALL - 57, 71 + + col0 / - CAST( NULL AS SIGNED ) * - - 25 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-57
NULL
-57
NULL
-57
NULL

skipif mysql # not compatible
query II rowsort label-6442
SELECT ALL - 57, 71 + + col0 / - CAST ( NULL AS INTEGER ) * - - 25 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-57
NULL
-57
NULL
-57
NULL

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

query II rowsort
SELECT col2 AS col2, 41 + - 87 FROM tab0 AS cor0
----
10
-46
47
-46
99
-46

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

query II rowsort
SELECT ALL + 37 AS col0, - 29 AS col1 FROM tab0 AS cor0
----
37
-29
37
-29
37
-29

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

skipif mysql # not compatible
query I rowsort label-6447
SELECT - col0 / 40 AS col0 FROM tab1 AS cor0
----
-1
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 86
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6449
SELECT ALL - 18, + SUM( ALL - - 7 ) - + 15 AS col1 FROM tab0 AS cor0
----
-18
6

skipif mysql # not compatible
query II rowsort label-6449
SELECT ALL - 18, + SUM ( ALL - - 7 ) - + 15 AS col1 FROM tab0 AS cor0
----
-18
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT - 8 DIV + col0 * - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT - 8 / + col0 * - col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT 38 * - col2 FROM tab2
----
-1520
-2204
-874

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6453
SELECT ALL CAST ( NULL AS INTEGER ) * col1 / + col0 * col0 * + 76 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6454
SELECT col0 * CAST( + 66 AS SIGNED ) col1 FROM tab0
----
5742
6402
990

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6454
SELECT col0 * CAST ( + 66 AS INTEGER ) col1 FROM tab0
----
5742
6402
990

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

query I rowsort
SELECT ALL - 53 * 49 + + 48 * col2 * - 41 FROM tab1 WHERE + 65 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * - 22 + - + col0 + 90 + col1 * col0 * col2 FROM tab1 AS cor0
----
26378
292331
70695

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6459
SELECT ALL - col0, + CAST( + - 21 AS SIGNED ) AS col2 FROM tab2
----
-46
-21
-64
-21
-75
-21

skipif mysql # not compatible
query II rowsort label-6459
SELECT ALL - col0, + CAST ( + - 21 AS INTEGER ) AS col2 FROM tab2
----
-46
-21
-64
-21
-75
-21

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

query II rowsort
SELECT col1 AS col0, + col1 * col2 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT DISTINCT - 28 + + ( 63 ) + col2 AS col0 FROM tab0
----
134
45
82

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN col1 * - col2 * + - col2 AND 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT ALL + 60 - - col1, col0 FROM tab2
----
111
46
127
75
137
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL SUM( DISTINCT + 93 ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL SUM ( DISTINCT + 93 ) AS col2 FROM tab1
----
93

query II rowsort
SELECT DISTINCT + 39 * - col2 - + col1 + col1 AS col2, - ( - 63 ) FROM tab1
----
-2301
63
-2652
63
-3744
63

query II rowsort
SELECT ALL - 33 - + 50, + 33 AS col1 FROM tab0
----
-83
33
-83
33
-83
33

query I rowsort
SELECT - 34 + - + col0 FROM tab2 AS cor0
----
-109
-80
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 + + col2 * + col2 col1 FROM tab1 AS cor0
----
3444
4587
9179

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT col0 + - 39 DIV + 65 * + 62 * + + col2 * - col1 * col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-6471
SELECT col0 + - 39 / + 65 * + 62 * + + col2 * - col1 * col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT - - 84 + + col1 AS col2 FROM tab1 cor0
----
131
89
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6473
SELECT ALL COUNT( * ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - 80 * + ( + col2 ) + - col2 NOT BETWEEN - col2 AND col2 / + col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6473
SELECT ALL COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - 80 * + ( + col2 ) + - col2 NOT BETWEEN - col2 AND col2 / + col1
----
0
NULL

query I rowsort
SELECT - col0 * + - col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

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

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

query I rowsort
SELECT + col0 * + col0 - - col0 + 5 * + 94 FROM tab2 AS cor0
----
2632
4630
6170

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6477
SELECT DISTINCT CAST( CAST( + CAST( + 24 AS SIGNED ) AS SIGNED ) AS SIGNED ) DIV col2 DIV - 87 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT CAST ( CAST ( + CAST ( + 24 AS INTEGER ) AS INTEGER ) AS INTEGER ) / col2 / - 87 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT col0 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2116
-4096
-5625

query I rowsort
SELECT col2 / col0 * - + col0 * - - col2 * + col0 * - col0 - + ( 33 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * + col2 <= col0 / + 70 + - - 23 * - + col0
----

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

query I rowsort
SELECT 55 + + - col0 AS col2 FROM tab1
----
-30
-36
4

query I rowsort
SELECT col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT DISTINCT col0, + 78 FROM tab1 AS cor0
----
51
78
85
78
91
78

query I rowsort
SELECT DISTINCT + + col0 * 97 + + col2 - - col0 FROM tab2 AS cor0
----
4531
6312
7408

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT + 91 * - SUM( DISTINCT + 60 ) FROM tab2
----
-5460

skipif mysql # not compatible
query I rowsort label-6490
SELECT + 91 * - SUM ( DISTINCT + 60 ) FROM tab2
----
-5460

query I rowsort
SELECT + col0 + + col2 + - - col2 FROM tab0 AS cor0
----
107
109
295

query I rowsort
SELECT DISTINCT - - 64 * + col1 AS col0 FROM tab0 AS cor0
----
1344
5184
64

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

query I rowsort
SELECT ALL - 32 + + - col2 FROM tab0 AS cor0
----
-131
-42
-79

query I rowsort
SELECT - + ( + col1 ) * + 83 + col0 AS col1 FROM tab1 AS cor0
----
-1111
-330
-3810

query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-6497
SELECT ALL 56 - - 10 * + 92 + - col1 AS col0, - 42 DIV - + col1 FROM tab2
----
899
0
909
0
925
0

skipif mysql # not compatible
query II rowsort label-6497
SELECT ALL 56 - - 10 * + 92 + - col1 AS col0, - 42 / - + col1 FROM tab2
----
899
0
909
0
925
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6498
SELECT ALL + col0 * - - col1 - + col1 + + - 18 DIV - + 64 FROM tab1
----
420
4230
700

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + col0 * - - col1 - + col1 + + - 18 / - + 64 FROM tab1
----
420
4230
700

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6500
SELECT - col0, 81 AS col1 FROM tab1 AS cor0 WHERE NOT 58 <> CAST( NULL AS SIGNED ) * - col1 * - col2 + + ( col1 )
----

skipif mysql # not compatible
query II rowsort label-6500
SELECT - col0, 81 AS col1 FROM tab1 AS cor0 WHERE NOT 58 <> CAST ( NULL AS INTEGER ) * - col1 * - col2 + + ( col1 )
----

query I rowsort
SELECT DISTINCT - 91 FROM tab2 AS cor0 WHERE NOT - ( ( + col2 ) ) + - + 70 / ( - ( + 64 ) ) - + 21 IS NOT NULL
----

query I rowsort
SELECT + col0 * + - 81 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT ALL ( - - CAST( - - 11 AS SIGNED ) ) FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL ( - - CAST ( - - 11 AS INTEGER ) ) FROM tab2
----
11
11
11

query I rowsort
SELECT ALL + 37 * + col1 + col1 FROM tab2 cor0
----
1938
2546
2926

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 46 ) BETWEEN + 42 AND - 65
----

query I rowsort
SELECT 84 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
84
84
84

query I rowsort
SELECT + + col1 * - - col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

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

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL MIN ( - 8 ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT 34 * - - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + + 18 AS col0 FROM tab0
----
1458
18
378

onlyif mysql # DIV for integer division: 
query II rowsort label-6512
SELECT DISTINCT col1, - col1 DIV - col0 + - col0 col1 FROM tab0
----
1
-97
21
-87
81
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6512
SELECT DISTINCT col1, - col1 / - col0 + - col0 col1 FROM tab0
----
1
-97
21
-87
81
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 - - 38 AND 17 * + - col1 * - CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 - - 38 AND 17 * + - col1 * - CAST ( NULL AS INTEGER ) * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT ALL CAST( + 77 AS SIGNED ) * col1 * + col1 FROM tab2
----
200277
345653
456533

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL CAST ( + 77 AS INTEGER ) * col1 * + col1 FROM tab2
----
200277
345653
456533

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - COUNT( * ) * - ( - 3 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6515
SELECT - COUNT ( * ) * - ( - 3 ) FROM tab0
----
-9

query I rowsort
SELECT DISTINCT - + 74 + + 13 FROM tab1 AS cor0
----
-61

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6517
SELECT + COUNT ( * ) col0 FROM tab2 cor0 WHERE + col2 + + col0 * + - CAST ( + - CAST ( ( col0 ) AS INTEGER ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6518
SELECT DISTINCT 87 + col0 DIV col1 AS col0, - col2 FROM tab0 AS cor0
----
184
-99
87
-47
91
-10

skipif mysql # not compatible
query II rowsort label-6518
SELECT DISTINCT 87 + col0 / col1 AS col0, - col2 FROM tab0 AS cor0
----
184
-99
87
-47
91
-10

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

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

skipif mysql # not compatible
query I rowsort label-6520
SELECT + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND + - 70 * + col0 + + 34 * col0
----

query I rowsort
SELECT ALL - - 16 AS col1 FROM tab0 AS cor0
----
16
16
16

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

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE + col2 * - 91 + + + 92 IS NULL
----

query I rowsort
SELECT ALL - 94 * + col2 AS col0 FROM tab0 cor0
----
-4418
-9306
-940

query I rowsort
SELECT ALL - - col2 + ( - col0 ) FROM tab1 AS cor0
----
-23
-26
45

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

skipif mysql # not compatible
query I rowsort label-6526
SELECT + MIN ( 84 ) FROM tab1 AS cor0
----
84

query I rowsort
SELECT ALL + 50 + + col2 FROM tab1 AS cor0
----
109
118
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT DISTINCT + - 32 DIV - col2 + + col2 + + 40 * + col0 AS col2 FROM tab0 AS cor0
----
3493
3979
647

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT + - 32 / - col2 + + col2 + + 40 * + col0 AS col2 FROM tab0 AS cor0
----
3493
3979
647

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT DISTINCT + - 42 + COUNT( * ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT + - 42 + COUNT ( * ) FROM tab0 AS cor0
----
-39

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 + col0 NOT BETWEEN + col0 * col0 + + + 80 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 + - col0 + col1 * + 27 + + col0 AS col0, + col1 AS col2 FROM tab1
----
1337
47
194
5
474
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT ( - + CAST( - col2 AS SIGNED ) ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6534
SELECT ( - + CAST ( - col2 AS INTEGER ) ) FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT + col2 DIV col1 * + 61 * - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6535
SELECT + col2 / col1 * + 61 * - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT ALL + - col0 * 74 + + + col0 DIV - - 62 AS col1 FROM tab0 AS cor0
----
-1110
-6437
-7177

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + - col0 * 74 + + + col0 / - - 62 AS col1 FROM tab0 AS cor0
----
-1110
-6437
-7177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 col0, 50 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + col1 col0 FROM tab0 AS cor0
----
118
38
58

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

query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2

query II rowsort
SELECT col2 + - - col1 + col1 / + 35 AS col2, col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT DISTINCT col0 DIV 62 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT col0 / 62 AS col2 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT - 31 + + ( - COUNT( * ) ) AS col1 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 31 + + ( - COUNT ( * ) ) AS col1 FROM tab0
----
-34

query I rowsort
SELECT ALL - col1 * + 85 AS col1 FROM tab2
----
-4335
-5695
-6545

query II rowsort
SELECT + 79 + + col1 AS col1, 60 FROM tab1
----
126
60
84
60
93
60

query II rowsort
SELECT DISTINCT - col2 + col0 AS col2, - col2 AS col2 FROM tab1 cor0
----
-45
-96
23
-68
26
-59

query I rowsort
SELECT ALL - 80 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + ( - + col1 ) - - col2 AS col2 FROM tab1
----
21
54
82

query I rowsort
SELECT - ( - col2 ) + 85 FROM tab2 AS cor0
----
108
125
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 8 * - 7 col0 FROM tab0 AS cor0 WHERE NOT col2 < - + col2 * 64
----
-56
-56
-56

query II rowsort
SELECT 46, + 30 AS col1 FROM tab0 cor0
----
46
30
46
30
46
30

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

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

query I rowsort
SELECT DISTINCT 3 * + + col1 AS col0 FROM tab2
----
153
201
231

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

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

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + 99 AS col2 FROM tab2 WHERE NOT - 12 NOT BETWEEN ( + col0 * + 54 * - col0 * col2 - 18 - + col1 + + 65 + 40 + + col1 / + col0 + + 29 * + + col2 * col1 / 82 * - 67 * - col0 ) AND NULL
----

query I rowsort
SELECT - + 8 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-8
-8
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6561
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6561
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT col1 - + - col0 + - 86 AS col2 FROM tab1 AS cor0 WHERE NOT col1 + + col1 IS NULL
----
-21
4
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT - - col1 DIV col2 + col2 + - col1 - 70 AS col0 FROM tab0 AS cor0
----
-103
-79
28

skipif mysql # not compatible
query I rowsort label-6563
SELECT - - col1 / col2 + col2 + - col1 - 70 AS col0 FROM tab0 AS cor0
----
-103
-79
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL COUNT( * ) + + ( - 81 ) col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6564
SELECT ALL COUNT ( * ) + + ( - 81 ) col2 FROM tab1 AS cor0
----
-78

query II rowsort
SELECT DISTINCT col0 * - col2 AS col0, + col2 * - ( - 16 ) + + col0 * + col2 FROM tab0 AS cor0
----
-705
1457
-870
1030
-9603
11187

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT ALL + 60 DIV - 52 + + + col2 + - - col2 col2 FROM tab1 AS cor0
----
117
135
191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6566
SELECT ALL + 60 / - 52 + + + col2 + - - col2 col2 FROM tab1 AS cor0
----
117
135
191

query I rowsort
SELECT ALL + + col0 * + 22 AS col2 FROM tab0 AS cor0
----
1914
2134
330

query I rowsort
SELECT 60 * 36 FROM tab0
----
2160
2160
2160

onlyif mysql # DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT 42 DIV 81 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT 42 / 81 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - ( - 53 ) + + - col2 AS col2 FROM tab2
----
-5
13
30

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

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

query I rowsort
SELECT DISTINCT 22 * - - col1 FROM tab1
----
1034
110
308

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT ALL - col1 DIV - - col1 + col1 + - - col1 FROM tab1 AS cor0
----
27
9
93

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - col1 / - - col1 + col1 + - - col1 FROM tab1 AS cor0
----
27
9
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT + - 82 * + + CAST( 96 AS SIGNED ) + + - 44 AS col1 FROM tab2 AS cor0
----
-7916
-7916
-7916

skipif mysql # not compatible
query I rowsort label-6576
SELECT + - 82 * + + CAST ( 96 AS INTEGER ) + + - 44 AS col1 FROM tab2 AS cor0
----
-7916
-7916
-7916

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / col2 = NULL
----

query I rowsort
SELECT 74 * - + 3 - + col1 + - col0 * + + 36 + - - 71 FROM tab0 AS cor0
----
-3304
-3644
-772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 25 col2 FROM tab1
----
-22
11
20

query II rowsort
SELECT ALL - col2 - 76 - - col2 - + col0 AS col2, + 95 * - col0 * - - col1 * 68 + + + 38 * - + 10 AS col0 FROM tab2
----
-122
-15155540
-140
-31835260
-151
-32461880

query I rowsort
SELECT DISTINCT col1 - + + 7 * - col1 FROM tab1
----
112
376
40

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

query I rowsort
SELECT DISTINCT + col0 * - - col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT - + 65 * - col0 * col0 * - 54 FROM tab2 AS cor0
----
-14376960
-19743750
-7427160

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL = ( + 41 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT + COUNT( * ) * MIN( DISTINCT 30 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6586
SELECT + COUNT ( * ) * MIN ( DISTINCT 30 ) FROM tab0 AS cor0
----
90

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT - - 85 IS NULL
----
23
40
58

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

query I rowsort
SELECT - col2 * + 17 FROM tab0 cor0
----
-1683
-170
-799

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

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL + MIN ( ALL + + CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL + 40 AS col1, col2 * 41 - + - ( + + col0 ) FROM tab2 cor0
----
40
1704
40
2453
40
989

query I rowsort
SELECT + 23 * + 95 AS col2 FROM tab1 cor0
----
2185
2185
2185

query I rowsort
SELECT ALL col2 * + col1 * - col0 AS col0 FROM tab2
----
-197120
-291450
-53958

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

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL CAST ( CAST ( - 49 AS INTEGER ) AS INTEGER ) FROM tab1
----
-49
-49
-49

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

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

skipif mysql # not compatible
query I rowsort label-6596
SELECT + + col1 / - col0 + + 51 FROM tab1 AS cor0
----
51
51
51

query II rowsort
SELECT ALL + col2 AS col1, 73 * col1 FROM tab2 AS cor0
----
23
3723
40
5621
58
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL + + 38 + COUNT( ALL + - 0 ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL + + 38 + COUNT ( ALL + - 0 ) FROM tab0 AS cor0
----
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) / - ( - col0 ) * - + col0 * col2 / - col1 + col1 >= 77 * + col1 * col0
----

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2, + col1 / - - 88, - 73 + col0 )
----

query I rowsort
SELECT col1 + col0 FROM tab2 AS cor0 WHERE - 23 + + - 59 NOT BETWEEN + 40 AND NULL
----
141
142
97

query I rowsort
SELECT DISTINCT - col0 + + 43 AS col1 FROM tab2 AS cor0
----
-21
-3
-32

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

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

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

query I rowsort
SELECT col1 + - 28 FROM tab1
----
-14
-23
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6607
SELECT * FROM tab1 WHERE + col2 + + CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6607
SELECT * FROM tab1 WHERE + col2 + + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - + col2 + col1 FROM tab1
----
-3476
-4577
-9202

query II rowsort
SELECT DISTINCT - col2 AS col0, + 95 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col1 * - 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * + 46 col0 FROM tab1 AS cor0
----
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL 52 + COUNT( * ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL 52 + COUNT ( * ) FROM tab2
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT COUNT( * ) - - 9 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6614
SELECT COUNT ( * ) - - 9 FROM tab0
----
12

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT CAST( 36 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6617
SELECT CAST ( 36 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL col1 / - - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT ALL + 12 * - MIN( 79 ) FROM tab0 AS cor0 WHERE NOT 32 + 25 * col0 < + ( - col2 )
----
-948

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL + 12 * - MIN ( 79 ) FROM tab0 AS cor0 WHERE NOT 32 + 25 * col0 < + ( - col2 )
----
-948

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

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

query I rowsort
SELECT - 11 * - col2 * + 56 FROM tab1
----
36344
41888
59136

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT - MIN( DISTINCT + + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6622
SELECT - MIN ( DISTINCT + + col2 ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - col2 * - 94 AS col2 FROM tab1
----
5546
6392
9024

query II rowsort
SELECT DISTINCT - ( - 97 ), col2 * + ( - + 17 ) AS col0 FROM tab2
----
97
-391
97
-680
97
-986

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + 24 * col0 * + col1 * - 26 + - - 90 + - col2
----

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

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

query I rowsort
SELECT - col2 * ( 16 ) FROM tab2 AS cor0 WHERE NOT col2 + - col0 + col1 IS NULL
----
-368
-640
-928

query I rowsort
SELECT - 84 * + col0 + - col1 FROM tab1 cor0
----
-4298
-7145
-7691

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT + MIN( DISTINCT + 98 ) FROM tab0 cor0
----
98

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + MIN ( DISTINCT + 98 ) FROM tab0 cor0
----
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT - MAX( DISTINCT - col2 ) FROM tab2 WHERE NOT - ( 77 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - MAX ( DISTINCT - col2 ) FROM tab2 WHERE NOT - ( 77 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL - - CAST( - + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + col1 AND col0
----
15
81
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6636
SELECT + + 54 * + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + ( 54 ) col2 FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND - 75
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6636
SELECT + + 54 * + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + ( 54 ) col2 FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND - 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6637
SELECT + - 69 DIV MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6637
SELECT + - 69 / MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + 5 * + MIN( ( col1 ) ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6640
SELECT + 5 * + MIN ( ( col1 ) ) FROM tab0 AS cor0
----
5

query II rowsort
SELECT + col1 AS col0, - 32 AS col1 FROM tab1 AS cor0
----
14
-32
47
-32
5
-32

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

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

query I rowsort
SELECT ALL 1 + + - 73 AS col0 FROM tab1
----
-72
-72
-72

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

query I rowsort
SELECT DISTINCT + col0 - + col1 + + col0 * - - col1 AS col0 FROM tab0
----
1149
1893
193

query I rowsort
SELECT col0 - + 40 FROM tab2
----
24
35
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - 16 + + - MAX( ALL 20 ) AS col0 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 16 + + - MAX ( ALL 20 ) AS col0 FROM tab0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 64 * - + 59 col0, - ( col2 ) + + col1 col2 FROM tab1 AS cor0
----
-3776
-21
-3776
-54
-3776
-82

query I rowsort
SELECT 33 + + col0 FROM tab2 AS cor0
----
108
79
97

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

query I rowsort
SELECT col1 + - - col2 * - 96 FROM tab0 AS cor0
----
-4431
-939
-9503

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6653
SELECT ALL + 18 - - + COUNT( * ) DIV - + 40, - COUNT( * ) * MIN( - col2 ) AS col0 FROM tab0
----
18
297

skipif mysql # not compatible
query II rowsort label-6653
SELECT ALL + 18 - - + COUNT ( * ) / - + 40, - COUNT ( * ) * MIN ( - col2 ) AS col0 FROM tab0
----
18
297

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6657
SELECT DISTINCT col2 DIV 29 * 84 FROM tab1 AS cor0
----
168
252

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT col2 / 29 * 84 FROM tab1 AS cor0
----
168
252

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6659
SELECT ALL * FROM tab0 cor0 WHERE ( 95 ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND + - 26 - - col0 + - col1 + - col0 * - 62
----

skipif mysql # not compatible
query III rowsort label-6659
SELECT ALL * FROM tab0 cor0 WHERE ( 95 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + - 26 - - col0 + - col1 + - col0 * - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT 77 * - + COUNT( * ) * + 72 AS col0 FROM tab1 AS cor0
----
-16632

skipif mysql # not compatible
query I rowsort label-6660
SELECT 77 * - + COUNT ( * ) * + 72 AS col0 FROM tab1 AS cor0
----
-16632

onlyif mysql # DIV for integer division: 
query I rowsort label-6661
SELECT 97 DIV col0 * - col0 FROM tab2
----
-64
-75
-92

skipif mysql # not compatible
query I rowsort label-6661
SELECT 97 / col0 * - col0 FROM tab2
----
-64
-75
-92

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 71 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 82 col2 FROM tab2
----
-3772
-5248
-6150

query II rowsort
SELECT 82 AS col2, 72 * - 80 AS col2 FROM tab2
----
82
-5760
82
-5760
82
-5760

query I rowsort
SELECT 48 + 27 * + col1 FROM tab0 cor0
----
2235
615
75

query I rowsort
SELECT ALL 79 * - ( - col0 ) + 83 * - col2 AS col2 FROM tab2 AS cor0
----
1111
1725
1736

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

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

query I rowsort
SELECT ALL + 3 * + col1 * col2 FROM tab1 cor0 WHERE col1 / + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + 84 FROM tab0 AS cor0
----
171
181
99

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

query I rowsort
SELECT ALL - 95 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * + col1 col2 FROM tab2
----
-4743
-6231
-7161

query I rowsort
SELECT + col2 + + 95 AS col1 FROM tab1 cor0
----
154
163
191

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6674
SELECT COUNT ( * ) + - - COUNT ( * ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
12

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

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

query II rowsort
SELECT - col0 + + - col2, + col1 AS col0 FROM tab1 AS cor0
----
-144
5
-147
14
-159
47

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

query I rowsort
SELECT ALL + col1 + - - 6 * - + col0 FROM tab2 AS cor0
----
-225
-307
-383

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

skipif mysql # not compatible
query I rowsort label-6679
SELECT + CAST ( - col2 AS INTEGER ) + + + col2 * + col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
658
860
9504

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

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

query I rowsort
SELECT ALL - col2 - - - 4 FROM tab2
----
-27
-44
-62

query I rowsort
SELECT 89 + col0 + - 54 * col0 FROM tab2
----
-2349
-3303
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6683
SELECT ( + - col0 ) AS col2 FROM tab0 WHERE ( + col0 ) + + col2 = CAST( 59 AS SIGNED ) * - + col0
----

skipif mysql # not compatible
query I rowsort label-6683
SELECT ( + - col0 ) AS col2 FROM tab0 WHERE ( + col0 ) + + col2 = CAST ( 59 AS INTEGER ) * - + col0
----

query I rowsort
SELECT DISTINCT + col0 * 2 + - + col1 - + 88 - - ( + col2 ) FROM tab1
----
115
136
96

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col0, col1 + - col1 + + + col0 * 48 AS col2 FROM tab2 AS cor0
----
46
2208
64
3072
75
3600

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

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

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

query I rowsort
SELECT DISTINCT - - col0 * + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT - col1 * 93 * + 60 FROM tab1 AS cor0
----
-262260
-27900
-78120

query I rowsort
SELECT DISTINCT - ( - col1 ) * + + 49 FROM tab2
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL >= ( - - 7 ) + + 70
----
0

skipif mysql # not compatible
query I rowsort label-6696
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL >= ( - - 7 ) + + 70
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * col2 col0, + col2 AS col2 FROM tab1
----
-1344
96
-295
59
-3196
68

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

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

query I rowsort
SELECT DISTINCT 63 * 58 * - col1 * - - col0 AS col0 FROM tab0
----
-354438
-4439610
-6675858

onlyif mysql # DIV for integer division: 
query I rowsort label-6700
SELECT - col0 DIV - - 88 + + col2 col2 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6700
SELECT - col0 / - - 88 + + col2 col2 FROM tab0 AS cor0
----
10
47
98

query I rowsort
SELECT DISTINCT 73 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT - - SUM( DISTINCT - 7 ) * - 76 AS col2 FROM tab0 AS cor0
----
532

skipif mysql # not compatible
query I rowsort label-6703
SELECT - - SUM ( DISTINCT - 7 ) * - 76 AS col2 FROM tab0 AS cor0
----
532

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, - col2 + + - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-14
-192
-47
-136
-5
-118

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

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

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

query I rowsort
SELECT + - col0 * - 90 * ( - col0 ) + + ( - + ( + + col1 ) ) AS col2 FROM tab0 cor0
----
-20331
-681231
-846811

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6709
SELECT col1 DIV - CAST( + + ( + col1 ) AS SIGNED ) AS col1, - 73 FROM tab1 AS cor0
----
-1
-73
-1
-73
-1
-73

skipif mysql # not compatible
query II rowsort label-6709
SELECT col1 / - CAST ( + + ( + col1 ) AS INTEGER ) AS col1, - 73 FROM tab1 AS cor0
----
-1
-73
-1
-73
-1
-73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + - 40 * col2 IS NULL
----

query I rowsort
SELECT ALL - - ( - col2 ) * - col1 + + col0 + + + ( - + 50 ) * + 61 AS col0 FROM tab2 AS cor0
----
-1831
911
94

query I rowsort
SELECT ALL - - 77 - - col1 FROM tab1 AS cor0
----
124
82
91

query I rowsort
SELECT + col0 - col2 + + ( + - 67 ) FROM tab2
----
-43
-44
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT DISTINCT col1 - - 0 + - 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-6714
SELECT DISTINCT col1 - - 0 + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + - col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 - ( + 51 ) FROM tab1
----
-56
-65
-98

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6718
SELECT DISTINCT MAX( 97 ), COUNT( * ) AS col0 FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-6718
SELECT DISTINCT MAX ( 97 ), COUNT ( * ) AS col0 FROM tab0
----
97
3

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * 71 * + 5 * - + 40 * + col2 col0, + col1 FROM tab0
----
-1405800
1
-2982000
21
-54059400
81

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

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

query I rowsort
SELECT + col0 * + 43 FROM tab2 cor0
----
1978
2752
3225

query I rowsort
SELECT ( - 54 ) * + - col1 AS col2 FROM tab2 AS cor0
----
2754
3618
4158

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT ALL + CAST( col0 AS SIGNED ) * + col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL + CAST ( col0 AS INTEGER ) * + col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6726
SELECT DISTINCT col0 AS col0, + col2 * CAST( - col1 AS SIGNED ) col2, + - col1 - + - 26 FROM tab2
----
9 values hashing to f58bfeebf1ed52afd66f11fe86403458

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6726
SELECT DISTINCT col0 AS col0, + col2 * CAST ( - col1 AS INTEGER ) col2, + - col1 - + - 26 FROM tab2
----
9 values hashing to f58bfeebf1ed52afd66f11fe86403458

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - - ( + 81 ) * - col1 - + col0 = + - 77 + + col1 + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - - ( + 81 ) * - col1 - + col0 = + - 77 + + col1 + + col0
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT ALL - - 15 DIV - col0 + - - col2 FROM tab0 AS cor0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - - 15 / - col0 + - - col2 FROM tab0 AS cor0
----
10
46
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 34 / - 45 NOT BETWEEN + col0 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 2 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # DIV for integer division: 
query II rowsort label-6734
SELECT col1 * + + col1 - - 73 * + col2 * - 48 AS col1, col2 DIV - 99 AS col1 FROM tab2
----
-134231
0
-198743
0
-77991
0

skipif mysql # not compatible
query II rowsort label-6734
SELECT col1 * + + col1 - - 73 * + col2 * - 48 AS col1, col2 / - 99 AS col1 FROM tab2
----
-134231
0
-198743
0
-77991
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 36 <= NULL
----

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

query I rowsort
SELECT - + 88 + - + col1 + - col0 * col1 FROM tab0 AS cor0
----
-1384
-186
-1936

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

query I rowsort
SELECT - 39 * 83 - - - col0 FROM tab1 WHERE NULL IS NULL
----
-3288
-3322
-3328

query I rowsort
SELECT + 52 * + 50 FROM tab1
----
2600
2600
2600

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

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

query I rowsort
SELECT DISTINCT + 23 + - 96 AS col0 FROM tab1
----
-73

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

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

query I rowsort
SELECT DISTINCT col0 + + col1 FROM tab2 WHERE NOT col2 NOT BETWEEN - col2 AND - 22 * col0
----

query I rowsort
SELECT - 81 + - col0 AS col0 FROM tab0
----
-168
-178
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT SUM( ALL 77 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-6747
SELECT SUM ( ALL 77 ) FROM tab2
----
231

query I rowsort
SELECT ALL 43 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

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

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

query I rowsort
SELECT col1 + - ( + col2 - - col2 ) * - 51 AS col2 FROM tab2
----
2397
4157
5983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 - - 96 * 76 col2 FROM tab2
----
7307
7307
7307

query I rowsort
SELECT DISTINCT + 87 + + 34 AS col0 FROM tab1
----
121

query I rowsort
SELECT ALL - col1 * 60 - - col2 AS col2 FROM tab1
----
-241
-2752
-744

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT BETWEEN col2 + - 99 AND + 20
----
15
81
47
87
21
10

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( 81 ) + - col2 ) IS NULL
----

query I rowsort
SELECT ALL ( - 18 ) + + ( - col2 ) * + col1 AS col0 FROM tab1
----
-1362
-313
-3214

query I rowsort
SELECT DISTINCT - AVG ( ALL col2 ) * 12 AS col0 FROM tab1 WHERE NOT 81 <> - col1
----
NULL

query I rowsort
SELECT - 57 * col0 + + 46 AS col0 FROM tab1
----
-2861
-4799
-5141

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

query I rowsort
SELECT DISTINCT 64 * - col0 AS col2 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT - MIN( - 86 ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-6766
SELECT - MIN ( - 86 ) FROM tab2
----
86

query I rowsort
SELECT 29 AS col2 FROM tab0 WHERE NOT ( - col0 * + 76 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT col2 DIV - col1 - - ( col0 ) * col0 FROM tab1
----
2595
7214
8280

skipif mysql # not compatible
query I rowsort label-6768
SELECT col2 / - col1 - - ( col0 ) * col0 FROM tab1
----
2595
7214
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT - 90 > - col2
----
2

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 90 > - col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT + ( + MIN( - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6770
SELECT + ( + MIN ( - col0 ) ) FROM tab0
----
-97

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

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

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

query I rowsort
SELECT 38 FROM tab1 AS cor0 WHERE ( + 34 ) NOT BETWEEN ( NULL ) AND col0 * - col2
----
38
38
38

query I rowsort
SELECT col0 + + col2 * + 27 AS col1 FROM tab2 AS cor0
----
1144
1641
667

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) >= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 7 + - col0 FROM tab0 AS cor0
----
-8
-80
-90

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

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

query I rowsort
SELECT + col2 + 51 FROM tab2 AS cor0
----
109
74
91

query I rowsort
SELECT DISTINCT + 79 + - 74 FROM tab2
----
5

query I rowsort
SELECT ALL 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT - + col0 * + 34 AS col2 FROM tab2 AS cor0
----
-1564
-2176
-2550

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT + SUM( ALL col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6784
SELECT + SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT - + 12 * - col2 FROM tab1 AS cor0
----
1152
708
816

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6787
SELECT COUNT( * ) + 5 FROM tab0 cor0 WHERE + col0 BETWEEN 49 AND - col2 + CAST( NULL AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-6787
SELECT COUNT ( * ) + 5 FROM tab0 cor0 WHERE + col0 BETWEEN 49 AND - col2 + CAST ( NULL AS INTEGER )
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 * 18 col0 FROM tab0 AS cor0
----
-378
-378
-378

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 - 30 col1 FROM tab2 AS cor0
----
-1630
-3394
-559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT - col0 * - col1 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) / col1 ) IS NOT NULL
----
4345
484
810

skipif mysql # not compatible
query I rowsort label-6792
SELECT - col0 * - col1 + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) / col1 ) IS NOT NULL
----
4345
484
810

query I rowsort
SELECT ALL col0 * + 22 FROM tab1
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT DISTINCT MAX( + 75 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT MAX ( + 75 ) FROM tab1
----
75

query I rowsort
SELECT 94 FROM tab1 cor0 WHERE NOT ( NULL ) <= ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - 87 col0 FROM tab1 AS cor0
----
-4437
-7395
-7917

query I rowsort
SELECT 55 * + col0 * col0 + col0 * 22 FROM tab2 AS cor0
----
117392
226688
311025

query I rowsort
SELECT ALL - 26 * - col1 * - col1 AS col1 FROM tab2 AS cor0
----
-116714
-154154
-67626

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL + COUNT( DISTINCT 43 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL + COUNT ( DISTINCT 43 ) FROM tab2 AS cor0
----
1

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

query I rowsort
SELECT DISTINCT + + 65 + 94 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT + CAST( + AVG ( 13 ) AS SIGNED ) * 4 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6803
SELECT + CAST ( + AVG ( 13 ) AS INTEGER ) * 4 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
52

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT CAST( + MIN( col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT ALL 35 * - col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-1785
-2975
-3185

query I rowsort
SELECT ALL ( col2 ) * - col2 + + col2 FROM tab1 AS cor0
----
-3422
-4556
-9120

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

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

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 FROM tab0 AS cor0 WHERE NOT col0 >= + + col2
----
658
9504

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6815
SELECT 23 + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) col1 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6815
SELECT 23 + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) col1 FROM tab0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL + - COUNT( * ) * - 44 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + - COUNT ( * ) * - 44 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6817
SELECT DISTINCT + CAST( + col0 AS SIGNED ) + - col1 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) + - col1 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6818
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) + - - COUNT( * ) * + 52 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) + - - COUNT ( * ) * + 52 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col1 + - col0 * - 28 FROM tab0
----
2415
2715
339

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT + 0 + - col0 + col2 + - 17 + col1 * col1 DIV 57 AS col1 FROM tab0
----
-15
-87
130

skipif mysql # not compatible
query I rowsort label-6820
SELECT + 0 + - col0 + col2 + - 17 + col1 * col1 / 57 AS col1 FROM tab0
----
-15
-87
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL + COUNT( * ) * - MAX( ALL + 14 ) * COUNT( * ) + 29 AS col2 FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + COUNT ( * ) * - MAX ( ALL + 14 ) * COUNT ( * ) + 29 AS col2 FROM tab2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT - 48 * + COUNT( * ) AS col1, - 72 FROM tab1
----
-144
-72

skipif mysql # not compatible
query II rowsort label-6822
SELECT - 48 * + COUNT ( * ) AS col1, - 72 FROM tab1
----
-144
-72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 IN ( + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - + col2 * - col2 AS col1, col2 FROM tab1 AS cor0
----
3481
59
4624
68
9216
96

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

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

query I rowsort
SELECT ALL - + col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 44 > - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 88 - - + col2 + - col0 * col1 * - col0 + - col2 * col1 FROM tab1
----
35254
35977
386167

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( + 66 * - 4 ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + col1 + - col0 + - col0 FROM tab2 AS cor0
----
-41
-51
-83

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - - col1 / col1 + 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT 39 + - COUNT( * ) * + - COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6836
SELECT 39 + - COUNT ( * ) * + - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT ALL col0 DIV + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL col0 / + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT - 37 - 71 FROM tab1 AS cor0 WHERE NOT col1 - + col1 * 7 IS NOT NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL MIN( DISTINCT - - 65 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL MIN ( DISTINCT - - 65 ) FROM tab2
----
65

query I rowsort
SELECT DISTINCT + col0 * col2 * - col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # DIV for integer division: 
query I rowsort label-6846
SELECT DISTINCT col0 DIV + col1 + + col2 FROM tab0 cor0
----
14
196
47

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT col0 / + col1 + + col2 FROM tab0 cor0
----
14
196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - ( - - ( + MAX( ALL + ( + 52 ) ) ) ) AS col1 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6847
SELECT - ( - - ( + MAX ( ALL + ( + 52 ) ) ) ) AS col1 FROM tab2 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6848
SELECT + + 70 DIV + col0 AS col1 FROM tab0 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6848
SELECT + + 70 / + col0 AS col1 FROM tab0 cor0
----
0
0
4

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

skipif mysql # not compatible
query II rowsort label-6849
SELECT ALL - - COUNT ( * ) AS col2, - 81 AS col2 FROM tab0 AS cor0
----
3
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 73 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT 90 * - CAST( - 38 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3420

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT 90 * - CAST ( - 38 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3420

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

query II rowsort
SELECT DISTINCT col1 + + col2, col1 AS col0 FROM tab2 AS cor0
----
117
77
125
67
74
51

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 + + col2 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-31
-68
21

query I rowsort
SELECT DISTINCT col1 + - col0 - col2 * + - col1 AS col0 FROM tab0
----
144
3
3873

query I rowsort
SELECT ALL col1 + 56 AS col2 FROM tab2
----
107
123
133

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT DISTINCT MIN( DISTINCT + + col1 ) - 61 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT MIN ( DISTINCT + + col1 ) - 61 FROM tab1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT - COUNT( * ) + - 96 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6862
SELECT - COUNT ( * ) + - 96 FROM tab0
----
-99

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

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

query I rowsort
SELECT - 25 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-25
-25
-25

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

query I rowsort
SELECT + ( - ( + + col1 ) ) AS col0 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - + col1 * - - 54 AS col2 FROM tab2 AS cor0
----
-2754
-3618
-4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6868
SELECT + + 87 * + + ( - col1 ) + + col2 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-4363
-5704
-6582

skipif mysql # not compatible
query I rowsort label-6868
SELECT + + 87 * + + ( - col1 ) + + col2 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-4363
-5704
-6582

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * ( - - ( + col1 ) ) col0 FROM tab2
----
2397
3149
3619

query I rowsort
SELECT DISTINCT 37 * - 96 * - + col2 FROM tab2
----
142080
206016
81696

query I rowsort
SELECT + AVG ( ALL col1 ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + 3 * col0 )
----
NULL

query I rowsort
SELECT + 56 * + - col2 AS col2 FROM tab0
----
-2632
-5544
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL - - 85 FROM tab0 WHERE 83 / - col0 * - + CAST( NULL AS SIGNED ) + + col0 IS NULL
----
85
85
85

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - - 85 FROM tab0 WHERE 83 / - col0 * - + CAST ( NULL AS INTEGER ) + + col0 IS NULL
----
85
85
85

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL - col2 + + - CAST( + col1 AS SIGNED ) * + col0 FROM tab0 cor0
----
-1262
-1837
-196

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - col2 + + - CAST ( + col1 AS INTEGER ) * + col0 FROM tab0 cor0
----
-1262
-1837
-196

query I rowsort
SELECT ALL - col1 + + ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

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

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

query I rowsort
SELECT 94 * - + col1 FROM tab0
----
-1974
-7614
-94

query I rowsort
SELECT + 47 + - - 35 + 3 + col0 FROM tab2 WHERE - 39 + - col1 + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6882
SELECT + 93 DIV + - col2 AS col2, + col1 col1 FROM tab2
----
-1
67
-2
77
-4
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6882
SELECT + 93 / + - col2 AS col2, + col1 col1 FROM tab2
----
-1
67
-2
77
-4
51

query I rowsort
SELECT DISTINCT - 42 FROM tab0 cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL COUNT( col2 ) + ( - 9 ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL COUNT ( col2 ) + ( - 9 ) AS col0 FROM tab0
----
-6

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + + col2 * - 47 AS col1 FROM tab1 AS cor0
----
-2773
-3196
-4512

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT + MAX( ALL - col0 ) * 6 AS col1 FROM tab1
----
-306

skipif mysql # not compatible
query I rowsort label-6890
SELECT + MAX ( ALL - col0 ) * 6 AS col1 FROM tab1
----
-306

query I rowsort
SELECT - col0 * - + col0 * - 83 AS col1 FROM tab0
----
-18675
-628227
-780947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT CAST( + + CAST( - col2 AS SIGNED ) AS SIGNED ) IS NULL
----
-3

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

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

skipif mysql # not compatible
query I rowsort label-6893
SELECT COUNT ( ALL - + 95 ) AS col0 FROM tab0 AS cor0 WHERE NOT 93 NOT BETWEEN NULL AND - 90 + - + col0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + + 63 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT + - CAST( + col1 AS SIGNED ) * col2 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6895
SELECT + - CAST ( + col1 AS INTEGER ) * col2 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + ( + col1 ) + col1 AS col2 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT - 0 + + - col2 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + 41 * + col1 * col2 AS col1, + 60 FROM tab2
----
126280
60
159326
60
48093
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - + 40 * - - COUNT( * ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-6901
SELECT - + 40 * - - COUNT ( * ) FROM tab2 AS cor0
----
-120

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

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

query II rowsort
SELECT 2 AS col0, 94 + col2 AS col0 FROM tab0 AS cor0
----
2
104
2
141
2
193

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 13 IS NULL
----

query I rowsort
SELECT DISTINCT + 52 + 28 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT 24 - - COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT 24 - - COUNT ( * ) AS col0 FROM tab2
----
27

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

query I rowsort
SELECT col0 * - col2 - 28 - - + col1 AS col0 FROM tab2
----
-1035
-2511
-4311

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT ALL + col0 - ( + - 11 ) * - + col1 + + col0 DIV + + 4 AS col0 FROM tab2 AS cor0
----
-504
-644
-767

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL + col0 - ( + - 11 ) * - + col1 + + col0 / + + 4 AS col0 FROM tab2 AS cor0
----
-504
-644
-767

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT + col1 + + col1 + - - 90 DIV 66 * + col2 * + + 5 AS col2 FROM tab2 AS cor0
----
217
354
424

skipif mysql # not compatible
query I rowsort label-6911
SELECT + col1 + + col1 + - - 90 / 66 * + col2 * + + 5 AS col2 FROM tab2 AS cor0
----
217
354
424

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT col1 + + CAST( - 26 AS SIGNED ) FROM tab1 AS cor0
----
-12
-21
21

skipif mysql # not compatible
query I rowsort label-6913
SELECT col1 + + CAST ( - 26 AS INTEGER ) FROM tab1 AS cor0
----
-12
-21
21

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col0, - 52 col0 FROM tab0 WHERE - 94 + - 0 IN ( 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT DISTINCT - + CAST( 1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT - + CAST ( 1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT ALL SUM( DISTINCT - - 5 ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL SUM ( DISTINCT - - 5 ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT col2 + - + 90 AS col2 FROM tab2 AS cor0 WHERE NOT - 97 BETWEEN 47 AND NULL
----
-32
-50
-67

query I rowsort
SELECT - 35 * + col1 AS col1 FROM tab2 AS cor0
----
-1785
-2345
-2695

query I rowsort
SELECT DISTINCT - - 13 FROM tab2 cor0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT ALL - ( 63 ) AS col2, ( + MIN( col1 ) ) AS col0 FROM tab2 AS cor0
----
-63
51

skipif mysql # not compatible
query II rowsort label-6921
SELECT ALL - ( 63 ) AS col2, ( + MIN ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-63
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6923
SELECT ALL - CAST( SUM( - 42 ) AS SIGNED ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL - CAST ( SUM ( - 42 ) AS INTEGER ) FROM tab2
----
126

query I rowsort
SELECT ALL col0 + + - col2 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 81 + col0 * ( col0 ) <> + col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / - 76 + - ( - + col0 ) - col0 > - col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 72 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT + 80 * + CAST( + 91 AS SIGNED ) FROM tab2
----
7280
7280
7280

skipif mysql # not compatible
query I rowsort label-6929
SELECT + 80 * + CAST ( + 91 AS INTEGER ) FROM tab2
----
7280
7280
7280

query I rowsort
SELECT + - col1 AS col2 FROM tab0 WHERE - - col2 >= - col0
----
-1
-21
-81

query I rowsort
SELECT 8 - + col1 AS col1 FROM tab1
----
-39
-6
3

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

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + CAST ( - col2 AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 - + - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + - 43 + - 28 + ( + COUNT( * ) ) col1 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6933
SELECT + - 43 + - 28 + ( + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 58 BETWEEN + col2 AND ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT + - COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6935
SELECT + - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
0

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

skipif mysql # not compatible
query II rowsort label-6936
SELECT - + col2 + + col2, 12 / + - 59 + col1 / + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + COUNT( * ) * + 31 AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + COUNT ( * ) * + 31 AS col1 FROM tab1 AS cor0
----
93

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - 84 * + - col0 <= NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT + COUNT( * ) FROM tab2 cor0 WHERE - 44 IN ( + 47, col0 + + 59 - + - col1, - + col2, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE - 44 IN ( + 47, col0 + + 59 - + - col1, - + col2, col2 )
----
0

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

query I rowsort
SELECT ALL + col0 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6943
SELECT * FROM tab1 AS cor0 WHERE + col1 / col0 - + col1 + ( col0 ) + + col2 * - col1 NOT IN ( + 37, + col1, col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6943
SELECT * FROM tab1 AS cor0 WHERE + col1 / col0 - + col1 + ( col0 ) + + col2 * - col1 NOT IN ( + 37, + col1, col2, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - ( - col0 ) + 4 + - + 44 FROM tab0 AS cor0
----
-25
47
57

query I rowsort
SELECT ALL - - 14 - col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
-37
-71
-77

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

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

query I rowsort
SELECT DISTINCT + 75 + - ( + - 64 ) * - col0 AS col2 FROM tab0
----
-5493
-6133
-885

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NULL <= + - 63
----

query I rowsort
SELECT col0 - - col2 + + - 63 FROM tab0
----
-1
133
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 86 * 49 + + 91 / - - col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - - col0 AS col0, - col0 + col0 AS col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6954
SELECT ALL col1, + CAST( + col2 AS SIGNED ) FROM tab1
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-6954
SELECT ALL col1, + CAST ( + col2 AS INTEGER ) FROM tab1
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6959
SELECT DISTINCT + + col1 DIV - 94 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT + + col1 / - 94 AS col1 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT - 9 * - 27 FROM tab2 cor0
----
243
243
243

onlyif mysql # aggregate syntax: 
query II rowsort label-6962
SELECT DISTINCT COUNT( * ), + COUNT( * ) - 39 AS col1 FROM tab1 cor0
----
3
-36

skipif mysql # not compatible
query II rowsort label-6962
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) - 39 AS col1 FROM tab1 cor0
----
3
-36

query I rowsort
SELECT + col1 * - - 9 * - col1 + ( - - col1 ) FROM tab0 AS cor0
----
-3948
-58968
-8

query I rowsort
SELECT DISTINCT 53 * + - col2 * col0 + - col1 FROM tab1 AS cor0
----
-259502
-265800
-328011

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

query I rowsort
SELECT 85 * col1 FROM tab1
----
1190
3995
425

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT DISTINCT COUNT( * ) * 57 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT COUNT ( * ) * 57 FROM tab0
----
171

query I rowsort
SELECT DISTINCT col1 * + - 4 + - - col1 - + 80 AS col1 FROM tab1 AS cor0
----
-122
-221
-95

query II rowsort
SELECT DISTINCT + col0, + 73 FROM tab2
----
46
73
64
73
75
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 86 * 42 * + + 86, col2 col0 FROM tab1 AS cor0
----
310632
59
310632
68
310632
96

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

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

query I rowsort
SELECT + ( col1 ) * col0 * + 84 + - - col1 FROM tab1 AS cor0
----
35705
359315
59990

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - + MIN( 42 ) * 7 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6975
SELECT - + MIN ( 42 ) * 7 FROM tab1 AS cor0
----
-294

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

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

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

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

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

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

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

query I rowsort
SELECT 70 - - 75 * + col2 * + col1 AS col2 FROM tab2 AS cor0
----
231070
291520
88045

query III rowsort
SELECT * FROM tab1 WHERE - col1 > + 17
----

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

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

query I rowsort
SELECT ALL col1 * - 30 AS col0 FROM tab0
----
-2430
-30
-630

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = ( + col1 )
----

query II rowsort
SELECT - col0 * + 25, col0 FROM tab1
----
-1275
51
-2125
85
-2275
91

query I rowsort
SELECT - 36 * 63 FROM tab2 AS cor0
----
-2268
-2268
-2268

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT DISTINCT + MAX( DISTINCT + col1 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT + MAX ( DISTINCT + col1 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - COUNT( * ) * + 52 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6989
SELECT - COUNT ( * ) * + 52 FROM tab1 AS cor0
----
-156

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + + 68 + + + 29 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT + col0 * + col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
705
870
9603

query I rowsort
SELECT col0 + col1 + - + col1 + - - 48 + col1 AS col2 FROM tab1
----
113
138
186

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 56 NOT BETWEEN 68 AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6999
SELECT ALL COUNT( * ) + - MIN( ALL + 32 ) DIV - - 24 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL COUNT ( * ) + - MIN ( ALL + 32 ) / - - 24 FROM tab1
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL - COUNT( * ) * 94 AS col1 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL - COUNT ( * ) * 94 AS col1 FROM tab0
----
-282

query I rowsort
SELECT - col2 * + col1 + col2 * - col0 AS col2 FROM tab1
----
-5310
-6240
-9384

query I rowsort
SELECT 54 + + - 72 FROM tab2
----
-18
-18
-18

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

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

query I rowsort
SELECT DISTINCT 68 * + col0 * 65 FROM tab2
----
203320
282880
331500

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

query I rowsort
SELECT col1 * + + 75 + 86 + + 82 AS col2 FROM tab0
----
1743
243
6243

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

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1, col2 + + col2 )
----

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

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

skipif mysql # not compatible
query II rowsort label-7011
SELECT DISTINCT - - COUNT ( * ) AS col2, MIN ( - col0 ) FROM tab0 AS cor0
----
3
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 + - + ( 7 ) col1 FROM tab0 cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT + 35 + col0 FROM tab0 cor0
----
122
132
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT COUNT( * ) * - 82 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-7015
SELECT COUNT ( * ) * - 82 FROM tab1
----
-246

query I rowsort
SELECT + 21 * - col2 AS col0 FROM tab1
----
-1239
-1428
-2016

query II rowsort
SELECT ALL 3, + col2 FROM tab1
----
3
59
3
68
3
96

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

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

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

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

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

query II rowsort
SELECT ALL 40 * - - col0, + col2 AS col0 FROM tab1
----
2040
96
3400
59
3640
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT MIN( DISTINCT + col2 ) AS col0, COUNT( * ) + SUM( ALL - 33 ) FROM tab0
----
10
-96

skipif mysql # not compatible
query II rowsort label-7023
SELECT MIN ( DISTINCT + col2 ) AS col0, COUNT ( * ) + SUM ( ALL - 33 ) FROM tab0
----
10
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL - col0 * - 9 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - col0 * - 9 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT + SUM( col1 ) col0 FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7028
SELECT + SUM ( col1 ) col0 FROM tab0 AS cor0 WHERE NULL >= col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT + + COUNT( DISTINCT - 96 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7029
SELECT + + COUNT ( DISTINCT - 96 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT COUNT( DISTINCT - 31 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7030
SELECT COUNT ( DISTINCT - 31 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT col0 * + - ( col0 ) * 46 FROM tab2
----
-188416
-258750
-97336

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT - SUM( ALL + - 33 ) AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - SUM ( ALL + - 33 ) AS col0 FROM tab1
----
99

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT + col1 * + col2 * - + 81 AS col0 FROM tab2 AS cor0
----
-249480
-314766
-95013

query I rowsort
SELECT col2 * - col1 * + - col2 FROM tab1 AS cor0
----
129024
17405
217328

query II rowsort
SELECT - 10, - col1 AS col2 FROM tab1 AS cor0
----
-10
-14
-10
-47
-10
-5

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT + 99 DIV - col1 AS col2 FROM tab1
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-7045
SELECT + 99 / - col1 AS col2 FROM tab1
----
-19
-2
-7

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT 72 * + MAX( DISTINCT 33 ), - COUNT( * ) * ( + 68 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2376
-204

skipif mysql # not compatible
query II rowsort label-7047
SELECT 72 * + MAX ( DISTINCT 33 ), - COUNT ( * ) * ( + 68 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2376
-204

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - 16 * + 18 + 19 + + + col0 + col0 + - + col2 * - col1 * 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT + COUNT( ALL col0 ) AS col1, SUM( DISTINCT col0 ) AS col0 FROM tab1
----
3
227

skipif mysql # not compatible
query II rowsort label-7050
SELECT + COUNT ( ALL col0 ) AS col1, SUM ( DISTINCT col0 ) AS col0 FROM tab1
----
3
227

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

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL - COUNT ( - 76 ) FROM tab0 AS cor0
----
-3

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

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

query I rowsort
SELECT + 81 * + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-4085
-5352
-6173

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT - MAX( ALL - 82 ) AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-7057
SELECT - MAX ( ALL - 82 ) AS col2 FROM tab1
----
82

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

skipif mysql # not compatible
query II rowsort label-7058
SELECT + CAST ( NULL AS INTEGER ), + col1 + - col1 AS col0 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

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

query I rowsort
SELECT - - ( - - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 14 + + col1 FROM tab0 AS cor0
----
15
35
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - col0 + - col1 col0 FROM tab2 AS cor0
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT - COUNT( * ) * 43 AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - COUNT ( * ) * 43 AS col0 FROM tab0 AS cor0
----
-129

query I rowsort
SELECT ALL ( - 60 ) + - 61 AS col1 FROM tab2 AS cor0
----
-121
-121
-121

query II rowsort
SELECT ALL + ( - col0 ) + - + col1, - col0 AS col2 FROM tab2 AS cor0
----
-141
-64
-142
-75
-97
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT DISTINCT col2 + + - col2 DIV 80 FROM tab1 cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT col2 + + - col2 / 80 FROM tab1 cor0
----
59
68
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT DISTINCT - col0 DIV - + 39 + col0 FROM tab1
----
52
87
93

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT - col0 / - + 39 + col0 FROM tab1
----
52
87
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL 44 + - COUNT( DISTINCT - 83 ) AS col1 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL 44 + - COUNT ( DISTINCT - 83 ) AS col1 FROM tab0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7069
SELECT 77 + 9 * + 43 * + COUNT( * ) DIV COUNT( * ) FROM tab0
----
464

skipif mysql # not compatible
query I rowsort label-7069
SELECT 77 + 9 * + 43 * + COUNT ( * ) / COUNT ( * ) FROM tab0
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL - COUNT( DISTINCT + 50 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL - COUNT ( DISTINCT + 50 ) FROM tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + - ( 13 ) )
----

query I rowsort
SELECT - 29 * - - col1 FROM tab1
----
-1363
-145
-406

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 WHERE NOT - + ( - col0 ) * col1 * - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + ( - col0 ) * col1 * - col0 IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT DISTINCT + 81 + - COUNT( * ) + + 57 FROM tab2 cor0
----
135

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT + 81 + - COUNT ( * ) + + 57 FROM tab2 cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7077
SELECT - col1 * - col2 * + 45 + col0 + + CAST( + 1 AS SIGNED ) + - + col1 DIV 73 AS col2 FROM tab0
----
171330
4553
9538

skipif mysql # not compatible
query I rowsort label-7077
SELECT - col1 * - col2 * + 45 + col0 + + CAST ( + 1 AS INTEGER ) + - + col1 / 73 AS col2 FROM tab0
----
171330
4553
9538

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT COUNT( * ) * + 36 AS col1 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT COUNT ( * ) * + 36 AS col1 FROM tab1
----
108

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7080
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - ( - - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7080
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - ( - - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT + - col1 * - 38 FROM tab0 AS cor0
----
3078
38
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + col2 + - - 97 col1 FROM tab0 AS cor0
----
197
2306
9898

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT - - MAX( DISTINCT + - col0 ) * - 32 AS col1, + 28 + COUNT( DISTINCT + 99 ) AS col2 FROM tab2 AS cor0
----
1472
29

skipif mysql # not compatible
query II rowsort label-7083
SELECT - - MAX ( DISTINCT + - col0 ) * - 32 AS col1, + 28 + COUNT ( DISTINCT + 99 ) AS col2 FROM tab2 AS cor0
----
1472
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7084
SELECT DISTINCT 38 * - 34 + + col2, CAST( - + 83 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1196
-83
-1224
-83
-1233
-83

skipif mysql # not compatible
query II rowsort label-7084
SELECT DISTINCT 38 * - 34 + + col2, CAST ( - + 83 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1196
-83
-1224
-83
-1233
-83

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT - 48 DIV - 44 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7086
SELECT - 48 / - 44 FROM tab2
----
1
1
1

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + 1 NOT IN ( + col2, - 50 * - 52, 50 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7088
SELECT SUM ( + col2 ) col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7089
SELECT - CAST( NULL AS SIGNED ), 35 AS col1 FROM tab0
----
NULL
35
NULL
35
NULL
35

skipif mysql # not compatible
query II rowsort label-7089
SELECT - CAST ( NULL AS INTEGER ), 35 AS col1 FROM tab0
----
NULL
35
NULL
35
NULL
35

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

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

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

query I rowsort
SELECT DISTINCT - col2 + col1 AS col0 FROM tab2 WHERE + col2 * + col1 <= + + 13 + + col2
----

query I rowsort
SELECT + col1 - + col2 FROM tab1 cor0 WHERE NOT 86 * - 54 NOT BETWEEN col1 AND + - col2
----

query I rowsort
SELECT DISTINCT - - 30 * - col0 + + + 42 FROM tab0 AS cor0
----
-2568
-2868
-408

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

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL MIN ( 72 ) FROM tab1 AS cor0
----
72

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

query II rowsort
SELECT - 7 + + 3 AS col1, + 10 * - + col1 AS col2 FROM tab2
----
-4
-510
-4
-670
-4
-770

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 14 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 5 + + 95 IS NULL
----

query I rowsort
SELECT ALL - 73 + + 2 * col2 AS col2 FROM tab0 AS cor0
----
-53
125
21

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 - - 29 AS col1 FROM tab0
----
-18
-70
19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7105
SELECT 8 * + col0 * + + 18 * + + CAST( - col0 AS SIGNED ) * ( 56 ) AS col1, col0 FROM tab0 WHERE 21 * + CAST( col0 AS DECIMAL ) NOT BETWEEN + + 71 * col0 AND NULL
----
-1814400
15
-61036416
87
-75874176
97

skipif mysql # not compatible
query II rowsort label-7105
SELECT 8 * + col0 * + + 18 * + + CAST ( - col0 AS INTEGER ) * ( 56 ) AS col1, col0 FROM tab0 WHERE 21 * + CAST ( col0 AS REAL ) NOT BETWEEN + + 71 * col0 AND NULL
----
-1814400
15
-61036416
87
-75874176
97

query I rowsort
SELECT 98 + + ( + col2 ) FROM tab1
----
157
166
194

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

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

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

query I rowsort
SELECT ALL - 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL + 62 * + MAX( 21 ) FROM tab2 cor0
----
1302

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL + 62 * + MAX ( 21 ) FROM tab2 cor0
----
1302

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT + + MIN( + + col1 ) * 74 FROM tab1 AS cor0
----
370

skipif mysql # not compatible
query I rowsort label-7113
SELECT + + MIN ( + + col1 ) * 74 FROM tab1 AS cor0
----
370

query II rowsort
SELECT DISTINCT - - col1 * + + 93, - col0 AS col0 FROM tab0 AS cor0
----
1953
-87
7533
-15
93
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT col0 DIV + 91 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7117
SELECT col0 / + 91 AS col0 FROM tab0
----
0
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT COUNT( * ) + - COUNT( DISTINCT - ( - + 95 ) ) + + COUNT( * ) * 67 AS col0 FROM tab2
----
203

skipif mysql # not compatible
query I rowsort label-7120
SELECT COUNT ( * ) + - COUNT ( DISTINCT - ( - + 95 ) ) + + COUNT ( * ) * 67 AS col0 FROM tab2
----
203

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > 63
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - 12 col2 FROM tab1
----
-1152
-708
-816

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

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

query II rowsort
SELECT + + col2, + 81 FROM tab0 AS cor0
----
10
81
47
81
99
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT DISTINCT + + 58 * - 44 * - COUNT( * ) * - COUNT( * ) * + ( COUNT( * ) ) + 33 FROM tab0 cor0
----
-68871

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + + 58 * - 44 * - COUNT ( * ) * - COUNT ( * ) * + ( COUNT ( * ) ) + 33 FROM tab0 cor0
----
-68871

query I rowsort
SELECT DISTINCT col0 / + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * - 38 col0 FROM tab1
----
16150
162526
27132

query I rowsort
SELECT - - col0 AS col1 FROM tab0 AS cor0 WHERE + 82 BETWEEN NULL AND - - 16
----

query I rowsort
SELECT - 88 + + + col0 - - 98 FROM tab2 AS cor0
----
56
74
85

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + col2, col0 * col0 col2 FROM tab2 AS cor0
----
-28
2116
-37
4096
-9
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT - CAST( col2 AS SIGNED ) * col0 + + col1 * - col1 FROM tab0 AS cor0
----
-1311
-7266
-9604

skipif mysql # not compatible
query I rowsort label-7134
SELECT - CAST ( col2 AS INTEGER ) * col0 + + col1 * - col1 FROM tab0 AS cor0
----
-1311
-7266
-9604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT DISTINCT COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

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

query I rowsort
SELECT col2 + col1 - - 32 AS col0 FROM tab0
----
132
160
63

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + 82 AS col0, - 72 + + - col2 col0 FROM tab2
----
133
-95
149
-130
159
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7140
SELECT + CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col1, - COUNT( + col0 ) col2 FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7140
SELECT + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col1, - COUNT ( + col0 ) col2 FROM tab0
----
3
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT ALL - CAST( + + 46 AS SIGNED ) - - col1 - + col0 AS col1 FROM tab1
----
-126
-83
-90

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - CAST ( + + 46 AS INTEGER ) - - col1 - + col0 AS col1 FROM tab1
----
-126
-83
-90

query I rowsort
SELECT DISTINCT - col1 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-108
-96
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL - - MIN( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN - + 65 + - 87 * - + col2 AND 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - - MIN ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN - + 65 + - 87 * - + col2 AND 63
----
NULL

query I rowsort
SELECT - + col1 * + col1 * + - 41 AS col1 FROM tab2 AS cor0
----
106641
184049
243089

query I rowsort
SELECT ( - 37 ) AS col1 FROM tab0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT + COUNT( + col2 ) col2 FROM tab1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7148
SELECT DISTINCT + COUNT ( + col2 ) col2 FROM tab1 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL col2 / 24 AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT + - col0 * - + col1 * col1 AS col2, col1 * col1 + - col1 AS col2 FROM tab2 cor0
----
119646
2550
336675
4422
379456
5852

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT - - COUNT( ALL 94 ) * - 47 * - COUNT( * ) col1 FROM tab0 AS cor0
----
423

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7155
SELECT - - COUNT ( ALL 94 ) * - 47 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
423

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7156
SELECT CAST( + col0 AS SIGNED ) AS col2, - 21 FROM tab0
----
15
-21
87
-21
97
-21

skipif mysql # not compatible
query II rowsort label-7156
SELECT CAST ( + col0 AS INTEGER ) AS col2, - 21 FROM tab0
----
15
-21
87
-21
97
-21

query I rowsort
SELECT DISTINCT + 10 * - + col2 FROM tab1
----
-590
-680
-960

query I rowsort
SELECT ALL - col0 * + + col2 + 89 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-616
-781
-9514

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

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

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

query I rowsort
SELECT ALL - col1 * - + 18 FROM tab0
----
1458
18
378

query I rowsort
SELECT ALL - col0 + + ( 23 ) * + 87 FROM tab2 cor0
----
1926
1937
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT - col2 DIV + col0 + col1 * + 49 + - + col2 col2 FROM tab1 cor0
----
186
2235
589

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7163
SELECT - col2 / + col0 + col1 * + 49 + - + col2 col2 FROM tab1 cor0
----
186
2235
589

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - + MAX( - 35 ) + - COUNT( * ) col0 FROM tab0 cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7164
SELECT - + MAX ( - 35 ) + - COUNT ( * ) col0 FROM tab0 cor0
----
32

query I rowsort
SELECT + 93 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-4794
-7990
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT - 13 * COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7166
SELECT - 13 * COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-117

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL - - 30 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - - 30 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
33

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

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

query I rowsort
SELECT DISTINCT 52 + + ( col0 ) - - - 23 * - col2 * + col1 AS col1 FROM tab1 AS cor0
----
31015
6922
73651

query I rowsort
SELECT 49 - + col1 + + col2 FROM tab2
----
12
21
40

query II rowsort
SELECT DISTINCT - col0 + + - 68, col1 AS col0 FROM tab1
----
-119
14
-153
5
-159
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ( + - MIN( ALL - 56 ) ) - ( - 68 ) FROM tab0
----
124

skipif mysql # not compatible
query I rowsort label-7175
SELECT ( + - MIN ( ALL - 56 ) ) - ( - 68 ) FROM tab0
----
124

query I rowsort
SELECT DISTINCT col0 - 55 AS col1 FROM tab2
----
-9
20
9

query I rowsort
SELECT ALL ( + col1 ) - - - 47 AS col1 FROM tab1
----
-33
-42
0

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

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

query I rowsort
SELECT + 60 * + + col1 * 93 / + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 32 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT DISTINCT - col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-705
-870
-9603

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

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

query II rowsort
SELECT - 30, 90 * - col1 AS col0 FROM tab2 AS cor0
----
-30
-4590
-30
-6030
-30
-6930

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 5 + + 34 FROM tab1 AS cor0
----
39

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT 94 + col0 > NULL )
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE - 50 IS NULL
----

query I rowsort
SELECT + 70 + - + col1 + + col0 + col1 FROM tab1
----
121
155
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + 48 col0 FROM tab1
----
4944
5063
6236

onlyif mysql # DIV for integer division: 
query II rowsort label-7192
SELECT ALL col0 DIV col2 * col0 AS col0, 61 FROM tab0
----
0
61
0
61
696
61

skipif mysql # not compatible
query II rowsort label-7192
SELECT ALL col0 / col2 * col0 AS col0, 61 FROM tab0
----
0
61
0
61
696
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL + SUM( + 98 ) AS col2 FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + SUM ( + 98 ) AS col2 FROM tab1 cor0
----
294

query I rowsort
SELECT - col0 + 2 FROM tab2
----
-44
-62
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT COUNT( * ) * 24 col1 FROM tab0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7195
SELECT DISTINCT COUNT ( * ) * 24 col1 FROM tab0
----
72

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

query I rowsort
SELECT + 68 + 3 FROM tab1
----
71
71
71

query III rowsort
SELECT * FROM tab1 WHERE NOT 60 NOT BETWEEN col2 AND - 76 / 89
----

query I rowsort
SELECT ALL col2 + col2 * col1 AS col1 FROM tab1
----
1440
3264
354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 + col0 col1 FROM tab0
----
126
136
54

query I rowsort
SELECT DISTINCT 81 FROM tab0 WHERE + col2 BETWEEN ( + col0 ) AND + col2
----
81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col1 FROM tab1
----
-1344
-295
-3196

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 > ( + 62 ) / 18 + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 19 * 34 = - col0 * - 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 78 + + col2 * + ( - col2 + col1 ) AS col2 FROM tab0
----
-9624
1676
188

query I rowsort
SELECT 83 + col0 AS col2 FROM tab1
----
134
168
174

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 2 * + col2 ) NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7211
SELECT DISTINCT - 29 DIV col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - 29 / col1 FROM tab1
----
-2
-5
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 3 NOT IN ( col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT SUM( + 32 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7213
SELECT SUM ( + 32 ) FROM tab0
----
96

query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) BETWEEN + col0 + - col2 AND col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + 37 + - col1 <> col1
----

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col1 < ( col2 / - col1 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) - col1 col1 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT 20 - col2 AS col1 FROM tab2
----
-20
-3
-38

query I rowsort
SELECT - ( 75 ) + - col0 FROM tab1
----
-126
-160
-166

query I rowsort
SELECT DISTINCT 56 * col1 FROM tab0 AS cor0
----
1176
4536
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT COUNT( * ) * - 63 AS col1 FROM tab1 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7224
SELECT COUNT ( * ) * - 63 AS col1 FROM tab1 cor0
----
-189

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - 89 ) NOT BETWEEN col2 + col1 AND - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( 17 ) + ( - 43 ) FROM tab0 AS cor0 WHERE col0 >= NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * 4 col1 FROM tab2 AS cor0
----
348
348
348

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7230
SELECT DISTINCT col1 + col1 / col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( CAST( NULL AS DECIMAL ) + + col0 )
----

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT col1 + col1 / col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( CAST ( NULL AS REAL ) + + col0 )
----

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

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab2 AS cor0 WHERE 53 IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 + col1 * - 65 AS col2 FROM tab2 AS cor0
----
-3338
-4413
-5045

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

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

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

query I rowsort
SELECT 37 + col0 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
124
134
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT ALL COUNT( ALL col1 ) DIV + 73 FROM tab0 WHERE NOT NULL BETWEEN 15 * 43 AND 80
----
0

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL COUNT ( ALL col1 ) / + 73 FROM tab0 WHERE NOT NULL BETWEEN 15 * 43 AND 80
----
0

query I rowsort
SELECT 20 + - col1 AS col2 FROM tab1 AS cor0
----
-27
15
6

query I rowsort
SELECT - col2 + - 16 FROM tab1 cor0
----
-112
-75
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 >= 90 / col2
----

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

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

query I rowsort
SELECT col0 + - + 11 + col1 FROM tab1
----
127
54
79

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - ( + 79 ) - + COUNT( - col0 ) FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7245
SELECT - ( + 79 ) - + COUNT ( - col0 ) FROM tab0 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7246
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( - 83 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7246
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( - 83 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 35 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
35

query I rowsort
SELECT ALL - col0 * - col0 + ( + col2 ) FROM tab2 AS cor0
----
2139
4136
5683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7249
SELECT ALL + CAST( - + 95 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL + CAST ( - + 95 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT + ( SUM( DISTINCT - col1 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-7250
SELECT + ( SUM ( DISTINCT - col1 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ( MAX( col0 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - 44 AND + col2
----
75

skipif mysql # not compatible
query I rowsort label-7251
SELECT ( MAX ( col0 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - 44 AND + col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT DISTINCT 7 DIV + - col1 AS col2 FROM tab0
----
-7
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT 7 / + - col1 AS col2 FROM tab0
----
-7
0

query I rowsort
SELECT - ( ( - - col1 ) ) AS col0 FROM tab2
----
-51
-67
-77

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > + + 55
----
51
14
96

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE + + col1 >= - 87
----
-14
-47
-5

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

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

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( - - col0 NOT BETWEEN col0 AND ( - col2 * + col1 ) )
----
46
64
75

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

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

skipif mysql # not compatible
query I rowsort label-7260
SELECT - MIN ( + 6 ) FROM tab1 AS cor0
----
-6

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 < NULL
----

query I rowsort
SELECT DISTINCT + col0 + col0 * + + col0 FROM tab1 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND ( + + 5 )
----
46
64
75

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

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

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

query I rowsort
SELECT ALL 27 * col1 FROM tab2 AS cor0
----
1377
1809
2079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 + - col0 + + 49 * 9 * + ( - 74 ) col0 FROM tab2 AS cor0 WHERE 99 <> - col0
----
-32673
-32691
-32702

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT DISTINCT - MAX( col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT - MAX ( col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL - 66 + + - col2 AS col2 FROM tab0 AS cor0
----
-113
-165
-76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 76 * - col1 NOT IN ( + ( + - ( + col1 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 * + 6 * - 68 + + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT DISTINCT MIN( DISTINCT - 31 ) + - MIN( col1 ) col0 FROM tab1 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7274
SELECT DISTINCT MIN ( DISTINCT - 31 ) + - MIN ( col1 ) col0 FROM tab1 WHERE NOT NULL > NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( - 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT DISTINCT + COUNT( * ) + - 19 * COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + COUNT ( * ) + - 19 * COUNT ( * ) FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT DISTINCT + MAX( - 10 ) + + COUNT( * ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT + MAX ( - 10 ) + + COUNT ( * ) AS col0 FROM tab1
----
-7

query I rowsort
SELECT ALL - 7 FROM tab2 WHERE NOT 78 IS NOT NULL
----

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

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

query I rowsort
SELECT 37 * 13 FROM tab0
----
481
481
481

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT + COUNT( * ) * + 92 AS col2 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-7283
SELECT + COUNT ( * ) * + 92 AS col2 FROM tab2 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT DISTINCT - COUNT( * ) + + 83 * - + 38 FROM tab0 AS cor0
----
-3157

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - COUNT ( * ) + + 83 * - + 38 FROM tab0 AS cor0
----
-3157

query I rowsort
SELECT DISTINCT + - col0 * - col1 * - 47 AS col1 FROM tab0 AS cor0
----
-4559
-57105
-85869

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT 29 * col0 + + + CAST( - - ( + CAST( - col1 AS SIGNED ) ) AS SIGNED ) FROM tab1
----
1465
2460
2592

skipif mysql # not compatible
query I rowsort label-7289
SELECT 29 * col0 + + + CAST ( - - ( + CAST ( - col1 AS INTEGER ) ) AS INTEGER ) FROM tab1
----
1465
2460
2592

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2, col2, - 60 )
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( - col0 ) + - + col0 * - + 49 + + 37 AND + + col2
----

query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 IN ( col2, + col0 ) )
----
198
20
94

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

query I rowsort
SELECT - col1 * + + 95 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT DISTINCT ( + 69 ) FROM tab1
----
69

query I rowsort
SELECT ALL 16 * + col1 FROM tab0
----
1296
16
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL - + col1 * + col1 + + 10 * - CAST( - ( - ( - 92 ) ) AS SIGNED ) * col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
54255
60351
88124

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - + col1 * + col1 + + 10 * - CAST ( - ( - ( - 92 ) ) AS INTEGER ) * col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
54255
60351
88124

query I rowsort
SELECT DISTINCT + - 27 + - col2 AS col1 FROM tab0 WHERE NOT NULL >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7301
SELECT ALL * FROM tab2 WHERE + col0 - - + CAST( + col2 AS SIGNED ) IN ( + ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7301
SELECT ALL * FROM tab2 WHERE + col0 - - + CAST ( + col2 AS INTEGER ) IN ( + ( col1 ) )
----

query I rowsort
SELECT ALL col2 * col1 AS col1 FROM tab1 WHERE ( NULL ) >= ( + col1 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7303
SELECT - SUM ( DISTINCT - col1 ) col1 FROM tab0 cor0
----
103

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + 24 AND + col2
----

query I rowsort
SELECT DISTINCT + ( + 94 ) * - + 38 FROM tab0 AS cor0
----
-3572

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT ALL col2 DIV + + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL col2 / + + col0 FROM tab2 cor0
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7311
SELECT col1 * CAST( - - col1 AS SIGNED ) * - + 44 + + - 44 * + 57 FROM tab2
----
-116952
-200024
-263384

skipif mysql # not compatible
query I rowsort label-7311
SELECT col1 * CAST ( - - col1 AS INTEGER ) * - + 44 + + - 44 * + 57 FROM tab2
----
-116952
-200024
-263384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7312
SELECT DISTINCT MAX( + 44 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT MAX ( + 44 ) / - COUNT ( * ) FROM tab1 AS cor0
----
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT ALL + + col0 DIV 73 * - col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-75
0
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL + + col0 / 73 * - col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-75
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN - + 15 AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( col2 ) + 96 FROM tab2 AS cor0
----
119
136
154

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT - - MIN( ALL + - col0 ) AS col0, 92 FROM tab1 AS cor0
----
-91
92

skipif mysql # not compatible
query II rowsort label-7317
SELECT - - MIN ( ALL + - col0 ) AS col0, 92 FROM tab1 AS cor0
----
-91
92

onlyif mysql # DIV for integer division: 
query II rowsort label-7318
SELECT DISTINCT + col0, + col1 DIV col2 col1 FROM tab2 cor0 WHERE NULL IS NULL
----
46
2
64
1
75
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7318
SELECT DISTINCT + col0, + col1 / col2 col1 FROM tab2 cor0 WHERE NULL IS NULL
----
46
2
64
1
75
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT DISTINCT col0 DIV - col0 + col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT col0 / - col0 + col2 FROM tab1 AS cor0
----
58
67
95

query II rowsort
SELECT ALL + + 35 + col0, 34 AS col0 FROM tab1 AS cor0
----
120
34
126
34
86
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 * - + col0 AS col2 FROM tab1
----
59
-5015
68
-6188
96
-4896

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - 75 ) <= - col0 AND NOT + col0 NOT BETWEEN col1 AND ( NULL )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7325
SELECT DISTINCT - CAST( 29 AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT - CAST ( 29 AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-26

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

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NULL NOT IN ( - + col1, ( 40 ), col0, + 81 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT - + CAST( + col0 AS SIGNED ) * + col2 * - ( - 55 ) AS col2 FROM tab0 AS cor0
----
-38775
-47850
-528165

skipif mysql # not compatible
query I rowsort label-7330
SELECT - + CAST ( + col0 AS INTEGER ) * + col2 * - ( - 55 ) AS col2 FROM tab0 AS cor0
----
-38775
-47850
-528165

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

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

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

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

query I rowsort
SELECT ALL + + 76 AS col2 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT ALL 72 * 7 - col2 FROM tab2 WHERE ( ( NOT NULL IN ( - col2 * - col2 + + + col2 + + col2 * - col0 + + + col2 ) ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - col0 + 6 AND - 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT COUNT( * ) col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7337
SELECT COUNT ( * ) col1 FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL + COUNT( * ) * - 7 AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL + COUNT ( * ) * - 7 AS col2 FROM tab0
----
-21

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

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

query I rowsort
SELECT DISTINCT - 32 * - - 28 FROM tab0
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL 45 * - + COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL 45 * - + COUNT ( * ) FROM tab0
----
-135

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

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

query I rowsort
SELECT ALL + 98 + - - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
103
112
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7344
SELECT + + COUNT( * ) DIV + COUNT( * ) - - 60 + + 5 AS col0, ( COUNT( + 62 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66
9

skipif mysql # not compatible
query II rowsort label-7344
SELECT + + COUNT ( * ) / + COUNT ( * ) - - 60 + + 5 AS col0, ( COUNT ( + 62 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66
9

query I rowsort
SELECT - 30 * + col2 FROM tab2
----
-1200
-1740
-690

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT DISTINCT - - col0 DIV - + col2 + + + col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - - col0 / - + col2 + + + col1 FROM tab2 AS cor0
----
49
66
76

query I rowsort
SELECT DISTINCT 35 + col2 FROM tab0 AS cor0
----
134
45
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 * + col2 + 86 col0 FROM tab1 AS cor0
----
5160
5934
8342

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

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

query I rowsort
SELECT 63 + 32 FROM tab1
----
95
95
95

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

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

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

query I rowsort
SELECT ALL 18 - col0 + col1 FROM tab0
----
-48
-78
84

query II rowsort
SELECT col2 * - - 16 AS col1, - col2 AS col0 FROM tab0
----
1584
-99
160
-10
752
-47

query I rowsort
SELECT ALL - col2 * - col0 - 87 AS col0 FROM tab2
----
2473
4263
971

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - + + col1 + + + 36 IS NULL
----

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

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

query II rowsort
SELECT - col2 * col0 + - col0 AS col2, col1 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-720
-57105
-957
-18270
-9700
-9603

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT - col2 = - ( + + col0 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 67 * col0 * - - 18 IS NOT NULL
----

query I rowsort
SELECT - 20 * - - ( - 67 ) + - col0 AS col0 FROM tab2 cor0
----
1265
1276
1294

query II rowsort
SELECT ALL - col1 AS col0, ( + col2 ) AS col1 FROM tab1
----
-14
96
-47
68
-5
59

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 22 * + col1 * col0 IN ( col0 + col1 )
----

query I rowsort
SELECT col0 + + - ( 42 ) + - col2 + - 3 AS col0 FROM tab2 AS cor0
----
-21
-22
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7370
SELECT - CAST( NULL AS DECIMAL ) + + + 39 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT - CAST ( NULL AS REAL ) + + + 39 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7372
SELECT + CAST( + COUNT( * ) AS SIGNED ) DIV - 83 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / - 83 FROM tab2 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL + COUNT( DISTINCT - - ( + 70 ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + COUNT ( DISTINCT - - ( + 70 ) ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col1 + + + 79 FROM tab0 AS cor0 WHERE NOT - col2 * col0 * col0 IS NULL
----
100
160
80

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 97 * 78, - ( - col0 ), col2, + + ( col1 ) )
----

query I rowsort
SELECT col1 * - 21 FROM tab1 AS cor0
----
-105
-294
-987

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - 9
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT DISTINCT + col0 DIV - + col1 + + col2 + - ( col0 ) * + - ( + + 43 ) AS col1 FROM tab0 AS cor0
----
3747
4173
692

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT + col0 / - + col1 + + col2 + - ( col0 ) * + - ( + + 43 ) AS col1 FROM tab0 AS cor0
----
3747
4173
692

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

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

query II rowsort
SELECT + 20 - + 84 AS col2, col1 * - col1 AS col2 FROM tab1 cor0
----
-64
-196
-64
-2209
-64
-25

query I rowsort
SELECT 40 - + col2 AS col2 FROM tab1
----
-19
-28
-56

query I rowsort
SELECT ALL + col2 - - ( 96 ) * 18 AS col0 FROM tab1
----
1787
1796
1824

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

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

query II rowsort
SELECT ALL - col0, ( col0 ) FROM tab2
----
-46
46
-64
64
-75
75

query II rowsort
SELECT DISTINCT + + col1, 83 FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT - SUM( DISTINCT ( col2 ) ) * 20 + - COUNT( * ) FROM tab1 AS cor0
----
-4463

skipif mysql # not compatible
query I rowsort label-7386
SELECT - SUM ( DISTINCT ( col2 ) ) * 20 + - COUNT ( * ) FROM tab1 AS cor0
----
-4463

query I rowsort
SELECT + col2 * + 48 AS col1 FROM tab1 AS cor0
----
2832
3264
4608

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

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

query I rowsort
SELECT + 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

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

query I rowsort
SELECT + 31 * + col2 * + col2 FROM tab1 AS cor0
----
107911
143344
285696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7392
SELECT DISTINCT - 5 * - SUM( col0 ) + - CAST( - - 87 AS SIGNED ) FROM tab1 AS cor0
----
1048

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - 5 * - SUM ( col0 ) + - CAST ( - - 87 AS INTEGER ) FROM tab1 AS cor0
----
1048

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT + 53 / col1 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT DISTINCT - CAST( 58 AS SIGNED ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - CAST ( 58 AS INTEGER ) FROM tab2
----
-58

query I rowsort
SELECT 72 + col2 FROM tab1
----
131
140
168

onlyif mysql # DIV for integer division: 
query I rowsort label-7398
SELECT - 53 DIV - + col1 + + col1 - + 70 FROM tab1 AS cor0
----
-22
-53
-55

skipif mysql # not compatible
query I rowsort label-7398
SELECT - 53 / - + col1 + + col1 - + 70 FROM tab1 AS cor0
----
-22
-53
-55

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

query I rowsort
SELECT ALL - - 2 + 22 AS col0 FROM tab1 AS cor0
----
24
24
24

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

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

query I rowsort
SELECT col2 - 92 * - + col0 - + col0 - + col2 + + col2 + col1 AS col2 FROM tab1
----
4751
7799
8396

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

query I rowsort
SELECT ALL + - col2 * - 20 FROM tab1 AS cor0
----
1180
1360
1920

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7405
SELECT * FROM tab1 AS cor0 WHERE NULL > + CAST( + + col1 AS SIGNED ) + + + 99 + - + 91 * + col0 * - + col1
----

skipif mysql # not compatible
query III rowsort label-7405
SELECT * FROM tab1 AS cor0 WHERE NULL > + CAST ( + + col1 AS INTEGER ) + + + 99 + - + 91 * + col0 * - + col1
----

query I rowsort
SELECT col2 + + 90 AS col0 FROM tab1 cor0
----
149
158
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - - 24 * - + ( + + 74 ) + + COUNT( * ) * 92 FROM tab2 cor0
----
-1500

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - - 24 * - + ( + + 74 ) + + COUNT ( * ) * 92 FROM tab2 cor0
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL - ( + 73 ) - + MAX( + 90 ) + + - SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
-229

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - ( + 73 ) - + MAX ( + 90 ) + + - SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
-229

query I rowsort
SELECT ALL + - 13 AS col0 FROM tab1 WHERE NOT col0 NOT BETWEEN col0 AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - 36 + + + col0 * - + col1 + + col1 + - - col1 col1 FROM tab0 AS cor0
----
-1029
-59
1863

query I rowsort
SELECT - col2 * col0 * + + 38 AS col0 FROM tab2 AS cor0
----
-165300
-40204
-97280

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN - col1 AND + - col0 * + - col0 + 21
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= + col1 * - 26
----

query I rowsort
SELECT ALL 67 * 38 FROM tab0 AS cor0
----
2546
2546
2546

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

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

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

query I rowsort
SELECT DISTINCT 79 + - - col2 AS col0 FROM tab1 AS cor0
----
138
147
175

query I rowsort
SELECT - col0 * + col2 + - + 49 FROM tab2 AS cor0
----
-1107
-2609
-4399

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - COUNT( * ) * 69 AS col1 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-7421
SELECT - COUNT ( * ) * 69 AS col1 FROM tab1
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT + ( + MIN( col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT + ( + MIN ( col0 ) ) AS col1 FROM tab2
----
46

query I rowsort
SELECT DISTINCT col2 + + 77 AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
100
117
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL + ( - + MIN( ALL - col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL + ( - + MIN ( ALL - col1 ) ) AS col0 FROM tab1
----
47

query II rowsort
SELECT DISTINCT + ( + + col0 ), col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT - 59 * + 6 + col1 DIV - ( + 60 ) AS col2 FROM tab1 AS cor0
----
-354
-354
-354

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 59 * + 6 + col1 / - ( + 60 ) AS col2 FROM tab1 AS cor0
----
-354
-354
-354

query I rowsort
SELECT col0 + + + col1 * + + col1 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT DISTINCT - SUM( ALL + col0 ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - SUM ( ALL + col0 ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 69 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT CAST( NULL AS SIGNED ) * - + MAX( ALL - col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7430
SELECT CAST ( NULL AS INTEGER ) * - + MAX ( ALL - col0 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT + COUNT( col0 ) - + 32 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-7431
SELECT + COUNT ( col0 ) - + 32 FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7432
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7433
SELECT - + MAX( ALL + col2 ) - + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT - + MAX ( ALL + col2 ) - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( 79 ) * 26 * - 12 - + 79 AS col2 FROM tab2 cor0
----
-24727
-24727
-24727

query II rowsort
SELECT - ( + col2 ) - - 47, - col1 AS col2 FROM tab2 AS cor0
----
-11
-67
24
-51
7
-77

query I rowsort
SELECT col1 - ( + + 41 ) + + col2 AS col1 FROM tab1 AS cor0
----
23
69
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7437
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col2 AND CAST( + + 81 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7437
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col2 AND CAST ( + + 81 AS INTEGER )
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 FROM tab1
----
14
-14
47
-47
5
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT 53 > + - col2 / + 14
----

query I rowsort
SELECT DISTINCT - ( + - 90 ) FROM tab2
----
90

query I rowsort
SELECT ALL col0 * + 81 AS col2 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE + col0 - - + col0 * - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - 8 * + col0 AS col0 FROM tab2 WHERE NOT 52 * 28 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT + + MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT + + MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query II rowsort
SELECT - - ( - 43 ) AS col0, + 20 * col0 FROM tab1 AS cor0
----
-43
1020
-43
1700
-43
1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT + col1 / + + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT + col1 / + + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + + + 46 FROM tab0
----
145
256
3853

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7449
SELECT + ( - CAST( NULL AS DECIMAL ) ) + + MAX( ALL col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7449
SELECT + ( - CAST ( NULL AS REAL ) ) + + MAX ( ALL col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 41 + - 26 FROM tab0
----
15
15
15

query I rowsort
SELECT DISTINCT col1 * - 51 FROM tab2
----
-2601
-3417
-3927

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= 21 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7453
SELECT 9 AS col0, CAST( + 68 AS SIGNED ) FROM tab1
----
9
68
9
68
9
68

skipif mysql # not compatible
query II rowsort label-7453
SELECT 9 AS col0, CAST ( + 68 AS INTEGER ) FROM tab1
----
9
68
9
68
9
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 17 = 69 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 84, + col0 * - - col1 AS col0 FROM tab0
----
84
1215
84
1827
84
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7456
SELECT + CAST( - 16 AS SIGNED ) FROM tab1 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-7456
SELECT + CAST ( - 16 AS INTEGER ) FROM tab1 AS cor0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 65 * 0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 * + 79 + 17 <> + - 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT DISTINCT CAST( SUM( - col2 ) AS SIGNED ) * ( + + 23 ) * + 97 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-348033

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT CAST ( SUM ( - col2 ) AS INTEGER ) * ( + + 23 ) * + 97 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-348033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + + col2 + + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + + col2 + + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 9 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT + + col0 + 6 AS col0 FROM tab1 cor0
----
57
91
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT + ( - 96 ) + + 19 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 + + col1 * 63 + col2 - - 59 * - ( + ( + col2 ) ) * + col0, ( CAST( - col0 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-7463
SELECT + ( - 96 ) + + 19 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col1 + + col1 * 63 + col2 - - 59 * - ( + ( + col2 ) ) * + col0, ( CAST ( - col0 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + col1 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + col1 + + col0 IS NOT NULL
----
0

query I rowsort
SELECT 93 * + col2 FROM tab2
----
2139
3720
5394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7466
SELECT COUNT( * ) DIV 62 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT COUNT ( * ) / 62 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT ( - + 87 ) AS col2 FROM tab0
----
-87
-87
-87

query II rowsort
SELECT ALL + ( 19 ) * + - 7 + + ( 92 ) AS col2, + col2 + - + col0 * - - col1 * + col0 FROM tab1
----
-41
-36066
-41
-36318
-41
-389139

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL COUNT( DISTINCT + + ( + col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL COUNT ( DISTINCT + + ( + col1 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL - 44 * - COUNT( * ) FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL - 44 * - COUNT ( * ) FROM tab0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT - - col1 * + col0 + col1 DIV col1 FROM tab2 AS cor0
----
2347
4929
5026

skipif mysql # not compatible
query I rowsort label-7471
SELECT - - col1 * + col0 + col1 / col1 FROM tab2 AS cor0
----
2347
4929
5026

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT - + COUNT( * ) AS col2, - 84 AS col0 FROM tab0 AS cor0
----
-3
-84

skipif mysql # not compatible
query II rowsort label-7472
SELECT - + COUNT ( * ) AS col2, - 84 AS col0 FROM tab0 AS cor0
----
-3
-84

query I rowsort
SELECT + + 84 * + - 38 FROM tab2 AS cor0
----
-3192
-3192
-3192

query I rowsort
SELECT DISTINCT - col1 * + ( + 99 ) AS col2 FROM tab0
----
-2079
-8019
-99

query I rowsort
SELECT col1 * - ( ( - - col2 ) ) AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT DISTINCT col1 DIV - + col0 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT col1 / - + col0 AS col2 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT - - ( - MAX( + - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7477
SELECT - - ( - MAX ( + - col0 ) ) AS col1 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + + 51 + - col0 AS col2 FROM tab2 cor0
----
-13
-24
5

query I rowsort
SELECT 77 * col2 AS col0 FROM tab1 AS cor0
----
4543
5236
7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT DISTINCT ( 70 ) + ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NULL >= - 22
----

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT ( 70 ) + ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NULL >= - 22
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + ( - - 98 )
----

query I rowsort
SELECT DISTINCT + 70 + + 89 FROM tab2 AS cor0
----
159

query I rowsort
SELECT DISTINCT + col0 * + - col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7484
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) IN ( + 75, + 98 )
----

skipif mysql # not compatible
query III rowsort label-7484
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IN ( + 75, + 98 )
----

query I rowsort
SELECT 74 * - col0 FROM tab2
----
-3404
-4736
-5550

query I rowsort
SELECT col1 * + + col1 * - 93 FROM tab2
----
-241893
-417477
-551397

query I rowsort
SELECT DISTINCT 23 * + ( + col0 ) FROM tab1
----
1173
1955
2093

query I rowsort
SELECT 15 * col2 FROM tab2
----
345
600
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col2 FROM tab2
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT ALL col0 DIV - 88 * - col1 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL col0 / - 88 * - col1 AS col2 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT DISTINCT ( - 74 ) DIV + 72 col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7491
SELECT DISTINCT ( - 74 ) / + 72 col2 FROM tab2
----
-1

query I rowsort
SELECT - 39 FROM tab0 WHERE + 93 IS NULL
----

query I rowsort
SELECT 87 AS col2 FROM tab0 AS cor0 WHERE - 92 IS NOT NULL
----
87
87
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7494
SELECT CAST( NULL AS SIGNED ) / - COUNT( ALL + 2 ) + + 53 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( ALL + 2 ) + + 53 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL - MIN( ALL + - ( - 42 ) ) AS col1 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - MIN ( ALL + - ( - 42 ) ) AS col1 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT - + 80 + + col2 FROM tab2 AS cor0
----
-22
-40
-57

query I rowsort
SELECT 68 + - col0 - - col2 FROM tab1 AS cor0
----
113
42
45

query I rowsort
SELECT DISTINCT 19 * + col0 + - 92 + 68 FROM tab1 AS cor0
----
1591
1705
945

query I rowsort
SELECT + col0 FROM tab2 WHERE 56 / + col0 IN ( 84 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( NOT - col2 IN ( col0 * - 11, col2, - - col0 + col1 + + + 17, + 37 ) )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT DISTINCT + 37 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + 37 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
63

query I rowsort
SELECT + 52 * + 86 FROM tab2 AS cor0
----
4472
4472
4472

query II rowsort
SELECT + - 21 AS col0, col2 FROM tab1 cor0
----
-21
59
-21
68
-21
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT + - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7505
SELECT + - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - col2 * + + 41 AS col1 FROM tab0 AS cor0
----
-1927
-4059
-410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7507
SELECT + + CAST( NULL AS SIGNED ), - CAST( - MAX( DISTINCT - 52 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-7507
SELECT + + CAST ( NULL AS INTEGER ), - CAST ( - MAX ( DISTINCT - 52 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
-52

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 IN ( - 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 40 AS col2, col1 FROM tab2 AS cor0
----
40
51
40
67
40
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL + SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT - COUNT( + col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT - COUNT ( + col0 ) FROM tab1 cor0
----
-3

query II rowsort
SELECT + 51, - col2 AS col1 FROM tab1 WHERE NOT col1 + - col1 + - 5 IN ( - col0 )
----
51
-59
51
-68
51
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7513
SELECT - - ( + ( COUNT( * ) ) ) AS col0 FROM tab0 WHERE NOT - col2 + + 50 NOT IN ( 96 + CAST( + 2 AS SIGNED ), + col0, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7513
SELECT - - ( + ( COUNT ( * ) ) ) AS col0 FROM tab0 WHERE NOT - col2 + + 50 NOT IN ( 96 + CAST ( + 2 AS INTEGER ), + col0, col2 )
----
0

query I rowsort
SELECT DISTINCT 74 * - col0 AS col0 FROM tab2
----
-3404
-4736
-5550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT + CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7515
SELECT + CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 * + 86 * col2 * col1 + - col0 + - col2 + - col1 + col2 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT - + CAST( NULL AS SIGNED ) * - col2 + + 6 * - - 23 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT - + CAST ( NULL AS INTEGER ) * - col2 + + 6 * - - 23 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * + col2 AS col0, + col2 + - - col1 col2 FROM tab0 AS cor0
----
705
128
870
31
9603
100

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT + + MIN( ALL 21 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-7521
SELECT + + MIN ( ALL 21 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL COUNT( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL COUNT ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query III rowsort label-7523
SELECT col1 AS col2, col2 DIV + - col1 AS col2, + + col0 FROM tab0 AS cor0
----
9 values hashing to 6c73ab94e281272b0b310505605e4d23

skipif mysql # not compatible
query III rowsort label-7523
SELECT col1 AS col2, col2 / + - col1 AS col2, + + col0 FROM tab0 AS cor0
----
9 values hashing to 6c73ab94e281272b0b310505605e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - 96 + + + COUNT( * ) FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - 96 + + + COUNT ( * ) FROM tab2 AS cor0
----
-93

query I rowsort
SELECT + col1 + 19 FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT + 66 * - 40 AS col1 FROM tab1 AS cor0 WHERE - col2 <= - - 10
----
-2640
-2640
-2640

query I rowsort
SELECT DISTINCT + col2 + + + 71 * col0 AS col1 FROM tab0
----
1112
6187
6986

onlyif mysql # DIV for integer division: 
query I rowsort label-7528
SELECT col2 * + + col1 DIV - col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7528
SELECT col2 * + + col1 / - col1 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT + CAST( + ( - 76 ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

skipif mysql # not compatible
query I rowsort label-7529
SELECT + CAST ( + ( - 76 ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT 53 * - 8 FROM tab1
----
-424
-424
-424

query I rowsort
SELECT ALL - col0 * 64 FROM tab1 AS cor0
----
-3264
-5440
-5824

query I rowsort
SELECT ALL + - 77 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT - - 3 - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT - - 3 - + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7534
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2, col1 * + col0 * + 42 * - 95, 45 * 74 / - col2 )
----
0
0

skipif mysql # not compatible
query II rowsort label-7534
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2, col1 * + col0 * + 42 * - 95, 45 * 74 / - col2 )
----
0
0

query I rowsort
SELECT DISTINCT + col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT 95 + 13 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 - - col2 * + - col1 - - col1 FROM tab0
----
-197
-199
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT - - MIN( col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - - MIN ( col1 ) AS col1 FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE - col1 BETWEEN - 68 AND - col2
----
2

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - col1 BETWEEN - 68 AND - col2
----
2

query I rowsort
SELECT col1 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 28 = NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + 30 AS col0 FROM tab2 AS cor0
----
-1200
-1740
-690

query I rowsort
SELECT ALL + 9 * - col0 FROM tab1 AS cor0
----
-459
-765
-819

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IS NULL OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 93 AS col1, + 25 AS col1 FROM tab0
----
-93
25
-93
25
-93
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7544
SELECT + col0 / - 60 * - col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT + col0 / - 60 * - col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + - 46 ) AS col0 FROM tab0
----
-46

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7547
SELECT + col0 AS col0, col1 DIV + 61 AS col0 FROM tab0
----
15
1
87
0
97
0

skipif mysql # not compatible
query II rowsort label-7547
SELECT + col0 AS col0, col1 / + 61 AS col0 FROM tab0
----
15
1
87
0
97
0

query II rowsort
SELECT + - col2 + + col1 - col0 * 25, col0 FROM tab1 cor0
----
-1357
51
-2179
85
-2296
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
-9

query I rowsort
SELECT DISTINCT + - 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT + + SUM( ALL - - col1 ) AS col2 FROM tab2 AS cor0 WHERE 10 NOT IN ( - 57 * col0 * + + col1, col1 )
----
195

skipif mysql # not compatible
query I rowsort label-7551
SELECT + + SUM ( ALL - - col1 ) AS col2 FROM tab2 AS cor0 WHERE 10 NOT IN ( - 57 * col0 * + + col1, col1 )
----
195

query I rowsort
SELECT col1 * + col0 / + col1 + + + col2 / + col1 AS col0 FROM tab0 AS cor0 WHERE NULL = + col0 - - + col1
----

query I rowsort
SELECT DISTINCT - + 55 * - col1 * + col2 FROM tab2 AS cor0
----
169400
213730
64515

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 50, + col1 col1 FROM tab0
----
-50
1
-50
21
-50
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7557
SELECT ALL + 56 DIV COUNT( * ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL + 56 / COUNT ( * ) AS col0 FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT 13 + + MIN( ( + col2 ) ) AS col2 FROM tab2 WHERE - 26 < - col1 * + col1 + - ( - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT 13 + + MIN ( ( + col2 ) ) AS col2 FROM tab2 WHERE - 26 < - col1 * + col1 + - ( - 7 )
----
NULL

query II rowsort
SELECT col2, - col2 + - - ( + col2 ) * - ( - col1 ) FROM tab0
----
10
200
47
3760
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT SUM( - col0 ) * ( 70 ) + - 36 FROM tab0 AS cor0
----
-13966

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT SUM ( - col0 ) * ( 70 ) + - 36 FROM tab0 AS cor0
----
-13966

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * - col2 BETWEEN NULL AND - col1
----

query II rowsort
SELECT col1 AS col1, + col2 * col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col0 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT + col0 * + col1 + + - 18 FROM tab0 WHERE ( + col2 IS NULL )
----

query II rowsort
SELECT col1 + 13 AS col0, - col1 FROM tab2
----
64
-51
80
-67
90
-77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + 87 FROM tab0
----
-4089
-8613
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7568
SELECT ALL CAST( NULL AS SIGNED ) / - + COUNT( DISTINCT - + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL CAST ( NULL AS INTEGER ) / - + COUNT ( DISTINCT - + col0 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - COUNT( * ) + + MIN( col1 ) FROM tab0 WHERE NOT + + col0 > col0
----
-2

skipif mysql # not compatible
query I rowsort label-7569
SELECT - COUNT ( * ) + + MIN ( col1 ) FROM tab0 WHERE NOT + + col0 > col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT SUM( ( - col0 ) ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7570
SELECT SUM ( ( - col0 ) ) FROM tab2 cor0
----
-185

query I rowsort
SELECT DISTINCT - - col2 + 29 FROM tab2 AS cor0
----
52
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 47 FROM tab0
----
-1
47
-21
47
-81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT ALL - 11 + + - col2 DIV - 1 FROM tab1
----
48
57
85

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL - 11 + + - col2 / - 1 FROM tab1
----
48
57
85

query I rowsort
SELECT + col0 + - 50 AS col0 FROM tab0
----
-35
37
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7575
SELECT - + 36 AS col1, + ( + MAX( + 20 ) ) + - 71 * + 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-36
-1400

skipif mysql # not compatible
query II rowsort label-7575
SELECT - + 36 AS col1, + ( + MAX ( + 20 ) ) + - 71 * + 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-36
-1400

query I rowsort
SELECT + + 11 + col1 FROM tab1 AS cor0
----
16
25
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT ALL + CAST( - + col0 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + CAST ( - + col0 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND 41 * + 48 + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7579
SELECT ALL + + COUNT( * ), + 0 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7579
SELECT ALL + + COUNT ( * ), + 0 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0
0

query II rowsort
SELECT DISTINCT - ( + 93 ) * - col0 + + 62 AS col0, - 27 AS col2 FROM tab1 AS cor0
----
4805
-27
7967
-27
8525
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7581
SELECT DISTINCT - COUNT( DISTINCT + col1 ) + - - 77 * - 21 DIV + COUNT( * ) col0 FROM tab0 cor0
----
-542

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7581
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) + - - 77 * - 21 / + COUNT ( * ) col0 FROM tab0 cor0
----
-542

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 35 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL + ( + 90 ) - - SUM( + col0 ) AS col2 FROM tab2
----
275

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + ( + 90 ) - - SUM ( + col0 ) AS col2 FROM tab2
----
275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT DISTINCT col2 * col2 - - + 81 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT col2 * col2 - - + 81 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT + COUNT( DISTINCT + col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT + COUNT ( DISTINCT + col2 ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL col1 + 15 FROM tab2
----
66
82
92

query I rowsort
SELECT DISTINCT 74 - - + 98 FROM tab1
----
172

query I rowsort
SELECT DISTINCT col2 * ( - - 93 ) - 20 + + 75 FROM tab0
----
4426
9262
985

query III rowsort
SELECT * FROM tab1 WHERE - col1 + + col2 > NULL
----

query I rowsort
SELECT ALL col0 * + 96 FROM tab2
----
4416
6144
7200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7591
SELECT 76 - - 27 AS col2, + col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
103
NULL
103
NULL
103
NULL

skipif mysql # not compatible
query II rowsort label-7591
SELECT 76 - - 27 AS col2, + col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
103
NULL
103
NULL
103
NULL

query I rowsort
SELECT - col0 * - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( + 95 ) - + col1 - + - 85 col0, + 0 FROM tab2 AS cor0
----
103
0
113
0
129
0

query II rowsort
SELECT ALL col1 AS col1, - ( + - 77 ) - + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
63
47
30
5
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7595
SELECT + 92 / CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-7595
SELECT + 92 / CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
NULL
-3

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT col1 * + + col0 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 + col2 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 78 ) col1 FROM tab1
----
78

query I rowsort
SELECT + 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - col1 + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-28
-37
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7601
SELECT ALL + + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL + + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT MIN( ALL + 93 ) col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7602
SELECT MIN ( ALL + 93 ) col2 FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT 2 * 30 + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 15 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7603
SELECT 2 * 30 + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 15 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT - + CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7604
SELECT - + CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN + - col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT + SUM( - - col1 ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7606
SELECT + SUM ( - - col1 ) col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7607
SELECT CAST( NULL AS SIGNED ) AS col0, - 24 AS col1 FROM tab0
----
NULL
-24
NULL
-24
NULL
-24

skipif mysql # not compatible
query II rowsort label-7607
SELECT CAST ( NULL AS INTEGER ) AS col0, - 24 AS col1 FROM tab0
----
NULL
-24
NULL
-24
NULL
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT 79, - COUNT( * ) col0 FROM tab0
----
79
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7608
SELECT 79, - COUNT ( * ) col0 FROM tab0
----
79
-3

query I rowsort
SELECT ALL + 99 * 65 FROM tab0
----
6435
6435
6435

query I rowsort
SELECT 67 * - 76 FROM tab2
----
-5092
-5092
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT DISTINCT COUNT( * ) * 47 AS col0 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT COUNT ( * ) * 47 AS col0 FROM tab2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT ALL - 73 DIV ( + 46 ) AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - 73 / ( + 46 ) AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT DISTINCT - ( CAST( 10 AS SIGNED ) ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-7613
SELECT DISTINCT - ( CAST ( 10 AS INTEGER ) ) FROM tab1
----
-10

query II rowsort
SELECT ALL - - 11 AS col0, 85 FROM tab2 AS cor0
----
11
85
11
85
11
85

query I rowsort
SELECT 6 + + 40 AS col2 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL - col0 * - col1 + - 75 + - col1 FROM tab0 cor0
----
1059
1731
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT ALL + + col2 DIV + ( + - col0 ) + - 99 + col1 * col0 * - 68 AS col0 FROM tab1 AS cor0
----
-28999
-290935
-48652

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + + col2 / + ( + - col0 ) + - 99 + col1 * col0 * - 68 AS col0 FROM tab1 AS cor0
----
-28999
-290935
-48652

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 * col2 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 9 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT COUNT( ALL - col0 ), + MAX( - + col2 ) AS col2 FROM tab1 AS cor0
----
3
-59

skipif mysql # not compatible
query II rowsort label-7620
SELECT COUNT ( ALL - col0 ), + MAX ( - + col2 ) AS col2 FROM tab1 AS cor0
----
3
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7621
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 col1 FROM tab2 cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT - + 85 * - + 99 FROM tab0 cor0
----
8415
8415
8415

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= col0 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 - - col1 col0 FROM tab0 AS cor0
----
-16
-36
44

query III rowsort
SELECT * FROM tab1 WHERE - - col2 = - - col1
----

query I rowsort
SELECT ALL 22 + - col2 FROM tab2
----
-1
-18
-36

query I rowsort
SELECT ALL col0 * - ( + col0 ) * + - col1 AS col0 FROM tab0
----
158949
18225
9409

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT ALL + 63 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col1 > - 36 + col0 * - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 < ( col0 / col2 + 33 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 9 + col1 * col2 AS col2 FROM tab1
----
1353
304
3205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 WHERE ( NULL ) < col1 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7637
SELECT ALL col2 * - col2 - col2 DIV col2 AS col2 FROM tab1
----
-3482
-4625
-9217

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL col2 * - col2 - col2 / col2 AS col2 FROM tab1
----
-3482
-4625
-9217

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT - COUNT( + col1 ) * + COUNT( * ) FROM tab0 WHERE NOT + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7638
SELECT - COUNT ( + col1 ) * + COUNT ( * ) FROM tab0 WHERE NOT + col1 >= NULL
----
0

query I rowsort
SELECT 22 + - 87 FROM tab0
----
-65
-65
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7640
SELECT DISTINCT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 52 + - col0 BETWEEN ( + col2 / col1 ) AND ( + col2 * col0 + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col2 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7643
SELECT * FROM tab0 WHERE col2 / + CAST( NULL AS SIGNED ) - - col0 NOT BETWEEN ( NULL ) AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-7643
SELECT * FROM tab0 WHERE col2 / + CAST ( NULL AS INTEGER ) - - col0 NOT BETWEEN ( NULL ) AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT + COUNT( * ) + + 29 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-7644
SELECT + COUNT ( * ) + + 29 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL MIN( ALL + 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL MIN ( ALL + 74 ) FROM tab1
----
74

query I rowsort
SELECT 95 - 74 AS col0 FROM tab1 WHERE NULL IS NULL
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE NOT - 68 IS NOT NULL
----

query I rowsort
SELECT + col2 - col0 FROM tab0 WHERE NULL IS NULL
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT MIN( ALL - col0 ) * + 3 AS col0 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-7649
SELECT MIN ( ALL - col0 ) * + 3 AS col0 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT MAX( + col0 ) * - 15 - + 32 FROM tab2
----
-1157

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT MAX ( + col0 ) * - 15 - + 32 FROM tab2
----
-1157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE 9 >= + col0 + - col2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * col0 col1 FROM tab0
----
1035
6003
6693

query I rowsort
SELECT 81 * 95 AS col0 FROM tab1
----
7695
7695
7695

query I rowsort
SELECT DISTINCT col1 + ( + col2 ) * col1 AS col1 FROM tab2
----
1224
3157
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - 3 * col0 col1 FROM tab1
----
3226
4351
9063

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / - col0 IS NULL
----

query I rowsort
SELECT ALL - 22 * col1 + + 75 AS col2 FROM tab0 AS cor0
----
-1707
-387
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL MAX( ALL 8 ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL MAX ( ALL 8 ) AS col1 FROM tab0
----
8

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE col1 * col1 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE 16 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT ALL + col0 DIV + col0 + col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + col0 / + col0 + col0 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT ALL AVG ( + ( col2 ) ) AS col2 FROM tab2 cor0 WHERE NOT - col1 / 14 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - col0 + + 13 AS col2 FROM tab0 AS cor0
----
-2
-74
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col0 FROM tab1 cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 cor0 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT + 59 + - col2 * + col1 FROM tab0 AS cor0
----
-151
-3748
-40

query I rowsort
SELECT ALL col2 + 61 AS col0 FROM tab2 AS cor0 WHERE + col1 + 4 >= 15 + 81
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT ALL - col2 + + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL - col2 + + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-22
-39
-57

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * 60 FROM tab0 WHERE ( - col0 ) NOT BETWEEN + 26 + + 63 AND + 11
----
-2820
-5940
-600

query I rowsort
SELECT DISTINCT 3 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 24 * - col1 >= col2 * 39 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL + - ( + + MAX( DISTINCT 5 ) ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL + - ( + + MAX ( DISTINCT 5 ) ) AS col2 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT NULL = col2 + + 55 / - 56
----

query I rowsort
SELECT DISTINCT - col1 * - 19 * 11 FROM tab0 AS cor0
----
16929
209
4389

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * + 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7679
SELECT - CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) + 2 col0 FROM tab2
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7679
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + 2 col0 FROM tab2
----
-7

query I rowsort
SELECT ALL - + 3 AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7681
SELECT - SUM( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT - SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 17 col1 FROM tab2 cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 66 * + col2 + col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col0 + + - col1 * - col1
----

query I rowsort
SELECT DISTINCT col1 * - col1 + - 21 FROM tab2 AS cor0
----
-2622
-4510
-5950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7687
SELECT ALL - ( - + col1 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - ( - + col1 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7689
SELECT * FROM tab1 AS cor0 WHERE ( col1 + - - col0 - + col2 ) NOT IN ( - col1 * + CAST( col1 AS SIGNED ) + col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7689
SELECT * FROM tab1 AS cor0 WHERE ( col1 + - - col0 - + col2 ) NOT IN ( - col1 * + CAST ( col1 AS INTEGER ) + col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT IN ( + - col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + col2 * + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 26 + + - col2 FROM tab0
----
-21
-73
16

query I rowsort
SELECT ALL + 72 * + + 0 + ( col2 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-7694
SELECT DISTINCT col1 DIV + + col2 AS col1, + col2 FROM tab2
----
1
40
1
58
2
23

skipif mysql # not compatible
query II rowsort label-7694
SELECT DISTINCT col1 / + + col2 AS col1, + col2 FROM tab2
----
1
40
1
58
2
23

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE 34 * + 13 > - col0 + + col1
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * 0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT - col2 + + - 88 + - + col2 + + col2 DIV - col2 FROM tab2 AS cor0
----
-135
-169
-205

skipif mysql # not compatible
query I rowsort label-7698
SELECT - col2 + + - 88 + - + col2 + + col2 / - col2 FROM tab2 AS cor0
----
-135
-169
-205

query I rowsort
SELECT + col2 + col1 * - 28 * 18 AS col1 FROM tab1 AS cor0
----
-23620
-2461
-6960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7700
SELECT - + CAST( - COUNT( * ) AS SIGNED ) + + SUM( - col1 ) AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7700
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) + + SUM ( - col1 ) AS col2 FROM tab1 AS cor0
----
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= - + col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 17 + - col0 FROM tab2 AS cor0
----
-63
-81
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 86 col0, 31 FROM tab0
----
86
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT - 84 * MIN( + 37 ) FROM tab1
----
-3108

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT - 84 * MIN ( + 37 ) FROM tab1
----
-3108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT - 45 - - CAST( NULL AS SIGNED ) + - 65 - col2 - col2 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT - 45 - - CAST ( NULL AS INTEGER ) + - 65 - col2 - col2 * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 89 * col1 - + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
186
3696
8424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT ALL + 41 * - CAST( - col0 AS SIGNED ) + + 68 AS col0 FROM tab2 AS cor0
----
1954
2692
3143

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL + 41 * - CAST ( - col0 AS INTEGER ) + + 68 AS col0 FROM tab2 AS cor0
----
1954
2692
3143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col2 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7709
SELECT ALL 1 DIV - COUNT( * ) * + MAX( + 14 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL 1 / - COUNT ( * ) * + MAX ( + 14 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 42
----

query I rowsort
SELECT 57 * + 68 FROM tab0 AS cor0
----
3876
3876
3876

query I rowsort
SELECT ALL col1 * 84 FROM tab1 cor0
----
1176
3948
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT + col2 + + CAST( 91 AS SIGNED ) + + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
235
238
250

skipif mysql # not compatible
query I rowsort label-7713
SELECT + col2 + + CAST ( 91 AS INTEGER ) + + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
235
238
250

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT DISTINCT - 72 DIV + 78 * - 80 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT - 72 / + 78 * - 80 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 17 * - - col1 AS col1 FROM tab1 AS cor0
----
238
799
85

query I rowsort
SELECT + col0 * + - 32 + - col2 + - - 97 AS col2 FROM tab0 AS cor0
----
-2697
-3106
-430

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7717
SELECT + col1 AS col0, - col1 AS col0, + - CAST( - - 61 AS SIGNED ) + + - 0 * + - col2 FROM tab0
----
9 values hashing to 8fc17c0a8b75ada8498288668171a4b1

skipif mysql # not compatible
query III rowsort label-7717
SELECT + col1 AS col0, - col1 AS col0, + - CAST ( - - 61 AS INTEGER ) + + - 0 * + - col2 FROM tab0
----
9 values hashing to 8fc17c0a8b75ada8498288668171a4b1

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col1, + ( + - 41 ) * + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL + COUNT( * ) * - 88 - 88 FROM tab1 WHERE ( NULL ) > 44
----
-88

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL + COUNT ( * ) * - 88 - 88 FROM tab1 WHERE ( NULL ) > 44
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 48 * 5 NOT IN ( - - col0 * + + 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col1 * - col1, + col2 FROM tab2
----
2601
23
4489
58
5929
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7722
SELECT + 28, - CAST( NULL AS SIGNED ) * AVG ( + col0 ) / + + COUNT( - col0 ) * 65 - COUNT( * ) AS col2 FROM tab1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7722
SELECT + 28, - CAST ( NULL AS INTEGER ) * AVG ( + col0 ) / + + COUNT ( - col0 ) * 65 - COUNT ( * ) AS col2 FROM tab1
----
28
NULL

query II rowsort
SELECT - col1 AS col1, + ( - col2 ) + + ( col1 ) + + - 30 - col0 AS col1 FROM tab2
----
-51
-48
-67
-96
-77
-57

query II rowsort
SELECT + col0 AS col1, - 1 FROM tab0 AS cor0
----
15
-1
87
-1
97
-1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
88

query I rowsort
SELECT - + 12 / col0 AS col1 FROM tab0 WHERE NOT - + col2 * + col0 + 18 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT - COUNT( * ) * - 78 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-7729
SELECT - COUNT ( * ) * - 78 FROM tab2
----
234

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7730
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - - col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT + CAST ( NULL AS REAL ) / - - col0 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7731
SELECT ( - + COUNT( * ) ) col0, + ( + - ( ( + + 36 ) ) ) AS col0 FROM tab2 AS cor0
----
-3
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7731
SELECT ( - + COUNT ( * ) ) col0, + ( + - ( ( + + 36 ) ) ) AS col0 FROM tab2 AS cor0
----
-3
-36

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 * col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 74 FROM tab1 AS cor0 WHERE NULL IN ( + col2, 84 )
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + - ( + - 20 ) FROM tab2 cor0
----
20

query I rowsort
SELECT col0 * - + col1 + 53 FROM tab2
----
-2293
-4875
-4972

query I rowsort
SELECT ALL - ( - col0 ) + - 47 AS col2 FROM tab1
----
38
4
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7738
SELECT ALL ( + CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7738
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col1, - col0 + ( - + col2 ) + + - col2 FROM tab1
----
59
-203
68
-227
96
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - 48 * COUNT( * ) * + - 64 AS col2 FROM tab2
----
9216

skipif mysql # not compatible
query I rowsort label-7740
SELECT - 48 * COUNT ( * ) * + - 64 AS col2 FROM tab2
----
9216

query I rowsort
SELECT DISTINCT - 38 + col2 AS col2 FROM tab0 AS cor0
----
-28
61
9

query I rowsort
SELECT 34 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT MIN( DISTINCT + 5 ) + 46 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT MIN ( DISTINCT + 5 ) + 46 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL - + COUNT( * ) + 85 AS col0 FROM tab1 cor0
----
82

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - + COUNT ( * ) + 85 AS col0 FROM tab1 cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT - COUNT( col1 ) - - + SUM( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7746
SELECT - COUNT ( col1 ) - - + SUM ( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7747
SELECT DISTINCT col1 * col0 - col2 AS col1 FROM tab2 WHERE ( col0 / - - ( - ( + - 12 ) ) * - 16 - - ( - col2 ) ) BETWEEN col0 + + col1 AND - CAST( col1 AS DECIMAL ) * - 61
----

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT col1 * col0 - col2 AS col1 FROM tab2 WHERE ( col0 / - - ( - ( + - 12 ) ) * - 16 - - ( - col2 ) ) BETWEEN col0 + + col1 AND - CAST ( col1 AS REAL ) * - 61
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT DISTINCT 54 + + col2 DIV + 17 AS col1 FROM tab0
----
54
56
59

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT 54 + + col2 / + 17 AS col1 FROM tab0
----
54
56
59

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
70

query IIIIII rowsort
SELECT ALL * FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT ALL - ( - 73 ) AS col1, + COUNT( * ) FROM tab1 WHERE NOT NULL > - + col2
----
73
0

skipif mysql # not compatible
query II rowsort label-7751
SELECT ALL - ( - 73 ) AS col1, + COUNT ( * ) FROM tab1 WHERE NOT NULL > - + col2
----
73
0

query I rowsort
SELECT DISTINCT + col1 - 60 FROM tab1
----
-13
-46
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7753
SELECT * FROM tab1 WHERE ( + + col0 * + CAST( NULL AS SIGNED ) * + ( + + CAST( NULL AS SIGNED ) ) ) NOT BETWEEN col0 + - col2 AND + + col0
----

skipif mysql # not compatible
query III rowsort label-7753
SELECT * FROM tab1 WHERE ( + + col0 * + CAST ( NULL AS INTEGER ) * + ( + + CAST ( NULL AS INTEGER ) ) ) NOT BETWEEN col0 + - col2 AND + + col0
----

query I rowsort
SELECT ALL - 83 * - - 73 FROM tab1
----
-6059
-6059
-6059

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 * + + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL + + COUNT( * ) * - COUNT( * ) * + MIN( DISTINCT - + col1 ) - SUM( ALL - 88 ) AS col2 FROM tab1 cor0
----
687

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) * + MIN ( DISTINCT - + col1 ) - SUM ( ALL - 88 ) AS col2 FROM tab1 cor0
----
687

query I rowsort
SELECT + - col1 * - 67 FROM tab0 AS cor0 WHERE NOT 37 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT MIN( - 97 ) * COUNT( * ) + - - COUNT( ALL - 25 ) - + COUNT( * ) + - COUNT( * ) - 53 FROM tab0 AS cor0
----
-347

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT MIN ( - 97 ) * COUNT ( * ) + - - COUNT ( ALL - 25 ) - + COUNT ( * ) + - COUNT ( * ) - 53 FROM tab0 AS cor0
----
-347

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT ALL 95 * col2 DIV col2 FROM tab1 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL 95 * col2 / col2 FROM tab1 AS cor0
----
95
95
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7761
SELECT + COUNT( * ) DIV SUM( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7761
SELECT + COUNT ( * ) / SUM ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( + - 32 ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + 23 ) NOT IN ( col2 * + col2 + col0 )
----

query I rowsort
SELECT + + 0 * - col0 + - 7 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 58 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT DISTINCT - MIN( DISTINCT + col2 ) DIV - 45 * - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - MIN ( DISTINCT + col2 ) / - 45 * - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - MIN( ALL + + 28 ) col0 FROM tab1
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7767
SELECT - MIN ( ALL + + 28 ) col0 FROM tab1
----
-28

query I rowsort
SELECT DISTINCT - 34 * - + col2 AS col2 FROM tab1
----
2006
2312
3264

query I rowsort
SELECT ( - 24 ) FROM tab1
----
-24
-24
-24

query I rowsort
SELECT - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT + + ( + 98 ) FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT col0 * + col0 - - col1 AS col2 FROM tab0 AS cor0
----
306
7590
9410

query I rowsort
SELECT - ( col0 ) + + col1 * + - col2 * - col0 * + ( - 50 ) AS col0 FROM tab2
----
-14572575
-2697946
-9856064

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT COUNT( * ) + + 97 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-7774
SELECT COUNT ( * ) + + 97 FROM tab1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7775
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - CAST( + - col0 AS SIGNED ) NOT BETWEEN - + col2 AND ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7775
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - CAST ( + - col0 AS INTEGER ) NOT BETWEEN - + col2 AND ( - + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT 39, col0 FROM tab0 AS cor0
----
39
15
39
87
39
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - ( + - col1 ) + col1 AS col2 FROM tab1 AS cor0
----
10
28
94

query II rowsort
SELECT - + ( + - col2 ) AS col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT + - col1 AS col0, col2, col0 FROM tab0 AS cor0
----
9 values hashing to 3ff31b851fa4459683973307f3f4ef7b

query I rowsort
SELECT - col1 * - col0 * col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE 15 IS NULL
----

query I rowsort
SELECT ALL col1 + + col1 * - col0 - - col1 AS col1 FROM tab2
----
-2244
-4774
-4891

query I rowsort
SELECT + col2 + + ( - col2 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT MAX( - ( - col1 ) ) - + ( + 2 ) + COUNT( * ) * + 99 FROM tab1
----
342

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT MAX ( - ( - col1 ) ) - + ( + 2 ) + COUNT ( * ) * + 99 FROM tab1
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT - MAX( ALL 21 ) + - ( 45 ) col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7786
SELECT - MAX ( ALL 21 ) + - ( 45 ) col2 FROM tab2 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7788
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) * + + col1 NOT IN ( + 79 + col1, - col2 )
----

skipif mysql # not compatible
query III rowsort label-7788
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) * + + col1 NOT IN ( + 79 + col1, - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7789
SELECT - 22 * - 77, - COUNT( DISTINCT 45 ) AS col1 FROM tab1 AS cor0
----
1694
-1

skipif mysql # not compatible
query II rowsort label-7789
SELECT - 22 * - 77, - COUNT ( DISTINCT 45 ) AS col1 FROM tab1 AS cor0
----
1694
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, ( - col1 ) FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT + col1, + col0 + + col0 + ( - ( + col0 ) ) + + col0 FROM tab0 AS cor0
----
1
194
21
174
81
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( + + 54 ) * - + col2 / - 91 / 42, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT + + COUNT( + + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7793
SELECT + + COUNT ( + + col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 * + 23 + - + col1 AS col2 FROM tab0 AS cor0
----
1000
209
2276

query I rowsort
SELECT DISTINCT col2 * 0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL - 50 AS col0, 49 * - col0 * + col2 FROM tab1 AS cor0
----
-50
-239904
-50
-245735
-50
-303212

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-3

query I rowsort
SELECT - + 18 * - + 59 * + col0 * - col1 FROM tab0 cor0
----
-103014
-1290330
-1940274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT CAST( NULL AS SIGNED ) / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT CAST ( NULL AS INTEGER ) / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 0 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 93 / - col1 * + - col1 <> + + col2
----

query I rowsort
SELECT ALL 37 * - 81 AS col0 FROM tab1
----
-2997
-2997
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT - COUNT( * ) * SUM( ALL col2 ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - COUNT ( * ) * SUM ( ALL col2 ) FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL - COUNT( - - col1 ) * + 67 AS col1 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - COUNT ( - - col1 ) * + 67 AS col1 FROM tab2
----
-201

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - col2 BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT ALL col1 * 46 FROM tab2
----
2346
3082
3542

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7808
SELECT - col1 DIV CAST( col1 AS SIGNED ) DIV - col0 * - col1 * 1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7808
SELECT - col1 / CAST ( col1 AS INTEGER ) / - col0 * - col1 * 1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + 5 FROM tab0 AS cor0
----
104
15
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL + COUNT( * ) - - 22 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7810
SELECT ALL + COUNT ( * ) - - 22 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT COUNT( + - CAST( NULL AS SIGNED ) ) * 53 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7811
SELECT COUNT ( + - CAST ( NULL AS INTEGER ) ) * 53 AS col0 FROM tab2
----
0

query I rowsort
SELECT + - col1 + 12 AS col2 FROM tab2 AS cor0
----
-39
-55
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - - 35 * + 20 + - 46 * + MIN( DISTINCT - 43 ) * 56 AS col1 FROM tab0 AS cor0
----
111468

skipif mysql # not compatible
query I rowsort label-7813
SELECT - - 35 * + 20 + - 46 * + MIN ( DISTINCT - 43 ) * 56 AS col1 FROM tab0 AS cor0
----
111468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7814
SELECT - COUNT( * ) * - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT - COUNT ( * ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 62 + - - col1 FROM tab2 cor0
----
113
129
139

query I rowsort
SELECT DISTINCT - 74 + 16 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE 71 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT - 20 + + COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT - 20 + + COUNT ( * ) FROM tab1 AS cor0
----
-17

query I rowsort
SELECT - + col1 + - - ( col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
1007
2483
4283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT ALL + + ( col1 ) + - col1 + + + CAST( col2 AS SIGNED ) * - + col0 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL + + ( col1 ) + - col1 + + + CAST ( col2 AS INTEGER ) * - + col0 FROM tab2 cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL col1 - - col2 AS col2 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT DISTINCT - 67 + + 58 + + 3 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT col1 + - - 29 * - col0 FROM tab0 WHERE + col1 - + + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT COUNT( * ) - 37 AS col1 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT COUNT ( * ) - 37 AS col1 FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT MAX( DISTINCT + + col2 ), ( - MIN( 15 ) ) AS col2 FROM tab1
----
96
-15

skipif mysql # not compatible
query II rowsort label-7825
SELECT MAX ( DISTINCT + + col2 ), ( - MIN ( 15 ) ) AS col2 FROM tab1
----
96
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ALL COUNT( * ) - - 17 AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-7826
SELECT ALL COUNT ( * ) - - 17 AS col1 FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + ( - + SUM( DISTINCT col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7827
SELECT + ( - + SUM ( DISTINCT col1 ) ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT DISTINCT - MAX( DISTINCT - 85 ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT - MAX ( DISTINCT - 85 ) AS col0 FROM tab1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT CAST( + + col1 AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7829
SELECT CAST ( + + col1 AS INTEGER ) AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 26 * - - col1 < + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7831
SELECT + col2 / + + col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT + col2 / + + col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - + 68 - - col0 * ( - 33 ) * 25 * 72 AS col0, - 79 AS col0 FROM tab0 AS cor0
----
-5167868
-79
-5761868
-79
-891068
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7833
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 72 + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL + MIN( 48 ) col2 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7836
SELECT ALL + MIN ( 48 ) col2 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7837
SELECT - - 41 * - - 79 AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3239
-3

skipif mysql # not compatible
query II rowsort label-7837
SELECT - - 41 * - - 79 AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3239
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT - - ( 3 ) DIV 91 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7838
SELECT - - ( 3 ) / 91 col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col0 * 13 * - - 18 AS col1, col0 FROM tab0
----
20358
87
22698
97
3510
15

query I rowsort
SELECT ALL - 51 * + + 35 FROM tab2
----
-1785
-1785
-1785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7841
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab0 WHERE - 13 IS NOT NULL
----
19

query II rowsort
SELECT 12 AS col0, col0 AS col1 FROM tab1
----
12
51
12
85
12
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( ( ( + col1 ) <> NULL ) ) )
----

query I rowsort
SELECT ALL col0 + - col1 + - + col2 + + col2 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - col2 + 58 AS col1 FROM tab1 AS cor0
----
-1
-10
-38

query I rowsort
SELECT ALL + col0 * col1 * - 26 FROM tab2
----
-128128
-130650
-60996

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - col2 * - col2 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT + + MIN( ALL col0 ) + - 90 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + + MIN ( ALL col0 ) + - 90 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT DISTINCT - 52 + - 9 + - COUNT( * ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT - 52 + - 9 + - COUNT ( * ) FROM tab0 AS cor0
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-7851
SELECT + - col1 - - col1 + - + col2 DIV + col0 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
-1
96
0
59
0
68

skipif mysql # not compatible
query II rowsort label-7851
SELECT + - col1 - - col1 + - + col2 / + col0 AS col2, + col2 AS col1 FROM tab1 AS cor0
----
-1
96
0
59
0
68

query II rowsort
SELECT ALL + col1 + 79 AS col0, 72 + - col2 FROM tab2 AS cor0
----
130
49
146
14
156
32

query I rowsort
SELECT DISTINCT - col1 - - 25 AS col2 FROM tab1
----
-22
11
20

query I rowsort
SELECT ALL 40 + col0 FROM tab2
----
104
115
86

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - - 62 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 35 * + col1 AS col2 FROM tab1 AS cor0
----
1645
175
490

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 22 / - - col1 IS NULL
----

query I rowsort
SELECT + ( - + col1 ) * - 92 * - col0 AS col2 FROM tab0 AS cor0
----
-111780
-168084
-8924

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT + + 38 DIV + - col1 AS col0 FROM tab1 AS cor0
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT + + 38 / + - col1 AS col0 FROM tab1 AS cor0
----
-2
-7
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT ALL + col1 DIV + - ( + 44 ) + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + col1 / + - ( + 44 ) + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-2
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT DISTINCT 38 DIV + + 80 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT 38 / + + 80 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT DISTINCT col1 DIV - - ( - col0 ) FROM tab0
----
-5
0

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT col1 / - - ( - col0 ) FROM tab0
----
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7865
SELECT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT + col1, + 91 + - col0 FROM tab1
----
14
40
47
0
5
6

query I rowsort
SELECT - + 92 AS col0 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL 18 * - ( col0 ) FROM tab1 AS cor0
----
-1530
-1638
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT MAX( DISTINCT + + 49 ) AS col1 FROM tab1 cor0
----
49

skipif mysql # not compatible
query I rowsort label-7869
SELECT MAX ( DISTINCT + + 49 ) AS col1 FROM tab1 cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT DISTINCT - COUNT( * ) + + - 64 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-67

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT - COUNT ( * ) + + - 64 AS col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-7871
SELECT + col2 AS col1, col2 DIV + - col2 AS col1 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-7871
SELECT + col2 AS col1, col2 / + - col2 AS col1 FROM tab0 AS cor0
----
10
-1
47
-1
99
-1

query I rowsort
SELECT DISTINCT + col2 + 4 + + col0 FROM tab2 cor0
----
108
137
73

query I rowsort
SELECT ALL 85 FROM tab1 WHERE NOT + col2 = + ( - 87 )
----
85
85
85

query II rowsort
SELECT col1 + - - col2 AS col0, - 57 FROM tab2
----
117
-57
125
-57
74
-57

query III rowsort
SELECT * FROM tab2 WHERE NOT - 30 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 = ( - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE - col2 * - 26 + + - 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT DISTINCT + + 29 + + ( 32 ) FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + - 97 * col2 + - col1 * - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT + + 29 + + ( 32 ) FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + - 97 * col2 + - col1 * - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT DISTINCT + col1 + - ( - - col2 ) + + col0 DIV - - 1 + - - 29 AS col2 FROM tab0 AS cor0
----
127
28
78

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + col1 + - ( - - col2 ) + + col0 / - - 1 + - - 29 AS col2 FROM tab0 AS cor0
----
127
28
78

query I rowsort
SELECT - - 20 - + 54 FROM tab0 WHERE + col0 IS NOT NULL
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT + col1 + - CAST( 50 AS SIGNED ) FROM tab2 AS cor0
----
1
17
27

skipif mysql # not compatible
query I rowsort label-7881
SELECT + col1 + - CAST ( 50 AS INTEGER ) FROM tab2 AS cor0
----
1
17
27

query I rowsort
SELECT DISTINCT - ( 41 ) FROM tab1 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7883
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 60 * + col1 * + col2 * - col0 * + CAST( NULL AS SIGNED ) * + 2 * 32 + + col1
----

skipif mysql # not compatible
query III rowsort label-7883
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 60 * + col1 * + col2 * - col0 * + CAST ( NULL AS INTEGER ) * + 2 * 32 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT DISTINCT - - COUNT( * ) * + + 89 col0 FROM tab2 cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7884
SELECT DISTINCT - - COUNT ( * ) * + + 89 col0 FROM tab2 cor0
----
267

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 77 IS NULL
----

query I rowsort
SELECT ALL - 0 * 15 * + + col1 + + + col1 - col1 + col2 * - 37 FROM tab0
----
-1739
-3663
-370

query I rowsort
SELECT col0 * 53 - + 77 AS col1 FROM tab2
----
2361
3315
3898

query I rowsort
SELECT + col2 * col2 - + 21 AS col2 FROM tab0
----
2188
79
9780

query I rowsort
SELECT + 96 * ( - - 23 ) AS col2 FROM tab0
----
2208
2208
2208

query I rowsort
SELECT ALL + col0 * - col0 * - col0 AS col1 FROM tab0
----
3375
658503
912673

query I rowsort
SELECT ALL + - 66 * + + col1 FROM tab0 AS cor0
----
-1386
-5346
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL - MIN( ALL - col1 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - MIN ( ALL - col1 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < 78
----

query I rowsort
SELECT 53 * + + col2 + + - col0 + + col1 * col2 * + 49 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
160117
17497
70893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 47 col2 FROM tab0 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + COUNT( col2 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7897
SELECT + COUNT ( col2 ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT 85 + - col1 FROM tab0 AS cor0
----
4
64
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7899
SELECT - - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7899
SELECT - - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT DISTINCT + col1, - 90 AS col0 FROM tab2
----
51
-90
67
-90
77
-90

query I rowsort
SELECT 9 * - col0 * + - col1 AS col0 FROM tab1
----
3825
38493
6426

query II rowsort
SELECT DISTINCT - col2, col1 * + 59 AS col2 FROM tab1
----
-59
295
-68
2773
-96
826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col1 col1 FROM tab0
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 76 col0 FROM tab2
----
51
76
67
76
77
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7905
SELECT * FROM tab0 AS cor0 WHERE - col0 * - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7905
SELECT * FROM tab0 AS cor0 WHERE - col0 * - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 82 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7906
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 82 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 28 - col2 FROM tab0 AS cor0
----
-19
-71
18

query I rowsort
SELECT ALL - 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT + + col2 - + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-7909
SELECT + + col2 - + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT - col2 + 88 + - 90 FROM tab0 AS cor0
----
-101
-12
-49

query I rowsort
SELECT - + 97 - - - col1 AS col1 FROM tab2 AS cor0
----
-148
-164
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-7912
SELECT ALL - COUNT( * ) * + 75, 83 AS col2 FROM tab1 AS cor0
----
-225
83

skipif mysql # not compatible
query II rowsort label-7912
SELECT ALL - COUNT ( * ) * + 75, 83 AS col2 FROM tab1 AS cor0
----
-225
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT ALL 48 + + 25 * + COUNT( * ) * + + 68 AS col0 FROM tab2 AS cor0
----
5148

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL 48 + + 25 * + COUNT ( * ) * + + 68 AS col0 FROM tab2 AS cor0
----
5148

onlyif mysql # DIV for integer division: 
query I rowsort label-7914
SELECT col2 DIV - + 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT col2 / - + 86 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL col1, + 43 AS col2 FROM tab0
----
1
43
21
43
81
43

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 99 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7917
SELECT ALL col0, CAST( + 19 AS SIGNED ) + 54 FROM tab2
----
46
73
64
73
75
73

skipif mysql # not compatible
query II rowsort label-7917
SELECT ALL col0, CAST ( + 19 AS INTEGER ) + 54 FROM tab2
----
46
73
64
73
75
73

query I rowsort
SELECT ALL 32 * + 37 FROM tab1
----
1184
1184
1184

query I rowsort
SELECT ALL + 7 * 17 FROM tab1 AS cor0
----
119
119
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT SUM( ALL - col2 ) * + COUNT( - col2 ) * + MIN( - col0 ) FROM tab2 AS cor0
----
27225

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT SUM ( ALL - col2 ) * + COUNT ( - col2 ) * + MIN ( - col0 ) FROM tab2 AS cor0
----
27225

query I rowsort
SELECT + + col0 * - - col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL - + MIN( ALL + 51 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - + MIN ( ALL + 51 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT + 0 * - - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT + 0 * - - COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND col0 * - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT ALL COUNT( * ) * + COUNT( + col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL COUNT ( * ) * + COUNT ( + col1 ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT + COUNT( * ) * + 40 col2 FROM tab2
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7927
SELECT DISTINCT + COUNT ( * ) * + 40 col2 FROM tab2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT - col0 DIV col1 - + - 22 AS col2 FROM tab2 AS cor0
----
21
22
22

skipif mysql # not compatible
query I rowsort label-7928
SELECT - col0 / col1 - + - 22 AS col2 FROM tab2 AS cor0
----
21
22
22

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7930
SELECT - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 32 FROM tab0 AS cor0 WHERE NOT - col2 * + + 62 * 19 IS NULL
----
-32
-32
-32

query I rowsort
SELECT - 13 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13
-13
-13

query I rowsort
SELECT DISTINCT col2 - - col1 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
59
68
96

query I rowsort
SELECT + col0 * + col2 + 59 FROM tab1 AS cor0
----
4955
5074
6247

query I rowsort
SELECT ALL + col1 * + 94 AS col0 FROM tab1 AS cor0 WHERE 64 IS NOT NULL
----
1316
4418
470

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7936
SELECT ALL + CAST( NULL AS SIGNED ), col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7936
SELECT ALL + CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL 51 * + + 64 AS col0 FROM tab0
----
3264
3264
3264

query I rowsort
SELECT 78 + + col2 FROM tab2
----
101
118
136

onlyif mysql # aggregate syntax: 
query II rowsort label-7939
SELECT ALL COUNT( * ) AS col0, 72 AS col1 FROM tab2
----
3
72

skipif mysql # not compatible
query II rowsort label-7939
SELECT ALL COUNT ( * ) AS col0, 72 AS col1 FROM tab2
----
3
72

query I rowsort
SELECT DISTINCT + ( + 94 ) + - + col0 AS col0 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-3
7
79

query I rowsort
SELECT DISTINCT col0 + - + 38 FROM tab0
----
-23
49
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7942
SELECT 1 DIV - 63 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7942
SELECT 1 / - 63 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab1 WHERE ( NULL BETWEEN - col1 + col2 - ( 2 ) + + col2 * + ( ( - - col2 ) ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7944
SELECT DISTINCT - 48 DIV col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - 48 / col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + col0 * - col2 + 43 FROM tab0 AS cor0
----
-662
-827
-9560

onlyif mysql # DIV for integer division: 
query I rowsort label-7946
SELECT DISTINCT col2 * col2 + + col2 DIV ( col2 ) * + ( - col1 ) + - col1 * + col2 AS col0 FROM tab2
----
-1557
-589
-695

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT col2 * col2 + + col2 / ( col2 ) * + ( - col1 ) + - col1 * + col2 AS col0 FROM tab2
----
-1557
-589
-695

query I rowsort
SELECT 55 + + col1 AS col1 FROM tab2
----
106
122
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NULL >= 72 * + + col0
----

query I rowsort
SELECT ALL - + 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - 3 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT - col1 + + col2 - col0 * col2 AS col1 FROM tab1 AS cor0
----
-4814
-4961
-6167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 - + - col0 * - 44 col2 FROM tab0 AS cor0
----
-3897
-4337
-729

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col0 + + col0 IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL BETWEEN col2 - ( + + col1 ) + - 27 AND ( 9 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL - SUM( ALL - col0 ) * 20 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
11940

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL - SUM ( ALL - col0 ) * 20 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
11940

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= ( - + col0 ) * - col0
----

query II rowsort
SELECT - col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 39 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT CAST( - ( + 33 ) AS SIGNED ) FROM tab1
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-7959
SELECT CAST ( - ( + 33 ) AS INTEGER ) FROM tab1
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7960
SELECT col1 DIV CAST( + col0 AS SIGNED ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT col1 / CAST ( + col0 AS INTEGER ) FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT 0 / + 29 - - + 96 FROM tab0 WHERE NOT NULL <= 61 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7961
SELECT 0 / + 29 - - + 96 FROM tab0 WHERE NOT NULL <= 61 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col1 * 70 AS col0 FROM tab0
----
-1470
-5670
-70

query II rowsort
SELECT DISTINCT - - col1, + 60 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 67 * + col1 FROM tab0 AS cor0
----
1407
5427
67

query I rowsort
SELECT ALL - col2 + + ( col0 ) FROM tab0 WHERE NOT ( NOT col0 - - + col1 < + - 53 )
----

query I rowsort
SELECT DISTINCT + ( 47 ) FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT 44 * - + COUNT( * ) - - - 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-410

skipif mysql # not compatible
query I rowsort label-7967
SELECT 44 * - + COUNT ( * ) - - - 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT ALL + - CAST( + 49 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + - CAST ( + 49 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + 18 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 97 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 79 AS col2, + 7 FROM tab1 AS cor0
----
79
7
79
7
79
7

query I rowsort
SELECT - - 33 * - col0 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2881
-3300
-542

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT MAX( 16 ) AS col1 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT MAX ( 16 ) AS col1 FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 WHERE - 25 IS NOT NULL AND NOT NULL IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 WHERE - 25 IS NOT NULL AND NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col0 + - + 95 FROM tab2
----
-20
-31
-49

query III rowsort
SELECT * FROM tab2 WHERE 36 IS NOT NULL AND NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 50 ) col2 FROM tab1
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) + + ( - col2 ) + + col1 col0 FROM tab0 AS cor0
----
-13
-197
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7979
SELECT * FROM tab2 WHERE - CAST( + ( + 64 ) AS SIGNED ) < 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7979
SELECT * FROM tab2 WHERE - CAST ( + ( + 64 ) AS INTEGER ) < 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 - - col1 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN + ( + col0 ) AND + col0
----

query I rowsort
SELECT col2 * + - 50 AS col1 FROM tab0
----
-2350
-4950
-500

query I rowsort
SELECT 18 * - col2 AS col1 FROM tab0 AS cor0
----
-1782
-180
-846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7983
SELECT - ( + 42 ) * - + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7983
SELECT - ( + 42 ) * - + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - 36 * - 56 AS col1 FROM tab0 AS cor0
----
2016
2016
2016

query I rowsort
SELECT + 28 AS col2 FROM tab0 cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7986
SELECT + COUNT( * ) AS col1, 88 - MAX( - col1 ) FROM tab1 AS cor0
----
3
93

skipif mysql # not compatible
query II rowsort label-7986
SELECT + COUNT ( * ) AS col1, 88 - MAX ( - col1 ) FROM tab1 AS cor0
----
3
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT CAST( NULL AS SIGNED ) * + - 26 + - + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT CAST ( NULL AS INTEGER ) * + - 26 + - + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT + - COUNT( ALL + - 93 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT + - COUNT ( ALL + - 93 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL - + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL - + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL - SUM( ALL + 91 ) FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - SUM ( ALL + 91 ) FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT DISTINCT - + 63 * + + COUNT( * ) FROM tab1 WHERE 90 IS NOT NULL
----
-189

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT - + 63 * + + COUNT ( * ) FROM tab1 WHERE 90 IS NOT NULL
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT + 72 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT + 72 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL + SUM( - 15 ) FROM tab0, tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + SUM ( - 15 ) FROM tab0, tab0 AS cor0
----
-135

query I rowsort
SELECT col2 * + 7 * + 16 FROM tab1
----
10752
6608
7616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 67 AS col1, + col2 * 19 col0 FROM tab2 AS cor0
----
67
1102
67
437
67
760

query II rowsort
SELECT - 31, - 25 AS col0 FROM tab1 AS cor0
----
-31
-25
-31
-25
-31
-25

query I rowsort
SELECT 9 * 98 * - + 32 AS col2 FROM tab2 AS cor0
----
-28224
-28224
-28224

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL - COUNT( DISTINCT + 67 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - COUNT ( DISTINCT + 67 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT - col1 + - + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT - col1 + - + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT - MAX( ALL 99 ) AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT - MAX ( ALL 99 ) AS col1 FROM tab2 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8002
SELECT DISTINCT - col2 DIV + ( ( - - ( - col1 ) ) ) + - 32 FROM tab1 AS cor0
----
-21
-26
-31

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT - col2 / + ( ( - - ( - col1 ) ) ) + - 32 FROM tab1 AS cor0
----
-21
-26
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT ALL col0 DIV - + col1 + col0 FROM tab1 AS cor0
----
48
68
90

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL col0 / - + col1 + col0 FROM tab1 AS cor0
----
48
68
90

query I rowsort
SELECT DISTINCT - col1 * col2 + col2 + + col1 AS col1 FROM tab1 AS cor0
----
-1234
-231
-3081

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = - col1 * + col0 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + COUNT( * ) + - 68 AS col1 FROM tab0 WHERE - col2 * 43 - + - col2 + col1 * + col1 / col2 IS NULL
----
-68

skipif mysql # not compatible
query I rowsort label-8006
SELECT + COUNT ( * ) + - 68 AS col1 FROM tab0 WHERE - col2 * 43 - + - col2 + col1 * + col1 / col2 IS NULL
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 77 col1 FROM tab1
----
-4543
-5236
-7392

query II rowsort
SELECT + col0 AS col1, - col0 + - 84 * + col1 - - 16 + col1 AS col0 FROM tab0
----
15
-6722
87
-1814
97
-164

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT - 47 IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 32 * col2 + - - 10 BETWEEN - + col1 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT ALL MIN( DISTINCT + + col0 ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8011
SELECT ALL MIN ( DISTINCT + + col0 ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

query I rowsort
SELECT ALL - 69 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT - col0 + - - 87 FROM tab2 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND + + ( col2 )
----

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT - col0 + - - 87 FROM tab2 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND + + ( col2 )
----

query I rowsort
SELECT - ( - 73 ) AS col1 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT + ( + col1 ) * - 32 + + - 92 - + col0 AS col1 FROM tab0
----
-221
-2699
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL ( - + MIN( col0 ) ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL ( - + MIN ( col0 ) ) AS col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT + CAST( + 38 AS SIGNED ) FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-8018
SELECT + CAST ( + 38 AS INTEGER ) FROM tab0
----
38
38
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8019
SELECT + SUM( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * - CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT + SUM ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 * - CAST ( NULL AS REAL ) NOT BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 <> + col2 OR + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - SUM( - 12 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8022
SELECT - SUM ( - 12 ) FROM tab1 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8023
SELECT + col1 DIV 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8023
SELECT + col1 / 89 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8024
SELECT + COUNT( * ) AS col1, 4 AS col1 FROM tab2
----
3
4

skipif mysql # not compatible
query II rowsort label-8024
SELECT + COUNT ( * ) AS col1, 4 AS col1 FROM tab2
----
3
4

query II rowsort
SELECT DISTINCT col2, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT + + 30 FROM tab2 WHERE - col0 NOT BETWEEN col2 AND NULL
----
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= col0 + + 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8028
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE - col2 / + col0 + - CAST( NULL AS SIGNED ) + col1 BETWEEN + + ( - CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AND - - col2
----

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE - col2 / + col0 + - CAST ( NULL AS INTEGER ) + col1 BETWEEN + + ( - CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AND - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 91 col0, - col0 AS col1 FROM tab1
----
91
-51
91
-85
91
-91

query I rowsort
SELECT DISTINCT col0 + + col0 + - 65 AS col2 FROM tab1
----
105
117
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 14 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8032
SELECT + col2 DIV + col0, + col0 AS col2 FROM tab0 AS cor0
----
0
87
1
97
3
15

skipif mysql # not compatible
query II rowsort label-8032
SELECT + col2 / + col0, + col0 AS col2 FROM tab0 AS cor0
----
0
87
1
97
3
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 60 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 * 53 FROM tab1 cor0
----
-3127
-3604
-5088

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8036
SELECT DISTINCT + COUNT( * ) + - COUNT( * ), + ( 82 ) AS col0 FROM tab2 AS cor0
----
0
82

skipif mysql # not compatible
query II rowsort label-8036
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ), + ( 82 ) AS col0 FROM tab2 AS cor0
----
0
82

query I rowsort
SELECT + - 43 * - + 90 - - - 63 + col2 * 8 * - 57 * + col0 FROM tab0 AS cor0
----
-317673
-392913
-4375161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8038
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 * col0 * - col2 > NULL
----

query I rowsort
SELECT ALL 26 * 90 - + + col2 AS col2 FROM tab2
----
2282
2300
2317

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT col2 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT + + 83 + + MIN( ALL + 22 ) col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8042
SELECT DISTINCT + + 83 + + MIN ( ALL + 22 ) col2 FROM tab1 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ( + MIN( DISTINCT + - col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8043
SELECT ( + MIN ( DISTINCT + - col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - MIN( DISTINCT + - col1 ) * - 75 AS col0 FROM tab2
----
-5775

skipif mysql # not compatible
query I rowsort label-8044
SELECT - MIN ( DISTINCT + - col1 ) * - 75 AS col0 FROM tab2
----
-5775

query I rowsort
SELECT DISTINCT - 69 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 50 + + + col2 <> NULL
----

query I rowsort
SELECT ALL - col2 * + - col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT + + 3 * - - 42 AS col0 FROM tab0 AS cor0
----
126
126
126

onlyif mysql # DIV for integer division: 
query II rowsort label-8049
SELECT ALL col1, - 50 DIV - + col2 - - col2 - + 20 AS col1 FROM tab0 AS cor0
----
1
79
21
-5
81
28

skipif mysql # not compatible
query II rowsort label-8049
SELECT ALL col1, - 50 / - + col2 - - col2 - + 20 AS col1 FROM tab0 AS cor0
----
1
79
21
-5
81
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT DISTINCT SUM( 31 ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT SUM ( 31 ) FROM tab1 AS cor0
----
93

query I rowsort
SELECT ALL + + col2 FROM tab2 cor0 WHERE - 11 IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT col0 + + col1 + ( col2 ) AS col0 FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT - COUNT( DISTINCT - - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - COUNT ( DISTINCT - - col1 ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 82 * + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT + - COUNT( * ) + + 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
60

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + - COUNT ( * ) + + 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8057
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + ( + CAST( NULL AS SIGNED ) ) * + 23 = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8057
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + ( + CAST ( NULL AS INTEGER ) ) * + 23 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col0 + + 84, col1 col1 FROM tab0 AS cor0
----
146
81
181
21
280
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT - MIN( + 32 ) + + + 1 AS col0 FROM tab1 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - MIN ( + 32 ) + + + 1 AS col0 FROM tab1 cor0
----
-31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + 49 ) IS NULL
----

query I rowsort
SELECT ( + + col1 ) + col1 AS col1 FROM tab0 cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col0 ) + - col1 * + + col2 col0 FROM tab2
----
-1219
-3144
-3961

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8063
SELECT ALL 17 - - 14 AS col1, - ( + + CAST( NULL AS SIGNED ) ) * - col2 + - + col1 AS col1 FROM tab1
----
31
NULL
31
NULL
31
NULL

skipif mysql # not compatible
query II rowsort label-8063
SELECT ALL 17 - - 14 AS col1, - ( + + CAST ( NULL AS INTEGER ) ) * - col2 + - + col1 AS col1 FROM tab1
----
31
NULL
31
NULL
31
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col2 IS NULL
----

query II rowsort
SELECT - col0, 40 - + 95 AS col1 FROM tab0
----
-15
-55
-87
-55
-97
-55

query I rowsort
SELECT ALL col0 * + ( - 90 ) FROM tab2
----
-4140
-5760
-6750

query I rowsort
SELECT + col0 - + col1 - - col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8068
SELECT CAST( NULL AS DECIMAL ) - - MIN( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT CAST ( NULL AS REAL ) - - MIN ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 1 col2 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT + 75, + col1 FROM tab1 AS cor0
----
75
14
75
47
75
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8071
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + CAST( + col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8071
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + CAST ( + col0 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT - COUNT( 3 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8072
SELECT - COUNT ( 3 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT + 6 DIV 16 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT + 6 / 16 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 44 FROM tab2 WHERE NOT + ( - + 43 ) + - + 33 + + 5 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-47

query II rowsort
SELECT ALL + 29 + + col2 * + col0, + col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT SUM( DISTINCT + ( 64 ) ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8077
SELECT SUM ( DISTINCT + ( 64 ) ) FROM tab0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8078
SELECT ALL - COUNT( * ) DIV - COUNT( * ), - 32 AS col1 FROM tab2 AS cor0
----
1
-32

skipif mysql # not compatible
query II rowsort label-8078
SELECT ALL - COUNT ( * ) / - COUNT ( * ), - 32 AS col1 FROM tab2 AS cor0
----
1
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8079
SELECT DISTINCT - 2 * + CAST( 84 AS SIGNED ), MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-168
NULL

skipif mysql # not compatible
query II rowsort label-8079
SELECT DISTINCT - 2 * + CAST ( 84 AS INTEGER ), MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-168
NULL

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT 33 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT CAST( ( + COUNT( * ) ) AS SIGNED ) * + 3 AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8081
SELECT CAST ( ( + COUNT ( * ) ) AS INTEGER ) * + 3 AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT + MIN( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT - ( - 24 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT + MIN ( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT - ( - 24 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + 39 AS col0 FROM tab1 cor0
----
39
39
39

query I rowsort
SELECT DISTINCT - + col1 * + col0 * - - ( - 12 ) + + + 15 + + col2 FROM tab1 WHERE NOT + col1 + + col2 IS NULL
----
51407
5174
8679

query I rowsort
SELECT DISTINCT 57 * + + col2 FROM tab0
----
2679
5643
570

query I rowsort
SELECT DISTINCT 23 * + - col0 AS col2 FROM tab0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8087
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) * + - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8088
SELECT ALL - col2 DIV + col1 * CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - col2 / + col1 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT col1 DIV + 94 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8089
SELECT col1 / + 94 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( - - 74 ) * - 15 - - col0 - + - 52 FROM tab1
----
-1007
-967
-973

query I rowsort
SELECT ALL - col0 * - col0 + - + col0 - ( + 8 ) FROM tab2
----
2062
4024
5542

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT + SUM( DISTINCT - col2 ) * + 54 + + COUNT( * ) FROM tab1 AS cor0
----
-12039

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + SUM ( DISTINCT - col2 ) * + 54 + + COUNT ( * ) FROM tab1 AS cor0
----
-12039

query I rowsort
SELECT DISTINCT 86 + col2 AS col2 FROM tab0 AS cor0
----
133
185
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 95 * - col0 * + + col0 * - col2 / 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 46 FROM tab2 WHERE NULL IS NULL
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8096
SELECT DISTINCT CAST( + 92 AS SIGNED ) AS col0 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT CAST ( + 92 AS INTEGER ) AS col0 FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT 38 * - MAX( col1 ) FROM tab1
----
-1786

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT 38 * - MAX ( col1 ) FROM tab1
----
-1786

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( col2 * 74 + 58 * 69 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT + COUNT( * ) DIV - 82 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT + COUNT ( * ) / - 82 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT - COUNT( * ) DIV MAX( ALL 79 * + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT - COUNT ( * ) / MAX ( ALL 79 * + col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT DISTINCT - 76 - COUNT( * ) AS col0 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT - 76 - COUNT ( * ) AS col0 FROM tab0
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8102
SELECT - CAST( - col0 AS SIGNED ) DIV col1 AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8102
SELECT - CAST ( - col0 AS INTEGER ) / col1 AS col0 FROM tab1
----
1
17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT - 90 DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8103
SELECT - 90 / col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + 6 + + col1 FROM tab2
----
57
73
83

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * + 5 + col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 84 + 9 FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL COUNT( DISTINCT - col0 ) * - 42 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL COUNT ( DISTINCT - col0 ) * - 42 FROM tab1
----
-126

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <> + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT col0 * - ( 23 * - col2 ) + 11 FROM tab0
----
16226
20021
220880

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 WHERE - 20 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 WHERE - 20 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT - 24 * - COUNT( * ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT - 24 * - COUNT ( * ) AS col2 FROM tab1
----
72

query I rowsort
SELECT ALL + 99 + col0 AS col0 FROM tab2
----
145
163
174

query I rowsort
SELECT DISTINCT col1 + - 46 * + col0 FROM tab2
----
-2065
-2867
-3383

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col0 * col1 + - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - 7 * col2 AND + col2
----

query I rowsort
SELECT ALL - 10 FROM tab0 WHERE NOT col2 * col0 <= 70
----
-10
-10
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * col1 <> ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT - 23 + CAST( NULL AS SIGNED ) * - 22 FROM tab2 WHERE + 2 NOT BETWEEN - col0 AND col1
----

skipif mysql # not compatible
query I rowsort label-8119
SELECT - 23 + CAST ( NULL AS INTEGER ) * - 22 FROM tab2 WHERE + 2 NOT BETWEEN - col0 AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE 95 NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - MAX( ALL - col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8121
SELECT - MAX ( ALL - col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT SUM( ALL 46 ) AS col1 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT SUM ( ALL 46 ) AS col1 FROM tab1 AS cor0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT + 13 DIV col1 FROM tab0 AS cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-8123
SELECT + 13 / col1 FROM tab0 AS cor0
----
0
0
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 38 >= ( + 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT SUM( ALL col2 ) FROM tab2 AS cor0 WHERE NOT ( - ( + col2 ) ) <= ( col1 * 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8126
SELECT SUM ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT ( - ( + col2 ) ) <= ( col1 * 46 )
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE 51 BETWEEN NULL AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT + col0 DIV - col2 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8128
SELECT + col0 / - col2 AS col1 FROM tab1
----
-1
-1
0

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 ) WHERE 54 + + 9 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT 32 * + COUNT( * ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT 32 * + COUNT ( * ) AS col1 FROM tab1
----
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8132
SELECT DISTINCT + AVG ( - ( + CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT + AVG ( - ( + CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 85 AS col1 FROM tab2 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 88 col2 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - 1 * - ( - 36 + - COUNT( * ) * COUNT( * ) ) FROM tab0 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8135
SELECT - 1 * - ( - 36 + - COUNT ( * ) * COUNT ( * ) ) FROM tab0 cor0
----
-45

query I rowsort
SELECT DISTINCT - col2 + + 54 AS col0 FROM tab1 AS cor0
----
-14
-42
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT + - 69 * + ( 18 ) + CAST( + CAST( - col0 AS SIGNED ) AS SIGNED ) * - 42 AS col2 FROM tab0 AS cor0
----
-612
2412
2832

skipif mysql # not compatible
query I rowsort label-8137
SELECT + - 69 * + ( 18 ) + CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER ) * - 42 AS col2 FROM tab0 AS cor0
----
-612
2412
2832

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT MIN( DISTINCT + col0 ) * + MAX( DISTINCT 35 ) FROM tab2 cor0
----
1610

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT MIN ( DISTINCT + col0 ) * + MAX ( DISTINCT 35 ) FROM tab2 cor0
----
1610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8139
SELECT ALL + - MIN( ( ( 69 ) ) ) * - MAX( - col1 + col0 DIV ( 35 ) ) FROM tab2 AS cor0
----
-3450

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL + - MIN ( ( ( 69 ) ) ) * - MAX ( - col1 + col0 / ( 35 ) ) FROM tab2 AS cor0
----
-3450

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab1 WHERE NOT col1 IS NULL
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col0 ) AND + col0 * - col1
----

query I rowsort
SELECT DISTINCT col2 * + col2 * col0 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT - 20 + - - COUNT( * ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-8143
SELECT - 20 + - - COUNT ( * ) FROM tab1
----
-17

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT + 31 IS NULL
----
1
21
81

query I rowsort
SELECT ALL - 11 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN - col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT + COUNT( * ) * - + COUNT( DISTINCT 25 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8146
SELECT + COUNT ( * ) * - + COUNT ( DISTINCT 25 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT + COUNT( * ) - COUNT( * ) FROM tab0 WHERE 80 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT + COUNT ( * ) - COUNT ( * ) FROM tab0 WHERE 80 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT DISTINCT 66 + + - col2 - + col2 DIV + col1 FROM tab1
----
-3
-36
-4

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT 66 + + - col2 - + col2 / + col1 FROM tab1
----
-3
-36
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8149
SELECT DISTINCT + 54 DIV - - SUM( + 80 ) * + 60 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + 54 / - - SUM ( + 80 ) * + 60 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 * - + col1 - + col2 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-1090
-4559
-9801

query I rowsort
SELECT ALL 90 * - 93 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN - 73 * col1 AND 56 + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 9 IS NULL
----

query I rowsort
SELECT col1 * col0 FROM tab0 cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 52 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= col0 + col1 * + 50
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT IN ( + col2 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8157
SELECT DISTINCT * FROM tab0 WHERE - 76 * - col2 NOT IN ( CAST( NULL AS DECIMAL ) * 71 )
----

skipif mysql # not compatible
query III rowsort label-8157
SELECT DISTINCT * FROM tab0 WHERE - 76 * - col2 NOT IN ( CAST ( NULL AS REAL ) * 71 )
----

query I rowsort
SELECT DISTINCT + 91 - 62 FROM tab2
----
29

query I rowsort
SELECT ALL - col1 - + col1 * - col2 AS col0 FROM tab1
----
1330
290
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT + - col0 NOT BETWEEN 69 AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - col0 NOT BETWEEN 69 AND ( col2 )
----
0

query I rowsort
SELECT 80 * col0 + - + col2 AS col0 FROM tab2 AS cor0
----
3657
5080
5942

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL MAX( - ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL MAX ( - ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - col2 * + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col0 * - 54 AS col2 FROM tab0 AS cor0
----
4698
5238
810

query I rowsort
SELECT ALL + + 47 * col2 * + col1 + col2 FROM tab0 cor0
----
178976
4752
9880

query I rowsort
SELECT DISTINCT - col0 + - - col1 * + + col0 - - col0 * col1 FROM tab2 AS cor0
----
4646
9792
9975

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND + 75 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT - col1 * + CAST( - col2 AS SIGNED ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8168
SELECT - col1 * + CAST ( - col2 AS INTEGER ) FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8169
SELECT 75 DIV - - SUM( ALL 64 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8169
SELECT 75 / - - SUM ( ALL 64 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT ALL + ( col2 ) DIV + 90 + + ( + col0 ) + - 0 * 73 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + ( col2 ) / + 90 + + ( + col0 ) + - 0 * 73 AS col2 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NOT 20 NOT BETWEEN + col0 AND ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT + + col2 IS NULL
----
10
47
99

query II rowsort
SELECT DISTINCT + + ( + - col1 ), - col1 * + col1 AS col0 FROM tab0 cor0
----
-1
-1
-21
-441
-81
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT + MIN( + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT + MIN ( + col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT col2 - + 66 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * + - col2 NOT IN ( - col2 + + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab2 WHERE NOT - col2 <> NULL
----

query II rowsort
SELECT DISTINCT 85, col2 FROM tab1 cor0
----
85
59
85
68
85
96

query I rowsort
SELECT ALL + col1 * + col0 * + ( + col1 ) + 51 FROM tab0 AS cor0
----
148
38418
98466

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - col0 * 91 > - col1 * 98
----
75
67
58

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT ALL col2 + + CAST( NULL AS SIGNED ) - - + col1 - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) - - + col1 - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 4 col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col1 ) AND 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL - ( + COUNT( * ) ) + MIN( - 46 ) AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - ( + COUNT ( * ) ) + MIN ( - 46 ) AS col2 FROM tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT - + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL + 53 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL + 53 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT CAST( - 68 AS SIGNED ) * - 91 FROM tab2
----
6188
6188
6188

skipif mysql # not compatible
query I rowsort label-8188
SELECT CAST ( - 68 AS INTEGER ) * - 91 FROM tab2
----
6188
6188
6188

query I rowsort
SELECT DISTINCT col0 * + 95 + + col0 AS col1 FROM tab0
----
1440
8352
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT MIN( DISTINCT col2 ) AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT MIN ( DISTINCT col2 ) AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT CAST( 39 AS SIGNED ) * - 75 AS col0 FROM tab0
----
-2925
-2925
-2925

skipif mysql # not compatible
query I rowsort label-8191
SELECT CAST ( 39 AS INTEGER ) * - 75 AS col0 FROM tab0
----
-2925
-2925
-2925

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( + col1 ) >= + col0 )
----
75
67
58

query I rowsort
SELECT col1 * - 9 * + + col1 * + col0 FROM tab0
----
-345303
-873
-885735

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8194
SELECT + CAST( NULL AS DECIMAL ) * + col1 * - col1 + + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT + CAST ( NULL AS REAL ) * + col1 * - col1 + + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8195
SELECT - - col2 DIV col0 + col0 + + 99, - col2 AS col2 FROM tab0 AS cor0
----
117
-47
186
-10
197
-99

skipif mysql # not compatible
query II rowsort label-8195
SELECT - - col2 / col0 + col0 + + 99, - col2 AS col2 FROM tab0 AS cor0
----
117
-47
186
-10
197
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8196
SELECT ALL + + col0 * 83 + + col0 DIV + CAST( - col0 AS SIGNED ) + + + col2 FROM tab0 AS cor0
----
1291
7230
8149

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL + + col0 * 83 + + col0 / + CAST ( - col0 AS INTEGER ) + + + col2 FROM tab0 AS cor0
----
1291
7230
8149

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT DISTINCT + SUM( DISTINCT - col2 ) col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8197
SELECT DISTINCT + SUM ( DISTINCT - col2 ) col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( 19 ) NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT - 67 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 83 AND 59
----

skipif mysql # not compatible
query I rowsort label-8199
SELECT - 67 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 83 AND 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT ALL + 44 + - - 22 + col2 DIV - col1 + - col1 * + col2 + + 16 * + ( col1 * - col0 + + col0 * col1 ) AS col2 FROM tab2 AS cor0
----
-1107
-3014
-3820

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + 44 + - - 22 + col2 / - col1 + - col1 * + col2 + + 16 * + ( col1 * - col0 + + col0 * col1 ) AS col2 FROM tab2 AS cor0
----
-1107
-3014
-3820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8201
SELECT DISTINCT 82 DIV 26 - - COUNT( * ) col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8201
SELECT DISTINCT 82 / 26 - - COUNT ( * ) col2 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT + MIN( ALL + 36 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + MIN ( ALL + 36 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT + col0 DIV + col0 FROM tab1 WHERE - col2 NOT IN ( - + col2 * + 91 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8203
SELECT + col0 / + col0 FROM tab1 WHERE - col2 NOT IN ( - + col2 * + 91 )
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT col1 - + - col1 DIV col2 * + - 59 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT col1 - + - col1 / col2 * + - 59 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE col0 - - col1 < NULL
----

query I rowsort
SELECT + col0 - - + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT DISTINCT - ( SUM( col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT - ( SUM ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - + 4 * + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8209
SELECT - + 4 * + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8210
SELECT ALL - ( + - COUNT( * ) ) * + MAX( ALL - + col0 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL - ( + - COUNT ( * ) ) * + MAX ( ALL - + col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT - - 72 * COUNT( * ) FROM tab2 cor0
----
216

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT - - 72 * COUNT ( * ) FROM tab2 cor0
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT - 64 * + + 54 + - COUNT( * ) + - CAST( NULL AS SIGNED ) - - 40 + + COUNT( * ) + + + COUNT( * ) - 96 * 29 * - AVG ( + col1 ) * + 6 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT - 64 * + + 54 + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - - 40 + + COUNT ( * ) + + + COUNT ( * ) - 96 * 29 * - AVG ( + col1 ) * + 6 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 98 - - col2 FROM tab1 AS cor0 WHERE NOT col2 * - + col0 - - 75 * - 27 * 97 > NULL
----

query I rowsort
SELECT + 73 * - col2 AS col1 FROM tab2 AS cor0
----
-1679
-2920
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT COUNT( - - 6 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT COUNT ( - - 6 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 56 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 56 FROM tab2
----
NULL

query I rowsort
SELECT - ( - 1 ) AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT COUNT( + - 33 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8218
SELECT DISTINCT COUNT ( + - 33 ) col2 FROM tab0
----
3

query I rowsort
SELECT - ( + 47 ) AS col1 FROM tab2
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT + + CAST( - 62 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( 17 - - col2 - - - col1 ) BETWEEN 92 AND NULL
----
-62
-62

skipif mysql # not compatible
query I rowsort label-8220
SELECT + + CAST ( - 62 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( 17 - - col2 - - - col1 ) BETWEEN 92 AND NULL
----
-62
-62

query I rowsort
SELECT ALL 42 - 55 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT + ( + 29 ) * + 45 AS col0 FROM tab1 AS cor0
----
1305
1305
1305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 51 )
----

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + - col1 + + col2 + ( + 77 ) * - + col2 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 18 * col1 + + ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE 28 * + 72 * + col2 / - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT - + CAST( - ( + - col0 ) AS SIGNED ) + - 35 + + col1 AS col2 FROM tab0 AS cor0
----
-101
-131
31

skipif mysql # not compatible
query I rowsort label-8228
SELECT - + CAST ( - ( + - col0 ) AS INTEGER ) + - 35 + + col1 AS col2 FROM tab0 AS cor0
----
-101
-131
31

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + col1 AND 32
----

query II rowsort
SELECT ALL 66 AS col0, col1 FROM tab0
----
66
1
66
21
66
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL + COUNT( * ) - - 48 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + COUNT ( * ) - - 48 FROM tab2
----
51

query III rowsort
SELECT * FROM tab0 WHERE col1 < col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 45 * col1 AS col2 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT - 70 + - col1 AS col2 FROM tab2 AS cor0
----
-121
-137
-147

query I rowsort
SELECT ALL + 46 + + + 72 FROM tab2 AS cor0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT + + MIN( - 73 ) + - COUNT( * ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + + MIN ( - 73 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-76

query I rowsort
SELECT + 48 / - - col0 AS col1 FROM tab1 cor0 WHERE 14 + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8238
SELECT ALL + + 8 + - MIN( ALL - CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) ) - + - 19 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL + + 8 + - MIN ( ALL - CAST ( + CAST ( NULL AS REAL ) AS REAL ) ) - + - 19 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 64 + - col1 FROM tab2
----
-115
-131
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT 48 + COUNT( * ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8240
SELECT 48 + COUNT ( * ) AS col1 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL - 88 * CAST( - col2 AS SIGNED ) - col1 + - col1 * 55 AS col0 FROM tab0
----
-296
-400
8656

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - 88 * CAST ( - col2 AS INTEGER ) - col1 + - col1 * 55 AS col0 FROM tab0
----
-296
-400
8656

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT 76 * 6 + - + COUNT( * ) AS col1 FROM tab1
----
453

skipif mysql # not compatible
query I rowsort label-8242
SELECT 76 * 6 + - + COUNT ( * ) AS col1 FROM tab1
----
453

query I rowsort
SELECT ALL - ( + + 2 ) + + 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8244
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT IN ( - col1 * - col0 * + - 0, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8244
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT IN ( - col1 * - col0 * + - 0, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8245
SELECT col1, + col0 DIV + - 65 + + ( - 93 ) FROM tab1 AS cor0
----
14
-93
47
-94
5
-94

skipif mysql # not compatible
query II rowsort label-8245
SELECT col1, + col0 / + - 65 + + ( - 93 ) FROM tab1 AS cor0
----
14
-93
47
-94
5
-94

query I rowsort
SELECT ALL + ( 18 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT DISTINCT + - SUM( ALL + 95 ) * - + COUNT( * ) FROM tab1 AS cor0
----
855

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT + - SUM ( ALL + 95 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
855

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 1 * col2 * - col1 + - 34 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * + 98 col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + 52 * col2 + + 74 AS col0 FROM tab2 AS cor0
----
1270
2154
3090

query II rowsort
SELECT ALL + 91, + col2 FROM tab1 AS cor0
----
91
59
91
68
91
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL - ( - COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8252
SELECT ALL - ( - COUNT ( * ) ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT DISTINCT COUNT( * ) * - - MIN( ALL + + col2 ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT COUNT ( * ) * - - MIN ( ALL + + col2 ) AS col0 FROM tab2
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8254
SELECT + col2 DIV ( CAST( - - 30 AS SIGNED ) ) FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8254
SELECT + col2 / ( CAST ( - - 30 AS INTEGER ) ) FROM tab1
----
1
2
3

query I rowsort
SELECT ALL col1 * + 56 FROM tab1
----
2632
280
784

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT DISTINCT + ( + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT + ( + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * - - col2 AND 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT - COUNT( * ) * COUNT( * ) col2 FROM tab0 cor0 WHERE NOT col0 + 31 * col1 / - col0 IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8259
SELECT - COUNT ( * ) * COUNT ( * ) col2 FROM tab0 cor0 WHERE NOT col0 + 31 * col1 / - col0 IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8260
SELECT DISTINCT - SUM( DISTINCT + 19 ) AS col1, + COUNT( * ) FROM tab2 cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-8260
SELECT DISTINCT - SUM ( DISTINCT + 19 ) AS col1, + COUNT ( * ) FROM tab2 cor0
----
-19
3

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( col0 * - col2 + + ( + col2 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + 57 col2 FROM tab1
----
4334
482
771

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL + 63 * COUNT( * ) AS col2 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL + 63 * COUNT ( * ) AS col2 FROM tab0
----
189

query I rowsort
SELECT + col2 + + 67 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
107
125
90

query I rowsort
SELECT ALL + 54 * + + 77 FROM tab2 AS cor0
----
4158
4158
4158

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE col2 + - col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL - 39 + + - 65 FROM tab1 AS cor0
----
-104
-104
-104

query I rowsort
SELECT ALL + 58 + - col0 FROM tab0
----
-29
-39
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( + - 91 ) col2 FROM tab2
----
-33
-51
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT + 82 * - COUNT( * ) - - - COUNT( * ) * + + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + 82 * - COUNT ( * ) - - - COUNT ( * ) * + + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
-258

query I rowsort
SELECT - 47 AS col1 FROM tab0 WHERE - 57 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 12 col2 FROM tab2 AS cor0
----
-11
-28
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT MAX( - - col0 ) - - + 95 + + - SUM( ALL + 70 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT MAX ( - - col0 ) - - + 95 + + - SUM ( ALL + 70 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT 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 # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8275
SELECT ( COUNT( * ) ) * CAST( + COUNT( * ) AS SIGNED ) AS col2, + COUNT( * ) FROM tab1 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-8275
SELECT ( COUNT ( * ) ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
9
3

query I rowsort
SELECT ALL col2 + - 73 AS col0 FROM tab2 WHERE NULL IS NULL
----
-15
-33
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT COUNT( DISTINCT - 55 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8277
SELECT COUNT ( DISTINCT - 55 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT DISTINCT + + SUM( col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT + + SUM ( col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT - col1 * - 97 AS col1 FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT ALL - - col0 DIV ( - 19 ) FROM tab2 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL - - col0 / ( - 19 ) FROM tab2 AS cor0
----
-2
-3
-3

query II rowsort
SELECT ALL col1, + ( - - 38 ) AS col2 FROM tab0 AS cor0
----
1
38
21
38
81
38

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 40 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 17 ) NOT IN ( col1, - col0 - + col0, + ( - - 15 ), + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT + - 40 DIV + col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT + - 40 / + col2 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 20 * + col2 AS col0 FROM tab1
----
1180
1360
1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 42 AS col1, col1 col1, - col1 AS col0 FROM tab1
----
9 values hashing to c48420933112126907a53bfb3ab825c1

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT + - SUM( DISTINCT + col2 ) FROM tab2 WHERE 24 - - 86 / col1 + col1 <> 78
----
-121

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + - SUM ( DISTINCT + col2 ) FROM tab2 WHERE 24 - - 86 / col1 + col1 <> 78
----
-121

query III rowsort
SELECT ALL * FROM tab2 WHERE + 51 IS NULL
----

query II rowsort
SELECT ALL col1, 19 + col1 FROM tab2
----
51
70
67
86
77
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT ( ( - 60 ) ) - - + col1 DIV col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-8291
SELECT ( ( - 60 ) ) - - + col1 / col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + COUNT( + - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8292
SELECT + COUNT ( + - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL + 24 * + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL + 24 * + COUNT ( * ) FROM tab1
----
72

query I rowsort
SELECT ALL ( + + 0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 88 + 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT - + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8296
SELECT - + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT ALL col1 + + 30 - + + col0 DIV - 4 AS col2 FROM tab1 AS cor0
----
56
56
99

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL col1 + + 30 - + + col0 / - 4 AS col2 FROM tab1 AS cor0
----
56
56
99

query I rowsort
SELECT DISTINCT - col0 + - + col0 + + col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT - COUNT( * ) * - + ( - 17 ) AS col1, - 99 col1 FROM tab1
----
-51
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8299
SELECT - COUNT ( * ) * - + ( - 17 ) AS col1, - 99 col1 FROM tab1
----
-51
-99

query III rowsort
SELECT * FROM tab0 WHERE + ( + ( + col1 ) ) NOT BETWEEN ( NULL ) AND 29 / + + 51 * - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + + MIN( DISTINCT + + col2 ) * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 > 3 * + - col0
----
69

skipif mysql # not compatible
query I rowsort label-8301
SELECT + + MIN ( DISTINCT + + col2 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 > 3 * + - col0
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8302
SELECT DISTINCT + + 73 AS col0 FROM tab1 AS cor0 WHERE - col1 BETWEEN 43 AND + CAST( ( - 39 ) AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT + + 73 AS col0 FROM tab1 AS cor0 WHERE - col1 BETWEEN 43 AND + CAST ( ( - 39 ) AS REAL )
----

query I rowsort
SELECT ALL 19 + - 86 FROM tab0
----
-67
-67
-67

query III rowsort
SELECT * FROM tab2 WHERE + col2 <> - - 93 * col2 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL + MIN( ALL + col0 ) + + COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL + MIN ( ALL + col0 ) + + COUNT ( * ) FROM tab0
----
18

query II rowsort
SELECT DISTINCT + col0 AS col1, - 23 FROM tab2
----
46
-23
64
-23
75
-23

query I rowsort
SELECT ALL col1 - col1 * + col2 * + + col0 - + ( col0 ) + col0 FROM tab1
----
-25070
-290789
-68530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT col2 * col2 / - col0 - col0 - - CAST( NULL AS SIGNED ) * + + col1 * + ( 11 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT col2 * col2 / - col0 - col0 - - CAST ( NULL AS INTEGER ) * + + col1 * + ( 11 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 20 - 31 AS col0 FROM tab0
----
-11

query II rowsort
SELECT ALL + 78 + - + col1 + + - col2 / - col0, col2 FROM tab2 WHERE NOT NULL >= + 14 * - - col1
----

query I rowsort
SELECT + 58 * - col1 * col0 FROM tab2 AS cor0
----
-136068
-285824
-291450

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) * col1 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 90 ) IN ( - col0, 51 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT + - CAST( NULL AS SIGNED ) * - 18 - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT + - CAST ( NULL AS INTEGER ) * - 18 - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 56 / 25 * - col1 + + col0 * + - col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + col0 * 80 FROM tab2
----
3680
5120
6000

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ( + 22 ) * + MAX( 63 ) AS col1 FROM tab2
----
1386

skipif mysql # not compatible
query I rowsort label-8317
SELECT ( + 22 ) * + MAX ( 63 ) AS col1 FROM tab2
----
1386

query I rowsort
SELECT 16 * + col2 FROM tab2
----
368
640
928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + + col1 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ( - MIN( - + col0 ) ) * 71 AS col2 FROM tab2
----
5325

skipif mysql # not compatible
query I rowsort label-8320
SELECT ( - MIN ( - + col0 ) ) * 71 AS col2 FROM tab2
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT DISTINCT SUM( + ( + - 55 ) ) FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT SUM ( + ( + - 55 ) ) FROM tab0
----
-165

query II rowsort
SELECT ALL col2, + col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - - col2 * + col0 AND NULL
----

query I rowsort
SELECT - + col0 + + 87 FROM tab2 cor0
----
12
23
41

query I rowsort
SELECT - + col0 * - + col0 * + - 63 + + 11 AS col1 FROM tab2 AS cor0
----
-133297
-258037
-354364

query II rowsort
SELECT + + 74 + 16 * + + ( - col2 ) - 64 AS col0, 29 AS col1 FROM tab0 AS cor0
----
-150
29
-1574
29
-742
29

query I rowsort
SELECT + - 5 + 49 AS col1 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT col1 + - - 67 FROM tab1 AS cor0
----
114
72
81

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE + - ( 36 ) IS NULL
----

query II rowsort
SELECT ALL - 51 AS col2, 91 * ( - - col1 ) + + col1 FROM tab0
----
-51
1932
-51
7452
-51
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT MIN( ( - col0 ) ) + MIN( DISTINCT + 33 ) * + COUNT( * ) * + 18 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1691

skipif mysql # not compatible
query I rowsort label-8331
SELECT MIN ( ( - col0 ) ) + MIN ( DISTINCT + 33 ) * + COUNT ( * ) * + 18 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1691

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 88 / + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT + + MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + + MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 0 / + col2 BETWEEN NULL AND - + 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 98 - + 64 * - col1 FROM tab2 AS cor0
----
3362
4386
5026

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT ALL - ( + - 74 ) DIV - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL - ( + - 74 ) / - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-47
-65
-75

query II rowsort
SELECT 96 * col2 + + col2 AS col2, 34 AS col1 FROM tab0
----
4559
34
9603
34
970
34

query II rowsort
SELECT ALL 30 + - + 58 AS col0, ( col2 ) FROM tab1
----
-28
59
-28
68
-28
96

query I rowsort
SELECT + col2 + 61 AS col1 FROM tab2
----
101
119
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT ALL + MIN( - 28 ) - + - ( - + 42 ) AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL + MIN ( - 28 ) - + - ( - + 42 ) AS col0 FROM tab0
----
-70

query I rowsort
SELECT DISTINCT 75 - col2 FROM tab0
----
-24
28
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 / 67 AS col1, - 5 col0 FROM tab2 WHERE + + 20 IS NULL
----

query I rowsort
SELECT ALL + ( ( - ( - col2 ) ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT - + col2 * 31 AS col2, + ( 46 ) FROM tab2 AS cor0
----
-1240
46
-1798
46
-713
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - 44 + - col0 )
----

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT ALL col1, + col2 + + - 9 * + + col2 AS col1 FROM tab1
----
14
-768
47
-544
5
-472

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON - 93 >= NULL WHERE NULL >= - + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT SUM( DISTINCT col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-8350
SELECT SUM ( DISTINCT col0 ) FROM tab1 cor0
----
227

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 37
----

query I rowsort
SELECT + + col2 * - col2 * - 4 * - col1 FROM tab1 AS cor0
----
-516096
-69620
-869312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 49 ) col0 FROM tab0 AS cor0
----
49

query I rowsort
SELECT + col0 * + + col1 + - 91 + col0 * - 97 * + - col1 + + + col2 * - ( - col2 ) FROM tab1 AS cor0
----
423679
45040
79097

query I rowsort
SELECT DISTINCT - col2 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 72 = 46 * - - col1
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - 70 + - - ( - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT col1 DIV - 98 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT col1 / - 98 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 <> - - col1 + - + col1 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 84 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 col1 FROM tab0 AS cor0
----
29
29
29

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - col2 + - 58 FROM tab2 AS cor0
----
-116
-81
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT col2 - + col0 + col0 DIV col1 * - col0 - + - col0 * - col2 AS col2 FROM tab2
----
-1081
-2584
-4442

skipif mysql # not compatible
query I rowsort label-8363
SELECT col2 - + col0 + col0 / col1 * - col0 - + - col0 * - col2 AS col2 FROM tab2
----
-1081
-2584
-4442

onlyif mysql # aggregate syntax: 
query II rowsort label-8364
SELECT 12 AS col1, - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 88 BETWEEN NULL AND NULL
----
12
0

skipif mysql # not compatible
query II rowsort label-8364
SELECT 12 AS col1, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 88 BETWEEN NULL AND NULL
----
12
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IN ( + - col2 / - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8366
SELECT COUNT( * ) * + CAST( + + ( - 78 ) AS SIGNED ) FROM tab2 AS cor0 WHERE col1 NOT IN ( - col0 )
----
-234

skipif mysql # not compatible
query I rowsort label-8366
SELECT COUNT ( * ) * + CAST ( + + ( - 78 ) AS INTEGER ) FROM tab2 AS cor0 WHERE col1 NOT IN ( - col0 )
----
-234

query II rowsort
SELECT ALL - col2 AS col0, + 35 * col2 * + col2 AS col0 FROM tab2 WHERE NULL > 37
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * 73 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT DISTINCT - col2 + col1 DIV - 77 - - col1 FROM tab0
----
-98
11
33

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT - col2 + col1 / - 77 - - col1 FROM tab0
----
-98
11
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT - MIN( - - 25 ) AS col0 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-8370
SELECT - MIN ( - - 25 ) AS col0 FROM tab0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT ALL + MIN( DISTINCT col1 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + MIN ( DISTINCT col1 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8372
SELECT ALL + 41, ( - + 79 ) - + CAST( + col1 AS SIGNED ) * + 45 col1 FROM tab1 AS cor0
----
41
-2194
41
-304
41
-709

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8372
SELECT ALL + 41, ( - + 79 ) - + CAST ( + col1 AS INTEGER ) * + 45 col1 FROM tab1 AS cor0
----
41
-2194
41
-304
41
-709

query I rowsort
SELECT 36 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT + 25 / col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT + 25 / col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT + 76 - - + COUNT( * ) + - 37 AS col1 FROM tab1, tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT + 76 - - + COUNT ( * ) + - 37 AS col1 FROM tab1, tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT - col2 * CAST( col1 AS SIGNED ) * - - col1 AS col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

skipif mysql # not compatible
query I rowsort label-8379
SELECT - col2 * CAST ( col1 AS INTEGER ) * - - col1 AS col2 FROM tab2 AS cor0
----
-237160
-260362
-59823

query II rowsort
SELECT - col2, col2 * col0 AS col2 FROM tab0
----
-10
870
-47
705
-99
9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8381
SELECT CAST( NULL AS SIGNED ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8381
SELECT CAST ( NULL AS INTEGER ), col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8382
SELECT ALL + 14, SUM( DISTINCT + + 13 ) AS col2 FROM tab0
----
14
13

skipif mysql # not compatible
query II rowsort label-8382
SELECT ALL + 14, SUM ( DISTINCT + + 13 ) AS col2 FROM tab0
----
14
13

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8383
SELECT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8383
SELECT * FROM tab1 WHERE CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT DISTINCT - 54 AS col2, COUNT( * ) AS col1 FROM tab2
----
-54
3

skipif mysql # not compatible
query II rowsort label-8384
SELECT DISTINCT - 54 AS col2, COUNT ( * ) AS col1 FROM tab2
----
-54
3

query III rowsort
SELECT * FROM tab0 WHERE + col2 * col1 <= + col1 / col1
----

query I rowsort
SELECT DISTINCT + col2 + + - col0 + + col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + + MIN( - 68 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-68

skipif mysql # not compatible
query I rowsort label-8387
SELECT + + MIN ( - 68 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-68

query I rowsort
SELECT + + col0 - - - col2 + + - 42 FROM tab0 AS cor0
----
-44
-74
35

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-8390
SELECT ALL - MAX( ( - col0 ) ) col1 FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN - col2 + - col1 AND - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8390
SELECT ALL - MAX ( ( - col0 ) ) col1 FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN - col2 + - col1 AND - col2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - 52
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + + ( + 26 ), col2 * - - ( + 88 ) col1 FROM tab2
----
1196
2024
1664
3520
1950
5104

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 13 >= - - col0
----

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 - 47 <= + 91
----

query I rowsort
SELECT 73 * - + col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT - col0 * col0 DIV - - col2 AS col0 FROM tab2 AS cor0
----
-102
-92
-96

skipif mysql # not compatible
query I rowsort label-8396
SELECT - col0 * col0 / - - col2 AS col0 FROM tab2 AS cor0
----
-102
-92
-96

query I rowsort
SELECT ALL - ( - + ( col0 ) ) FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN - + 33 / - + 44 - + 4 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT - ( + CAST( + COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8399
SELECT - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 col1, 0 * + col1 FROM tab0 AS cor0
----
4
0
4
0
4
0

query I rowsort
SELECT + 31 + + - 25 AS col0 FROM tab1 cor0
----
6
6
6

query II rowsort
SELECT DISTINCT + col0 * - - col1 + col0 * + - 7 AS col1, col2 FROM tab1 AS cor0
----
-170
59
357
96
3640
68

query I rowsort
SELECT + 57 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 8 FROM tab1 AS cor0
----
-39
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL 43 + COUNT( * ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL 43 + COUNT ( * ) AS col0 FROM tab0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT - + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 WHERE + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8406
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE + - col1 IS NULL
----
0

query II rowsort
SELECT DISTINCT 27 + - col0, - col0 AS col1 FROM tab2
----
-19
-46
-37
-64
-48
-75

query III rowsort
SELECT * FROM tab0 WHERE + + col1 - - col0 - - col0 >= + - col2 * + 88 + - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT 85 DIV col2 AS col1 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-8409
SELECT 85 / col2 AS col1 FROM tab0
----
0
1
8

query II rowsort
SELECT DISTINCT col1 * col0 AS col0, col1 FROM tab0
----
1215
81
1827
21
97
1

query I rowsort
SELECT DISTINCT 56 + - col0 FROM tab2 AS cor0
----
-19
-8
10

query I rowsort
SELECT + - 32 * - 68 + + col2 AS col0 FROM tab2 AS cor0
----
2199
2216
2234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT + CAST( 67 AS SIGNED ) * - col0 - + 21 FROM tab2 AS cor0
----
-3103
-4309
-5046

skipif mysql # not compatible
query I rowsort label-8413
SELECT + CAST ( 67 AS INTEGER ) * - col0 - + 21 FROM tab2 AS cor0
----
-3103
-4309
-5046

query I rowsort
SELECT ALL + 42 * 63 FROM tab2 AS cor0
----
2646
2646
2646

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 55 + + 28 + - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8416
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0, 20 col2 FROM tab0 cor0
----
15
20
87
20
97
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 61 col2, 2 * - col1 FROM tab0 cor0
----
61
-162
61
-2
61
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL 61 * - COUNT( * ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL 61 * - COUNT ( * ) FROM tab1
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT ( - MIN( ALL - 39 ) ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-8420
SELECT ( - MIN ( ALL - 39 ) ) FROM tab0
----
39

query II rowsort
SELECT DISTINCT col1 * - col0, - 47 AS col1 FROM tab0
----
-1215
-47
-1827
-47
-97
-47

query I rowsort
SELECT col0 / + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 * + ( + + 90 ) * + - col2 FROM tab1 AS cor0
----
-120960
-26550
-287640

query I rowsort
SELECT + ( - 32 ) * + 54 * - ( - 13 ) FROM tab2 cor0
----
-22464
-22464
-22464

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL - COUNT( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - COUNT ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - - col1 * + 41 AS col0 FROM tab2 AS cor0
----
2091
2747
3157

query I rowsort
SELECT ALL + - ( col1 ) + - ( col2 ) FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT DISTINCT 84 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT 84 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
87

query I rowsort
SELECT ALL + + 60 * + - 43 AS col1 FROM tab1 AS cor0
----
-2580
-2580
-2580

query III rowsort
SELECT ALL * FROM tab0 WHERE 67 * - 46 + col2 + 67 IS NULL
----

query I rowsort
SELECT col1 + - col1 + 97 + ( + col2 ) + col0 AS col1 FROM tab0
----
159
194
293

query I rowsort
SELECT + 92 + + col2 + - col1 FROM tab0
----
190
58
81

query II rowsort
SELECT DISTINCT - + col2 AS col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT ALL + - col0 AS col0, - col1 AS col0 FROM tab2 cor0
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT - col1 * 55 + - - col0 FROM tab1 AS cor0
----
-190
-2494
-719

query I rowsort
SELECT DISTINCT - + 59 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8437
SELECT - - 92 AS col1, 69 / - - CAST( NULL AS SIGNED ) + + col1 + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
92
NULL
92
NULL
92
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8437
SELECT - - 92 AS col1, 69 / - - CAST ( NULL AS INTEGER ) + + col1 + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
92
NULL
92
NULL
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT MIN( ALL col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8438
SELECT MIN ( ALL col1 ) FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL BETWEEN + ( - 90 ) * + - col0 + + + col1 AND 22
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - + col0 NOT IN ( + - col1 - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * + col2 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-3102
-6534
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL - + COUNT( + + 32 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - + COUNT ( + + 32 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 90 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col0 FROM tab0 AS cor0
----
16

query I rowsort
SELECT DISTINCT - - ( + ( + ( - - 96 ) ) ) AS col0 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT ALL ( + - SUM( col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL ( + - SUM ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query II rowsort label-8447
SELECT col0, - 9 DIV + + col0 + + 76 AS col1 FROM tab0
----
15
76
87
76
97
76

skipif mysql # not compatible
query II rowsort label-8447
SELECT col0, - 9 / + + col0 + + 76 AS col1 FROM tab0
----
15
76
87
76
97
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8448
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) - - 71 = NULL
----

skipif mysql # not compatible
query III rowsort label-8448
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) - - 71 = NULL
----

query II rowsort
SELECT ALL 11 AS col1, - col0 + - ( + + col1 ) * - col0 AS col0 FROM tab2
----
11
2300
11
4864
11
4950

query II rowsort
SELECT + - 67, col0 FROM tab0 AS cor0
----
-67
15
-67
87
-67
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT - MAX( DISTINCT + ( + ( ( + col1 ) ) ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8451
SELECT - MAX ( DISTINCT + ( + ( ( + col1 ) ) ) ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - ( + + 68 ) FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT 30 + - ( + ( + + col2 ) ) FROM tab2 AS cor0
----
-10
-28
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 58 ) col2 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT - COUNT( * ) * - 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-8455
SELECT - COUNT ( * ) * - 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL - - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9

query I rowsort
SELECT + 68 + - col0 FROM tab1
----
-17
-23
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT - 90 + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-3
-75
7

skipif mysql # not compatible
query I rowsort label-8458
SELECT - 90 + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-3
-75
7

query I rowsort
SELECT - col0 + + 94 AS col2 FROM tab1 AS cor0
----
3
43
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + COUNT( * ) + SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8460
SELECT + COUNT ( * ) + SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-153

query II rowsort
SELECT DISTINCT col0 + - col2, + col0 * - col0 AS col1 FROM tab1 cor0
----
-45
-2601
23
-8281
26
-7225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0 - - - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( + 2 )
----

query I rowsort
SELECT DISTINCT 35 + 45 + + 15 FROM tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT ( MAX( - - 79 ) ) col0 FROM tab0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8465
SELECT DISTINCT ( MAX ( - - 79 ) ) col0 FROM tab0
----
79

query I rowsort
SELECT DISTINCT 47 - ( - col2 ) FROM tab0
----
146
57
94

query I rowsort
SELECT DISTINCT col1 * 42 FROM tab1
----
1974
210
588

query I rowsort
SELECT col1 * - 95 * + col2 AS col0 FROM tab1
----
-127680
-28025
-303620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - ( col2 ) * + col2 * + 75 + - col1 + + - col1 + - col2 * 77 * - + col0 col0, col2 col0 FROM tab0 AS cor0
----
-111599
47
4255
99
59438
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - 63 col1 FROM tab1 AS cor0
----
-122
-131
-159

query I rowsort
SELECT - 21 * col0 AS col2 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT DISTINCT - 31 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT ALL + + 54 AS col0, COUNT( - 43 ) + - COUNT( ALL - - 92 ) FROM tab2 AS cor0
----
54
0

skipif mysql # not compatible
query II rowsort label-8473
SELECT ALL + + 54 AS col0, COUNT ( - 43 ) + - COUNT ( ALL - - 92 ) FROM tab2 AS cor0
----
54
0

query I rowsort
SELECT DISTINCT - 29 + - + col0 - + col1 * 15 * + 61 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 68 AND 21 * - + col0 * - + col0 + - col0 + - 6 / col0
----

query II rowsort
SELECT DISTINCT - 64 AS col1, + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-64
-425
-64
-4277
-64
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8478
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8478
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT ALL + col2 DIV + 61 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + col2 / + 61 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT + 21 DIV + 99 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8481
SELECT + 21 / + 99 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT + CAST( NULL AS SIGNED ) / + ( col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT + CAST ( NULL AS INTEGER ) / + ( col1 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col0 AS col1 FROM tab1 WHERE NOT ( NOT col2 * + + 8 * + col2 * + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL MAX( DISTINCT + 13 ) AS col0 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL MAX ( DISTINCT + 13 ) AS col0 FROM tab1
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / - col1 IS NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, 80 AS col1 FROM tab0
----
15
80
87
80
97
80

query I rowsort
SELECT + 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) + 99 AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) + 99 AS col2 FROM tab1 AS cor0
----
105

query II rowsort
SELECT ALL + col2 * + 22 + - 83, - 16 AS col1 FROM tab2 AS cor0
----
1193
-16
423
-16
797
-16

query I rowsort
SELECT + - col2 * + col1 + + ( + col1 ) - + - 70 FROM tab0 cor0
----
-119
-28
-3656

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT DISTINCT - - col1 DIV + - 39 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT - - col1 / + - 39 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-92

query I rowsort
SELECT + col1 - - - 34 * - + 22 FROM tab1 AS cor0
----
753
762
795

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - + 58 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 59 * - 23 * + col2 + col1 + + col0, col2 AS col2 FROM tab0
----
-134245
99
-13462
10
-63683
47

query I rowsort
SELECT ALL col0 - - + col0 AS col1 FROM tab1
----
102
170
182

query II rowsort
SELECT ALL col0 - col0, 64 AS col1 FROM tab1
----
0
64
0
64
0
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 75 * + + col1 > NULL
----

query II rowsort
SELECT DISTINCT + - col1 * col0 AS col2, 24 FROM tab1 AS cor0
----
-425
24
-4277
24
-714
24

query I rowsort
SELECT ALL + col1 * + ( - + 18 ) + - col2 + - col1 FROM tab0 AS cor0
----
-118
-1586
-409

query I rowsort
SELECT + 85 * ( col0 ) AS col2 FROM tab0 cor0
----
1275
7395
8245

onlyif mysql # DIV for integer division: 
query I rowsort label-8503
SELECT DISTINCT - col2 DIV + - 1 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT - col2 / + - 1 AS col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT DISTINCT - 23 AS col0, col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-23
10
-23
47
-23
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + MAX( 80 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + MAX ( 80 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL - COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * - 14 * - 94 AS col1 FROM tab0 AS cor0
----
106596
1316
27636

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT ALL - COUNT( * ) * - ( 28 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8508
SELECT ALL - COUNT ( * ) * - ( 28 ) FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT MIN( - - col1 ) DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT MIN ( - - col1 ) / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL col0, + 46 FROM tab0
----
15
46
87
46
97
46

query I rowsort
SELECT ALL - 93 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-93
-93
-93

query II rowsort
SELECT ALL col1 AS col2, ( + + 75 ) * col0 FROM tab1
----
14
3825
47
6825
5
6375

query II rowsort
SELECT DISTINCT + col0, ( - - col0 ) FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + col1 + - col2 FROM tab0 WHERE NOT col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - - col1 ) col1, - 56 AS col2 FROM tab1
----
-14
-56
-47
-56
-5
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8516
SELECT CAST( NULL AS DECIMAL ) AS col0, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8516
SELECT CAST ( NULL AS REAL ) AS col0, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 83 + 30 IS NULL
----

query II rowsort
SELECT 6 AS col1, col0 - 91 FROM tab1 AS cor0
----
6
-40
6
-6
6
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT ALL + col1 + + + col2 FROM tab0 AS cor0 WHERE + col0 NOT IN ( + CAST( NULL AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + col1 + + + col2 FROM tab0 AS cor0 WHERE + col0 NOT IN ( + CAST ( NULL AS INTEGER ), + col0 )
----

query II rowsort
SELECT 32 + + 62, col2 * + 6 + - col0 AS col0 FROM tab2
----
94
176
94
273
94
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8521
SELECT + + col0 + - 75, - 81 - - col1 + 99 / + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-11
NULL
-29
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8521
SELECT + + col0 + - 75, - 81 - - col1 + 99 / + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-11
NULL
-29
NULL
0
NULL

query II rowsort
SELECT ALL + 42 * + col1 AS col2, 50 AS col2 FROM tab2 AS cor0
----
2142
50
2814
50
3234
50

query I rowsort
SELECT 75 FROM tab2 AS cor0 WHERE NULL IS NULL
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL - 31 * CAST( col0 AS SIGNED ) + - 68 AS col1 FROM tab0 AS cor0
----
-2765
-3075
-533

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL - 31 * CAST ( col0 AS INTEGER ) + - 68 AS col1 FROM tab0 AS cor0
----
-2765
-3075
-533

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 58 IN ( + - col0 * + col2, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT - + col0 * - - 9 + + CAST( - + col2 AS SIGNED ) + + col1 + col1 FROM tab2 AS cor0
----
-335
-462
-599

skipif mysql # not compatible
query I rowsort label-8526
SELECT - + col0 * - - 9 + + CAST ( - + col2 AS INTEGER ) + + col1 + col1 FROM tab2 AS cor0
----
-335
-462
-599

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8527
SELECT - CAST( NULL AS DECIMAL ) * - 7 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT - CAST ( NULL AS REAL ) * - 7 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT ALL - CAST( + - CAST( - 57 AS SIGNED ) AS SIGNED ) - 44 FROM tab0
----
-101
-101
-101

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL - CAST ( + - CAST ( - 57 AS INTEGER ) AS INTEGER ) - 44 FROM tab0
----
-101
-101
-101

query I rowsort
SELECT DISTINCT col0 - - + 11 AS col2 FROM tab0
----
108
26
98

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab0, tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND - 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT + SUM( ALL - + col2 ) * COUNT( * ) * + MAX( ALL - + col1 ) col2 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8532
SELECT DISTINCT + SUM ( ALL - + col2 ) * COUNT ( * ) * + MAX ( ALL - + col1 ) col2 FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT DISTINCT + COUNT( * ) AS col2, 2 FROM tab1 AS cor0
----
3
2

skipif mysql # not compatible
query II rowsort label-8533
SELECT DISTINCT + COUNT ( * ) AS col2, 2 FROM tab1 AS cor0
----
3
2

query I rowsort
SELECT ALL - col0 * - - 16 FROM tab2 cor0
----
-1024
-1200
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL SUM( + - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL SUM ( + - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT ( COUNT( - - col0 ) ) DIV 61 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8536
SELECT ( COUNT ( - - col0 ) ) / 61 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT ( - - 46 ) DIV - col1 FROM tab0 AS cor0
----
-2
-46
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT ( - - 46 ) / - col1 FROM tab0 AS cor0
----
-2
-46
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT col2 DIV col0 + + col0 col2 FROM tab0
----
18
87
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8538
SELECT col2 / col0 + + col0 col2 FROM tab0
----
18
87
98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + 8 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 * 45 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * + col1 + - col0 * - col1 col2 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8542
SELECT col0 + ( + CAST( NULL AS DECIMAL ) ) * + 71 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT col0 + ( + CAST ( NULL AS REAL ) ) * + 71 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col0 ) * + ( - 94 ) + col2 * + col2 FROM tab1
----
11471
13178
14010

query III rowsort
SELECT ALL * FROM tab0 WHERE 54 IS NULL
----

query I rowsort
SELECT - col1 + 50 * + ( ( + 3 ) ) FROM tab1
----
103
136
145

query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab2 WHERE NULL NOT BETWEEN col0 / col1 AND - 27
----

query I rowsort
SELECT - col2 + 26 FROM tab2
----
-14
-32
3

query I rowsort
SELECT ALL 88 * - col2 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8549
SELECT - col0 + + CAST( col0 AS SIGNED ) * 40 AS col0 FROM tab0
----
3393
3783
585

skipif mysql # not compatible
query I rowsort label-8549
SELECT - col0 + + CAST ( col0 AS INTEGER ) * 40 AS col0 FROM tab0
----
3393
3783
585

query I rowsort
SELECT ALL - 92 + col0 FROM tab1
----
-1
-41
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT - CAST( NULL AS SIGNED ) + ( + 86 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT - CAST ( NULL AS INTEGER ) + ( + 86 ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col2 * + ( col0 * + 44 ) )
----

query I rowsort
SELECT DISTINCT 78 * col2 FROM tab1
----
4602
5304
7488

query I rowsort
SELECT - 10 FROM tab0 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT col2 * + col0 - col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT - col2 FROM tab2 WHERE 56 + 27 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE ( - 62 ) IS NULL
----

query I rowsort
SELECT ( 62 ) * - col0 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT ALL - col1 DIV - 43 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL - col1 / - 43 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT 47 + - col1 FROM tab0 cor0
----
-34
26
46

query I rowsort
SELECT DISTINCT col1 + col2 * + 72 FROM tab2 cor0
----
1707
2957
4243

query I rowsort
SELECT DISTINCT - ( - col0 ) + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8563
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8563
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 31 IS NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE - ( + 34 ) <> col0 - col1
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col0 ) IN ( 13 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8567
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col0 ) IN ( 13 + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT + + COUNT( DISTINCT - 34 ) - MIN( 6 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8568
SELECT + + COUNT ( DISTINCT - 34 ) - MIN ( 6 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + + COUNT( * ) * COUNT( 46 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8569
SELECT + + COUNT ( * ) * COUNT ( 46 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + - ( + 8 ) - col0 FROM tab2 AS cor0
----
-54
-72
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL + SUM( DISTINCT - 91 ) AS col2 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL + SUM ( DISTINCT - 91 ) AS col2 FROM tab2 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT + col1 - col0 DIV 75 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-8572
SELECT + col1 - col0 / 75 FROM tab1 AS cor0
----
14
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 - - col0 col1 FROM tab1 cor0
----
-4845
-4930
-6097

query I rowsort
SELECT + ( col1 ) + 68 * + col1 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> col0
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> col0
----
0

query I rowsort
SELECT - col1 * 32 + col1 AS col2 FROM tab2 cor0
----
-1581
-2077
-2387

query I rowsort
SELECT col0 * 29 + col0 FROM tab0 cor0
----
2610
2910
450

query I rowsort
SELECT ALL - col1 / + 60 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT - COUNT( 90 ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT - COUNT ( 90 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * + col0 + col0 FROM tab0 AS cor0
----
-210
-7482
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col1 FROM tab2 WHERE col2 > NULL
----

query I rowsort
SELECT DISTINCT - 72 - 71 FROM tab2
----
-143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - col1 col0 FROM tab0
----
189
3726
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8584
SELECT - col0 FROM tab2 WHERE NULL BETWEEN ( 40 * col2 + 52 ) AND - ( 39 ) / - 66 - + CAST( col2 AS DECIMAL ) * ( 46 )
----

skipif mysql # not compatible
query I rowsort label-8584
SELECT - col0 FROM tab2 WHERE NULL BETWEEN ( 40 * col2 + 52 ) AND - ( 39 ) / - 66 - + CAST ( col2 AS REAL ) * ( 46 )
----

query I rowsort
SELECT DISTINCT + 57 FROM tab1 WHERE NULL IS NULL
----
57

query I rowsort
SELECT ALL 51 * - col0 AS col2 FROM tab1
----
-2601
-4335
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT + MIN( DISTINCT 62 ) col2 FROM tab0 WHERE NOT ( - col2 ) <= ( + 24 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8587
SELECT + MIN ( DISTINCT 62 ) col2 FROM tab0 WHERE NOT ( - col2 ) <= ( + 24 )
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - 93 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ( - - 48 ) FROM tab2
----
48
48
48

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 84
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col2 - - 41 / + ( + 8 + 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT DISTINCT CAST( NULL AS SIGNED ) * 30 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 30 FROM tab2, tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT - col0 + + col1 DIV + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8594
SELECT - col0 + + col1 / + col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8595
SELECT + + 51 AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-8595
SELECT + + 51 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT - - MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8596
SELECT - - MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - col2 * + ( 65 ) + 59 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT - COUNT( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8598
SELECT - COUNT ( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col0 * 79 col0 FROM tab2 AS cor0
----
46
3634
64
5056
75
5925

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL + + MAX( DISTINCT + 69 ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + + MAX ( DISTINCT + 69 ) FROM tab1 AS cor0
----
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * col2 ) BETWEEN + col0 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT DISTINCT + col0 + col0 DIV 43 AS col2 FROM tab2 cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT + col0 + col0 / 43 AS col2 FROM tab2 cor0
----
47
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 WHERE NOT - 67 * + col1 + col2 * 13 + - col1 NOT BETWEEN NULL AND + col2 * col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IN ( + 34 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 16 AS col2 FROM tab0 WHERE ( + col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 FROM tab0
----
-100
-2209
-9801

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * - - col0 / + col1 ) IS NULL
----

query I rowsort
SELECT 68 * 76 FROM tab0
----
5168
5168
5168

query I rowsort
SELECT ALL col1 + 73 FROM tab1 WHERE + col0 IS NOT NULL
----
120
78
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT col2 DIV col1 * - - col2 * col1 * - 42 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8611
SELECT col2 / col1 * - - col2 * col1 * - 42 FROM tab2
----
0
0
0

query I rowsort
SELECT 9 * - + col1 AS col0 FROM tab0
----
-189
-729
-9

query I rowsort
SELECT + col2 * - col1 - col1 * + 97 * + col2 FROM tab2 cor0
----
-114954
-301840
-380828

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 58 / + - 70 * col0 + - 89 AND col1 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT + COUNT( * ) - - - 7 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8615
SELECT + COUNT ( * ) - - - 7 FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT ALL 3 FROM tab1 AS cor0 WHERE col1 * + + col2 + + + col1 * + col0 <> 56 * - 91 + - CAST( col2 AS SIGNED )
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL 3 FROM tab1 AS cor0 WHERE col1 * + + col2 + + + col1 * + col0 <> 56 * - 91 + - CAST ( col2 AS INTEGER )
----
3
3
3

query I rowsort
SELECT + 39 AS col2 FROM tab2 WHERE + col1 IN ( + + col1 )
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT COUNT( * ) + 40 - 84 * 15 FROM tab0
----
-1217

skipif mysql # not compatible
query I rowsort label-8618
SELECT COUNT ( * ) + 40 - 84 * 15 FROM tab0
----
-1217

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT COUNT( DISTINCT - - 28 ) FROM tab0 AS cor0 WHERE 58 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT COUNT ( DISTINCT - - 28 ) FROM tab0 AS cor0 WHERE 58 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - col1 / + ( - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL 96 + + COUNT( * ) + 34 FROM tab0 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL 96 + + COUNT ( * ) + 34 FROM tab0 AS cor0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8623
SELECT COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8624
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT 30 * 23 FROM tab2 AS cor0
----
690
690
690

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 cor0
----
9

onlyif mysql # DIV for integer division: 
query III rowsort label-8627
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN - col1 DIV col0 * + - col2 AND col1
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-8627
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN - col1 / col0 * + - col2 AND col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - COUNT( - 50 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8628
SELECT - COUNT ( - 50 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 12 AS col2, - 65 col0 FROM tab2
----
12
-65
12
-65
12
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 col1 FROM tab1 WHERE NULL IS NULL
----
-42
-42
-42

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 AS col1 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT ALL + 75 AS col1, COUNT( * ) * 29 + 59 AS col2 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75
320

skipif mysql # not compatible
query II rowsort label-8633
SELECT ALL + 75 AS col1, COUNT ( * ) * 29 + 59 AS col2 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75
320

query I rowsort
SELECT ALL ( - + 79 ) * - col1 FROM tab0
----
1659
6399
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT ALL + CAST( + - 42 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL + CAST ( + - 42 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query II rowsort
SELECT DISTINCT - 63, - col2 AS col2 FROM tab0 AS cor0
----
-63
-10
-63
-47
-63
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * col1 * - 51 col0 FROM tab0 AS cor0
----
-16524
-204
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT - COUNT( * ) * - 81 AS col0 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - COUNT ( * ) * - 81 AS col0 FROM tab1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL - COUNT( * ) * SUM( + ( - - 75 ) ) FROM tab0
----
-675

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL - COUNT ( * ) * SUM ( + ( - - 75 ) ) FROM tab0
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT - col1 * - CAST( - 24 AS SIGNED ) AS col2 FROM tab2
----
-1224
-1608
-1848

skipif mysql # not compatible
query I rowsort label-8640
SELECT - col1 * - CAST ( - 24 AS INTEGER ) AS col2 FROM tab2
----
-1224
-1608
-1848

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - + col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8642
SELECT ALL - COUNT( * ) DIV + - MIN( DISTINCT 74 ) + + + 22 col2 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT ALL - COUNT ( * ) / + - MIN ( DISTINCT 74 ) + + + 22 col2 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL 80 * ( 74 ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8645
SELECT ALL + col0 * + + CAST( NULL AS DECIMAL ) + + col2 * 10 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8645
SELECT ALL + col0 * + + CAST ( NULL AS REAL ) + + col2 * 10 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT + 84 * + ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
252

skipif mysql # not compatible
query I rowsort label-8646
SELECT + 84 * + ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
252

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 64 - - col1 < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT - COUNT( * ) col1 FROM tab0 WHERE - col0 * + col0 - - - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8649
SELECT - COUNT ( * ) col1 FROM tab0 WHERE - col0 * + col0 - - - col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8650
SELECT DISTINCT - col1 * - col1 + + 94 DIV + + ( - + col0 ) FROM tab0
----
1
440
6555

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT - col1 * - col1 + + 94 / + + ( - + col0 ) FROM tab0
----
1
440
6555

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - + col1
----

query I rowsort
SELECT DISTINCT col1 * - ( col1 ) + col2 - col1 AS col1 FROM tab2
----
-2629
-4498
-5966

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT MAX( DISTINCT - - col0 ) + MIN( DISTINCT + + col2 ) AS col0 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-8653
SELECT MAX ( DISTINCT - - col0 ) + MIN ( DISTINCT + + col2 ) AS col0 FROM tab1
----
150

query I rowsort
SELECT + 36 * - col2 + + - col1 FROM tab2 AS cor0
----
-1517
-2155
-879

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> + 49
----

query II rowsort
SELECT - 81 AS col2, 19 AS col2 FROM tab0 AS cor0
----
-81
19
-81
19
-81
19

query II rowsort
SELECT 53, 33 * - - ( + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + + col0 BETWEEN + col0 AND - 64
----

query II rowsort
SELECT DISTINCT - col2 AS col0, + 90 FROM tab2 AS cor0 WHERE NOT - col1 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( + - col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT + + 3 * COUNT( * ) - + 69 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT + + 3 * COUNT ( * ) - + 69 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT + + 8 * - COUNT( * ) * - + 44 AS col0 FROM tab0 AS cor0
----
1056

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + + 8 * - COUNT ( * ) * - + 44 AS col0 FROM tab0 AS cor0
----
1056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 33 ) col2 FROM tab0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8664
SELECT - col1 * col2 + 79 FROM tab1 WHERE NOT ( + + ( - 84 ) / - CAST( NULL AS DECIMAL ) + 69 * - col2 * col0 * ( - + 26 ) ) IS NOT NULL
----
-1265
-216
-3117

skipif mysql # not compatible
query I rowsort label-8664
SELECT - col1 * col2 + 79 FROM tab1 WHERE NOT ( + + ( - 84 ) / - CAST ( NULL AS REAL ) + 69 * - col2 * col0 * ( - + 26 ) ) IS NOT NULL
----
-1265
-216
-3117

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8665
SELECT DISTINCT * FROM tab0 WHERE + - 64 IN ( + - ( + col2 ) / + 70 * 38 + - CAST( + - 84 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8665
SELECT DISTINCT * FROM tab0 WHERE + - 64 IN ( + - ( + col2 ) / + 70 * 38 + - CAST ( + - 84 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col0 FROM tab2
----
46

query I rowsort
SELECT DISTINCT col0 / + 25 + 69 AS col2 FROM tab2 WHERE NULL >= ( - + col0 )
----

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT 75 * col0 + + - col1 AS col2 FROM tab0 AS cor0 WHERE col0 - + - 40 <> NULL
----

query I rowsort
SELECT ( + ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT DISTINCT + col0 DIV - col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT + col0 / - col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-1
0

query II rowsort
SELECT + 43 AS col0, col1 AS col2 FROM tab2 AS cor0
----
43
51
43
67
43
77

query I rowsort
SELECT DISTINCT - col0 + col0 + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8675
SELECT COUNT( - col0 ) + - CAST( NULL AS DECIMAL ) * + 72 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8675
SELECT COUNT ( - col0 ) + - CAST ( NULL AS REAL ) * + 72 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT + SUM( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE + col2 + + - col1 NOT BETWEEN NULL AND 41
----
-19

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT + SUM ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE + col2 + + - col1 NOT BETWEEN NULL AND 41
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL + - 98 + + - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL + - 98 + + - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT + col2 + ( - col2 ) + - + ( + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + - 85 AS col1 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
-85
-85
-85

query I rowsort
SELECT - col2 + + 91 * - 66 + + + col2 AS col2 FROM tab2 AS cor0
----
-6006
-6006
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL 65 + - 94 + + COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL 65 + - 94 + + COUNT ( * ) FROM tab0 AS cor0
----
-26

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 <= + col2
----
51
14
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 18
----

query I rowsort
SELECT col0 * + col1 + - 95 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - 66 * - col1, + col1 * - col0, 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 cor0 WHERE + 18 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT DISTINCT CAST( + - col1 AS SIGNED ) + - col1 + - + 82 AS col2 FROM tab0
----
-124
-244
-84

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) + - col1 + - + 82 AS col2 FROM tab0
----
-124
-244
-84

query I rowsort
SELECT ALL + ( - 48 ) AS col0 FROM tab2
----
-48
-48
-48

query I rowsort
SELECT - 49 * ( + 61 ) FROM tab0
----
-2989
-2989
-2989

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT + col2 DIV + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8689
SELECT + col2 / + - col1 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + ( + col1 ), 2 * + ( + col0 ) FROM tab0
----
1
194
21
174
81
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT - + MIN( + ( - + 52 ) ) - 8 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8691
SELECT - + MIN ( + ( - + 52 ) ) - 8 FROM tab1 AS cor0
----
44

query III rowsort
SELECT * FROM tab1 WHERE + + col1 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT + CAST( 68 AS SIGNED ) AS col1 FROM tab1 cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-8693
SELECT + CAST ( 68 AS INTEGER ) AS col1 FROM tab1 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT + + ( 84 ) * + - MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
8316

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT + + ( 84 ) * + - MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
8316

onlyif mysql # DIV for integer division: 
query II rowsort label-8695
SELECT ALL col1 DIV - 74 AS col0, ( + col0 ) col1 FROM tab0
----
-1
15
0
87
0
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8695
SELECT ALL col1 / - 74 AS col0, ( + col0 ) col1 FROM tab0
----
-1
15
0
87
0
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT + CAST( 33 AS SIGNED ) * - 63 FROM tab1
----
-2079
-2079
-2079

skipif mysql # not compatible
query I rowsort label-8696
SELECT + CAST ( 33 AS INTEGER ) * - 63 FROM tab1
----
-2079
-2079
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT SUM( DISTINCT - 4 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT SUM ( DISTINCT - 4 ) FROM tab2
----
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - 86
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8699
SELECT ( - 42 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT ( - 42 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ( - + MAX( - col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8700
SELECT ( - + MAX ( - col2 ) ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT COUNT( DISTINCT - col1 ) * + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 / ( - col2 ) + + - 31 * + col2 NOT IN ( - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-8701
SELECT COUNT ( DISTINCT - col1 ) * + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 / ( - col2 ) + + - 31 * + col2 NOT IN ( - 11 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT DISTINCT - 44 * col0 * - CAST( NULL AS SIGNED ) + 0 AS col0 FROM tab0 AS cor0 WHERE + 99 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT - 44 * col0 * - CAST ( NULL AS INTEGER ) + 0 AS col0 FROM tab0 AS cor0 WHERE + 99 IS NULL
----

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT col1 + col0 - + 28 * 47 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL - col1 + - + 31 AS col1 FROM tab2 AS cor0
----
-108
-82
-98

query I rowsort
SELECT - 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query II rowsort
SELECT + col1 AS col2, col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8708
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND - col0 * - + CAST( NULL AS SIGNED ) * - - 22
----

skipif mysql # not compatible
query III rowsort label-8708
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND - col0 * - + CAST ( NULL AS INTEGER ) * - - 22
----

query I rowsort
SELECT DISTINCT + + 24 AS col1 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT + col2 * + - 47 + - col2 FROM tab2 AS cor0
----
-1104
-1920
-2784

query II rowsort
SELECT ALL + + 79 + 89 * - ( + col1 ) + + col2 * + + col2 AS col1, - 87 FROM tab2 AS cor0
----
-2520
-87
-3931
-87
-5174
-87

query II rowsort
SELECT col1 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query II rowsort
SELECT - col1 AS col2, 87 FROM tab0 AS cor0
----
-1
87
-21
87
-81
87

query I rowsort
SELECT DISTINCT + col1 + + - col1 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT DISTINCT + - SUM( + 26 ) + + + 32 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT + - SUM ( + 26 ) + + + 32 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT + 95 * + + col0 + - - ( + col0 ) - - - col2 AS col0 FROM tab0 AS cor0
----
1393
8342
9213

query I rowsort
SELECT DISTINCT - + ( + 24 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL 47 + - 95 FROM tab2
----
-48
-48
-48

query I rowsort
SELECT + col2 FROM tab2 WHERE col2 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 + + 35 col1 FROM tab1
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + COUNT( * ) * COUNT( * ) + + 86 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-8721
SELECT + COUNT ( * ) * COUNT ( * ) + + 86 FROM tab0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - SUM( DISTINCT - col0 ) FROM tab1 WHERE - col2 BETWEEN NULL AND col2 - + col1 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT - SUM ( DISTINCT - col0 ) FROM tab1 WHERE - col2 BETWEEN NULL AND col2 - + col1 * - 24
----
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT DISTINCT + ( + col2 ) * col2 + + col1 AS col1, + 50 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
1677
50
3431
50
580
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT DISTINCT col0 + 70 DIV - + col0 col2 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8725
SELECT DISTINCT col0 + 70 / - + col0 col2 FROM tab1 AS cor0
----
50
85
91

query I rowsort
SELECT 98 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
98
98
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8727
SELECT - COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8727
SELECT - COUNT ( * ) AS col1, CAST ( NULL AS REAL ) FROM tab0 cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT + 5 * - 11 FROM tab1
----
-55

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8730
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1, + ( + COUNT( * ) ) FROM tab0
----
9
3

skipif mysql # not compatible
query II rowsort label-8730
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1, + ( + COUNT ( * ) ) FROM tab0
----
9
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT DISTINCT - col2 DIV + 78 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - col2 / + 78 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 * + col1 - col0 + + + 25 FROM tab0 WHERE ( + col2 * col1 / - - 89 ) BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * - 14 <= col1 + + 15 + + 27 * - 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 + - col2 BETWEEN NULL AND col2
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * + - 51 col0 FROM tab1 cor0
----
-1275
-1275
-1275

query I rowsort
SELECT ALL + col0 * 25 FROM tab1 AS cor0
----
1275
2125
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT - - 57 * + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8738
SELECT - - 57 * + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT DISTINCT ( MIN( ALL col1 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT ( MIN ( ALL col1 ) ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT ( CAST( + col0 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8740
SELECT ( CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * col1, col2 * - col1 + - col1 + + col1 col1 FROM tab0 AS cor0
----
-1215
-3807
-1827
-210
-97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT - - col1 * + + CAST( + 19 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1273
1463
969

skipif mysql # not compatible
query I rowsort label-8742
SELECT - - col1 * + + CAST ( + 19 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1273
1463
969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8743
SELECT DISTINCT - + SUM( ALL + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - + SUM ( ALL + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col2 * + + 94 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT ALL col1 * + 61 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
220
2776
803

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8746
SELECT * FROM tab1 WHERE NOT ( + col1 <= - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8746
SELECT * FROM tab1 WHERE NOT ( + col1 <= - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL 65 * + - COUNT( * ) AS col2 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL 65 * + - COUNT ( * ) AS col2 FROM tab0
----
-195

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col0 + + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + 31 * - col1 * + + col0 col1 FROM tab2
----
-11683125
-3345396
-9777152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8750
SELECT ALL 39 * col0 * + CAST( NULL AS SIGNED ), 85 AS col2 FROM tab1
----
NULL
85
NULL
85
NULL
85

skipif mysql # not compatible
query II rowsort label-8750
SELECT ALL 39 * col0 * + CAST ( NULL AS INTEGER ), 85 AS col2 FROM tab1
----
NULL
85
NULL
85
NULL
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT ALL - - CAST( NULL AS SIGNED ) / - 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL - - CAST ( NULL AS INTEGER ) / - 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT - MIN( ALL + col0 ) + COUNT( * ) FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT - MIN ( ALL + col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
-43

query II rowsort
SELECT - - col1, 61 AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
51
61
67
61
77
61

query I rowsort
SELECT 60 + - col1 FROM tab1 AS cor0 WHERE + col2 = NULL
----

query I rowsort
SELECT - col1 + 90 AS col1 FROM tab0
----
69
89
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - - col2 + + - col0 col0 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL + MIN( DISTINCT - - 67 ) col1 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8757
SELECT ALL + MIN ( DISTINCT - - 67 ) col1 FROM tab1 AS cor0
----
67

query I rowsort
SELECT DISTINCT + 63 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
1278
160
1890

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 IN ( - col1 * + col2, col0 + col1, + + col1 * col0 * + - col2 * - col0 + col2 )
----

query I rowsort
SELECT + col0 * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-306
-7590
-9410

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 < + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT ALL - col2 * - col1 * 81 + - - 76 + 47 DIV - + 67 FROM tab0 cor0
----
17086
308443
8095

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - col2 * - col1 * 81 + - - 76 + 47 / - + 67 FROM tab0 cor0
----
17086
308443
8095

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT + + COUNT( * ) + + MAX( - 63 ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT + + COUNT ( * ) + + MAX ( - 63 ) FROM tab1 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT COUNT( * ) - - 49 * 60 AS col2 FROM tab2
----
2943

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT COUNT ( * ) - - 49 * 60 AS col2 FROM tab2
----
2943

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - col2 + - - ( col1 ) * + + 32 NOT BETWEEN col2 AND ( 64 + + 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - + 57 AS col2 FROM tab2
----
-1311
-2280
-3306

query I rowsort
SELECT ALL col0 * + ( + col2 ) - - ( + col2 ) AS col0 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT ALL - 55 - + col1 AS col2 FROM tab1
----
-102
-60
-69

query II rowsort
SELECT DISTINCT - col0 AS col2, + 1 FROM tab1 AS cor0
----
-51
1
-85
1
-91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT COUNT( ALL + - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8770
SELECT COUNT ( ALL + - col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 3 * - 81 + col1 * - + 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8773
SELECT ALL + col1, 89 DIV 79 FROM tab0 AS cor0
----
1
1
21
1
81
1

skipif mysql # not compatible
query II rowsort label-8773
SELECT ALL + col1, 89 / 79 FROM tab0 AS cor0
----
1
1
21
1
81
1

query I rowsort
SELECT DISTINCT + 12 * - col2 FROM tab2 cor0
----
-276
-480
-696

query I rowsort
SELECT col1 * + 75 FROM tab1
----
1050
3525
375

query I rowsort
SELECT DISTINCT - 66 * col0 FROM tab0
----
-5742
-6402
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8777
SELECT - 15 * - CAST( - col1 AS SIGNED ) FROM tab1
----
-210
-705
-75

skipif mysql # not compatible
query I rowsort label-8777
SELECT - 15 * - CAST ( - col1 AS INTEGER ) FROM tab1
----
-210
-705
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8778
SELECT ALL - col2 * - col2 * - col1 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-123200
NULL
-225388
NULL
-26979
NULL

skipif mysql # not compatible
query II rowsort label-8778
SELECT ALL - col2 * - col2 * - col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-123200
NULL
-225388
NULL
-26979
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT DISTINCT - ( + + ( - - 46 ) ) DIV - COUNT( * ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT - ( + + ( - - 46 ) ) / - COUNT ( * ) AS col2 FROM tab2
----
15

query I rowsort
SELECT DISTINCT 47 + + 41 AS col2 FROM tab0 cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 59
----

query I rowsort
SELECT DISTINCT + + 95 * + - col2 + - col2 + + - 23 FROM tab1 cor0
----
-5687
-6551
-9239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8784
SELECT ALL + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8785
SELECT DISTINCT 81 * CAST( NULL AS DECIMAL ) + - col0 / + 12 AS col1, 88 * - - col0 * + - col2 + + 14 FROM tab1
----
NULL
-430834
NULL
-441306
NULL
-544530

skipif mysql # not compatible
query II rowsort label-8785
SELECT DISTINCT 81 * CAST ( NULL AS REAL ) + - col0 / + 12 AS col1, 88 * - - col0 * + - col2 + + 14 FROM tab1
----
NULL
-430834
NULL
-441306
NULL
-544530

query I rowsort
SELECT + col0 - + + 80 FROM tab0 AS cor0
----
-65
17
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col0 ) col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + col0 - - 19 FROM tab0 cor0
----
106
116
34

query I rowsort
SELECT DISTINCT + 7 + + col1 - col2 * - - col2 + - col1 FROM tab0 AS cor0
----
-2202
-93
-9794

query I rowsort
SELECT + + col2 + - 43 + + - ( col2 ) FROM tab2 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT - COUNT( * ) + + - COUNT( DISTINCT - + col0 ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8791
SELECT - COUNT ( * ) + + - COUNT ( DISTINCT - + col0 ) FROM tab0 cor0
----
-6

query I rowsort
SELECT DISTINCT ( - col2 ) - + 30 AS col1 FROM tab1 AS cor0
----
-126
-89
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8793
SELECT ALL 22 + COUNT( * ) DIV + 15 + - + 64 AS col1 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL 22 + COUNT ( * ) / + 15 + - + 64 AS col1 FROM tab2
----
-42

query I rowsort
SELECT ALL + col1 - col0 + - col1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8795
SELECT + ( + CAST( NULL AS SIGNED ) ) + - ( col1 ), - col0 AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-8795
SELECT + ( + CAST ( NULL AS INTEGER ) ) + - ( col1 ), - col0 AS col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - col0 * + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - col0 * + + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT COUNT( * ) * + + 20 FROM tab1, tab1 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8797
SELECT COUNT ( * ) * + + 20 FROM tab1, tab1 AS cor0
----
180

query II rowsort
SELECT 4 + - + col0, + col1 AS col2 FROM tab0
----
-11
81
-83
21
-93
1

query I rowsort
SELECT - 71 FROM tab0 WHERE NOT - + 49 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 52 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + + ( - + 97 ) ) FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8802
SELECT - CAST( NULL AS SIGNED ) * + - col0 + + col0 + - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT - CAST ( NULL AS INTEGER ) * + - col0 + + col0 + - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT - - MIN( col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8804
SELECT - - MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 38 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL > + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8808
SELECT + col2 + + CAST( - col0 AS SIGNED ) - + 61 - 56, - col2 * - CAST( col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-134
4350
-140
1058
-141
2560

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8808
SELECT + col2 + + CAST ( - col0 AS INTEGER ) - + 61 - 56, - col2 * - CAST ( col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-134
4350
-140
1058
-141
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2
----
NULL

query II rowsort
SELECT - col0, + 67 AS col1 FROM tab2
----
-46
67
-64
67
-75
67

query II rowsort
SELECT - col0 AS col2, + 12 AS col2 FROM tab0
----
-15
12
-87
12
-97
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8813
SELECT COUNT( * ) AS col2, 76 + + COUNT( * ) FROM tab2
----
3
79

skipif mysql # not compatible
query II rowsort label-8813
SELECT COUNT ( * ) AS col2, 76 + + COUNT ( * ) FROM tab2
----
3
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT ALL - col2 FROM tab0 WHERE NOT - + CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - col2 FROM tab0 WHERE NOT - + CAST ( + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8815
SELECT - CAST( NULL AS DECIMAL ) / 81 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT - CAST ( NULL AS REAL ) / 81 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT + MIN( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8816
SELECT + MIN ( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
-47

query I rowsort
SELECT ALL - 5 * + - col2 * col2 + ( col0 ) FROM tab2 AS cor0
----
16895
2691
8064

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col1 ) = NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 52 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8820
SELECT - ( 80 ), COUNT( * ) * + 67 AS col0 FROM tab2 AS cor0
----
-80
201

skipif mysql # not compatible
query II rowsort label-8820
SELECT - ( 80 ), COUNT ( * ) * + 67 AS col0 FROM tab2 AS cor0
----
-80
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT ALL - 76 * + 6 - + CAST( - 76 AS SIGNED ) FROM tab2
----
-380
-380
-380

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - 76 * + 6 - + CAST ( - 76 AS INTEGER ) FROM tab2
----
-380
-380
-380

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 * + 17 + - col2 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8823
SELECT ALL - ( + 22 ) DIV MAX( ALL col2 ) * + 30 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL - ( + 22 ) / MAX ( ALL col2 ) * + 30 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - 28 - + 45 AS col1 FROM tab0
----
-10
-73
-47
-73
-99
-73

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - 22 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - col1 ) AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT + col1 AS col0, + 95 AS col0 FROM tab2
----
51
95
67
95
77
95

query I rowsort
SELECT DISTINCT - + 7 * - col2 AS col1 FROM tab0 cor0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL + + SUM( ALL 42 ) FROM tab0 WHERE NOT NULL <= + - col1 / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL + + SUM ( ALL 42 ) FROM tab0 WHERE NOT NULL <= + - col1 / + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL + ( - - COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + ( - - COUNT ( * ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 2 FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8832
SELECT ALL ( - + COUNT( * ) ), 65 + 89 AS col0 FROM tab2 AS cor0
----
-3
154

skipif mysql # not compatible
query II rowsort label-8832
SELECT ALL ( - + COUNT ( * ) ), 65 + 89 AS col0 FROM tab2 AS cor0
----
-3
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 + + col2 col0 FROM tab1
----
1440
3264
354

onlyif mysql # DIV for integer division: 
query II rowsort label-8834
SELECT ALL col0, col1 DIV + + 10 FROM tab0
----
15
8
87
2
97
0

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL col0, col1 / + + 10 FROM tab0
----
15
8
87
2
97
0

query I rowsort
SELECT - col1 * col1 + + col1 + col2 FROM tab2
----
-2527
-4364
-5812

query I rowsort
SELECT + 35 + - 95 * 57 FROM tab0
----
-5380
-5380
-5380

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab1 WHERE NOT NULL IN ( + - ( col1 ), 4 * - - col0, - 56, - - col1 / - - 99 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 76 + + col1 / - ( 9 ) BETWEEN - + 3 AND + col1 * + + col0 * - 42
----

query I rowsort
SELECT - + 75 * + - col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - ( + 37 ) AND - col1
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT - COUNT( * ) + - 58 + - COUNT( * ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT - COUNT ( * ) + - 58 + - COUNT ( * ) FROM tab2 AS cor0
----
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT MAX( DISTINCT - - col2 ) * + 18 col1 FROM tab1
----
1728

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8842
SELECT MAX ( DISTINCT - - col2 ) * + 18 col1 FROM tab1
----
1728

query I rowsort
SELECT col1 * - - col0 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT + ( + - col0 ) + - 22 AS col0 FROM tab1
----
-107
-113
-73

query I rowsort
SELECT - 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT + col2 / - - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT + col2 / - - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / + ( - 38 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 33 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 83 ) * - + 67 FROM tab0 AS cor0
----
-5561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL - 68 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - 68 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 13 - - col1 / 79 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 12
----

query II rowsort
SELECT + + col2 AS col1, col0 FROM tab2 cor0
----
23
46
40
64
58
75

query II rowsort
SELECT ALL - - col0 AS col1, col0 + 69 * - col1 AS col0 FROM tab1 AS cor0
----
51
-915
85
-260
91
-3152

query II rowsort
SELECT DISTINCT - col2 * + 30 AS col2, - col2 FROM tab2
----
-1200
-40
-1740
-58
-690
-23

query I rowsort
SELECT ALL + col1 * + col2 * col1 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8858
SELECT DISTINCT COUNT( * ) * + 52 DIV ( + 24 ) col2 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8858
SELECT DISTINCT COUNT ( * ) * + 52 / ( + 24 ) col2 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 * + - ( - 84 ) + + col0 col1 FROM tab2 AS cor0
----
-22020032
-35437425
-8176178

query I rowsort
SELECT ALL - + ( - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT ALL - - 30 DIV + 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL - - 30 / + 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 12 AS col0 FROM tab1 AS cor0 WHERE + 13 * + + 47 * col1 * + 60 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL 36 + + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL 36 + + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + col1 + - - 41 / CAST( NULL AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + col1 + - - 41 / CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT + - col1 + + ( - col0 ) * + + 40 * - col1 + - col1 DIV - + col2 AS col1 FROM tab2 AS cor0
----
197044
200934
93791

skipif mysql # not compatible
query I rowsort label-8865
SELECT + - col1 + + ( - col0 ) * + + 40 * - col1 + - col1 / - + col2 AS col1 FROM tab2 AS cor0
----
197044
200934
93791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT DISTINCT + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + + COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT - col2 * 64 + + col1 + col1 / - CAST( NULL AS SIGNED ) * + ( + 88 ) + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8867
SELECT - col2 * 64 + + col1 + col1 / - CAST ( NULL AS INTEGER ) * + ( + 88 ) + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8868
SELECT ALL - col0 DIV 83 - - CAST( - 52 AS SIGNED ) + + + col2 AS col1 FROM tab0 AS cor0
----
-43
-5
46

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - col0 / 83 - - CAST ( - 52 AS INTEGER ) + + + col2 AS col1 FROM tab0 AS cor0
----
-43
-5
46

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT 19 + + + 55 AS col0 FROM tab2
----
74

query III rowsort
SELECT * FROM tab2 WHERE + col1 - 65 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT ALL 51 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL 51 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - col0 + - 30 - - 59 >= + col0
----

query I rowsort
SELECT ALL - + ( + - col0 ) FROM tab0 WHERE NOT - col1 <= - 65 * + + 75 * - 94 * + col2
----

query I rowsort
SELECT - col1 * + 13 AS col0 FROM tab0
----
-1053
-13
-273

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8876
SELECT ALL - + ( - + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - + ( - + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8877
SELECT DISTINCT - col1 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT - col1 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 79 * 55 AS col1 FROM tab0
----
4345
4345
4345

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + - 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL + MAX( - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + MAX ( - col1 ) FROM tab1 cor0
----
-5

query I rowsort
SELECT ALL - ( 24 ) / + col0 + 21 + + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL SUM( col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - - ( - + col0 ) <> col0
----

query II rowsort
SELECT ALL + + 89, + 10 AS col1 FROM tab2 AS cor0
----
89
10
89
10
89
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8885
SELECT + ( - ( - + col2 ) ) DIV col0 + - + col2 FROM tab0
----
-10
-44
-98

skipif mysql # not compatible
query I rowsort label-8885
SELECT + ( - ( - + col2 ) ) / col0 + - + col2 FROM tab0
----
-10
-44
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 95 BETWEEN 60 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + col0 col2 FROM tab2
----
1024
1200
736

query II rowsort
SELECT 4, - col1 * + col2 AS col0 FROM tab2
----
4
-1173
4
-3080
4
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-8889
SELECT 10 AS col1, - COUNT( * ) FROM tab1
----
10
-3

skipif mysql # not compatible
query II rowsort label-8889
SELECT 10 AS col1, - COUNT ( * ) FROM tab1
----
10
-3

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 AS col1 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab2 WHERE + 62 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 47 * - col0 FROM tab2 AS cor0
----
-2162
-3008
-3525

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + - 82 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL + SUM( ALL ( + - 33 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL + SUM ( ALL ( + - 33 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT - COUNT( * ) + - 68 col2 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8895
SELECT - COUNT ( * ) + - 68 col2 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT - 56 + 27 * col2 + - 91 FROM tab0
----
1122
123
2526

query II rowsort
SELECT ALL + col0 * + 27, - col2 AS col1 FROM tab0
----
2349
-10
2619
-99
405
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + col1 + 28 - - col1 + + col1
----

query I rowsort
SELECT DISTINCT - - ( + 87 ) FROM tab1 AS cor0 WHERE ( NULL ) > 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT - MIN( DISTINCT - col1 ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8900
SELECT - MIN ( DISTINCT - col1 ) col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
81

query I rowsort
SELECT DISTINCT - col2 + + 83 FROM tab2 AS cor0
----
25
43
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT 96 * ( + MIN( ALL + col1 ) ) + - COUNT( * ) AS col1 FROM tab2
----
4893

skipif mysql # not compatible
query I rowsort label-8902
SELECT 96 * ( + MIN ( ALL + col1 ) ) + - COUNT ( * ) AS col1 FROM tab2
----
4893

query I rowsort
SELECT ALL + col0 + + 62 - + col0 AS col1 FROM tab1
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * + + 6 col0 FROM tab2
----
252

query I rowsort
SELECT + col0 + - 92 + + col2 + - 41 * 18 AS col0 FROM tab1
----
-671
-683
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT COUNT( * ) FROM tab1 WHERE NOT - col0 + + col1 >= NULL OR - - 79 * 99 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8906
SELECT COUNT ( * ) FROM tab1 WHERE NOT - col0 + + col1 >= NULL OR - - 79 * 99 < NULL
----
0

query I rowsort
SELECT + col0 + - col0 + - 19 + - col0 AS col1 FROM tab2
----
-65
-83
-94

query III rowsort
SELECT * FROM tab1 WHERE + + 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 48 ) + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT - SUM( + + col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8910
SELECT - SUM ( + + col2 ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT + col1 DIV + - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8911
SELECT + col1 / + - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8912
SELECT CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8913
SELECT ALL + + CAST( NULL AS SIGNED ) * - CAST( + - MAX( ALL 35 ) AS SIGNED ) * 12 AS col0, + 59 * - 36 * 56 * + 62 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL
-7374528

skipif mysql # not compatible
query II rowsort label-8913
SELECT ALL + + CAST ( NULL AS INTEGER ) * - CAST ( + - MAX ( ALL 35 ) AS INTEGER ) * 12 AS col0, + 59 * - 36 * 56 * + 62 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL
-7374528

query II rowsort
SELECT DISTINCT col0 - - col2, - col0 AS col2 FROM tab1
----
144
-85
147
-51
159
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT DISTINCT 75 + - - 28 * CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT 75 + - - 28 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT + COUNT( DISTINCT - 50 ) * - COUNT( * ) + - COUNT( * ) - + 90 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8916
SELECT + COUNT ( DISTINCT - 50 ) * - COUNT ( * ) + - COUNT ( * ) - + 90 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-108

query I rowsort
SELECT ALL col1 * + 6 FROM tab0
----
126
486
6

query I rowsort
SELECT + - 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT DISTINCT + CAST( + 34 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + CAST ( + 34 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT MIN( + col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT MIN ( + col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + - MAX( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8921
SELECT + - MAX ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT SUM( + ( + 62 ) ) AS col2 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT SUM ( + ( + 62 ) ) AS col2 FROM tab1 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT + COUNT( * ) * 84 AS col1 FROM tab1 cor0
----
252

skipif mysql # not compatible
query I rowsort label-8923
SELECT + COUNT ( * ) * 84 AS col1 FROM tab1 cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 91 * col2 + - col1 > - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT DISTINCT ( + - CAST( - COUNT( * ) AS SIGNED ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT ( + - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT + col2 DIV col2 * - - col2 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8927
SELECT + col2 / col2 * - - col2 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL ( + - 39 ) FROM tab1
----
-39
-39
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8929
SELECT DISTINCT - 7 * + SUM( + CAST( NULL AS SIGNED ) ), ( + - MAX( - 79 ) ) AS col0 FROM tab0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-8929
SELECT DISTINCT - 7 * + SUM ( + CAST ( NULL AS INTEGER ) ), ( + - MAX ( - 79 ) ) AS col0 FROM tab0
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL COUNT( + + 72 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL COUNT ( + + 72 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8931
SELECT CAST( + MIN( ALL 35 ) AS SIGNED ) AS col2 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-8931
SELECT CAST ( + MIN ( ALL 35 ) AS INTEGER ) AS col2 FROM tab2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8932
SELECT + + col2 AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8932
SELECT + + col2 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT - 39 + - - COUNT( * ) AS col1 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 39 + - - COUNT ( * ) AS col1 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * - col2 + - - col0 * + col1 col1 FROM tab0 AS cor0
----
2187
2907
3661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT - 39 / + - CAST( NULL AS SIGNED ) + - + 78 - + 20 + - + col2 * col0 * - 47 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 39 / + - CAST ( NULL AS INTEGER ) + - + 78 - + 20 + - + col2 * col0 * - 47 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 37 + + + col1 IS NULL
----

query II rowsort
SELECT 46 AS col0, 76 + 2 * col2 FROM tab2 AS cor0
----
46
122
46
156
46
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * 78 col0 FROM tab2
----
546
546
546

query II rowsort
SELECT DISTINCT col1 - - 22 AS col0, + col2 * + + col2 FROM tab2
----
73
529
89
3364
99
1600

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 ALL ( + col0 ) + - col0 + + - 85 FROM tab1 AS cor0
----
-85
-85
-85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * + col1 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * + + 19 + - col2 AS col1 FROM tab1 cor0
----
1062
1224
1728

query II rowsort
SELECT DISTINCT ( - col1 ), 1 - - - col1 + + 69 AS col0 FROM tab0 AS cor0
----
-1
69
-21
49
-81
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8947
SELECT + 70 * CAST( NULL AS DECIMAL ) * + AVG ( + - col1 ) AS col1, COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8947
SELECT + 70 * CAST ( NULL AS REAL ) * + AVG ( + - col1 ) AS col1, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL
0

query I rowsort
SELECT ALL 79 AS col1 FROM tab1 WHERE NULL IS NULL
----
79
79
79

query I rowsort
SELECT - 95 AS col2 FROM tab2 WHERE NOT 15 * 92 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + ( - 69 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 AS col1, - 67 FROM tab1
----
-51
-67
-85
-67
-91
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL - COUNT( + + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL - COUNT ( + + col1 ) FROM tab0
----
-3

query I rowsort
SELECT + + 0 * col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab0 cor0
----
43

query I rowsort
SELECT ( + 31 ) FROM tab1
----
31
31
31

query I rowsort
SELECT col0 * - + 31 FROM tab0 WHERE NOT - col0 - + + 38 IS NULL
----
-2697
-3007
-465

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT col2 DIV 2 FROM tab0
----
23
49
5

skipif mysql # not compatible
query I rowsort label-8957
SELECT col2 / 2 FROM tab0
----
23
49
5

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE NOT + col0 <> + + 77 - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT ALL col2 * 98 + + col0 DIV 87 FROM tab0
----
4606
9703
981

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL col2 * 98 + + col0 / 87 FROM tab0
----
4606
9703
981

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT MAX( - + ( + col1 ) ) * - ( 73 ) FROM tab2
----
3723

skipif mysql # not compatible
query I rowsort label-8960
SELECT MAX ( - + ( + col1 ) ) * - ( 73 ) FROM tab2
----
3723

query I rowsort
SELECT ALL + + ( - 54 ) AS col2 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT - 99 AS col1 FROM tab1 cor0
----
-99

query I rowsort
SELECT ALL + 92 + + + col0 - 54 AS col1 FROM tab1 AS cor0
----
123
129
89

query I rowsort
SELECT - col2 + - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ( + ( - col2 ) ) * - ( + col1 ) + - col0 FROM tab2
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - ( + + MIN( - - 30 ) ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-8966
SELECT - ( + + MIN ( - - 30 ) ) FROM tab1
----
-30

query II rowsort
SELECT ALL col0 AS col0, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8969
SELECT DISTINCT CAST( - - 73 AS SIGNED ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT CAST ( - - 73 AS INTEGER ) FROM tab2
----
73

query I rowsort
SELECT DISTINCT + + 21 + + 0 AS col2 FROM tab1 AS cor0
----
21

query I rowsort
SELECT col2 - ( 37 ) + - 87 AS col2 FROM tab2 AS cor0
----
-101
-66
-84

query I rowsort
SELECT + + col1 * - + col1 - - ( - 8 ) + + + col1 FROM tab0 cor0
----
-428
-6488
-8

query I rowsort
SELECT DISTINCT col1 - - 22 FROM tab0 AS cor0
----
103
23
43

query I rowsort
SELECT DISTINCT - col0 + + col2 + + 72 + - - 51 AS col0 FROM tab0
----
125
155
46

query I rowsort
SELECT 15 + col0 AS col0 FROM tab2
----
61
79
90

query I rowsort
SELECT DISTINCT 69 + - - col1 FROM tab2
----
120
136
146

query I rowsort
SELECT DISTINCT + col2 - - 31 FROM tab1
----
127
90
99

query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8979
SELECT ALL - col2 DIV 57 - 14 AS col0 FROM tab0
----
-14
-14
-15

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - col2 / 57 - 14 AS col0 FROM tab0
----
-14
-14
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> - 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT + 95 DIV col1 * - + col1 FROM tab0 AS cor0
----
-81
-84
-95

skipif mysql # not compatible
query I rowsort label-8981
SELECT + 95 / col1 * - + col1 FROM tab0 AS cor0
----
-81
-84
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8982
SELECT ALL + 99 AS col2, - MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
99
91

skipif mysql # not compatible
query II rowsort label-8982
SELECT ALL + 99 AS col2, - MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
99
91

query I rowsort
SELECT ALL + ( + 40 ) AS col1 FROM tab1
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT + + MIN( + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8984
SELECT + + MIN ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + - 24 * - 44 AS col2 FROM tab1 AS cor0
----
1056
1056
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT ALL + col0 DIV - 69 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + col0 / - 69 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT - + SUM( DISTINCT col1 ) * + 23 FROM tab1 AS cor0
----
-1518

skipif mysql # not compatible
query I rowsort label-8987
SELECT - + SUM ( DISTINCT col1 ) * + 23 FROM tab1 AS cor0
----
-1518

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT ALL - 55 DIV - 7 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL - 55 / - 7 FROM tab1 AS cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 98 + - col2 col1, - col1 * col1 FROM tab1 cor0
----
2
-196
30
-2209
39
-25

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
23
40
58

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT + 68 = - - 3
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8993
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-8993
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab2
----
3
-3

query I rowsort
SELECT DISTINCT - 73 + col1 FROM tab1
----
-26
-59
-68

query III rowsort
SELECT * FROM tab2 WHERE 23 / col2 >= NULL
----

query I rowsort
SELECT ALL - col0 * + col1 - - ( - col0 ) AS col2 FROM tab1
----
-4368
-510
-765

query I rowsort
SELECT + col0 * - 5 AS col1 FROM tab1
----
-255
-425
-455

query I rowsort
SELECT + 32 * col1 FROM tab2
----
1632
2144
2464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT DISTINCT CAST( NULL AS SIGNED ) + 8 * + 80 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 8 * + 80 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 12 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT - ( COUNT( + col1 ) ) + - 95 col1 FROM tab0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9001
SELECT DISTINCT - ( COUNT ( + col1 ) ) + - 95 col1 FROM tab0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ( + COUNT( * ) ) + - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9002
SELECT ( + COUNT ( * ) ) + - COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( + 40 ) * 28 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT 31 * COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-9004
SELECT 31 * COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col0 > ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9005
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 > ( + col0 )
----
0

query I rowsort
SELECT ALL ( 97 ) AS col1 FROM tab1
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT ALL + CAST( col0 AS SIGNED ) * - col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + CAST ( col0 AS INTEGER ) * - col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT + col0 + col1 DIV + 1 AS col2 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9008
SELECT + col0 + col1 / + 1 AS col2 FROM tab2
----
141
142
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 27 = NULL
----

query I rowsort
SELECT - col0 + + 89 AS col0 FROM tab1
----
-2
38
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT + CAST( NULL AS SIGNED ) + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT + CAST ( NULL AS INTEGER ) + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT + COUNT( * ) + - ( COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT + COUNT ( * ) + - ( COUNT ( * ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 8 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - - 4 FROM tab2
----
-42
-60
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT + col0 DIV 51 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9015
SELECT + col0 / 51 FROM tab0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9016
SELECT - 44 DIV ( - 68 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9016
SELECT - 44 / ( - 68 ) FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT DISTINCT col1 FROM tab1 WHERE NULL > ( + CAST( + col1 AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT col1 FROM tab1 WHERE NULL > ( + CAST ( + col1 AS INTEGER ) * col2 )
----

query I rowsort
SELECT 74 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + col2 ) * col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT - 0 FROM tab0 WHERE ( NULL ) > ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) <= ( 22 / col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - MAX( + ( + ( + 89 ) ) ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-9022
SELECT - MAX ( + ( + ( + 89 ) ) ) FROM tab1
----
-89

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT - col2 * col1 <> - 8 * col0 + - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT MAX( col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9024
SELECT MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT 45 * col1 AS col0 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT 45 + col1 / 78 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( 12 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9027
SELECT ALL * FROM tab1 WHERE CAST( + col2 AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9027
SELECT ALL * FROM tab1 WHERE CAST ( + col2 AS INTEGER ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT MAX( ALL 26 ) * + 58 FROM tab2
----
1508

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT MAX ( ALL 26 ) * + 58 FROM tab2
----
1508

query I rowsort
SELECT DISTINCT + col2 * + 58 FROM tab0 AS cor0
----
2726
5742
580

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9030
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + CAST( 20 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9030
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + CAST ( 20 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL ( - col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0 WHERE NOT - 14 < col1 + + 8 * col2
----

query I rowsort
SELECT 79 FROM tab0 AS cor0 WHERE NOT + ( col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT ALL - - ( + col1 ) DIV - col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL - - ( + col1 ) / - col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT ALL + - col0 DIV - ( + 11 ) FROM tab2 AS cor0
----
4
5
6

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL + - col0 / - ( + 11 ) FROM tab2 AS cor0
----
4
5
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 * col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - ( + 87 ) AS col0 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT - col1 * 76 FROM tab0 AS cor0
----
-1596
-6156
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT COUNT( * ) * - 0 + + 75 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT COUNT ( * ) * - 0 + + 75 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 58 ) IS NOT NULL
----

query I rowsort
SELECT ALL 80 AS col0 FROM tab0 WHERE NOT col0 * - col1 BETWEEN + col2 + col0 AND NULL
----
80
80
80

query I rowsort
SELECT + col2 * + 30 * col1 AS col0 FROM tab0
----
114210
2970
6300

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN NULL AND + 28 + 92
----

query I rowsort
SELECT ALL - 74 * ( col2 ) + 29 * + col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT - CAST( MAX( DISTINCT + col1 ) AS SIGNED ) * ( 82 ) col2 FROM tab0
----
-6642

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9046
SELECT - CAST ( MAX ( DISTINCT + col1 ) AS INTEGER ) * ( 82 ) col2 FROM tab0
----
-6642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * + AVG ( col1 * - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * + AVG ( col1 * - col1 ) FROM tab1
----
NULL

query I rowsort
SELECT 73 AS col2 FROM tab2 WHERE ( col2 ) = ( col0 )
----

query I rowsort
SELECT DISTINCT - col2 * ( 35 ) * 50 FROM tab0
----
-173250
-17500
-82250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT - 71 / - + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT - 71 / - + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT DISTINCT ( - COUNT( * ) ) * + 38 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT ( - COUNT ( * ) ) * + 38 FROM tab1
----
-114

query I rowsort
SELECT 6 + col2 * 35 AS col2 FROM tab2
----
1406
2036
811

query I rowsort
SELECT ALL 18 / col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 + 84 col2 FROM tab2
----
47
56
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT + col1 * - col0 + col1 DIV col0 FROM tab0 AS cor0
----
-1210
-1827
-97

skipif mysql # not compatible
query I rowsort label-9055
SELECT + col1 * - col0 + col1 / col0 FROM tab0 AS cor0
----
-1210
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9058
SELECT * FROM tab1 WHERE - - col2 >= - ( CAST( + col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9058
SELECT * FROM tab1 WHERE - - col2 >= - ( CAST ( + col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 10 + - + col2 FROM tab0
----
-37
-89
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND - - col2
----

query II rowsort
SELECT ALL + col0, + 46 * - - col1 FROM tab2 AS cor0
----
46
2346
64
3542
75
3082

onlyif mysql # DIV for integer division: 
query II rowsort label-9062
SELECT DISTINCT + - col2 AS col0, + col1 DIV col1 FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

skipif mysql # not compatible
query II rowsort label-9062
SELECT DISTINCT + - col2 AS col0, + col1 / col1 FROM tab2 AS cor0
----
-23
1
-40
1
-58
1

query I rowsort
SELECT ALL ( + col2 ) + + col1 + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-361
-4162
-604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9064
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - - 40 ) + - col1 AS col1 FROM tab1 AS cor0
----
-45
-54
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - col2 ) NOT IN ( 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + - - 74 * + col1 AS col0 FROM tab0 AS cor0
----
-23
1467
5979

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT 1 + - COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9068
SELECT 1 + - COUNT ( * ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE 52 * col2 * + ( + col1 / col1 ) IN ( col1 )
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT col0 BETWEEN - + col2 * + col1 + col1 * + 13 AND + col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL MAX( - 55 ) AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL MAX ( - 55 ) AS col0 FROM tab0
----
-55

query I rowsort
SELECT 33 FROM tab0 WHERE NOT - - col1 < - col1
----
33
33
33

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - + 84 NOT BETWEEN + 11 + 91 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9074
SELECT ALL + COUNT( ALL CAST( + 59 AS DECIMAL ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + COUNT ( ALL CAST ( + 59 AS REAL ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 NOT BETWEEN col0 AND ( + 21 )
----

query I rowsort
SELECT + 82 * + + col0 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL IN ( - 9 ) )
----

query I rowsort
SELECT ALL + col2 * + + 78 FROM tab1 AS cor0
----
4602
5304
7488

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9079
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - ( - col1 ) AS SIGNED ) * + col0 + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9079
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - ( - col1 ) AS INTEGER ) * + col0 + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT COUNT( * ) * + COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9080
SELECT COUNT ( * ) * + COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-27

query I rowsort
SELECT ALL - 33 * col1 FROM tab0
----
-2673
-33
-693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT + col2 FROM tab2 WHERE NOT col2 + + CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9082
SELECT + col2 FROM tab2 WHERE NOT col2 + + CAST ( - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT 63 * 69 * - col1 DIV - - col1 AS col2 FROM tab2
----
-4347
-4347
-4347

skipif mysql # not compatible
query I rowsort label-9083
SELECT 63 * 69 * - col1 / - - col1 AS col2 FROM tab2
----
-4347
-4347
-4347

query I rowsort
SELECT DISTINCT + 69 * - 81 AS col0 FROM tab2 AS cor0
----
-5589

query I rowsort
SELECT DISTINCT - ( + - 91 ) + - + col0 AS col1 FROM tab1 AS cor0
----
0
40
6

query I rowsort
SELECT - 63 + col1 FROM tab1 cor0
----
-16
-49
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT + + col0 / - ( - col2 ) + - CAST( NULL AS SIGNED ) + - 9 * + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT + + col0 / - ( - col2 ) + - CAST ( NULL AS INTEGER ) + - 9 * + 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 67 + - + col2 FROM tab0 cor0
----
-114
-166
-77

query I rowsort
SELECT - col0 + - - col1 + - - col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col2 + - - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT + 0 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + 0 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 + + - col0 + - col2 * - col0 * - col2 - + col1 AS col0 FROM tab1 AS cor0
----
-295890
-420831
-470030

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 70 + - 74 + col0 >= NULL AND col1 + - 14 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - - 90 * + col2 + + 81 AS col1 FROM tab1 AS cor0
----
5391
6201
8721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - + col0 col0 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT ALL + col2 DIV + col2 + - - col2 * - col2 * - col0 AS col0 FROM tab1
----
295886
420785
470017

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL + col2 / + col2 + - - col2 * - col2 * - col0 AS col0 FROM tab1
----
295886
420785
470017

query I rowsort
SELECT ALL col1 + - col0 FROM tab0 WHERE NOT ( NOT + ( col2 ) IN ( + col1 ) )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND 92 + + + col2
----

query I rowsort
SELECT ALL - 15 + + col2 AS col1 FROM tab2 WHERE NOT ( NULL IN ( - col0, - 23 * - + 25 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 * - - 90 AS col2, - col1 col0 FROM tab2
----
6300
-51
6300
-67
6300
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT ALL + 2 DIV + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL + 2 / + COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT - CAST( + 12 AS SIGNED ) FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-9102
SELECT - CAST ( + 12 AS INTEGER ) FROM tab2
----
-12
-12
-12

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( + + col2 / - col2 + + 26 + + 46 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * col0 col1 FROM tab0 cor0 WHERE NOT - col2 * - - col2 <> + col0 / col0
----

query II rowsort
SELECT + + col2 - - + col1 AS col1, + 60 * - col2 FROM tab0 AS cor0
----
100
-5940
128
-2820
31
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT 1 IS NOT NULL, tab1 AS cor2
----
81 values hashing to 2de4daf0222d466d2263f7f2c5a8b989

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE + 12 BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT DISTINCT + + 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT COUNT( * ) AS col1 FROM tab0 WHERE - col1 * col1 / + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9110
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE - col1 * col1 / + col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9111
SELECT DISTINCT + + ( + 50 ) / + CAST( NULL AS DECIMAL ) * + 27 * + + col2 / - col1 + - col2 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9111
SELECT DISTINCT + + ( + 50 ) / + CAST ( NULL AS REAL ) * + 27 * + + col2 / - col1 + - col2 col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) NOT IN ( col1, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL = NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9114
SELECT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL = NULL )
----
0

query I rowsort
SELECT ALL 17 AS col0 FROM tab0 AS cor0 WHERE NOT 0 - col1 + + col0 + - col1 - + 73 * - 32 IS NOT NULL
----

query I rowsort
SELECT - + 92 * 1 FROM tab0 AS cor0
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT ( + col0 ) BETWEEN ( - 0 + col1 ) AND - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL <> col2 * - col0 * col1
----

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL <> col2 * - col0 * col1
----

query I rowsort
SELECT ( + + 14 ) AS col1 FROM tab1
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - col1 * + 12 col1 FROM tab2
----
23
-612
40
-924
58
-804

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE ( - col1 <> + - col0 * - col0 * + + col2 + - 93 + col2 ) OR NOT - col0 + 46 < + col1 + + ( col2 + col2 )
----
46
64
75

query II rowsort
SELECT 31 AS col0, + 13 FROM tab0
----
31
13
31
13
31
13

query II rowsort
SELECT col0, 32 * + 0 AS col0 FROM tab0
----
15
0
87
0
97
0

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col1 * + 72 FROM tab1
----
1008
3384
360

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col1 + + - col2 * - - col2 + - col0 * + - col0 + + 4 < 53
----
10

query I rowsort
SELECT - ( + 21 ) FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT ALL - AVG ( DISTINCT - 15 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( col0 )
----
NULL

query I rowsort
SELECT DISTINCT col1 * 83 FROM tab2
----
4233
5561
6391

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col1 * col2, col0 * + 86, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT + MAX( + - col0 ) FROM tab1 AS cor0 WHERE - col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT + MAX ( + - col0 ) FROM tab1 AS cor0 WHERE - col0 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL COUNT( * ) + - - MIN( ALL + col2 ) + - ( + - MIN( DISTINCT - 24 ) ) AS col0 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL COUNT ( * ) + - - MIN ( ALL + col2 ) + - ( + - MIN ( DISTINCT - 24 ) ) AS col0 FROM tab1 AS cor0
----
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / - col2 * col1 NOT IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) AS col2 FROM tab2 cor0
----
-2116
-4096
-5625

query II rowsort
SELECT ALL - 59 + col2, 34 AS col1 FROM tab0 AS cor0
----
-12
34
-49
34
40
34

query I rowsort
SELECT ALL + - 16 * 21 AS col2 FROM tab2 AS cor0
----
-336
-336
-336

query I rowsort
SELECT 57 + + + col2 * - col1 AS col1 FROM tab0
----
-153
-3750
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT + col2 + 94 + + - col0 DIV - col2 col1 FROM tab1
----
154
163
190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9138
SELECT + col2 + 94 + + - col0 / - col2 col1 FROM tab1
----
154
163
190

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN - + 27 * - 16 / + col1 + - col0 / - col2 / - - ( col2 ) AND + 57
----

query I rowsort
SELECT 49 + + 44 AS col1 FROM tab0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT ALL + col2 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL + col2 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col1, col2 * - + 61 col2 FROM tab0
----
1
-6039
21
-610
81
-2867

query I rowsort
SELECT - 7 * - 23 + + col1 FROM tab1
----
166
175
208

query I rowsort
SELECT col2 + + - col2 + col1 + + ( + col1 ) AS col2 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9145
SELECT ALL + col2 FROM tab2 WHERE NOT ( 46 ) BETWEEN - CAST( + col2 AS DECIMAL ) + - + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + col2 FROM tab2 WHERE NOT ( 46 ) BETWEEN - CAST ( + col2 AS REAL ) + - + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col2 FROM tab0 WHERE - - ( + col2 ) IS NOT NULL
----
9
9
9

query I rowsort
SELECT DISTINCT - 98 + - ( col0 ) AS col1 FROM tab2 AS cor0
----
-144
-162
-173

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col1 <> + + ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + + MIN( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9149
SELECT + + MIN ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
23

query II rowsort
SELECT ALL col1, col2 AS col0 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL + - 63 * - + MIN( - + col1 ) AS col1 FROM tab1 cor0
----
-2961

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + - 63 * - + MIN ( - + col1 ) AS col1 FROM tab1 cor0
----
-2961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT - col1 * + + CAST( + + 13 AS SIGNED ) FROM tab1 cor0
----
-182
-611
-65

skipif mysql # not compatible
query I rowsort label-9152
SELECT - col1 * + + CAST ( + + 13 AS INTEGER ) FROM tab1 cor0
----
-182
-611
-65

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE NOT + ( - 80 ) / + 30 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT + 46 DIV + MAX( DISTINCT col0 ) + - + ( - 13 ) + + - SUM( ALL - - col1 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9154
SELECT + 46 / + MAX ( DISTINCT col0 ) + - + ( - 13 ) + + - SUM ( ALL - - col1 ) FROM tab0 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + col2 * col1 / + col1 + + col2 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9156
SELECT ALL + 89 * ( + COUNT( * ) ) DIV - COUNT( * ) FROM tab2, tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + 89 * ( + COUNT ( * ) ) / - COUNT ( * ) FROM tab2, tab1 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ( + + ( + ( - - COUNT( * ) ) ) ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9157
SELECT ( + + ( + ( - - COUNT ( * ) ) ) ) FROM tab2 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( - - 42 ) AS col0 FROM tab1
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9159
SELECT - CAST( 65 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-9159
SELECT - CAST ( 65 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT + + COUNT( * ) + - 7 AS col2 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9162
SELECT + + COUNT ( * ) + - 7 AS col2 FROM tab0 cor0
----
-4

query I rowsort
SELECT 33 + - col0 * + 97 + 31 AS col1 FROM tab1 AS cor0
----
-4883
-8181
-8763

query I rowsort
SELECT ALL + - 23 + + 52 * - + 33 - 92 AS col1 FROM tab0 AS cor0
----
-1831
-1831
-1831

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT + col0 + col2 - - - col0 DIV + + col0 FROM tab2 AS cor0
----
103
132
68

skipif mysql # not compatible
query I rowsort label-9165
SELECT + col0 + col2 - - - col0 / + + col0 FROM tab2 AS cor0
----
103
132
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT + SUM( - + col0 ) AS col2 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-9168
SELECT + SUM ( - + col0 ) AS col2 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
-227

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 30 ) col1 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT col0 * - + 51 FROM tab1
----
-2601
-4335
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT + COUNT( * ) * 61 AS col0 FROM tab2 WHERE - col1 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT + COUNT ( * ) * 61 AS col0 FROM tab2 WHERE - col1 >= col0
----
0

query I rowsort
SELECT - col1 - col2 * 59 FROM tab2
----
-1408
-2437
-3489

query I rowsort
SELECT + 62 - 5 FROM tab0
----
57
57
57

query I rowsort
SELECT ALL + + col0 * + col0 + + col2 FROM tab1 AS cor0
----
2697
7284
8349

onlyif mysql # DIV for integer division: 
query II rowsort label-9176
SELECT ALL + + col0 + + col1 * + ( col0 ), - 44 * col2 DIV + 74 AS col0 FROM tab0 AS cor0
----
1230
-27
1914
-5
194
-58

skipif mysql # not compatible
query II rowsort label-9176
SELECT ALL + + col0 + + col1 * + ( col0 ), - 44 * col2 / + 74 AS col0 FROM tab0 AS cor0
----
1230
-27
1914
-5
194
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col2 * 10 FROM tab2
----
16000
33640
5290

query II rowsort
SELECT DISTINCT 84 AS col1, col0 FROM tab1
----
84
51
84
85
84
91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 + - 73 * + + 1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT DISTINCT - CAST( + - col0 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT - CAST ( + - col0 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT - MIN( - + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT - MIN ( - + col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 30 ) AND ( NULL )
----

query I rowsort
SELECT - col0 * + - 59 AS col2 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - col0 ) FROM tab0 WHERE NULL NOT IN ( - - col2, 13 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT - col1 DIV - - col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9186
SELECT - col1 / - - col1 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT - 79 DIV + + 32 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9187
SELECT - 79 / + + 32 FROM tab0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( + col0 * + col1 + + 39 * + - 7 + - 40 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE + + 24 NOT BETWEEN + col1 AND - col1 + col0
----
-47

query I rowsort
SELECT DISTINCT 74 + 2 AS col1 FROM tab0 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9191
SELECT DISTINCT + col1, 22 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9191
SELECT DISTINCT + col1, 22 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col1 FROM tab0 cor0
----
-21

query I rowsort
SELECT DISTINCT - + col1 * - col2 + col2 + - 34 * + 13 * + + 7 + + col1 AS col1 FROM tab2 AS cor0
----
-1847
103
917

query I rowsort
SELECT + - col0 + + + col2 + + 15 AS col0 FROM tab2 cor0
----
-2
-8
-9

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - ( - col2 ) IS NOT NULL OR ( NULL ) NOT IN ( + ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT - COUNT( * ) * - MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-9196
SELECT - COUNT ( * ) * - MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
-243

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND - col1 + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - col0 NOT IN ( 1 + 14 / + + 17 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT DISTINCT - col1 + - 23 * CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1980
2230
264

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT - col1 + - 23 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1980
2230
264

query I rowsort
SELECT 58 + + - col1 AS col1 FROM tab1 AS cor0
----
11
44
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9201
SELECT - ( 37 ) DIV - 80 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-9201
SELECT - ( 37 ) / - 80 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT 80 + + col1 AS col2 FROM tab1
----
127
85
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + + - 60 col0 FROM tab1
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT SUM( - 70 ) AS col1 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT SUM ( - 70 ) AS col1 FROM tab0
----
-210

onlyif mysql # DIV for integer division: 
query II rowsort label-9205
SELECT DISTINCT + col1 DIV col1 - 76 AS col1, + col2 + - + col0 AS col0 FROM tab0
----
-75
-77
-75
2
-75
32

skipif mysql # not compatible
query II rowsort label-9205
SELECT DISTINCT + col1 / col1 - 76 AS col1, + col2 + - + col0 AS col0 FROM tab0
----
-75
-77
-75
2
-75
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT 29 + COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9207
SELECT 29 + COUNT ( * ) FROM tab2
----
32

query I rowsort
SELECT DISTINCT + col2 * 17 FROM tab1
----
1003
1156
1632

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT - ( - + col1 ) * ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT - ( - + col1 ) * ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 49 * - col0 * col2 col0 FROM tab0 cor0
----
34545
42630
470547

query I rowsort
SELECT ALL - col1 * + - 18 FROM tab0 AS cor0
----
1458
18
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT ALL + CAST( + - 4 AS SIGNED ) + + - col2 FROM tab1 cor0
----
-100
-63
-72

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + CAST ( + - 4 AS INTEGER ) + + - col2 FROM tab1 cor0
----
-100
-63
-72

query II rowsort
SELECT ALL col1 AS col0, + 92 AS col2 FROM tab1 AS cor0
----
14
92
47
92
5
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT col1 DIV ( - col0 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9215
SELECT col1 / ( - col0 ) FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT + - 50 AS col2, ( - col1 ) FROM tab2 AS cor0
----
-50
-51
-50
-67
-50
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + - col0 IN ( col1, col1 / col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN - - 17 AND 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT 92 * - - COUNT( * ) * - 13 AS col2 FROM tab2 cor0
----
-3588

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT 92 * - - COUNT ( * ) * - 13 AS col2 FROM tab2 cor0
----
-3588

query I rowsort
SELECT - col1 * col1 * - - col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT + - SUM( + + 23 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + - SUM ( + + 23 ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT 37 * - col0 AS col0 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT - COUNT( * ) * + - 43 + 33 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
162

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - COUNT ( * ) * + - 43 + 33 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
162

query I rowsort
SELECT 83 * - + 71 * + + col2 FROM tab2 AS cor0
----
-135539
-235720
-341794

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT MIN( ALL - col1 ) * + - 8 AS col2 FROM tab0 AS cor0
----
648

skipif mysql # not compatible
query I rowsort label-9226
SELECT MIN ( ALL - col1 ) * + - 8 AS col2 FROM tab0 AS cor0
----
648

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT - 82 * col1 DIV - + 94 FROM tab1 AS cor0
----
12
4
41

skipif mysql # not compatible
query I rowsort label-9227
SELECT - 82 * col1 / - + 94 FROM tab1 AS cor0
----
12
4
41

query I rowsort
SELECT + 87 * - + 24 AS col1 FROM tab0 AS cor0
----
-2088
-2088
-2088

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT SUM( ALL - 48 ) col2 FROM tab2
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9230
SELECT SUM ( ALL - 48 ) col2 FROM tab2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL + MIN( + + col1 ) * SUM( - col0 ) - + COUNT( * ) - - 6 FROM tab1
----
-1132

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + MIN ( + + col1 ) * SUM ( - col0 ) - + COUNT ( * ) - - 6 FROM tab1
----
-1132

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT ALL - col2 DIV col0 col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9232
SELECT ALL - col2 / col0 col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL 43 + + ( - col0 ) FROM tab1 AS cor0
----
-42
-48
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9234
SELECT ALL + + ( 16 ) DIV - col0 + - + col1 * - col0 * + col1 FROM tab1 AS cor0
----
201019
2125
9996

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + + ( 16 ) / - col0 + - + col1 * - col0 * + col1 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 38 + - - col0 + - col0 + - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 38 + - - col0 + - col0 + - col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9236
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab1 AS cor0 WHERE NOT + 14 * - 87 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT ALL CAST( + 1 AS SIGNED ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL CAST ( + 1 AS INTEGER ) FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - - 71 + - + 0 + + + 20 / + - col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT COUNT( - + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT COUNT ( - + col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + - - 3 col2, - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-56
-144
-65
-159
-93
-147

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> - 53 * - 96 + + + col1
----

query I rowsort
SELECT - + 33 FROM tab2 cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - 47 * - + 81 + + 36 - - 67 FROM tab0 AS cor0
----
3910

query I rowsort
SELECT ALL - 13 * + 5 + 22 AS col1 FROM tab0 cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - + COUNT( * ) AS col2 FROM tab0 WHERE - + col2 + + col2 BETWEEN 55 AND + 83
----
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT - + COUNT ( * ) AS col2 FROM tab0 WHERE - + col2 + + col2 BETWEEN 55 AND + 83
----
0

query I rowsort
SELECT DISTINCT col2 * - 89 + col0 FROM tab2
----
-2001
-3496
-5087

query I rowsort
SELECT 18 - - col2 FROM tab2
----
41
58
76

query I rowsort
SELECT DISTINCT col0 * col2 - + col1 FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9251
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9252
SELECT * FROM tab1 WHERE NOT col2 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9252
SELECT * FROM tab1 WHERE NOT col2 <> + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, + col1 + col2 col2 FROM tab2 AS cor0
----
23
74
40
117
58
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + 13 col1 FROM tab0 AS cor0 WHERE NOT ( + 99 ) IS NULL
----
-68
-8
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9255
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col2 * - - 1 > NULL
----

skipif mysql # not compatible
query III rowsort label-9255
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col2 * - - 1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT + COUNT( * ) * + SUM( 79 ) + - SUM( ALL + 23 ) AS col1 FROM tab1 AS cor0
----
642

skipif mysql # not compatible
query I rowsort label-9256
SELECT + COUNT ( * ) * + SUM ( 79 ) + - SUM ( ALL + 23 ) AS col1 FROM tab1 AS cor0
----
642

query I rowsort
SELECT ALL + col1 + - - col0 + - 18 AS col2 FROM tab2 AS cor0
----
123
124
79

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 * col2 + - 38 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9260
SELECT DISTINCT col0 DIV + 96, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9260
SELECT DISTINCT col0 / + 96, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT DISTINCT + CAST( NULL AS SIGNED ) / ( col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / ( col0 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 31 + 93 AS col1 FROM tab1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - MIN( ALL + col1 ) + 72 AS col0 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-9263
SELECT - MIN ( ALL + col1 ) + 72 AS col0 FROM tab1
----
67

query I rowsort
SELECT DISTINCT col1 * + col1 * + col1 AS col2 FROM tab1 AS cor0
----
103823
125
2744

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9265
SELECT DISTINCT - col2 + - CAST( NULL AS DECIMAL ) * - col0 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - col2 + - CAST ( NULL AS REAL ) * - col0 * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 94 + 63 FROM tab1 cor0
----
-31
-31
-31

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE 46 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT + + col0 DIV 22 * + + col2 + 46 + 91 FROM tab0 AS cor0
----
137
167
533

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + + col0 / 22 * + + col2 + 46 + 91 FROM tab0 AS cor0
----
137
167
533

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 NOT BETWEEN NULL AND - - col1 + - - 63 - - col0
----

query I rowsort
SELECT col0 * + - col1 * - 79 * - col2 FROM tab1
----
-1980925
-22976044
-5414976

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 / - 76 * col1 <= NULL
----

query I rowsort
SELECT + ( + col1 ) + + col2 AS col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT ALL + ( 74 ) AS col2 FROM tab0 AS cor0
----
74
74
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( NOT - + col0 NOT BETWEEN 22 * col1 * + col2 AND col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - COUNT( * ) - - 90 * 73 AS col2 FROM tab1 AS cor0
----
6567

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - COUNT ( * ) - - 90 * 73 AS col2 FROM tab1 AS cor0
----
6567

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT - 65 * col2 + + col1 + - 72 DIV - 60 AS col0 FROM tab0 AS cor0
----
-2973
-628
-6433

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 65 * col2 + + col1 + - 72 / - 60 AS col0 FROM tab0 AS cor0
----
-2973
-628
-6433

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT col1 + + col2 DIV + col1 - 39 * - col0 AS col0 FROM tab2
----
1845
2573
2992

skipif mysql # not compatible
query I rowsort label-9278
SELECT col1 + + col2 / + col1 - 39 * - col0 AS col0 FROM tab2
----
1845
2573
2992

query I rowsort
SELECT - col1 + + col0 + - - col0 FROM tab1
----
135
165
88

query I rowsort
SELECT 70 + 84 FROM tab0
----
154
154
154

query I rowsort
SELECT DISTINCT col0 - + 58 * col0 AS col0 FROM tab1
----
-2907
-4845
-5187

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 col1, - col2 * col0 * + + col2 col2 FROM tab0 AS cor0
----
34
-33135
34
-8700
34
-950697

query I rowsort
SELECT - 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL - SUM( DISTINCT - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL - SUM ( DISTINCT - col1 ) AS col2 FROM tab2
----
195

query I rowsort
SELECT ALL + 3 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab1 cor0
----
-26

query I rowsort
SELECT DISTINCT - - col0 + - - col0 * + + col0 * - col2 + + col0 + + col1 * - ( + + 43 ) + ( + col0 ) * - col2 AS col1 FROM tab2 AS cor0
----
-169583
-333331
-51827

query I rowsort
SELECT DISTINCT + 24 * - 69 + col2 FROM tab1 AS cor0
----
-1560
-1588
-1597

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 BETWEEN ( NULL ) AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT col0 DIV 60 + + col0 FROM tab0 AS cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-9291
SELECT col0 / 60 + + col0 FROM tab0 AS cor0
----
15
88
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT + col0 + 90 * + ( + 10 ) * col0 DIV - - col0 + 15 * + 66 - + 31 AS col2 FROM tab1 AS cor0
----
1910
1944
1950

skipif mysql # not compatible
query I rowsort label-9292
SELECT + col0 + 90 * + ( + 10 ) * col0 / - - col0 + 15 * + 66 - + 31 AS col2 FROM tab1 AS cor0
----
1910
1944
1950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * + - col2 AS col0, + 83 * + + 21 col2 FROM tab1 AS cor0
----
-3481
1743
-4624
1743
-9216
1743

query I rowsort
SELECT DISTINCT - col2 * - + col2 AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT - COUNT( * ) * - 48 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-9295
SELECT - COUNT ( * ) * - 48 FROM tab2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT ALL + col2 * CAST( col1 AS SIGNED ) col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9296
SELECT ALL + col2 * CAST ( col1 AS INTEGER ) col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT DISTINCT COUNT( * ) * 25 AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT COUNT ( * ) * 25 AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT - 4 * COUNT( * ) * + + 40 FROM tab1
----
-480

skipif mysql # not compatible
query I rowsort label-9298
SELECT - 4 * COUNT ( * ) * + + 40 FROM tab1
----
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL CAST( - + 13 AS SIGNED ) col2 FROM tab0
----
-13
-13
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9299
SELECT ALL CAST ( - + 13 AS INTEGER ) col2 FROM tab0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT + - MIN( 56 ) AS col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9300
SELECT + - MIN ( 56 ) AS col1 FROM tab1 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - 12 col1 FROM tab0 AS cor0
----
111
22
59

query I rowsort
SELECT DISTINCT - + 28 + - col1 AS col2 FROM tab2 AS cor0
----
-105
-79
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col2 + 95 col1 FROM tab0
----
172
63
93

query II rowsort
SELECT col0 + col1 AS col1, col1 AS col2 FROM tab0
----
108
21
96
81
98
1

query I rowsort
SELECT ALL col0 - + - col1 FROM tab2
----
141
142
97

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL < + 81
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9307
SELECT DISTINCT - - COUNT( DISTINCT + ( + ( - + col0 ) ) ), - 40 AS col0 FROM tab2 cor0
----
3
-40

skipif mysql # not compatible
query II rowsort label-9307
SELECT DISTINCT - - COUNT ( DISTINCT + ( + ( - + col0 ) ) ), - 40 AS col0 FROM tab2 cor0
----
3
-40

query I rowsort
SELECT ALL col2 * col0 + + col2 + 7 AS col2 FROM tab1 AS cor0
----
4999
5081
6263

query I rowsort
SELECT ALL - col1 + - 60 AS col2 FROM tab1 AS cor0
----
-107
-65
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT + MAX( + - CAST( col2 AS SIGNED ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9310
SELECT + MAX ( + - CAST ( col2 AS INTEGER ) ) FROM tab0
----
-10

query I rowsort
SELECT col2 * + 17 AS col1 FROM tab1
----
1003
1156
1632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col1 FROM tab1 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9313
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9313
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT - 26 DIV - col2 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT - 26 / - col2 * col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 84 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL ( - + col0 ) AS col0 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT ALL 66, col0 FROM tab2
----
66
46
66
64
66
75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 / + - 76 IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT - col1 * col1 - + + 1 FROM tab2 AS cor0
----
-2602
-4490
-5930

query II rowsort
SELECT - 12, col1 AS col1 FROM tab1 AS cor0
----
-12
14
-12
47
-12
5

query I rowsort
SELECT 15 * - col1 FROM tab0
----
-1215
-15
-315

query I rowsort
SELECT ALL 59 + col1 - + + 46 * - - 95 FROM tab0
----
-4230
-4290
-4310

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL MIN( ALL - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL MIN ( ALL - col1 ) AS col2 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 47 NOT IN ( - ( - 20 ), col2, + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT + 93 * + - 56 * - col0 + + + col2 AS col2, col1 * 66 FROM tab1
----
265704
924
442739
330
473996
3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT + ( + 69 ) + - COUNT( * ) + + COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT + ( + 69 ) + - COUNT ( * ) + + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT + MIN( + + col0 ) * + 50 - + + 67 AS col0 FROM tab1 cor0
----
2483

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT + MIN ( + + col0 ) * + 50 - + + 67 AS col0 FROM tab1 cor0
----
2483

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9331
SELECT ALL CAST( NULL AS DECIMAL ) * col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL CAST ( NULL AS REAL ) * col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL SUM( + 65 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * col2 <> - 99
----
65

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL SUM ( + 65 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * col2 <> - 99
----
65

query I rowsort
SELECT ALL - 30 * - col1 AS col1 FROM tab0 AS cor0
----
2430
30
630

query I rowsort
SELECT ALL col1 * col2 FROM tab1 AS cor0 WHERE NOT + 71 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT ALL + 71 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + 71 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9336
SELECT ALL + col0 DIV 25 FROM tab1 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL + col0 / 25 FROM tab1 AS cor0
----
2
3
3

query I rowsort
SELECT + col1 * - - col1 * + + col0 + + col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 IS NULL AND 17 * 80 + - + 4 = col0
----

query I rowsort
SELECT ALL + - 48 FROM tab2 WHERE - col2 + - + 27 * - - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - 26 ) - - 80 / col1 * col2 * - col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab1 AS cor0 WHERE NOT - col0 + col1 + - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT - - 13 * - - COUNT( * ) + + 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
201

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT - - 13 * - - COUNT ( * ) + + 84 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL - ( + + COUNT( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL 70 * + col2 FROM tab1
----
4130
4760
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col0 * - + 56 col1 FROM tab2 AS cor0
----
-51
-2576
-67
-4200
-77
-3584

query I rowsort
SELECT DISTINCT - - 58 + - - col0 + 58 * + - 99 FROM tab1 AS cor0
----
-5593
-5599
-5633

query II rowsort
SELECT 35 + - + 73 - + 52 + - ( + 81 ), ( + col0 ) FROM tab1 AS cor0
----
-171
51
-171
85
-171
91

query I rowsort
SELECT col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL - + CAST( + ( - + 39 ) AS SIGNED ) + - 14 AS col0 FROM tab1 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL - + CAST ( + ( - + 39 ) AS INTEGER ) + - 14 AS col0 FROM tab1 AS cor0
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN col0 AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * + col1 col1 FROM tab1 AS cor0
----
235
25
70

query I rowsort
SELECT ALL - + AVG ( - col0 ) * + 1 + + AVG ( ALL - 46 ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= - col1 + - col0
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT + 39 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL COUNT( * ) + COUNT( * ) * - + 15 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL COUNT ( * ) + COUNT ( * ) * - + 15 FROM tab1
----
-42

query I rowsort
SELECT 81 FROM tab2 WHERE - col0 <> col1 * - col1 - + 41 + - 17
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT ALL - col0 DIV - - 32 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - col0 / - - 32 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-3
0

query II rowsort
SELECT DISTINCT + 24, col2 AS col1 FROM tab2
----
24
23
24
40
24
58

query I rowsort
SELECT DISTINCT + col2 * + - 75 AS col2 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
1358
300
3243

query I rowsort
SELECT 91 - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-105
-2118
66

query I rowsort
SELECT ALL + - col2 + col1 AS col1 FROM tab2 AS cor0 WHERE 81 > - - col0
----
28
37
9

query I rowsort
SELECT + 79 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 3 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + + col2 ) + - 23 AS col2 FROM tab0 AS cor0
----
-13
24
76

query I rowsort
SELECT + ( + - ( col1 ) ) * + - col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( col0 ) ) col1 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - ( - 36 ) AS col1 FROM tab1 cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col0 FROM tab1
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT ALL + 92 DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL + 92 / col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - COUNT( DISTINCT + - 33 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL - COUNT ( DISTINCT + - 33 ) FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9373
SELECT ALL + + 20 DIV - - ( col1 ) AS col0, 69 + + + col1 + - 44 FROM tab0 AS cor0
----
0
106
0
46
20
26

skipif mysql # not compatible
query II rowsort label-9373
SELECT ALL + + 20 / - - ( col1 ) AS col0, 69 + + + col1 + - 44 FROM tab0 AS cor0
----
0
106
0
46
20
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + + col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col2 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL - + SUM( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= col0 * - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - + 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT - COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9379
SELECT - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + 97 + - + col0 IS NOT NULL
----

query I rowsort
SELECT - col0 * - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) + col0 AS col2 FROM tab0
----
174
194
30

query I rowsort
SELECT + col2 * col1 + - + 48 + col2 FROM tab0
----
150
172
3806

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT 14 + + col0 - - 93 * col0 DIV - col1 + - col1 FROM tab1
----
-122
-1487
-287

skipif mysql # not compatible
query I rowsort label-9384
SELECT 14 + + col0 - - 93 * col0 / - col1 + - col1 FROM tab1
----
-122
-1487
-287

query I rowsort
SELECT + col1 * - + col0 + + col0 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT 22 + col0 FROM tab2
----
68
86
97

query I rowsort
SELECT DISTINCT - 80 FROM tab0 WHERE NOT NULL NOT BETWEEN - 31 AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9388
SELECT col0 + - col2 - - - col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT col0 + - col2 - - - col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - + 94 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE + 17 IS NULL
----

query I rowsort
SELECT DISTINCT - 77 + col0 AS col0 FROM tab2 AS cor0
----
-13
-2
-31

query I rowsort
SELECT + col2 - + - 16 FROM tab1 AS cor0
----
112
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 18 AS col0, 82 col0 FROM tab2
----
18
82
18
82
18
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * col1 * - + col1 + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 16 AS col1, col1 FROM tab1
----
-16
14
-16
47
-16
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT DISTINCT CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - 38
----

query II rowsort
SELECT ALL + col2 AS col2, 42 * col1 FROM tab1 AS cor0
----
59
210
68
1974
96
588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT - 44 * + - CAST( + - AVG ( ALL 49 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-2156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9400
SELECT - 44 * + - CAST ( + - AVG ( ALL 49 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-2156

query II rowsort
SELECT DISTINCT + 4 AS col0, - col1 + col2 FROM tab0 AS cor0
----
4
-11
4
-34
4
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9402
SELECT SUM( + - 84 ), COUNT( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-252
3

skipif mysql # not compatible
query II rowsort label-9402
SELECT SUM ( + - 84 ), COUNT ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-252
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( + 35 ) * col1 + col2, col2, + - col2 + - + 63 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT + + 17 DIV - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9404
SELECT + + 17 / - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT - col1 DIV ( col2 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT - col1 / ( col2 ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT DISTINCT 57 * - col2 FROM tab1
----
-3363
-3876
-5472

query II rowsort
SELECT DISTINCT + col0 * col0 AS col1, col1 AS col2 FROM tab0
----
225
81
7569
21
9409
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT ALL - CAST( - + col2 AS SIGNED ) * + col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL - CAST ( - + col2 AS INTEGER ) * + col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - + col2 * - col2 + + col2 FROM tab2 AS cor0
----
1640
3422
552

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = 59 * col2 + col1 - 81 * + col0 + + - 26
----

query I rowsort
SELECT ALL + 36 * + col0 AS col1 FROM tab2
----
1656
2304
2700

query I rowsort
SELECT ALL ( 42 ) FROM tab0
----
42
42
42

query I rowsort
SELECT col2 + + 45 FROM tab0
----
144
55
92

query I rowsort
SELECT - 58 + + - col1 + + - col1 AS col0 FROM tab1 AS cor0
----
-152
-68
-86

query II rowsort
SELECT ALL + col0 AS col2, 75 AS col2 FROM tab1 AS cor0
----
51
75
85
75
91
75

query II rowsort
SELECT ALL - - col2 + + + ( 98 ), + col1 * + 10 AS col2 FROM tab2 AS cor0
----
121
510
138
770
156
670

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 > NULL
----

query I rowsort
SELECT DISTINCT 30 + - 82 FROM tab1
----
-52

query III rowsort
SELECT * FROM tab0 WHERE + 77 > NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col2 - - col2 AS col0 FROM tab0
----
-2162
-90
-9702

query I rowsort
SELECT - col2 - - col1 AS col2 FROM tab2 WHERE 27 IS NOT NULL
----
28
37
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT DISTINCT MAX( col1 ), ( + 36 ) AS col1 FROM tab1
----
47
36

skipif mysql # not compatible
query II rowsort label-9424
SELECT DISTINCT MAX ( col1 ), ( + 36 ) AS col1 FROM tab1
----
47
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT COUNT( ALL col2 ) - - + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9425
SELECT COUNT ( ALL col2 ) - - + COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9426
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN - + col1 AND + 70
----

skipif mysql # not compatible
query III rowsort label-9426
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN - + col1 AND + 70
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT + 89 DIV + 58 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9427
SELECT + 89 / + 58 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + ( MAX( 12 ) ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-9428
SELECT + ( MAX ( 12 ) ) AS col0 FROM tab2
----
12

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL - + col1 AS col1, + 93 - - col1 FROM tab1 cor0
----
-14
107
-47
140
-5
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT + col1 DIV 24 AS col1 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9431
SELECT + col1 / 24 AS col1 FROM tab0
----
0
0
3

query I rowsort
SELECT DISTINCT + 4 * 82 AS col0 FROM tab0
----
328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9433
SELECT 46 * MAX( DISTINCT - 68 ) * 69 * + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9433
SELECT 46 * MAX ( DISTINCT - 68 ) * 69 * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 * - + col2 * 13 FROM tab2
----
20800
43732
6877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT - col1 * CAST( NULL AS SIGNED ) / + 93 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT - col1 * CAST ( NULL AS INTEGER ) / + 93 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 21 * - - ( col1 ) AS col0 FROM tab0
----
1701
21
441

query II rowsort
SELECT ALL + 38, + col1 FROM tab0
----
38
1
38
21
38
81

query I rowsort
SELECT DISTINCT 72 + col1 FROM tab1 AS cor0
----
119
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + 21 col2 FROM tab1 cor0
----
106
112
72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - 87 ) BETWEEN - 55 AND - - 14 * + 3 + + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9441
SELECT + SUM( + 26 ) * - + ( + 36 ) AS col1, - MIN( - 68 ) FROM tab1 WHERE + - col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9441
SELECT + SUM ( + 26 ) * - + ( + 36 ) AS col1, - MIN ( - 68 ) FROM tab1 WHERE + - col2 IS NULL
----
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - 76 * col1 AS col2 FROM tab0
----
-1575
-6075
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + + col1 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - 34 AS col0 FROM tab2 AS cor0
----
-11
24
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9445
SELECT * FROM tab0 AS cor0 WHERE 48 NOT BETWEEN - col1 AND + + 44 + + CAST( - + col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9445
SELECT * FROM tab0 AS cor0 WHERE 48 NOT BETWEEN - col1 AND + + 44 + + CAST ( - + col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + 35 - col2 AS col2 FROM tab0
----
-63
46
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT DISTINCT col0 - - - 19 DIV - col2 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT col0 - - - 19 / - col2 AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + ( - COUNT( DISTINCT ( + col1 ) ) ) + + + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9448
SELECT + ( - COUNT ( DISTINCT ( + col1 ) ) ) + + + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT + 47 * + + COUNT( * ) FROM tab1 WHERE col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + 47 * + + COUNT ( * ) FROM tab1 WHERE col1 > NULL
----
0

query I rowsort
SELECT ALL + 64 * + col0 AS col1 FROM tab2
----
2944
4096
4800

onlyif mysql # aggregate syntax: 
query II rowsort label-9451
SELECT DISTINCT + 14 * + MAX( - - 72 ) col2, COUNT( * ) FROM tab1
----
1008
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9451
SELECT DISTINCT + 14 * + MAX ( - - 72 ) col2, COUNT ( * ) FROM tab1
----
1008
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT CAST( + - col0 AS SIGNED ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9452
SELECT CAST ( + - col0 AS INTEGER ) AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT 22 DIV 60 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT 22 / 60 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9454
SELECT ALL col2 DIV + + col1 * + col1 + - col2 DIV - col2 AS col0 FROM tab0 cor0
----
1
1
100

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL col2 / + + col1 * + col1 + - col2 / - col2 AS col0 FROM tab0 cor0
----
1
1
100

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 78 - + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col2 FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT - + 49 FROM tab0 AS cor0 WHERE NOT + CAST( + + col2 AS SIGNED ) >= ( + col2 ) + - + col0
----

skipif mysql # not compatible
query I rowsort label-9457
SELECT - + 49 FROM tab0 AS cor0 WHERE NOT + CAST ( + + col2 AS INTEGER ) >= ( + col2 ) + - + col0
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE col0 < col0 + - - col0
----
-15
-87
-97

query I rowsort
SELECT ALL col1 * 44 + col2 * - col0 FROM tab1
----
-4120
-4280
-4795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT ALL + col1 - CAST( NULL AS SIGNED ) * - 91 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + col1 - CAST ( NULL AS INTEGER ) * - 91 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * - col2 + 5 AS col1 FROM tab1
----
-4891
-5010
-6183

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT - SUM( + 50 ) AS col1 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT - SUM ( + 50 ) AS col1 FROM tab1
----
-150

query I rowsort
SELECT ALL + col2 * + col0 AS col2 FROM tab2 WHERE NOT col0 + col0 * + col0 IS NULL
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 95 ) BETWEEN - col0 AND ( - 42 - - col2 * + ( + ( col2 ) ) )
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 >= ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT CAST( - 87 AS SIGNED ) + + col0 FROM tab0
----
-72
0
10

skipif mysql # not compatible
query I rowsort label-9466
SELECT CAST ( - 87 AS INTEGER ) + + col0 FROM tab0
----
-72
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT DISTINCT + MAX( - 31 ) col2 FROM tab2
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9467
SELECT DISTINCT + MAX ( - 31 ) col2 FROM tab2
----
-31

query I rowsort
SELECT + ( col0 ) FROM tab2 WHERE - 47 IN ( + col1 + - col2 )
----

query I rowsort
SELECT DISTINCT - 88 FROM tab1 WHERE NOT - col1 <> 26 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT ALL ( + col2 ) + 3 * CAST( 97 * + col2 + - 72 AS SIGNED ) FROM tab0 WHERE NOT ( col2 ) < ( 15 )
----
13508
28692

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL ( + col2 ) + 3 * CAST ( 97 * + col2 + - 72 AS INTEGER ) FROM tab0 WHERE NOT ( col2 ) < ( 15 )
----
13508
28692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT 6 + 29 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
35
35
35

skipif mysql # not compatible
query I rowsort label-9471
SELECT 6 + 29 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
35
35
35

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab2 WHERE NOT col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT SUM( ALL col0 ) FROM tab2 WHERE - 17 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT SUM ( ALL col0 ) FROM tab2 WHERE - 17 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1 FROM tab0 WHERE ( 68 + + col0 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 WHERE ( 68 + + col0 ) >= NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + 84 NOT BETWEEN - col0 AND col2 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 98 col0 FROM tab2
----
21
31
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - MIN( ALL - 83 ) AS col0 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-9478
SELECT - MIN ( ALL - 83 ) AS col0 FROM tab0
----
83

query I rowsort
SELECT col2 * - 45 + col2 AS col1 FROM tab2
----
-1012
-1760
-2552

query I rowsort
SELECT ALL 42 FROM tab0 WHERE col0 IS NOT NULL
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 96 ) col2 FROM tab0
----
96
96
96

query I rowsort
SELECT ALL + 59 + ( ( col1 ) ) AS col2 FROM tab0
----
140
60
80

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + 97 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - + ( col2 ) * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT 63 + COUNT( * ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9485
SELECT 63 + COUNT ( * ) AS col2 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT + col2 DIV col0 + + 0 DIV + col2 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9486
SELECT + col2 / col0 + + 0 / + col2 AS col2 FROM tab0
----
0
1
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 * - 23 )
----

query I rowsort
SELECT 58 FROM tab2 AS cor0 WHERE col0 / - col2 BETWEEN 10 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT COUNT( * ) * + ( + CAST( - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9489
SELECT COUNT ( * ) * + ( + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL col1 + - col1 * 96 AS col1 FROM tab2 AS cor0
----
-4845
-6365
-7315

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + col2 >= + col2
----
51
67
77

query I rowsort
SELECT DISTINCT col0 + - 13 AS col0 FROM tab1 cor0
----
38
72
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL + SUM( ALL - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + SUM ( ALL - col0 ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT ALL + - SUM( 37 ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL + - SUM ( 37 ) FROM tab1 AS cor0
----
-111

query I rowsort
SELECT ALL 23 + 10 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT + SUM( + 12 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + SUM ( + 12 ) FROM tab1 AS cor0
----
36

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * col0 = ( 29 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT + + 58 DIV + 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT + + 58 / + 64 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col1 ) * + 18 AS col2 FROM tab0 AS cor0
----
-1458
-18
-378

query I rowsort
SELECT + - col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + - col0 * + 8 AS col0 FROM tab0 AS cor0
----
-120
-696
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL - CAST( - 38 AS SIGNED ) + + COUNT( * ) * MIN( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
-193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9502
SELECT ALL - CAST ( - 38 AS INTEGER ) + + COUNT ( * ) * MIN ( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
-193

query I rowsort
SELECT col0 * - 72 + col2 * col2 FROM tab0 AS cor0 WHERE - col2 IN ( + col1 + - col2 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT ALL CAST( NULL AS SIGNED ) + col2 / + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL CAST ( NULL AS INTEGER ) + col2 / + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 85 + 94 AS col2 FROM tab1 AS cor0
----
179
179
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 73 - + col1 col2 FROM tab1
----
1008
3384
360

query I rowsort
SELECT - col0 * - - 37 FROM tab0
----
-3219
-3589
-555

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE + 98 * - col1 BETWEEN - col1 - - col1 * col1 AND 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col1 FROM tab2 WHERE NOT ( + col1 ) > col1
----
141
142
97

query I rowsort
SELECT DISTINCT + - col0 * - ( - 61 ) FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT DISTINCT - col0 * + + col2 AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT - MIN( ALL - col2 ) * + + SUM( ALL + ( - col2 ) ) FROM tab2
----
-7018

skipif mysql # not compatible
query I rowsort label-9513
SELECT - MIN ( ALL - col2 ) * + + SUM ( ALL + ( - col2 ) ) FROM tab2
----
-7018

query II rowsort
SELECT col1, 23 FROM tab1
----
14
23
47
23
5
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query I rowsort
SELECT ALL + + 68 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT ALL - - 63 DIV 78 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - - 63 / 78 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 16 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * 70 IS NULL
----
-16
-16
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9519
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col1 ) AND col1 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9519
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( + col1 ) AND col1 + - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 37 )
----

query I rowsort
SELECT DISTINCT 45 / + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= ( + 49 * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9522
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( + col1 ) AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN ( + col1 ) AND + col2
----
NULL

query I rowsort
SELECT + col2 + + - col2 / col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT - ( + - ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9524
SELECT - ( + - ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT DISTINCT - 97 * - + COUNT( * ) col1 FROM tab2
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9525
SELECT DISTINCT - 97 * - + COUNT ( * ) col1 FROM tab2
----
291

query I rowsort
SELECT ALL + col1 + col1 FROM tab2 WHERE NOT + 68 / - col0 IS NULL
----
102
134
154

query II rowsort
SELECT 5 * - col2, - 1 + - + 32 * - col2 AS col0 FROM tab1
----
-295
1887
-340
2175
-480
3071

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - col2 * 50 <> NULL
----

query I rowsort
SELECT + 81 + + col2 - - 84 AS col0 FROM tab0
----
175
212
264

query III rowsort
SELECT * FROM tab1 WHERE + 47 + - col2 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + - col2 <= col1
----

query I rowsort
SELECT ALL 85 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - + 78 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT DISTINCT + 15 DIV - 20 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + 15 / - 20 AS col0 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9534
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( CAST( - + col0 AS SIGNED ) ) <= - col2
----
87
21
10

skipif mysql # not compatible
query III rowsort label-9534
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( CAST ( - + col0 AS INTEGER ) ) <= - col2
----
87
21
10

query I rowsort
SELECT ALL + 79 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query II rowsort
SELECT col0, 35 * - ( - + col1 ) AS col1 FROM tab0
----
15
2835
87
735
97
35

query I rowsort
SELECT ALL col0 - ( - 65 ) AS col1 FROM tab0 cor0
----
152
162
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT 83 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) + + - 88 ) AND NOT ( 93 ) NOT IN ( + CAST( ( + ( col2 ) ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9538
SELECT 83 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) + + - 88 ) AND NOT ( 93 ) NOT IN ( + CAST ( ( + ( col2 ) ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9539
SELECT DISTINCT 88 AS col0, COUNT( * ) FROM tab0 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-9539
SELECT DISTINCT 88 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
88
3

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 * - ( - col1 ) + + col2 ) NOT IN ( col0 * + col2 ) AND NOT + col1 + + col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + + SUM( ALL + - 0 ) + - COUNT( + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9541
SELECT + + SUM ( ALL + - 0 ) + - COUNT ( + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT - 95 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 99 AND - col1 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9542
SELECT - 95 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 99 AND - col1 * - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * + col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 19 col2 FROM tab1 AS cor0
----
266
893
95

query I rowsort
SELECT DISTINCT + - 38 + col1 AS col0 FROM tab0 AS cor0
----
-17
-37
43

query I rowsort
SELECT 29 + - col2 FROM tab0 cor0
----
-18
-70
19

query I rowsort
SELECT + - 27 + - col0 FROM tab1 AS cor0 WHERE - col2 - + col2 IS NOT NULL
----
-112
-118
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT + - 3 * - COUNT( * ) * + - ( - COUNT( * ) ) + - COUNT( - col1 ) DIV 9 AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9548
SELECT + - 3 * - COUNT ( * ) * + - ( - COUNT ( * ) ) + - COUNT ( - col1 ) / 9 AS col2 FROM tab0 AS cor0
----
27

query I rowsort
SELECT ALL - + col2 * + col1 - + - col1 + + 83 * - col2 AS col0 FROM tab2 AS cor0
----
-3031
-6323
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT + + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT + + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * + - col0 AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col1 * + - 37 AS col0 FROM tab2 AS cor0
----
-1887
-2479
-2849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT - 97 * CAST( NULL AS SIGNED ) + - 10 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 97 * CAST ( NULL AS INTEGER ) + - 10 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2, 40 + + + col1 AS col2 FROM tab0 AS cor0
----
-10
61
-47
121
-99
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9556
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ), + COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9556
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT + - COUNT( ALL - 82 ) * - 14 + - 11 col2 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9557
SELECT DISTINCT + - COUNT ( ALL - 82 ) * - 14 + - 11 col2 FROM tab1 AS cor0
----
31

query II rowsort
SELECT col0 + col1 AS col2, - col1 FROM tab1 cor0
----
138
-47
65
-14
90
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT - - CAST( + col0 AS SIGNED ) * - ( 13 ) + + col0 AS col1 FROM tab1 AS cor0
----
-1020
-1092
-612

skipif mysql # not compatible
query I rowsort label-9559
SELECT - - CAST ( + col0 AS INTEGER ) * - ( 13 ) + + col0 AS col1 FROM tab1 AS cor0
----
-1020
-1092
-612

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 / + col2 NOT IN ( + ( - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT - COUNT( * ) + COUNT( - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - COUNT ( * ) + COUNT ( - col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 45 AS col1 FROM tab0 AS cor0 WHERE - 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL - SUM( ALL - - col0 ) * - + 57 FROM tab1 AS cor0
----
12939

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL - SUM ( ALL - - col0 ) * - + 57 FROM tab1 AS cor0
----
12939

query III rowsort
SELECT * FROM tab2 WHERE - col1 >= ( + - ( + col0 ) / col1 + - 74 )
----
46
51
23
75
67
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT COUNT( * ) FROM tab2 WHERE col2 * - col2 / - col2 * CAST( + + col2 AS SIGNED ) * + 9 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9565
SELECT COUNT ( * ) FROM tab2 WHERE col2 * - col2 / - col2 * CAST ( + + col2 AS INTEGER ) * + 9 IS NULL
----
0

query I rowsort
SELECT 43 * + col1 FROM tab0
----
3483
43
903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT + COUNT( * ) * 58 DIV - - 10 AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-9567
SELECT + COUNT ( * ) * 58 / - - 10 AS col2 FROM tab1
----
17

query I rowsort
SELECT DISTINCT 57 + - - col0 FROM tab0
----
144
154
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col0 + + 69 + - col0 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + COUNT( ALL + col2 ) * - ( + ( - - 54 ) ) AS col2 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-9570
SELECT + COUNT ( ALL + col2 ) * - ( + ( - - 54 ) ) AS col2 FROM tab1
----
-162

query III rowsort
SELECT * FROM tab1 WHERE - 36 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + + 24 FROM tab1 AS cor0
----
120
83
92

query I rowsort
SELECT ALL - col2 + 62 AS col1 FROM tab0 AS cor0
----
-37
15
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9574
SELECT * FROM tab2 AS cor0 WHERE NOT - + CAST( NULL AS SIGNED ) * 56 + col2 NOT IN ( - col2 ) AND ( - col0 ) + 16 IN ( + col0 + 28 )
----

skipif mysql # not compatible
query III rowsort label-9574
SELECT * FROM tab2 AS cor0 WHERE NOT - + CAST ( NULL AS INTEGER ) * 56 + col2 NOT IN ( - col2 ) AND ( - col0 ) + 16 IN ( + col0 + 28 )
----

query I rowsort
SELECT + - 89 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 24 / + 11 > - col2 - + 73
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9577
SELECT DISTINCT + COUNT( col2 ) col1, 57 AS col2 FROM tab1
----
3
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9577
SELECT DISTINCT + COUNT ( col2 ) col1, 57 AS col2 FROM tab1
----
3
57

query I rowsort
SELECT DISTINCT + + col0 * + col2 * + col2 + + col2 * 87 + col2 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 38 IN ( - + col2, col2 / + col2 * 49 )
----
10440
37929
968913

query I rowsort
SELECT ALL + ( + col2 ) FROM tab1 AS cor0 WHERE + 87 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * + 74 col2 FROM tab1 AS cor0
----
-362304
-371110
-457912

query I rowsort
SELECT DISTINCT - 54 * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-2754
-3618
-4158

onlyif mysql # aggregate syntax: 
query II rowsort label-9582
SELECT 60 AS col0, MAX( - ( + - col1 ) ) * COUNT( * ) FROM tab1
----
60
141

skipif mysql # not compatible
query II rowsort label-9582
SELECT 60 AS col0, MAX ( - ( + - col1 ) ) * COUNT ( * ) FROM tab1
----
60
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT - - SUM( DISTINCT - - 91 ) AS col1 FROM tab1 WHERE NOT - + col1 <> + col0 * + col2 + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT - - SUM ( DISTINCT - - 91 ) AS col1 FROM tab1 WHERE NOT - + col1 <> + col0 * + col2 + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT SUM( DISTINCT - col1 ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9584
SELECT DISTINCT SUM ( DISTINCT - col1 ) col0 FROM tab1
----
-66

query II rowsort
SELECT + col0 * - - col2 AS col1, - col0 * + col2 FROM tab1 WHERE NOT + col2 IS NULL
----
4896
-4896
5015
-5015
6188
-6188

query I rowsort
SELECT ALL - 27 * 26 FROM tab1
----
-702
-702
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 AS col0, col2 col0 FROM tab2
----
53
23
53
40
53
58

query I rowsort
SELECT ALL - + ( - 1 ) AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL ( SUM( ALL + + col0 ) ) AS col0 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL ( SUM ( ALL + + col0 ) ) AS col0 FROM tab0 cor0
----
199

query I rowsort
SELECT ALL - col0 * + col1 - + col1 AS col1 FROM tab1 cor0
----
-430
-4324
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT - COUNT( ALL - 0 ) FROM tab0 AS cor0 WHERE NOT 68 * col2 NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9591
SELECT - COUNT ( ALL - 0 ) FROM tab0 AS cor0 WHERE NOT 68 * col2 NOT BETWEEN - col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT 3 * + MIN( - 84 ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-9592
SELECT 3 * + MIN ( - 84 ) FROM tab2
----
-252

onlyif mysql # aggregate syntax: 
query II rowsort label-9593
SELECT ALL + COUNT( * ) AS col0, - 64 col1 FROM tab0
----
3
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9593
SELECT ALL + COUNT ( * ) AS col0, - 64 col1 FROM tab0
----
3
-64

query I rowsort
SELECT DISTINCT - col2 * + 9 AS col2 FROM tab2
----
-207
-360
-522

query I rowsort
SELECT col2 * + 30 AS col2 FROM tab2
----
1200
1740
690

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9597
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9598
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - - ( col2 ) * + CAST( NULL AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9598
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 - - ( col2 ) * + CAST ( NULL AS INTEGER ) * + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + 60 AS col2, + col2 * + 51 AS col0 FROM tab2 AS cor0
----
60
1173
60
2040
60
2958

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab2 AS cor0 WHERE 1 * - col0 - + + 1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - + col0 AS col2, ( + col0 ) col2 FROM tab1
----
-425
85
-4277
91
-714
51

query III rowsort
SELECT col1 + - 56 AS col1, col0 AS col0, - col0 * + col1 FROM tab1
----
9 values hashing to 0299d04cd07de2d339a7931a67aabce3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + col1 * - + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9604
SELECT - col1 + + 38, - CAST( - 24 AS SIGNED ) AS col1 FROM tab2
----
-13
24
-29
24
-39
24

skipif mysql # not compatible
query II rowsort label-9604
SELECT - col1 + + 38, - CAST ( - 24 AS INTEGER ) AS col1 FROM tab2
----
-13
24
-29
24
-39
24

query I rowsort
SELECT ALL 36 * + - col2 AS col1 FROM tab2
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT ALL - COUNT( * ) + COUNT( * ) AS col1, + 62 + 35 FROM tab1 AS cor0
----
0
97

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col1, + 62 + 35 FROM tab1 AS cor0
----
0
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col1 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT - + SUM( DISTINCT - - ( - 39 ) ) AS col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9608
SELECT - + SUM ( DISTINCT - - ( - 39 ) ) AS col1 FROM tab2 AS cor0
----
39

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE 79 * + - col1 + col0 = ( - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9610
SELECT DISTINCT CAST( - col0 AS SIGNED ) - + col2 AS col0, + col2 + + - col2 AS col1 FROM tab2
----
-104
0
-133
0
-69
0

skipif mysql # not compatible
query II rowsort label-9610
SELECT DISTINCT CAST ( - col0 AS INTEGER ) - + col2 AS col0, + col2 + + - col2 AS col1 FROM tab2
----
-104
0
-133
0
-69
0

query I rowsort
SELECT ALL col0 + + + 40 AS col2 FROM tab2
----
104
115
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT + + 71 + + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT + 13 * - 83 > + col1 / CAST( NULL AS SIGNED ) - col2
----

skipif mysql # not compatible
query I rowsort label-9612
SELECT + + 71 + + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL AND NOT + 13 * - 83 > + col1 / CAST ( NULL AS INTEGER ) - col2
----

query I rowsort
SELECT ALL + - 98 AS col2 FROM tab1 WHERE NULL IS NULL
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT ALL - 97 DIV col1 - col0 + col1 * - 19 + + + col0 AS col1 FROM tab0 AS cor0
----
-116
-1540
-403

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL - 97 / col1 - col0 + col1 * - 19 + + + col0 AS col1 FROM tab0 AS cor0
----
-116
-1540
-403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT ALL + SUM( - CAST( 78 AS SIGNED ) ) FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + SUM ( - CAST ( 78 AS INTEGER ) ) FROM tab0 AS cor0
----
-234

query I rowsort
SELECT - 13 * + 23 AS col1 FROM tab2 AS cor0
----
-299
-299
-299

query I rowsort
SELECT ALL col2 + ( - col1 ) + 33 FROM tab2 AS cor0 WHERE NOT col0 * col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT DISTINCT MIN( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT MIN ( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT + ( - SUM( + 71 ) ) * - + 85 * + 99 AS col2 FROM tab2
----
1792395

skipif mysql # not compatible
query I rowsort label-9619
SELECT + ( - SUM ( + 71 ) ) * - + 85 * + 99 AS col2 FROM tab2
----
1792395

query I rowsort
SELECT col2 * + + col2 FROM tab1 WHERE NOT - col1 IS NULL
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 >= 41
----

query II rowsort
SELECT DISTINCT ( 92 ) AS col2, col2 FROM tab0
----
92
10
92
47
92
99

query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab2 cor0 WHERE col2 + + 78 * + + col1 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL + 18 + MAX( - col2 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + 18 + MAX ( - col2 ) FROM tab1 AS cor0
----
-41

query II rowsort
SELECT - col2 * - - 0, ( + col0 ) FROM tab2 cor0
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + - - col1 - + + 17 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + - - col1 - + + 17 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN - col1 AND - col0 * + 84 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT 27 DIV - col1 + + - 67 + - 41 * - + col2 + + col2 FROM tab0 AS cor0
----
1907
352
4064

skipif mysql # not compatible
query I rowsort label-9630
SELECT 27 / - col1 + + - 67 + - 41 * - + col2 + + col2 FROM tab0 AS cor0
----
1907
352
4064

query I rowsort
SELECT - ( - col2 ) + - + col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT col0 AS col1, + ( + - col0 ) - - 67 + - 25 + 24 AS col0 FROM tab1 AS cor0
----
51
15
85
-19
91
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT + + COUNT( * ) + + 32 + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT + + COUNT ( * ) + + 32 + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL col2 + + CAST( + + 55 AS SIGNED ) + col1 * + col1 FROM tab1 AS cor0
----
139
2332
347

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL col2 + + CAST ( + + 55 AS INTEGER ) + col1 * + col1 FROM tab1 AS cor0
----
139
2332
347

query I rowsort
SELECT ALL - - col2 * + col1 - 5 - - + col1 AS col0 FROM tab0 cor0
----
226
3883
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT ALL + CAST( - col2 AS SIGNED ) + + 43 AS col0 FROM tab0 AS cor0
----
-4
-56
33

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + CAST ( - col2 AS INTEGER ) + + 43 AS col0 FROM tab0 AS cor0
----
-4
-56
33

query I rowsort
SELECT DISTINCT col1 * - col1 - + + col2 * - 26 - - 31 - + col0 AS col0 FROM tab2
----
-2018
-3025
-4922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT + CAST( + col1 AS SIGNED ) - 36 + col1 * - col1 * - col1 FROM tab0
----
-34
531486
9246

skipif mysql # not compatible
query I rowsort label-9638
SELECT + CAST ( + col1 AS INTEGER ) - 36 + col1 * - col1 * - col1 FROM tab0
----
-34
531486
9246

query II rowsort
SELECT ALL + col1, + col1 * 15 * + col2 * 84 FROM tab0
----
1
124740
21
264600
81
4796820

query I rowsort
SELECT 7 - + ( - - col2 ) FROM tab1
----
-52
-61
-89

query I rowsort
SELECT ALL 64 * + col2 FROM tab2
----
1472
2560
3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT ALL - + col2 * + + 56 * + col2 + + - CAST( + 77 AS SIGNED ) - + ( - col0 ) FROM tab1 AS cor0
----
-194928
-258930
-516122

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL - + col2 * + + 56 * + col2 + + - CAST ( + 77 AS INTEGER ) - + ( - col0 ) FROM tab1 AS cor0
----
-194928
-258930
-516122

query I rowsort
SELECT + - ( + col1 ) + + - col1 AS col0 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT + + col0 DIV + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-9644
SELECT + + col0 / + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-17
-81
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 77 + - + col2 * + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL - col2 AS col2 FROM tab0 WHERE NULL IN ( - - CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - col2 AS col2 FROM tab0 WHERE NULL IN ( - - CAST ( NULL AS INTEGER ), col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 89 - - 40 * - 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 96 * + + col2 AS col0, col2 * - col2 * + col2 FROM tab2 AS cor0
----
2208
-12167
3840
-64000
5568
-195112

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, col0, col2, 6 )
----

query I rowsort
SELECT + 76 FROM tab2 AS cor0 WHERE NOT 17 IS NULL
----
76
76
76

query I rowsort
SELECT DISTINCT - col2 * col2 + + 83 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col1
----

query II rowsort
SELECT DISTINCT col0, - 55 AS col0 FROM tab1
----
51
-55
85
-55
91
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9653
SELECT - COUNT( * ) AS col1, 80 AS col1 FROM tab0
----
-3
80

skipif mysql # not compatible
query II rowsort label-9653
SELECT - COUNT ( * ) AS col1, 80 AS col1 FROM tab0
----
-3
80

query I rowsort
SELECT + col2 * - + 79 FROM tab2
----
-1817
-3160
-4582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT + CAST( + 53 AS SIGNED ) AS col0 FROM tab0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-9655
SELECT + CAST ( + 53 AS INTEGER ) AS col0 FROM tab0
----
53
53
53

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 BETWEEN 36 AND ( col0 + - - col2 )
----
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9657
SELECT 75 DIV + COUNT( * ) AS col0, - 30 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT col1 IS NOT NULL ) )
----
25
-30

skipif mysql # not compatible
query II rowsort label-9657
SELECT 75 / + COUNT ( * ) AS col0, - 30 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT col1 IS NOT NULL ) )
----
25
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT ALL col0 DIV - col0 + - col0 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL col0 / - col0 + - col0 FROM tab0 AS cor0
----
-16
-88
-98

query I rowsort
SELECT + - col1 + + + col0 * - 80 FROM tab1 AS cor0
----
-4094
-6805
-7327

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL COUNT( * ) * - 12 AS col2 FROM tab2 AS cor0 WHERE col2 / - 83 IS NOT NULL
----
-36

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL COUNT ( * ) * - 12 AS col2 FROM tab2 AS cor0 WHERE col2 / - 83 IS NOT NULL
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - 30 * + COUNT( * ) + + 18 AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9661
SELECT - 30 * + COUNT ( * ) + + 18 AS col2 FROM tab2 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 56 - + 11 * + 50 + 37 AS col0 FROM tab0
----
-358
-410
-447

query I rowsort
SELECT - col1 + - col2 + + col2 AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col1 + - 17 FROM tab2
----
34
50
60

query I rowsort
SELECT DISTINCT col2 * + 64 FROM tab1
----
3776
4352
6144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 35 ) + - + col1 col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 35 + - - 23 + + col1 + + col1 * - 18 / - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT - ( COUNT( * ) ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9670
SELECT - ( COUNT ( * ) ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT + - col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) = - + col2 * 55
----

skipif mysql # not compatible
query I rowsort label-9671
SELECT + - col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) = - + col2 * 55
----

query I rowsort
SELECT ALL - + 75 * + - col1 FROM tab1 AS cor0
----
1050
3525
375

query I rowsort
SELECT - col2 * + 30 - - col0 AS col1 FROM tab2 AS cor0
----
-1136
-1665
-644

query I rowsort
SELECT - - col2 * + + col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT - CAST( + col0 AS SIGNED ) * + - 52 - - col0 FROM tab1 AS cor0
----
2703
4505
4823

skipif mysql # not compatible
query I rowsort label-9675
SELECT - CAST ( + col0 AS INTEGER ) * + - 52 - - col0 FROM tab1 AS cor0
----
2703
4505
4823

query I rowsort
SELECT - 58 * ( - - col1 ) FROM tab2 AS cor0
----
-2958
-3886
-4466

query II rowsort
SELECT ALL col1 AS col1, - col0 AS col2 FROM tab0 cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT ALL 47 * + col0 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT DISTINCT col1 * + - 83 FROM tab2
----
-4233
-5561
-6391

query II rowsort
SELECT ALL + ( - 41 ) * + 64 * 75 + + col1 AS col1, col2 AS col2 FROM tab1
----
-196753
68
-196786
96
-196795
59

query I rowsort
SELECT DISTINCT col1 * 74 AS col2 FROM tab0
----
1554
5994
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 94 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT DISTINCT - 13 * + + col0 - + ( - ( - CAST( col1 AS SIGNED ) ) ) + + ( - col0 ) * - ( - col0 ) + + + col1 + - - 78 FROM tab1 cor0
----
-3186
-8252
-9386

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - 13 * + + col0 - + ( - ( - CAST ( col1 AS INTEGER ) ) ) + + ( - col0 ) * - ( - col0 ) + + + col1 + - - 78 FROM tab1 cor0
----
-3186
-8252
-9386

query I rowsort
SELECT DISTINCT ( - 91 ) + 10 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL 65 AS col0 FROM tab2 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + ( + 9 ) + + col1 FROM tab1
----
14
23
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 29 + + 25 + col1 col0 FROM tab2
----
1410
1958
2267

query I rowsort
SELECT - 96 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9689
SELECT * FROM tab2 AS cor0 WHERE + CAST( - col2 AS SIGNED ) + - - ( - 86 ) * - 87 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9689
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) + - - ( - 86 ) * - 87 IS NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - ( + + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + col1, ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT + col1 - + + 85 FROM tab0
----
-4
-64
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT - COUNT( * ) - - 14 + + 26 AS col0 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-9695
SELECT - COUNT ( * ) - - 14 + + 26 AS col0 FROM tab0
----
37

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 96 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 96 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9698
SELECT * FROM tab1 WHERE col2 * 58 > + col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9698
SELECT * FROM tab1 WHERE col2 * 58 > + col1 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 58 * + col0 * - col0 FROM tab2
----
-122728
-237568
-326250

query I rowsort
SELECT - ( - 54 ) - - + col1 AS col0 FROM tab0
----
135
55
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT - ( COUNT( * ) ) + + 34 AS col1 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-9701
SELECT - ( COUNT ( * ) ) + + 34 AS col1 FROM tab1
----
31

query I rowsort
SELECT DISTINCT - + 5 AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / + - 45 - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT + 76 DIV 56 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9704
SELECT + 76 / 56 AS col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT ( + + ( 4 ) ) * + COUNT( * ) * + 83 col2 FROM tab2
----
996

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9705
SELECT DISTINCT ( + + ( 4 ) ) * + COUNT ( * ) * + 83 col2 FROM tab2
----
996

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT + ( 15 ) * + COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT + ( 15 ) * + COUNT ( * ) FROM tab0
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - - col2 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT + COUNT( * ) * MIN( col2 ) + 65 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
95

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT + COUNT ( * ) * MIN ( col2 ) + 65 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT - 17 DIV + 58 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT - 17 / + 58 FROM tab0
----
0
0
0

query I rowsort
SELECT ( + + 70 ) * + + col1 FROM tab1
----
3290
350
980

query I rowsort
SELECT ALL col1 * - + 74 FROM tab1
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + 83 * + - COUNT( * ) AS col0 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-9712
SELECT + 83 * + - COUNT ( * ) AS col0 FROM tab0
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9713
SELECT DISTINCT + col2 / col1 + - - col2 + + col0 + + CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-9713
SELECT DISTINCT + col2 / col1 + - - col2 + + col0 + + CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT MAX( ALL + col0 ) * + - 80 FROM tab0
----
-7760

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT MAX ( ALL + col0 ) * + - 80 FROM tab0
----
-7760

query I rowsort
SELECT + 10 + + 38 AS col1 FROM tab1
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + + + 56 + + col0 col0 FROM tab1
----
187
221
227

query I rowsort
SELECT - 76 + + col2 FROM tab1
----
-17
-8
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT + 22 * + 58 + col1 DIV + 24 AS col1 FROM tab0
----
1276
1276
1279

skipif mysql # not compatible
query I rowsort label-9718
SELECT + 22 * + 58 + col1 / + 24 AS col1 FROM tab0
----
1276
1276
1279

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9719
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT + - CAST ( NULL AS REAL ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + 65 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9720
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + 65 col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT + MIN( ALL + + 82 ) * - + 44 + - + 18 AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
-3626

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT + MIN ( ALL + + 82 ) * - + 44 + - + 18 AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
-3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ( col2 ) * + col1 - - - CAST( col0 AS SIGNED ) * + 94 col0 FROM tab2 cor0 WHERE - col2 * col2 IS NOT NULL
----
-2936
-3151
-3164

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9722
SELECT ( col2 ) * + col1 - - - CAST ( col0 AS INTEGER ) * + 94 col0 FROM tab2 cor0 WHERE - col2 * col2 IS NOT NULL
----
-2936
-3151
-3164

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE + 71 * - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT - 16 / + 50 + - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 16 / + 50 + - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + col0 - + 9 * + + 61, - 69 AS col0 FROM tab1 AS cor0
----
-458
-69
-464
-69
-498
-69

query I rowsort
SELECT ALL - - 86 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
5159
5939
8307

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + + ( COUNT( * ) ) + + - 32 AS col1 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9727
SELECT + + ( COUNT ( * ) ) + + - 32 AS col1 FROM tab0 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT DISTINCT - 88 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT - 88 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9729
SELECT - + col0 + - + CAST( - 72 AS SIGNED ), col1 AS col2 FROM tab1 AS cor0
----
-13
5
-19
47
21
14

skipif mysql # not compatible
query II rowsort label-9729
SELECT - + col0 + - + CAST ( - 72 AS INTEGER ), col1 AS col2 FROM tab1 AS cor0
----
-13
5
-19
47
21
14

query I rowsort
SELECT + col0 FROM tab1 WHERE - - ( - col1 ) > col1
----

query II rowsort
SELECT col1 AS col1, - 70 + + col2 * - col2 FROM tab1
----
14
-9286
47
-4694
5
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT - + MAX( - 26 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-9732
SELECT - + MAX ( - 26 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
26

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + col0 * + 9 AS col0 FROM tab0 AS cor0
----
135
783
873

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + 63 ) <> - 71 * - col0 + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - - col1 + 68 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * + col0 + + 92 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 82 + + + col0 col2 FROM tab0 AS cor0
----
-148
-16
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT - - 29 + - COUNT( * ) AS col2 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-9739
SELECT - - 29 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
26

query I rowsort
SELECT DISTINCT + 25 * + col0 * + - col2 FROM tab2 AS cor0
----
-108750
-26450
-64000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT CAST( NULL AS SIGNED ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT CAST ( NULL AS INTEGER ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT + + col2 + - col0 + - + CAST( NULL AS SIGNED ) FROM tab2 WHERE - col1 - + + col1 <> - - 66
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT + + col2 + - col0 + - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - col1 - + + col1 <> - - 66
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 - + + 27 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + SUM( DISTINCT - + col2 ) AS col0 FROM tab1 WHERE 87 * + col1 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT + SUM ( DISTINCT - + col2 ) AS col0 FROM tab1 WHERE 87 * + col1 + + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9747
SELECT DISTINCT - - CAST( + ( + col2 ) AS SIGNED ) + + + ( - - 37 ), + col0 AS col1 FROM tab0 AS cor0
----
136
97
47
87
84
15

skipif mysql # not compatible
query II rowsort label-9747
SELECT DISTINCT - - CAST ( + ( + col2 ) AS INTEGER ) + + + ( - - 37 ), + col0 AS col1 FROM tab0 AS cor0
----
136
97
47
87
84
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= 73
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT - COUNT( * ) + - 45 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9749
SELECT - COUNT ( * ) + - 45 FROM tab0 AS cor0
----
-48

query II rowsort
SELECT DISTINCT col1 * 14 + col0 AS col2, col0 FROM tab2 cor0
----
1013
75
1142
64
760
46

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE + 15 * col1 * - 66 IS NOT NULL
----
15
87
97

query II rowsort
SELECT + + col1, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT DISTINCT - COUNT( * ), + 87 col2 FROM tab2 AS cor0
----
-3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9753
SELECT DISTINCT - COUNT ( * ), + 87 col2 FROM tab2 AS cor0
----
-3
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + 24, col1 FROM tab2 cor0
----
24
51
24
67
24
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 * - + 25 + + col1 NOT BETWEEN NULL AND ( NULL ) )
----

query II rowsort
SELECT ALL ( col2 ) AS col0, - 39 AS col1 FROM tab2
----
23
-39
40
-39
58
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT DISTINCT - CAST( 94 AS SIGNED ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT - CAST ( 94 AS INTEGER ) FROM tab2
----
-94

query I rowsort
SELECT + 80 * 57 FROM tab2
----
4560
4560
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT + ( 5 ) * COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-9761
SELECT + ( 5 ) * COUNT ( * ) FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT + MIN( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT + MIN ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9763
SELECT DISTINCT 57 DIV 96 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT 57 / 96 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9765
SELECT + + ( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT + + ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + + 49 * COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
441

skipif mysql # not compatible
query I rowsort label-9767
SELECT + + 49 * COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9768
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query II rowsort
SELECT ALL - col1, + col2 AS col0 FROM tab2 WHERE NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 1 NOT BETWEEN + - 2 + + 48 + + - 55 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9771
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 38 + - + ( + col2 ) FROM tab1 AS cor0
----
-21
-30
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 49
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 56 * + col2 * - 33 BETWEEN + ( col1 ) AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT + 18 + + 30 DIV - col1 AS col1 FROM tab2
----
18
18
18

skipif mysql # not compatible
query I rowsort label-9775
SELECT + 18 + + 30 / - col1 AS col1 FROM tab2
----
18
18
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9776
SELECT CAST( NULL AS DECIMAL ) + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT CAST ( NULL AS REAL ) + - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 71 * - 90 + - col1 FROM tab1
----
-6395
-6404
-6437

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL < + ( - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9779
SELECT DISTINCT * FROM tab0 WHERE - - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9779
SELECT DISTINCT * FROM tab0 WHERE - - CAST ( NULL AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + col2 col1 FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 97
----

query I rowsort
SELECT ALL + 3 * - - 62 + + ( - col2 ) FROM tab2 AS cor0
----
128
146
163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 67 / + col2 <> + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT + col2 DIV + - ( + - ( col1 ) ) + + ( 70 ) AS col0 FROM tab1 AS cor0
----
71
76
81

skipif mysql # not compatible
query I rowsort label-9784
SELECT + col2 / + - ( + - ( col1 ) ) + + ( 70 ) AS col0 FROM tab1 AS cor0
----
71
76
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9785
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT + - col0 DIV + - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9786
SELECT + - col0 / + - col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ALL - - 73 * - ( col2 ) FROM tab2 AS cor0
----
-1679
-2920
-4234

query II rowsort
SELECT DISTINCT - col2 AS col2, + col2 + + 65 * + - col1 FROM tab1 AS cor0
----
-59
-266
-68
-2987
-96
-814

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - SUM( DISTINCT - col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9789
SELECT - SUM ( DISTINCT - col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE - 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE - 27 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT DISTINCT 27 DIV - SUM( ALL col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT 27 / - SUM ( ALL col0 ) AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + ( - ( - col0 ) ) AS col0, + 25 col2 FROM tab1
----
2601
25
7225
25
8281
25

query I rowsort
SELECT DISTINCT - col2 * 77 AS col0 FROM tab0
----
-3619
-7623
-770

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + - ( 88 ) < - + col1 * - + 15 + - col2
----

query II rowsort
SELECT + 74 AS col0, 89 * + + col2 FROM tab2 cor0
----
74
2047
74
3560
74
5162

query I rowsort
SELECT DISTINCT - - ( - + 1 ) + + 53 * - 82 AS col0 FROM tab2 AS cor0
----
-4347

query II rowsort
SELECT DISTINCT 72 AS col1, col2 * - 72 AS col2 FROM tab1 AS cor0
----
72
-4248
72
-4896
72
-6912

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 68 * + 59 * + 16 <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT ALL - CAST( col2 AS SIGNED ) * + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL - CAST ( col2 AS INTEGER ) * + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT MAX( + 59 ) + 67 FROM tab0 cor0
----
126

skipif mysql # not compatible
query I rowsort label-9800
SELECT MAX ( + 59 ) + 67 FROM tab0 cor0
----
126

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col2 ) NOT BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0 + - col2 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-2
1
-32
81
77
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT DISTINCT - + COUNT( * ) + + 94 AS col1, 49 + 82 * 1 * COUNT( * ) FROM tab1 AS cor0
----
91
295

skipif mysql # not compatible
query II rowsort label-9803
SELECT DISTINCT - + COUNT ( * ) + + 94 AS col1, 49 + 82 * 1 * COUNT ( * ) FROM tab1 AS cor0
----
91
295

query I rowsort
SELECT ALL - 66 * col0 + - col1 + col1 AS col2 FROM tab0 cor0
----
-5742
-6402
-990

query II rowsort
SELECT DISTINCT + col0 AS col0, + col0 * col1 FROM tab0
----
15
1215
87
1827
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 WHERE NOT 37 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT 37 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + SUM( + + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + SUM ( + + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT + - 99 - + col0 FROM tab0 AS cor0
----
-114
-186
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT + - 84 - - SUM( + col1 ) * MIN( + + 29 ) FROM tab2 AS cor0
----
5571

skipif mysql # not compatible
query I rowsort label-9809
SELECT + - 84 - - SUM ( + col1 ) * MIN ( + + 29 ) FROM tab2 AS cor0
----
5571

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 * + 81 * 54 IS NULL
----

query II rowsort
SELECT DISTINCT - + 38 AS col2, col1 - + col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-38
-66
-38
-96
-38
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL + 23 - - 64 DIV + - col1 FROM tab2
----
22
23
23

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + 23 - - 64 / + - col1 FROM tab2
----
22
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT DISTINCT + - 85 DIV col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + - 85 / col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + col2 * + - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT DISTINCT - CAST( - + SUM( + col2 ) AS SIGNED ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - CAST ( - + SUM ( + col2 ) AS INTEGER ) FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9816
SELECT ALL + - col1 * - col2 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT col1 > + CAST( - col2 AS DECIMAL ) + + 43
----

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + - col1 * - col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT col1 > + CAST ( - col2 AS REAL ) + + 43
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT DISTINCT + ( COUNT( - 52 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT + ( COUNT ( - 52 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT + 6 DIV 34 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT + 6 / 34 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + - col0 * ( + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + - col0 * ( + col2 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * - 24 FROM tab1
----
1224
2040
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT AVG ( + CAST( NULL AS SIGNED ) ) * + 52 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) * + 52 FROM tab2
----
NULL

query I rowsort
SELECT ALL 53 * - 61 AS col0 FROM tab0
----
-3233
-3233
-3233

query I rowsort
SELECT DISTINCT 71 * - 71 AS col2 FROM tab0
----
-5041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT ALL - + ( + CAST( - col1 AS SIGNED ) ) * + col2 col0 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9825
SELECT ALL - + ( + CAST ( - col1 AS INTEGER ) ) * + col2 col0 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT 18 + + - 41 AS col1 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT + CAST( NULL AS SIGNED ) / - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT + CAST ( NULL AS INTEGER ) / - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 27 col0 FROM tab0 AS cor0
----
-17
20
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9830
SELECT ALL - col1 DIV + 84 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9830
SELECT ALL - col1 / + 84 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 * col0 + - col0 col0 FROM tab0 AS cor0
----
3219
3589
555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT + COUNT( * ) DIV 22 + + - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9832
SELECT + COUNT ( * ) / 22 + + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT 15 * - 32 + - + col2 * - col1 + + col0 + + - col2 + + col2 + + 49 FROM tab1 AS cor0
----
-51
2856
964

query I rowsort
SELECT - 57 + + - col1 FROM tab2 AS cor0
----
-108
-124
-134

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT col1 + col1 + - col1 - 69 * - - 20 FROM tab2
----
-1303
-1313
-1329

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 <> + + 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + - SUM( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9838
SELECT + - SUM ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-9839
SELECT MAX( DISTINCT + - ( + col0 ) ) AS col1, COUNT( * ) FROM tab1
----
-51
3

skipif mysql # not compatible
query II rowsort label-9839
SELECT MAX ( DISTINCT + - ( + col0 ) ) AS col1, COUNT ( * ) FROM tab1
----
-51
3

query I rowsort
SELECT - col2 * - + col1 * - col0 * col0 FROM tab2 AS cor0
----
-12615680
-21858750
-2482068

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT - MAX( 70 ) AS col1 FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT - MAX ( 70 ) AS col1 FROM tab0 cor0
----
-70

query I rowsort
SELECT - - ( - - col1 ) AS col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9844
SELECT DISTINCT 21, + CAST( + + 90 AS SIGNED ) * - col2 col1 FROM tab1 AS cor0
----
21
-5310
21
-6120
21
-8640

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9844
SELECT DISTINCT 21, + CAST ( + + 90 AS INTEGER ) * - col2 col1 FROM tab1 AS cor0
----
21
-5310
21
-6120
21
-8640

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 96 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( 36 ) - - + col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9848
SELECT + SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9849
SELECT 2 DIV + ( + COUNT( + + ( col1 ) ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9849
SELECT 2 / + ( + COUNT ( + + ( col1 ) ) ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + col0 * - 24 FROM tab2
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + MIN( ALL + - col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9851
SELECT + MIN ( ALL + - col1 ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT + MIN( DISTINCT ( + col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9852
SELECT + MIN ( DISTINCT ( + col2 ) ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> - col1 * + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT - + ( - MAX( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9854
SELECT - + ( - MAX ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - ( - + col1 ) AS col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT - - ( - 17 ) * + - 84 AS col1 FROM tab2 AS cor0
----
1428

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 57 - - 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + + 76 AS col0 FROM tab1 AS cor0
----
127
161
167

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9859
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - col1 + - - col1 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9859
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - col1 + - - col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT 28 FROM tab0 AS cor0 WHERE ( - 70 ) <= 36
----
28
28
28

query I rowsort
SELECT DISTINCT col1 * - col2 + - - col0 + + col2 * 7 FROM tab1 cor0
----
-2629
-621
203

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL + MIN( ALL + 17 ) - COUNT( * ) AS col1 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + MIN ( ALL + 17 ) - COUNT ( * ) AS col1 FROM tab0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT CAST( NULL AS SIGNED ) - + - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL MAX( DISTINCT + 37 ) AS col1 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL MAX ( DISTINCT + 37 ) AS col1 FROM tab1
----
37

query I rowsort
SELECT col1 - - - col1 - + 21 - + 96 + + - 24 * + 39 * 23 FROM tab2
----
-21645
-21645
-21645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT ALL col1 - + CAST( NULL AS SIGNED ) - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL col1 - + CAST ( NULL AS INTEGER ) - - col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col2, 88 * - + 61 FROM tab0
----
15
-5368
87
-5368
97
-5368

query I rowsort
SELECT + col2 + + 15 AS col1 FROM tab2
----
38
55
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9869
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 = CAST( col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9869
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 = CAST ( col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - col0 + - 17 FROM tab2 AS cor0
----
-2133
-4113
-5642

query II rowsort
SELECT ALL - + col0 AS col1, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 45 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9872
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 45 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9873
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - 51
----

skipif mysql # not compatible
query III rowsort label-9873
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT + - SUM( col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + - SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9875
SELECT DISTINCT - COUNT( ALL - ( + 96 ) ) DIV COUNT( * ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT - COUNT ( ALL - ( + 96 ) ) / COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT DISTINCT + 17 * + - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + 17 * + - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT ALL - 57 * ( - - 7 ) DIV col2 AS col1 FROM tab2
----
-17
-6
-9

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - 57 * ( - - 7 ) / col2 AS col1 FROM tab2
----
-17
-6
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-9879
SELECT - 54, + col2 DIV - 30 AS col1 FROM tab1 AS cor0 WHERE NOT + 42 IS NULL
----
-54
-1
-54
-2
-54
-3

skipif mysql # not compatible
query II rowsort label-9879
SELECT - 54, + col2 / - 30 AS col1 FROM tab1 AS cor0 WHERE NOT + 42 IS NULL
----
-54
-1
-54
-2
-54
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ALL - COUNT( - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - COUNT ( - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 35 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT - MIN( ALL + col2 ) AS col1 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT - MIN ( ALL + col2 ) AS col1 FROM tab1 cor0
----
-59

query III rowsort
SELECT * FROM tab1 WHERE NOT + 50 / + 23 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NOT NULL <> + col1 )
----

query I rowsort
SELECT ALL - col0 * - ( + col2 ) * + col2 AS col0 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT + col2 * - - col2 + col1 FROM tab1
----
3486
4671
9230

query I rowsort
SELECT ALL - 63 + - 10 AS col0 FROM tab2 WHERE - 86 NOT IN ( - col1, col1 )
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - 9 + col1 FROM tab0
----
-8
12
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - MAX( DISTINCT 11 ) AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-9889
SELECT - MAX ( DISTINCT 11 ) AS col2 FROM tab0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT ALL col1 DIV 64 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL col1 / 64 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT DISTINCT - CAST( - 84 AS SIGNED ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - CAST ( - 84 AS INTEGER ) AS col1 FROM tab1
----
84

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE ( 17 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 97 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT DISTINCT col0 * CAST( 32 * col2 AS SIGNED ) col0 FROM tab2
----
139200
33856
81920

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9894
SELECT DISTINCT col0 * CAST ( 32 * col2 AS INTEGER ) col0 FROM tab2
----
139200
33856
81920

query I rowsort
SELECT DISTINCT 70 FROM tab2 WHERE - 99 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL + 98 - MIN( + col0 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + 98 - MIN ( + col0 ) AS col2 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT COUNT( * ) * MAX( ALL - ( - 67 ) ) AS col0 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-9897
SELECT COUNT ( * ) * MAX ( ALL - ( - 67 ) ) AS col0 FROM tab1
----
201

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - col0 NOT BETWEEN col0 AND ( NULL )
----
51
85
91

query I rowsort
SELECT + col1 * - ( 72 ) FROM tab2
----
-3672
-4824
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL SUM( DISTINCT 33 ) + COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL SUM ( DISTINCT 33 ) + COUNT ( * ) FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT COUNT( * ) AS col0 FROM tab0 WHERE 86 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9901
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE 86 <= NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col1 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT - COUNT( * ) * COUNT( + col0 ) FROM tab2 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT - COUNT ( * ) * COUNT ( + col0 ) FROM tab2 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT DISTINCT - 23 + 35 * COUNT( * ) AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT - 23 + 35 * COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9905
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - MAX( + ( + 73 ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - MAX ( + ( + 73 ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 25 IS NOT NULL
----

query I rowsort
SELECT 75 * - col1 FROM tab1
----
-1050
-3525
-375

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( - col0 + col1 ) NOT IN ( + ( col0 ) )
----

query I rowsort
SELECT DISTINCT 62 * col0 FROM tab1
----
3162
5270
5642

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT DISTINCT 73 DIV - col1 AS col2 FROM tab0
----
-3
-73
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT 73 / - col1 AS col2 FROM tab0
----
-3
-73
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 col0 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT IN ( - 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT + col0 - 37 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT + col0 - 37 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT + COUNT( * ) - - ( - MAX( DISTINCT - 89 ) ) AS col2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-9914
SELECT + COUNT ( * ) - - ( - MAX ( DISTINCT - 89 ) ) AS col2 FROM tab2
----
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 < - 30 + 79
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9916
SELECT DISTINCT - COUNT( * ) DIV + 35 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - COUNT ( * ) / + 35 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL 84 * + MAX( 39 ) AS col2 FROM tab1 cor0
----
3276

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL 84 * + MAX ( 39 ) AS col2 FROM tab1 cor0
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - SUM( DISTINCT - col0 ) * - 4 AS col2 FROM tab1 AS cor0
----
-908

skipif mysql # not compatible
query I rowsort label-9918
SELECT - SUM ( DISTINCT - col0 ) * - 4 AS col2 FROM tab1 AS cor0
----
-908

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL 23 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL 23 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
69

query I rowsort
SELECT - 70 * - 18 FROM tab0
----
1260
1260
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT + 37 + + MIN( ALL - 73 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9921
SELECT + 37 + + MIN ( ALL - 73 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 + - col2 * - col1 ) NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT DISTINCT ( - 80 ) FROM tab1 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT DISTINCT 82 + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
79

skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT 82 + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL COUNT( 18 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL COUNT ( 18 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - ( - 43 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + COUNT( * ) * 68 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9927
SELECT + COUNT ( * ) * 68 FROM tab1 AS cor0
----
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT ALL ( + 4 ) DIV COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL ( + 4 ) / COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col2 * col1 + + ( + col1 + col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + - 33 * 41 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT ALL + CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 44 ) NOT IN ( - 52 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col0 FROM tab0 WHERE col2 - - col2 / col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9935
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + CAST( NULL AS SIGNED ) ) AND - 80 / 3
----

skipif mysql # not compatible
query III rowsort label-9935
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND - 80 / 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9936
SELECT - CAST( NULL AS SIGNED ) * - - 92 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT - CAST ( NULL AS INTEGER ) * - - 92 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 81 * + - ( col2 ) + col2 AS col1 FROM tab2
----
-1840
-3200
-4640

query I rowsort
SELECT 5 / - ( + col2 ) FROM tab1 AS cor0 WHERE col2 IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 1 = - ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 33 + + col0 / + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9941
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + ( col0 ) + + col2 * 85 FROM tab2 cor0
----
2001
3464
5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 76 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT 29 + + - CAST( ( col0 ) AS SIGNED ) + + 35 AS col1 FROM tab0
----
-23
-33
49

skipif mysql # not compatible
query I rowsort label-9944
SELECT 29 + + - CAST ( ( col0 ) AS INTEGER ) + + 35 AS col1 FROM tab0
----
-23
-33
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL + - 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT + col1 * col2 * - col1 * - col2 AS col0 FROM tab0 cor0
----
14493249
44100
9801

query I rowsort
SELECT ALL + 35 * + col2 - + + col0 AS col1 FROM tab1 AS cor0
----
1980
2289
3309

query I rowsort
SELECT DISTINCT col0 + + col2 + col0 * col1 FROM tab0 AS cor0
----
1277
1924
293

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 75 BETWEEN - col2 * + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9951
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IN ( - 46 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-9951
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IN ( - 46 * + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9952
SELECT 0 DIV + 45 * COUNT( * ) + - 32 AS col1 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9952
SELECT 0 / + 45 * COUNT ( * ) + - 32 AS col1 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - 55 - + col1 FROM tab1 AS cor0
----
-102
-60
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT ALL + col1 * CAST( NULL AS SIGNED ) * - 19 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9955
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) * - 19 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT + 23 + MAX( + col1 ) + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + 23 + MAX ( + col1 ) + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ( + MIN( ALL + col2 ) ) * - COUNT( * ) - + COUNT( * ) * + 65 AS col2 FROM tab1
----
-372

skipif mysql # not compatible
query I rowsort label-9957
SELECT ( + MIN ( ALL + col2 ) ) * - COUNT ( * ) - + COUNT ( * ) * + 65 AS col2 FROM tab1
----
-372

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - COUNT( * ) * ( - 71 ) AS col1 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-9959
SELECT - COUNT ( * ) * ( - 71 ) AS col1 FROM tab1
----
213

query III rowsort
SELECT ALL * FROM tab2 WHERE + 87 / + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 / + 55 - 90 + 50 > - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT ALL COUNT( * ) * + ( + ( MAX( - ( + col2 ) ) ) ) AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL COUNT ( * ) * + ( + ( MAX ( - ( + col2 ) ) ) ) AS col1 FROM tab2
----
-69

query I rowsort
SELECT DISTINCT - ( col0 ) * - 38 * - 4 + ( - col0 ) FROM tab0
----
-13311
-14841
-2295

query II rowsort
SELECT DISTINCT col0 * col1, ( + + ( - col1 ) ) AS col0 FROM tab2
----
2346
-51
4928
-77
5025
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * col2 col1 FROM tab0
----
2632
5544
560

onlyif mysql # aggregate syntax: 
query II rowsort label-9966
SELECT COUNT( * ), COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9966
SELECT COUNT ( * ), COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT ALL 7 AS col2 FROM tab0 cor0 WHERE NULL IN ( col0 / + col1, + 38 * col1 )
----

query I rowsort
SELECT DISTINCT - 42 FROM tab2 AS cor0 WHERE ( + 15 ) > - 45 * + col2
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE NULL <= 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - COUNT( * ) * - 42 FROM tab2 AS cor0 WHERE NOT ( col0 + + 51 ) IN ( - col1 + + 31 )
----
126

skipif mysql # not compatible
query I rowsort label-9970
SELECT - COUNT ( * ) * - 42 FROM tab2 AS cor0 WHERE NOT ( col0 + + 51 ) IN ( - col1 + + 31 )
----
126

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col0 + col1 + - col0 + + ( 58 ) * 98 * - 17 col0 FROM tab0 AS cor0
----
-106327
-97267
-97564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 64 col0, + col0 AS col1 FROM tab1 AS cor0
----
-64
51
-64
85
-64
91

query I rowsort
SELECT - 39 + col0 AS col2 FROM tab2
----
25
36
7

query II rowsort
SELECT ALL - 4, 90 AS col1 FROM tab1
----
-4
90
-4
90
-4
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT CAST( - COUNT( * ) AS SIGNED ) + + 57 AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9976
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + 57 AS col1 FROM tab2
----
54

query I rowsort
SELECT - col1 + + + ( - 52 ) AS col1 FROM tab1
----
-57
-66
-99

query I rowsort
SELECT col2 FROM tab0 WHERE ( + ( + 33 ) <> - + 66 )
----
10
47
99

query I rowsort
SELECT DISTINCT - ( 84 ) AS col1 FROM tab1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL + 58 + COUNT( * ) col2 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9980
SELECT ALL + 58 + COUNT ( * ) col2 FROM tab2 AS cor0
----
61

query I rowsort
SELECT DISTINCT col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + ( - 78 ) + col0 FROM tab1 AS cor0
----
-27
13
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9983
SELECT + MIN( col1 ) AS col1, - 17 col2 FROM tab2
----
51
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9983
SELECT + MIN ( col1 ) AS col1, - 17 col2 FROM tab2
----
51
-17

query II rowsort
SELECT ALL ( - + 13 ), ( + + col1 ) * - - 58 AS col0 FROM tab1
----
-13
2726
-13
290
-13
812

query I rowsort
SELECT ALL - 91 - + 30 * + 63 AS col1 FROM tab2 WHERE NOT - 99 = NULL AND NOT 77 * - 83 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT ( + + SUM( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT ( + + SUM ( + col0 ) ) FROM tab0
----
199

query I rowsort
SELECT - 42 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col1 + + - 77 AS col0, 36 * + col2 AS col2 FROM tab0 AS cor0
----
-56
360
-76
3564
4
1692

query I rowsort
SELECT DISTINCT + - 39 AS col2 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT DISTINCT + col0 + - - 73 FROM tab2 AS cor0
----
119
137
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT - + col1 * + - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT - + col1 * + - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + 51, + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 IS NULL )
----
-51
23
-51
40
-51
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9993
SELECT COUNT( * ) DIV + COUNT( * ) col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9993
SELECT COUNT ( * ) / + COUNT ( * ) col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + COUNT( * ) * + 37 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9994
SELECT + COUNT ( * ) * + 37 FROM tab2 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-9995
SELECT + - MAX( + col0 ) AS col0, + 17 FROM tab2 AS cor0
----
-75
17

skipif mysql # not compatible
query II rowsort label-9995
SELECT + - MAX ( + col0 ) AS col0, + 17 FROM tab2 AS cor0
----
-75
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL - SUM( - + 60 ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - SUM ( - + 60 ) FROM tab2
----
180

query II rowsort
SELECT ALL - 95 AS col0, - col2 FROM tab1
----
-95
-59
-95
-68
-95
-96

query I rowsort
SELECT - ( + ( + + 1 ) ) AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT 45 * + + COUNT( * ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT 45 * + + COUNT ( * ) FROM tab2
----
135

