sqllogictest
Artifact Content
Not logged in

Artifact 7a857e198ac97bffe7fa92ca40f8fd422711101d:


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 tab1 AS cor0 WHERE col0 BETWEEN NULL AND + 57 + - + col1
----

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

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL - COUNT ( * ) / - 90 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 52 + - col2 FROM tab1 AS cor0
----
-16
-44
-7

query I rowsort
SELECT + 24 * col2 * col2 AS col2 FROM tab2 AS cor0
----
12696
38400
80736

query I rowsort
SELECT - col1 * - 75 FROM tab0 AS cor0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT MIN( ALL ( - 3 ) ) - + + COUNT( * ) col2 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5
SELECT MIN ( ALL ( - 3 ) ) - + + COUNT ( * ) col2 FROM tab2
----
-6

query I rowsort
SELECT ALL col2 - 25 AS col1 FROM tab2
----
-2
15
33

query I rowsort
SELECT col1 - + + 25 + - - col2 AS col1 FROM tab1
----
39
85
90

query I rowsort
SELECT ALL - 20 * - col0 * - - 18 + + - col1 AS col2 FROM tab0
----
31299
34919
5319

query I rowsort
SELECT + col2 - - 11 * - + col0 * col2 FROM tab0
----
-105534
-7708
-9560

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 + - 38 <= + - 93 * ( 9 ) + - - 71 * - 94
----

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

query II rowsort
SELECT col2, + col1 * 4 + 19 AS col2 FROM tab2 AS cor0
----
23
223
40
327
58
287

query I rowsort
SELECT + - ( + 1 ) FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-14
SELECT - - CAST( NULL AS SIGNED ), + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-14
SELECT - - CAST ( NULL AS INTEGER ), + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT SUM( 57 ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-18
SELECT SUM ( 57 ) FROM tab2 AS cor0
----
171

query I rowsort
SELECT + + ( + 11 ) FROM tab0 cor0
----
11
11
11

query I rowsort
SELECT DISTINCT - 19 + + col1 AS col0 FROM tab0 AS cor0
----
-18
2
62

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

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

query I rowsort
SELECT DISTINCT + 90 + col2 FROM tab2
----
113
130
148

query I rowsort
SELECT - col2 + ( + 94 ) FROM tab1
----
-2
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT 69 * + + COUNT( * ) + + 6 AS col2 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-24
SELECT 69 * + + COUNT ( * ) + + 6 AS col2 FROM tab2
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT + 78 * MAX( 44 ) FROM tab1 AS cor0
----
3432

skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT + 78 * MAX ( 44 ) FROM tab1 AS cor0
----
3432

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT 29 * - ( col2 ) * - col0 - + col0 DIV + + col0 + 47 FROM tab2 AS cor0
----
126196
30728
74286

skipif mysql # not compatible
query I rowsort label-26
SELECT 29 * - ( col2 ) * - col0 - + col0 / + + col0 + 47 FROM tab2 AS cor0
----
126196
30728
74286

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE col1 + - col1 + col0 * + 5 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT COUNT( * ) + - 85 AS col0 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-28
SELECT COUNT ( * ) + - 85 AS col0 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE 72 * - - col1 > + col2 + + col2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-30
SELECT ALL - col2 - col1 AS col1, - 8 + CAST( - col0 AS SIGNED ) + - 31 * + - 50 col2, - 72 FROM tab1 WHERE - ( + col1 ) * - - col0 + 53 + + - col0 + - col2 <> + + col0
----
9 values hashing to 16f69063306f998d21efd48cce98f4b2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-30
SELECT ALL - col2 - col1 AS col1, - 8 + CAST ( - col0 AS INTEGER ) + - 31 * + - 50 col2, - 72 FROM tab1 WHERE - ( + col1 ) * - - col0 + 53 + + - col0 + - col2 <> + + col0
----
9 values hashing to 16f69063306f998d21efd48cce98f4b2

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT + col1 DIV + col1 + col2 + - 29 * - + col1 FROM tab2 AS cor0
----
1503
2002
2274

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT + col1 / + col1 + col2 + - 29 * - + col1 FROM tab2 AS cor0
----
1503
2002
2274

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

onlyif mysql # DIV for integer division: 
query III rowsort label-33
SELECT + col0 * - col1 + + 99, col2 AS col1, + 40 DIV - col1 + 44 AS col1 FROM tab0 cor0
----
9 values hashing to 811ab9350a61f6711480bb170069120b

skipif mysql # not compatible
query III rowsort label-33
SELECT + col0 * - col1 + + 99, col2 AS col1, + 40 / - col1 + 44 AS col1 FROM tab0 cor0
----
9 values hashing to 811ab9350a61f6711480bb170069120b

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

query I rowsort
SELECT ALL + 56 * - col2 * - col0 FROM tab1
----
274176
280840
346528

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 * 62 col0 FROM tab0
----
13950
469278
583358

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT COUNT( * ) * + + MIN( - col2 ) AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT COUNT ( * ) * + + MIN ( - col2 ) AS col0 FROM tab0
----
-297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 89 col2, + 32 AS col1 FROM tab1, tab0 AS cor0
----
18 values hashing to 422e0c9a4f9dc0d9fe4c3b6c050bfb8c

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT 39 DIV 54 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-42
SELECT 39 / 54 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * + - 87 FROM tab1
----
-4437
-7395
-7917

query I rowsort
SELECT + - 60 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT - col0 + 38 - 75 * col2 AS col2 FROM tab2 AS cor0
----
-1733
-3026
-4387

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

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

query I rowsort
SELECT DISTINCT + + 17 FROM tab0 AS cor0
----
17

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-50
SELECT DISTINCT + col0 * 41 + - CAST( NULL AS DECIMAL ) / - col1 * col0 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-50
SELECT DISTINCT + col0 * 41 + - CAST ( NULL AS REAL ) / - col1 * col0 col1 FROM tab1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT MIN( ALL + 2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-53
SELECT MIN ( ALL + 2 ) FROM tab2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL col0 + col2 - + - col2 DIV col0 AS col0 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL col0 + col2 - + - col2 / col0 AS col0 FROM tab2
----
104
133
69

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

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

query II rowsort
SELECT DISTINCT - 74, + ( + - col1 ) AS col0 FROM tab2
----
-74
-51
-74
-67
-74
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-57
SELECT MAX( - col0 ) * COUNT( * ) - + 17 * 97 + - CAST( NULL AS DECIMAL ) * - MIN( DISTINCT + col1 ) FROM tab1 WHERE + - col1 + + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT MAX ( - col0 ) * COUNT ( * ) - + 17 * 97 + - CAST ( NULL AS REAL ) * - MIN ( DISTINCT + col1 ) FROM tab1 WHERE + - col1 + + - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 86 + - col0 AS col1 FROM tab1
----
-5
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, col0 * + + col2 col2 FROM tab1
----
51
4896
85
5015
91
6188

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 39 + - 86 col1 FROM tab1
----
14
-47
47
-47
5
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT - COUNT( * ) * + - 85 AS col2 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-62
SELECT - COUNT ( * ) * + - 85 AS col2 FROM tab1 AS cor0
----
255

query I rowsort
SELECT - col2 + - 57 + col2 * col2 FROM tab2 AS cor0
----
1503
3249
449

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

query I rowsort
SELECT ALL + 18 - - - col0 * + col0 FROM tab2
----
-2098
-4078
-5607

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

query I rowsort
SELECT ALL + col0 * - 79 + + col2 FROM tab2 AS cor0
----
-3611
-5016
-5867

query I rowsort
SELECT - col1 * + - col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL 94 * - col2 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-940

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

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

query II rowsort
SELECT DISTINCT ( col1 ), 81 + 90 * - - 96 AS col2 FROM tab0 AS cor0
----
1
8721
21
8721
81
8721

query I rowsort
SELECT ALL col1 * - + 15 FROM tab0
----
-1215
-15
-315

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

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

query I rowsort
SELECT ( - 61 ) AS col1 FROM tab1
----
-61
-61
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT DISTINCT - 69 * - COUNT( * ) AS col1 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT - 69 * - COUNT ( * ) AS col1 FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT 47 * - COUNT( * ) col1 FROM tab1
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-77
SELECT 47 * - COUNT ( * ) col1 FROM tab1
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT ALL col1 * 83 DIV + ( + col0 ) AS col2 FROM tab1
----
22
4
42

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL col1 * 83 / + ( + col0 ) AS col2 FROM tab1
----
22
4
42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-80
SELECT ALL ( + COUNT( * ) ) DIV + SUM( + - ( + col0 ) ) * MAX( 75 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL ( + COUNT ( * ) ) / + SUM ( + - ( + col0 ) ) * MAX ( 75 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 WHERE - - col2 * - - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT + MIN( + 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-82
SELECT + MIN ( + 79 ) FROM tab0
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT - MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT - MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
-59

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

query I rowsort
SELECT ALL - - 89 * + - col1 AS col0 FROM tab0 AS cor0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-87
SELECT - 11 AS col1, ( - 31 ) DIV - + MIN( DISTINCT + 31 ) + MAX( DISTINCT 75 ) FROM tab1 AS cor0
----
-11
76

skipif mysql # not compatible
query II rowsort label-87
SELECT - 11 AS col1, ( - 31 ) / - + MIN ( DISTINCT + 31 ) + MAX ( DISTINCT 75 ) FROM tab1 AS cor0
----
-11
76

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * col1 * col0 * - ( + ( + col1 ) ) + + col0 AS col2 FROM tab1 AS cor0
----
180710
18292820
509847

query I rowsort
SELECT ALL - - 28 * 11 + - + 68 * + col2 AS col0 FROM tab0 AS cor0
----
-2888
-372
-6424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col1 + + 73 col2 FROM tab2 AS cor0
----
175
207
227

query I rowsort
SELECT ALL - col2 + 22 FROM tab1
----
-37
-46
-74

query I rowsort
SELECT + col1 * - - col1 + + 25 + + col0 FROM tab0
----
123
553
6601

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

query I rowsort
SELECT 14 * + + ( + col0 ) + - 84 FROM tab0 cor0
----
1134
126
1274

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

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

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

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

query I rowsort
SELECT ALL 1 * - col0 + + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 + + 66 AS col2 FROM tab1
----
117
151
157

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
79

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-105
SELECT DISTINCT - ( col0 ), + ( + col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-105
SELECT DISTINCT - ( col0 ), + ( + col2 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT DISTINCT + + col2 / ( - - CAST( NULL AS SIGNED ) ) + + 73 + col2 FROM tab2 AS cor0 WHERE NOT + col1 > - col2 / - - 91
----

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT + + col2 / ( - - CAST ( NULL AS INTEGER ) ) + + 73 + col2 FROM tab2 AS cor0 WHERE NOT + col1 > - col2 / - - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL - - COUNT( * ) * - ( - 59 ) AS col0 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL - - COUNT ( * ) * - ( - 59 ) AS col0 FROM tab2 AS cor0
----
177

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

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

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

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

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

query I rowsort
SELECT DISTINCT 14 * - col2 FROM tab0
----
-1386
-140
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT - 53 DIV col2 * - col0 * col0 FROM tab2
----
0
4096
4232

skipif mysql # not compatible
query I rowsort label-118
SELECT - 53 / col2 * - col0 * col0 FROM tab2
----
0
4096
4232

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-120
SELECT + MIN( - CAST( col1 AS SIGNED ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-120
SELECT + MIN ( - CAST ( col1 AS INTEGER ) ) FROM tab2
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL + MIN( DISTINCT + 31 ) col2 FROM tab1
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-122
SELECT ALL + MIN ( DISTINCT + 31 ) col2 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT ALL + 57 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL + 57 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) * + col2 col1 FROM tab0 AS cor0
----
100
2209
9801

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

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL + 73 + ( - - COUNT( - + col2 ) ) FROM tab2 cor0
----
76

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL + 73 + ( - - COUNT ( - + col2 ) ) FROM tab2 cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT COUNT( * ) * + ( - 36 ) FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-126
SELECT COUNT ( * ) * + ( - 36 ) FROM tab0 AS cor0
----
-108

query I rowsort
SELECT - 20 + - col0 * 23 FROM tab0
----
-2021
-2251
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT + COUNT( * ) + SUM( DISTINCT - 18 ) * - COUNT( * ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-128
SELECT + COUNT ( * ) + SUM ( DISTINCT - 18 ) * - COUNT ( * ) FROM tab2 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-129
SELECT DISTINCT + col2 DIV - col0 + - - 1 + - col2 - - - col0 + + 35 AS col1, - col2 AS col1 FROM tab2 cor0
----
-33
-23
-68
-40
-97
-58

skipif mysql # not compatible
query II rowsort label-129
SELECT DISTINCT + col2 / - col0 + - - 1 + - col2 - - - col0 + + 35 AS col1, - col2 AS col1 FROM tab2 cor0
----
-33
-23
-68
-40
-97
-58

query I rowsort
SELECT DISTINCT col0 * + - 60 * - 28 AS col2 FROM tab0 AS cor0
----
146160
162960
25200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col0 FROM tab0 AS cor0 WHERE ( + - ( + - 6 ) ) * + 57 NOT IN ( 43 )
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL - + MAX( - + col2 ) * + 65 AS col1 FROM tab2 AS cor0
----
1495

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - + MAX ( - + col2 ) * + 65 AS col1 FROM tab2 AS cor0
----
1495

query II rowsort
SELECT DISTINCT - col0 + - 17 * + + 16 AS col2, 23 AS col2 FROM tab0 AS cor0
----
-287
23
-359
23
-369
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-134
SELECT + COUNT( ALL CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-134
SELECT + COUNT ( ALL CAST ( NULL AS REAL ) ) AS col0 FROM tab0 cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT + ( col2 ) * ( - 44 ) + 14 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL COUNT( * ) + - + SUM( col0 ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL COUNT ( * ) + - + SUM ( col0 ) FROM tab2
----
-182

query I rowsort
SELECT DISTINCT - col1 + + - 14 AS col2 FROM tab2
----
-65
-81
-91

query I rowsort
SELECT ALL 28 * + col1 * + col1 + - + col0 FROM tab2
----
125617
165948
72782

query II rowsort
SELECT - - 16, + col2 FROM tab1 WHERE - ( - col0 ) * + + col2 / + - col0 * - col0 - + 36 IS NULL
----

query I rowsort
SELECT DISTINCT - 52 * + + col2 * - - 97 FROM tab0
----
-237068
-499356
-50440

query II rowsort
SELECT col2 + col2 AS col2, + col1 * 53 * - 45 FROM tab2 AS cor0
----
116
-159795
46
-121635
80
-183645

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-145
SELECT ALL - + 30 * + CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-145
SELECT ALL - + 30 * + CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 74 BETWEEN NULL AND - 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + COUNT( + + 57 ) + - + 38 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-147
SELECT + COUNT ( + + 57 ) + - + 38 FROM tab1 AS cor0
----
-35

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-148
SELECT + 14 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
17

query I rowsort
SELECT - 76 * - + col2 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT + MIN( + - 99 ) AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-151
SELECT + MIN ( + - 99 ) AS col1 FROM tab2 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 99 + - 46 BETWEEN NULL AND + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + - col1 * + + 10 FROM tab1 AS cor0
----
-140
-470
-50

query I rowsort
SELECT - - 54 * - + col0 AS col1 FROM tab2 AS cor0
----
-2484
-3456
-4050

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - ( + col0 ) col1 FROM tab2 AS cor0
----
1058
2560
4350

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-160
SELECT ALL * FROM tab2 WHERE + + col2 * - + CAST( NULL AS SIGNED ) * col0 + - col2 <= + - col1
----

skipif mysql # not compatible
query III rowsort label-160
SELECT ALL * FROM tab2 WHERE + + col2 * - + CAST ( NULL AS INTEGER ) * col0 + - col2 <= + - col1
----

query I rowsort
SELECT DISTINCT + 86 * col0 FROM tab1
----
4386
7310
7826

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-162
SELECT - 77, col1 AS col1 FROM tab2 WHERE NOT CAST( - col2 AS SIGNED ) * 86 BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query II rowsort label-162
SELECT - 77, col1 AS col1 FROM tab2 WHERE NOT CAST ( - col2 AS INTEGER ) * 86 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - + col1 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT col1 + + - 27 FROM tab0 AS cor0
----
-26
-6
54

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT DISTINCT - col2 + 63 DIV - 67 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT - col2 + 63 / - 67 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT AVG ( DISTINCT + 58 ) FROM tab1 WHERE NULL = - + col0
----
NULL

query I rowsort
SELECT col2 * + - col1 AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ( COUNT( * ) ) * + + 21 + - COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-168
SELECT ( COUNT ( * ) ) * + + 21 + - COUNT ( * ) FROM tab2
----
60

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

query I rowsort
SELECT ALL - col2 * - - col1 * 72 * + - 10 - - + col0 + + 35 + - col1 + col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 * col2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 col0 FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT + COUNT( * ) * - - SUM( DISTINCT + + col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT + COUNT ( * ) * - - SUM ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT + - MIN( ALL - ( - 17 ) ) - COUNT( * ) + + ( MIN( ALL + - col1 ) ) FROM tab2 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-173
SELECT + - MIN ( ALL - ( - 17 ) ) - COUNT ( * ) + + ( MIN ( ALL + - col1 ) ) FROM tab2 cor0
----
-97

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

query I rowsort
SELECT + - 10 * + - 67 - col2 FROM tab0 AS cor0
----
571
623
660

query I rowsort
SELECT 10 * col1 + - + col1 FROM tab1 AS cor0
----
126
423
45

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT DISTINCT 30 + COUNT( * ) col1 FROM tab2 AS cor0
----
33

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

query I rowsort
SELECT ALL - col2 * + col1 + - - col1 FROM tab1 cor0
----
-1330
-290
-3149

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

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

query I rowsort
SELECT DISTINCT 3 - - + col2 AS col1 FROM tab2
----
26
43
61

query I rowsort
SELECT ALL + col2 * - col2 * - col0 + + 16 AS col2 FROM tab2
----
102416
24350
252316

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL - MAX( ALL col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - MAX ( ALL col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT DISTINCT - 35 - col2 FROM tab0 AS cor0
----
-134
-45
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col1 * - col0 col2 FROM tab1 AS cor0
----
51
714
85
425
91
4277

query I rowsort
SELECT + - 64 AS col1 FROM tab0 AS cor0 WHERE - 29 BETWEEN + - 95 AND NULL
----

query I rowsort
SELECT - + 1 * + + col1 + + - 0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT ALL 74, + ( col2 ) FROM tab0 cor0
----
74
10
74
47
74
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-189
SELECT ALL ( - COUNT ( * ) ) col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( col2 + - + col0 - + col2 <> ( - 24 ) + - ( - col0 ) )
----
23
40
58

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( 17 ) > NULL
----

query I rowsort
SELECT DISTINCT col2 * - 50 AS col2 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT DISTINCT + - 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < + 99
----

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

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

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

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

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

query II rowsort
SELECT ALL col1 * col1 * + 13 AS col0, col1 + + col1 + - - col2 * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 93 * + - 2 AS col2 FROM tab0 AS cor0
----
-186
-186
-186

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

query I rowsort
SELECT DISTINCT ( - 41 ) AS col1 FROM tab2
----
-41

query II rowsort
SELECT DISTINCT col1, 70 FROM tab1
----
14
70
47
70
5
70

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT col1 DIV - + col2 col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-203
SELECT col1 / - + col2 col0 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-204
SELECT DISTINCT - COUNT( * ) AS col1, SUM( DISTINCT - col1 ) DIV + - 11 AS col0 FROM tab1
----
-3
6

skipif mysql # not compatible
query II rowsort label-204
SELECT DISTINCT - COUNT ( * ) AS col1, SUM ( DISTINCT - col1 ) / + - 11 AS col0 FROM tab1
----
-3
6

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT - col0 + col1 + + col0 DIV + - col0 AS col0 FROM tab0 WHERE NOT - col0 * - - ( + col0 ) >= - + col2
----
-67
-97
65

skipif mysql # not compatible
query I rowsort label-205
SELECT - col0 + col1 + + col0 / + - col0 AS col0 FROM tab0 WHERE NOT - col0 * - - ( + col0 ) >= - + col2
----
-67
-97
65

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN + - col1 AND - ( - col0 )
----
46
51
23
64
77
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL COUNT( * ) * - 55 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL COUNT ( * ) * - 55 FROM tab2
----
-165

query I rowsort
SELECT ALL - 61 AS col0 FROM tab1 cor0
----
-61
-61
-61

query II rowsort
SELECT ALL + + col1, - col1 FROM tab2 AS cor0 WHERE + 53 + + 64 + + - col1 IS NULL
----

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

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

query II rowsort
SELECT DISTINCT + 97 * - col1 AS col2, 81 FROM tab0 cor0
----
-2037
81
-7857
81
-97
81

onlyif mysql # aggregate syntax: 
query II rowsort label-214
SELECT - COUNT( * ) * + 17 + - - 28 * - 6 * - + 5 + 76, COUNT( * ) * 77 AS col1 FROM tab0 AS cor0
----
865
231

skipif mysql # not compatible
query II rowsort label-214
SELECT - COUNT ( * ) * + 17 + - - 28 * - 6 * - + 5 + 76, COUNT ( * ) * 77 AS col1 FROM tab0 AS cor0
----
865
231

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

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

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
1
21
81

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

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

query I rowsort
SELECT + - ( - + col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-219
SELECT ALL - col1 + - + CAST( - ( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - col1 + - + CAST ( - ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT ALL - - 93 AS col2 FROM tab1 WHERE + + 21 IS NULL
----

query I rowsort
SELECT ( - 88 ) AS col0 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT - 13 - - + ( - col0 ) - + ( + col1 ) - + 8 * - col0 FROM tab1
----
330
577
577

onlyif mysql # DIV for integer division: 
query I rowsort label-223
SELECT ALL - col1 DIV - + 5 FROM tab0 AS cor0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - col1 / - + 5 FROM tab0 AS cor0
----
0
16
4

query III rowsort
SELECT * FROM tab2 WHERE NOT 89 BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-225
SELECT DISTINCT 98 * CAST( + 8 AS SIGNED ) * MIN( col0 ) AS col2 FROM tab1
----
39984

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT 98 * CAST ( + 8 AS INTEGER ) * MIN ( col0 ) AS col2 FROM tab1
----
39984

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

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

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

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

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

query II rowsort
SELECT - 31 AS col2, col0 + + + 38 FROM tab1 cor0
----
-31
123
-31
129
-31
89

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-234
SELECT DISTINCT * FROM tab1 WHERE - 71 NOT BETWEEN ( NULL ) AND - 9 * - col1 * + - col2 + - CAST( NULL AS SIGNED ) / + col1
----

skipif mysql # not compatible
query III rowsort label-234
SELECT DISTINCT * FROM tab1 WHERE - 71 NOT BETWEEN ( NULL ) AND - 9 * - col1 * + - col2 + - CAST ( NULL AS INTEGER ) / + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col0 AND 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT + 97 + - + MAX( - + col1 ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + 97 + - + MAX ( - + col1 ) FROM tab1
----
102

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT + 24 + SUM( DISTINCT 66 ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-238
SELECT + 24 + SUM ( DISTINCT 66 ) AS col2 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT 66 + - COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-239
SELECT 66 + - COUNT ( * ) FROM tab2 AS cor0
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 96 AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-241
SELECT - col1 / + + col0 - col1 col2 FROM tab2 AS cor0
----
-52
-67
-78

query I rowsort
SELECT + 6 - - col0 AS col0 FROM tab2 AS cor0
----
52
70
81

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT DISTINCT MIN( DISTINCT col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT MIN ( DISTINCT col0 ) FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT - + 1 + col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT + col2 + col2 * - col2 FROM tab1 cor0 WHERE + 39 + - 81 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT DISTINCT 4 DIV - 80 + - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT 4 / - 80 + - col1 FROM tab0
----
-1
-21
-81

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-250
SELECT ALL col2 DIV - 24 AS col2 FROM tab1
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL col2 / - 24 AS col2 FROM tab1
----
-2
-2
-4

query I rowsort
SELECT + col0 * - ( 48 ) AS col0 FROM tab1
----
-2448
-4080
-4368

query I rowsort
SELECT DISTINCT - 54 * - + col2 FROM tab1
----
3186
3672
5184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-253
SELECT DISTINCT - col2, CAST( NULL AS SIGNED ) - col1 - col1 AS col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-253
SELECT DISTINCT - col2, CAST ( NULL AS INTEGER ) - col1 - col1 AS col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 79 + col2 + 34 col1 FROM tab1
----
59
172
68
181
96
209

query I rowsort
SELECT DISTINCT - col1 + - - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 * + 65 <= - col1
----

query I rowsort
SELECT DISTINCT - - col0 * - + col0 * - ( + col2 ) * - 48 FROM tab2 AS cor0
----
-15660000
-2336064
-7864320

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + + - col0 NOT BETWEEN NULL AND - col0 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + + - col0 NOT BETWEEN NULL AND - col0 - + col2
----
0

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

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

query II rowsort
SELECT ALL col0 * + - 35 AS col2, col2 FROM tab1
----
-1785
96
-2975
59
-3185
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * - - col0 * + col0 * col2 col1 FROM tab2
----
14681250
2190060
7372800

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

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

query I rowsort
SELECT DISTINCT - - 73 AS col0 FROM tab2 cor0
----
73

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

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

query I rowsort
SELECT DISTINCT - 57 * - + 69 + col0 AS col2 FROM tab2 AS cor0
----
3979
3997
4008

query II rowsort
SELECT col1 AS col1, 59 + col1 FROM tab1
----
14
73
47
106
5
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - SUM( DISTINCT - + ( + + 84 ) ) AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - SUM ( DISTINCT - + ( + + 84 ) ) AS col0 FROM tab1
----
84

query I rowsort
SELECT ( - 77 ) FROM tab2
----
-77
-77
-77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT DISTINCT - 63 DIV COUNT( * ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - 63 / COUNT ( * ) AS col1 FROM tab0
----
-21

query I rowsort
SELECT + col0 * 40 FROM tab1
----
2040
3400
3640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT - CAST( NULL AS SIGNED ) * - - 52 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT - CAST ( NULL AS INTEGER ) * - - 52 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 9 + + + 50 FROM tab2 AS cor0
----
59
59
59

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

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

query I rowsort
SELECT - ( - 51 ) + + col0 * + 52 AS col1 FROM tab1 AS cor0
----
2703
4471
4783

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL - ( - 61 ) * COUNT( * ) AS col0 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - ( - 61 ) * COUNT ( * ) AS col0 FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 WHERE 30 + + col1 < col2
----
0

skipif mysql # not compatible
query I rowsort label-279
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 WHERE 30 + + col1 < col2
----
0

query I rowsort
SELECT + ( + 1 ) / - ( col2 ) AS col2 FROM tab0 WHERE NOT NULL > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-281
SELECT + col0 + + 81 DIV + col0 FROM tab1
----
52
85
91

skipif mysql # not compatible
query I rowsort label-281
SELECT + col0 + + 81 / + col0 FROM tab1
----
52
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT COUNT( * ) * - 13 AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-283
SELECT COUNT ( * ) * - 13 AS col2 FROM tab2
----
-39

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 0 + + 92 BETWEEN NULL AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT ALL - 51 DIV col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - 51 / col0 FROM tab0
----
-3
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > - 75
----

query I rowsort
SELECT DISTINCT + 8 * - col2 + col0 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - col2 * 19 AS col0 FROM tab2
----
-1102
-437
-760

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-292
SELECT 15 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-292
SELECT 15 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( NULL ) IN ( ( + col1 ) + col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE 8 / - col2 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-295
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE 8 / - col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL + col1 * 41 FROM tab0 WHERE - col2 <= + col0
----
3321
41
861

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-297
SELECT * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) = ( - 67 + - 9 )
----

skipif mysql # not compatible
query III rowsort label-297
SELECT * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) = ( - 67 + - 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT ( 49 ) DIV - col0 + ( - col1 ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-298
SELECT ( 49 ) / - col0 + ( - col1 ) AS col0 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE 27 IN ( 71 + + ( - col2 + + col1 ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE NOT ( - 37 ) BETWEEN NULL AND col2
----

query I rowsort
SELECT + 52 AS col1 FROM tab1 WHERE NOT ( + col0 ) BETWEEN ( + 38 ) AND col1
----
52
52
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT ALL COUNT( - col1 ) + SUM( ALL col0 + - ( col0 ) ) DIV 35 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL COUNT ( - col1 ) + SUM ( ALL col0 + - ( col0 ) ) / 35 FROM tab1
----
3

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

query I rowsort
SELECT DISTINCT - 57 FROM tab1 AS cor0 WHERE NOT ( ( col2 ) ) < NULL
----

query I rowsort
SELECT DISTINCT 59 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3009
-5015
-5369

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT CAST( col1 AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( 5 + - col1 / + 12 ) BETWEEN ( col1 ) AND + col2 * + 16
----
108
96

skipif mysql # not compatible
query I rowsort label-309
SELECT CAST ( col1 AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( 5 + - col1 / + 12 ) BETWEEN ( col1 ) AND + col2 * + 16
----
108
96

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + + col2 / - 30 ) IS NOT NULL
----

query I rowsort
SELECT 6 FROM tab2 WHERE NOT 17 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 / - 85 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 19 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT ALL col2 * + 96 AS col0 FROM tab1 AS cor0
----
5664
6528
9216

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

query I rowsort
SELECT ALL - col0 * - col2 + 23 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
728
893
9626

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT DISTINCT - COUNT( - 41 ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - COUNT ( - 41 ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-320
SELECT + COUNT( * ) DIV ( - MIN( col0 ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-320
SELECT + COUNT ( * ) / ( - MIN ( col0 ) ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL < col1
----
0

skipif mysql # not compatible
query I rowsort label-321
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL < col1
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 * col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT - COUNT( * ) * 66 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-198

skipif mysql # not compatible
query I rowsort label-324
SELECT - COUNT ( * ) * 66 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-198

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

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

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

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT col2 NOT IN ( 88 * - col1 + - col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT col1 * + col1 + + col1 DIV 49 AS col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-329
SELECT col1 * + col1 + + col1 / 49 AS col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT 31 * - ( col1 ) + col0 AS col1 FROM tab1
----
-1366
-383
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-331
SELECT + col0 DIV + col0 + + ( col0 ) AS col2 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-331
SELECT + col0 / + col0 + + ( col0 ) AS col2 FROM tab1
----
52
86
92

query I rowsort
SELECT 36 + 16 FROM tab2
----
52
52
52

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT NULL BETWEEN ( - 68 ) AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - 78 + - - MAX( - 47 ) FROM tab1
----
-125

skipif mysql # not compatible
query I rowsort label-336
SELECT - 78 + - - MAX ( - 47 ) FROM tab1
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL - MIN( + 64 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL - MIN ( + 64 ) FROM tab2
----
-64

query I rowsort
SELECT - 81 AS col0 FROM tab0 AS cor0 WHERE + col0 > ( 18 )
----
-81
-81

query I rowsort
SELECT DISTINCT - 14 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND - 94 + - 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT + col0 DIV - - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-340
SELECT + col0 / - - col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT ALL + + ( 54 ) DIV + col0 FROM tab0 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL + + ( 54 ) / + col0 FROM tab0 cor0
----
0
0
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-342
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) DIV 37 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( * ) / 37 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT + + 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL 26 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT ALL col0 * - + col1 - - - col1 AS col1 FROM tab1
----
-430
-4324
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT ALL + col2 DIV - + 81 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL + col2 / - + 81 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-348
SELECT ALL - COUNT( * ) AS col0, MAX( - - 6 ) + 30 AS col0 FROM tab2 AS cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-348
SELECT ALL - COUNT ( * ) AS col0, MAX ( - - 6 ) + 30 AS col0 FROM tab2 AS cor0
----
-3
36

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 + + col2 NOT IN ( + 80 + - 30 )
----

query I rowsort
SELECT col1 * + + col2 * col1 + col1 FROM tab0 AS cor0
----
100
308448
4431

query II rowsort
SELECT DISTINCT - col0, col0 + col0 + 35 AS col2 FROM tab2 AS cor0
----
-46
127
-64
163
-75
185

onlyif mysql # aggregate syntax: 
query II rowsort label-353
SELECT COUNT( * ) * COUNT( * ) AS col2, + COUNT( * ) * + 58 col0 FROM tab0
----
9
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-353
SELECT COUNT ( * ) * COUNT ( * ) AS col2, + COUNT ( * ) * + 58 col0 FROM tab0
----
9
174

query I rowsort
SELECT ALL col2 / + col1 FROM tab2 WHERE NOT col1 - - col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - 78 * + - ( - col0 ) FROM tab1 cor0
----
-3978
-6630
-7098

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 * + - col0 col1 FROM tab2 AS cor0
----
2162
3008
3525

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

query I rowsort
SELECT DISTINCT - - col0 + + - col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL + 99 + + - 15 FROM tab2 AS cor0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 18 col2 FROM tab0 AS cor0 WHERE + 37 IS NOT NULL
----
19
39
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-365
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( * ) - MAX( + - 75 ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-365
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) - MAX ( + - 75 ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 21 + - 75 * - - col1 FROM tab1
----
-1029
-3504
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT - 88 * - - MIN( + - 26 ) col0 FROM tab1
----
2288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-367
SELECT - 88 * - - MIN ( + - 26 ) col0 FROM tab1
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT ALL + COUNT( + + col0 ) + SUM( - col2 ) AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL + COUNT ( + + col0 ) + SUM ( - col2 ) AS col2 FROM tab0
----
-153

query I rowsort
SELECT ALL - col0 + - - ( - 60 ) AS col2 FROM tab0
----
-147
-157
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT ALL 20 DIV - - ( + col1 ) FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL 20 / - - ( + col1 ) FROM tab1
----
0
1
4

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

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

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

query I rowsort
SELECT ALL + col2 + - 51 FROM tab0 AS cor0
----
-4
-41
48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 28 BETWEEN ( col2 ) AND - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 + + 84 * + col2 * + + col2 AS col0 FROM tab0 cor0
----
185603
823383
8410

query I rowsort
SELECT DISTINCT + 55 * - - col0 - - ( + + 46 ) AS col1 FROM tab2 AS cor0
----
2576
3566
4171

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT + COUNT( * ) - + 45 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT + COUNT ( * ) - + 45 FROM tab0
----
-42

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

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT - 3 / - + ( - - col2 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT + MIN( ALL col2 ) AS col1, 19 AS col0 FROM tab0 AS cor0
----
10
19

skipif mysql # not compatible
query II rowsort label-380
SELECT + MIN ( ALL col2 ) AS col1, 19 AS col0 FROM tab0 AS cor0
----
10
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-381
SELECT * FROM tab1 AS cor0 WHERE NOT 57 NOT IN ( + CAST( NULL AS SIGNED ) - - 80 * + 0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-381
SELECT * FROM tab1 AS cor0 WHERE NOT 57 NOT IN ( + CAST ( NULL AS INTEGER ) - - 80 * + 0 * + col2 )
----

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

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

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

query I rowsort
SELECT col0 * + col0 * - col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 51 / + col2 <= NULL
----

query II rowsort
SELECT ALL - 22, + 66 AS col1 FROM tab0
----
-22
66
-22
66
-22
66

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-390
SELECT ALL MAX( CAST( 13 AS SIGNED ) ) AS col2 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL MAX ( CAST ( 13 AS INTEGER ) ) AS col2 FROM tab1
----
13

query II rowsort
SELECT + col0, + col2 * 94 FROM tab1
----
51
9024
85
5546
91
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT + SUM( 25 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + SUM ( 25 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT + 50 * - col2 FROM tab0 AS cor0
----
-2350
-4950
-500

query III rowsort
SELECT * FROM tab2 WHERE NOT + 21 BETWEEN NULL AND + 23 + 86
----

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 WHERE + 64 / + 91 * - + col1 * + col0 NOT BETWEEN NULL AND col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL - SUM( + ( - 51 ) ) AS col2 FROM tab2 WHERE NOT - + 8 > ( + - ( + 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - SUM ( + ( - 51 ) ) AS col2 FROM tab2 WHERE NOT - + 8 > ( + - ( + 41 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - col1 col0 FROM tab0 AS cor0
----
-11
-34
98

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

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

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

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

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

query II rowsort
SELECT + 10 * - col0, 9 + - + col2 AS col0 FROM tab0 AS cor0
----
-150
-38
-870
-1
-970
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-402
SELECT DISTINCT + col1 + + ( + col0 ) + - + col0 FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT + col1 + + ( + col0 ) + - + col0 FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-403
SELECT DISTINCT 73 col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
73
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-403
SELECT DISTINCT 73 col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
73
NULL

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

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

query I rowsort
SELECT DISTINCT + col2 / - + col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col2 * - 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT ALL col1 * - col1 * col1 + - - CAST( + ( 36 ) AS SIGNED ) AS col0 FROM tab2
----
-132615
-300727
-456497

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL col1 * - col1 * col1 + - - CAST ( + ( 36 ) AS INTEGER ) AS col0 FROM tab2
----
-132615
-300727
-456497

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT MAX( + + col2 ) + - 38 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT MAX ( + + col2 ) + - 38 FROM tab2
----
20

query I rowsort
SELECT ALL - col0 * + 81 FROM tab1
----
-4131
-6885
-7371

query III rowsort
SELECT * FROM tab1 WHERE + + col0 / + col0 NOT BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + - 52 ) + + + col2, col1 * + - col2 col2 FROM tab1
----
16
-3196
44
-1344
7
-295

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT ALL + 77 DIV - col1 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + 77 / - col1 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + ( + COUNT( * ) ) + + + 22 * 49 FROM tab2
----
1081

skipif mysql # not compatible
query I rowsort label-412
SELECT + ( + COUNT ( * ) ) + + + 22 * 49 FROM tab2
----
1081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 - - 33 * + col1 col2 FROM tab0
----
123
2763
783

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT ALL + 4 * - CAST( NULL AS SIGNED ) + - 20 + - + col2 * - + ( + col0 ) FROM tab2 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + 4 * - CAST ( NULL AS INTEGER ) + - 20 + - + col2 * - + ( + col0 ) FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT ALL 64, COUNT( - + 99 ) col1 FROM tab0 AS cor0
----
64
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73 col2, col0 FROM tab1
----
73
51
73
85
73
91

query II rowsort
SELECT 86 AS col1, col2 + + + col2 FROM tab2
----
86
116
86
46
86
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col2 FROM tab2 WHERE NOT - 74 <> 80 OR NULL IS NULL
----
-11
-11
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT SUM( + col0 ) + + MIN( DISTINCT + 67 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT SUM ( + col0 ) + + MIN ( DISTINCT + 67 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT + 82 * col0 FROM tab0 AS cor0
----
1230
7134
7954

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-426
SELECT ALL - col2, + CAST( NULL AS SIGNED ) * + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-426
SELECT ALL - col2, + CAST ( NULL AS INTEGER ) * + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT DISTINCT - col1 * + - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
2323
4888
4967

query I rowsort
SELECT ( + ( - + 54 ) ) AS col2 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT ALL + - 4 FROM tab0 WHERE NOT - - 15 NOT BETWEEN 33 * + col1 AND NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-431
SELECT DISTINCT MIN( ALL + ( + CAST( col2 AS SIGNED ) ) ) DIV - 55 + + + 19 AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT MIN ( ALL + ( + CAST ( col2 AS INTEGER ) ) ) / - 55 + + + 19 AS col1 FROM tab2
----
19

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-433
SELECT - col2 DIV - col1, col2 * - col0 AS col0 FROM tab0
----
0
-705
0
-870
99
-9603

skipif mysql # not compatible
query II rowsort label-433
SELECT - col2 / - col1, col2 * - col0 AS col0 FROM tab0
----
0
-705
0
-870
99
-9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 75 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT ALL + col2 DIV + 11 AS col1 FROM tab1 AS cor0
----
5
6
8

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL + col2 / + 11 AS col1 FROM tab1 AS cor0
----
5
6
8

query I rowsort
SELECT DISTINCT + + 59 + - + 55 AS col2 FROM tab1 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-437
SELECT + 42 + + CAST( - 39 AS SIGNED ) AS col2, 97 FROM tab1
----
3
97
3
97
3
97

skipif mysql # not compatible
query II rowsort label-437
SELECT + 42 + + CAST ( - 39 AS INTEGER ) AS col2, 97 FROM tab1
----
3
97
3
97
3
97

query I rowsort
SELECT - ( - col1 ) + + col1 AS col1 FROM tab2
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT - col1 + + - 96 DIV - + 71 AS col2 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-439
SELECT - col1 + + - 96 / - + 71 AS col2 FROM tab1
----
-13
-4
-46

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

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

query II rowsort
SELECT DISTINCT - + 2, - col0 * + 68 AS col0 FROM tab1 AS cor0
----
-2
-3468
-2
-5780
-2
-6188

query I rowsort
SELECT ALL - col2 + - + 14 FROM tab2 AS cor0
----
-37
-54
-72

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

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

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

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

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

query I rowsort
SELECT + 30 * + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 78 )
----

query I rowsort
SELECT ALL + col2 + - col0 * + - 17 - - col2 AS col0 FROM tab0
----
1499
1847
349

query I rowsort
SELECT DISTINCT 27 + + 76 AS col0 FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-450
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 47 - - 50 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 47 - - 50 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - 80 - - col0 FROM tab2
----
-16
-34
-5

query I rowsort
SELECT + col1 - + 32 + + 45 FROM tab0
----
14
34
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - 83 col2, col2 - - col2 AS col1 FROM tab1
----
-15
136
-24
118
13
192

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT DISTINCT SUM( + col2 ) - - - 85 AS col1 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT SUM ( + col2 ) - - - 85 AS col1 FROM tab1
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT + - col2 + col2 - - col0 + col0 DIV + + col1 FROM tab0 AS cor0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-455
SELECT + - col2 + col2 - - col0 + col0 / + + col1 FROM tab0 AS cor0
----
15
194
91

query I rowsort
SELECT + 25 + + + col2 + - - 44 AS col2 FROM tab2 AS cor0
----
109
127
92

query I rowsort
SELECT - 13 * 4 * col0 FROM tab1 AS cor0
----
-2652
-4420
-4732

query I rowsort
SELECT ALL + - 75 * + col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT - - 68 * - COUNT( * ) FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT - - 68 * - COUNT ( * ) FROM tab1 AS cor0
----
-204

query I rowsort
SELECT + col1 * + + 70 FROM tab1 AS cor0
----
3290
350
980

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

query I rowsort
SELECT - 61 * 21 - col1 FROM tab0 AS cor0
----
-1282
-1302
-1362

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

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

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

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

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + ( + MIN ( - ( - col0 ) ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT DISTINCT COUNT( * ) * + 42 AS col2 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT COUNT ( * ) * + 42 AS col2 FROM tab2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT - 74 DIV - 93 * + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-470
SELECT - 74 / - 93 * + COUNT ( * ) FROM tab0
----
0

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

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

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL <> col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + 8
----

query I rowsort
SELECT DISTINCT 5 + - col1 AS col1 FROM tab2 AS cor0
----
-46
-62
-72

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-476
SELECT - ( - 7 ) - - COUNT( * ) * - MAX( + CAST( col2 AS SIGNED ) ) AS col1 FROM tab0
----
-290

skipif mysql # not compatible
query I rowsort label-476
SELECT - ( - 7 ) - - COUNT ( * ) * - MAX ( + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0
----
-290

query I rowsort
SELECT - ( + col1 ) * + 4 - + col1 FROM tab1 AS cor0
----
-235
-25
-70

query II rowsort
SELECT 42 - - col0, - 16 AS col0 FROM tab2 AS cor0
----
106
-16
117
-16
88
-16

query I rowsort
SELECT - col0 - + col0 - - col0 * + col2 FROM tab1 AS cor0
----
4794
4845
6006

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

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

query I rowsort
SELECT - + col0 - 8 AS col2 FROM tab0 AS cor0
----
-105
-23
-95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + ( + - col2 ) + + 27 IS NULL AND - col1 IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 23 NOT BETWEEN + col0 AND NULL
----
87
21
10
97
1
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT + 31 * - col1 + ( - 85 ) DIV - col2 AS col2 FROM tab0
----
-2510
-31
-643

skipif mysql # not compatible
query I rowsort label-485
SELECT + 31 * - col1 + ( - 85 ) / - col2 AS col2 FROM tab0
----
-2510
-31
-643

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

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

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

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

query II rowsort
SELECT col1, - 22 - - col0 FROM tab0
----
1
75
21
65
81
-7

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 30 col1, - 92 FROM tab0 AS cor0
----
-30
-92

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-495
SELECT - ( + SUM( DISTINCT - CAST( - - ( - + 19 ) AS SIGNED ) ) ) AS col2 FROM tab1
----
-19

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-500
SELECT ALL - COUNT ( + - col2 ) col0 FROM tab0
----
-3

query I rowsort
SELECT + 41 AS col2 FROM tab2
----
41
41
41

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

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

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

query I rowsort
SELECT DISTINCT + 48 * + col1 FROM tab1
----
2256
240
672

query I rowsort
SELECT DISTINCT col0 * - + 62 AS col2 FROM tab0
----
-5394
-6014
-930

query I rowsort
SELECT ALL - 2 * 69 + + + col0 * + ( + + 27 ) FROM tab0 AS cor0
----
2211
2481
267

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

query I rowsort
SELECT ALL 84 + - 21 - + col0 AS col2 FROM tab2 AS cor0
----
-1
-12
17

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-510
SELECT - col0 col1, - CAST( NULL AS SIGNED ) AS col2, col1 DIV col2 AS col1 FROM tab2 cor0
----
9 values hashing to bfc498f9dbd6e0e80d703bf7c3062af0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-510
SELECT - col0 col1, - CAST ( NULL AS INTEGER ) AS col2, col1 / col2 AS col1 FROM tab2 cor0
----
9 values hashing to bfc498f9dbd6e0e80d703bf7c3062af0

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 62 col1 FROM tab0 AS cor0
----
109
161
72

query I rowsort
SELECT ALL - col2 + - 32 AS col0 FROM tab0 AS cor0
----
-131
-42
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + - ( - 13 ) + 20 * - col0 col0 FROM tab2
----
-1216
-1446
-882

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col1 FROM tab1
----
59
68
96

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT ALL SUM( CAST( - 47 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL SUM ( CAST ( - 47 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-141

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT + + col0 * - - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-524
SELECT + + col0 * - - col2 / - col2 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL 13 FROM tab0 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT SUM( + col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-526
SELECT SUM ( + col2 ) col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - col2 * + 92 AS col2 FROM tab2 AS cor0
----
-2116
-3680
-5336

query I rowsort
SELECT ALL + 31 + col2 FROM tab1 AS cor0
----
127
90
99

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

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

query I rowsort
SELECT DISTINCT - 81 * + col1 * - + col2 AS col1 FROM tab1 AS cor0
----
108864
23895
258876

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL MIN( DISTINCT + + col1 ) + 73 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL MIN ( DISTINCT + + col1 ) + 73 FROM tab0 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT DISTINCT + 21 + - MAX( + - 39 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT + 21 + - MAX ( + - 39 ) FROM tab1
----
60

query I rowsort
SELECT DISTINCT 65 * + + col2 AS col1 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT ALL + 71 FROM tab2, tab2 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT + 94 * + 8 FROM tab2
----
752

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-536
SELECT - - 18 * + 65 * + col1 + col2 - + - col1 + - + ( - CAST( NULL AS DECIMAL ) ) / - + 63 * + + 56 * - col1 / - 20 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT - - 18 * + 65 * + col1 + col2 - + - col1 + - + ( - CAST ( NULL AS REAL ) ) / - + 63 * + + 56 * - col1 / - 20 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 81 AS col0 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT ALL - SUM( DISTINCT + 70 ) * - 55 FROM tab2 AS cor0
----
3850

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - SUM ( DISTINCT + 70 ) * - 55 FROM tab2 AS cor0
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT 46 + - + COUNT( DISTINCT - + col2 ) FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT 46 + - + COUNT ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
43

query I rowsort
SELECT ALL - - 75 * + col0 * + + 49 FROM tab2 WHERE NULL > col2 + - col0
----

query I rowsort
SELECT DISTINCT - col0 - + col1 * + 39 + col2 AS col2 FROM tab0
----
-3127
-37
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT ALL col2 DIV + col2 + + col1 * - col1 FROM tab1 AS cor0
----
-195
-2208
-24

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL col2 / + col2 + + col1 * - col1 FROM tab1 AS cor0
----
-195
-2208
-24

query I rowsort
SELECT DISTINCT - - 82 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * - - col0 AND + + col1
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-545
SELECT DISTINCT col2 * ( - 89 ) FROM tab0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT col2 * ( - 89 ) FROM tab0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT - 73 + - + col0 * - + col1 FROM tab1 WHERE NOT ( ( - 32 ) ) = - + col0 + 8
----
352
4204
641

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT DISTINCT 72 DIV col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT 72 / col1 FROM tab2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-548
SELECT ALL * FROM tab1 WHERE - col2 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-548
SELECT ALL * FROM tab1 WHERE - col2 > - CAST ( NULL AS INTEGER )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-549
SELECT ALL MAX ( ALL - - col1 ) col0 FROM tab1
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT 49 * + MIN( + + col2 ) * + 75 FROM tab1
----
216825

skipif mysql # not compatible
query I rowsort label-551
SELECT 49 * + MIN ( + + col2 ) * + 75 FROM tab1
----
216825

query I rowsort
SELECT + + 47 - + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
105
70
87

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

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

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

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

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

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

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

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

query I rowsort
SELECT 46 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-560
SELECT - MAX( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT - MAX ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 71 + 39 AS col2 FROM tab1 cor0
----
110
110
110

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

query II rowsort
SELECT DISTINCT - 53 + col1, col2 FROM tab2 AS cor0
----
-2
23
14
58
24
40

query I rowsort
SELECT + - 91 AS col2 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT - - 63 FROM tab1 WHERE col1 BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-566
SELECT COUNT ( * ), 73 AS col2 FROM tab0
----
3
73

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

query II rowsort
SELECT 32 AS col0, col2 + + 39 + - + col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
32
13
32
16
32
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 + col0 col2 FROM tab2 AS cor0
----
24
35
6

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

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

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

query I rowsort
SELECT DISTINCT - + 84 AS col1 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT + ( + 47 ) * - + 68 * 72 AS col1 FROM tab1 cor0
----
-230112
-230112
-230112

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

query I rowsort
SELECT 6 * - 65 FROM tab0 AS cor0
----
-390
-390
-390

query I rowsort
SELECT - 64 * + col1 * + + ( 26 ) FROM tab1 AS cor0
----
-23296
-78208
-8320

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 39 * + col1 / ( + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-578
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 39 * + col1 / ( + col1 ) AND NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT DISTINCT - 71 + COUNT( * ) + COUNT( * ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND col1
----
-71

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - 71 + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND col1
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT 37 IS NULL
----
15
87
97

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

skipif mysql # not compatible
query I rowsort label-582
SELECT + + 27 + - - 56 * - COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NOT - + col2 - + + CAST ( - 81 AS INTEGER ) IS NOT NULL
----
27

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + 66 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab1 WHERE - + 59 <= + - col1 + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - + 59 <= + - col1 + 23
----
NULL

query I rowsort
SELECT ALL + 20 FROM tab2 WHERE NOT NULL IS NOT NULL
----
20
20
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-588
SELECT ALL - 16 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( + - 30 AS SIGNED ) * + col2 * - ( 78 ) > + - ( + 58 )
----

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - 16 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( + - 30 AS INTEGER ) * + col2 * - ( 78 ) > + - ( + 58 )
----

query I rowsort
SELECT DISTINCT ( - col0 ) + - + 71 FROM tab0 AS cor0
----
-158
-168
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT ALL + - col0 + - 42 DIV - 89 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + - col0 + - 42 / - 89 AS col1 FROM tab2 AS cor0
----
-46
-64
-75

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

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

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

query I rowsort
SELECT ALL - col1 * + 38 + + ( - + col1 ) * col1 FROM tab2 AS cor0
----
-4539
-7035
-8855

query I rowsort
SELECT ALL + col2 * - - col2 FROM tab1 WHERE col1 + - + col0 IS NOT NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT + COUNT( * ) * - + 30 + + 67 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-595
SELECT + COUNT ( * ) * - + 30 + + 67 FROM tab1
----
-23

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

query I rowsort
SELECT - - 53 AS col1 FROM tab1 AS cor0
----
53
53
53

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

query III rowsort
SELECT * FROM tab2 WHERE 32 * - 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT COUNT( * ) - - 43 + - COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-600
SELECT COUNT ( * ) - - 43 + - COUNT ( * ) FROM tab2
----
43

query I rowsort
SELECT DISTINCT col1 - - 90 + 50 AS col1 FROM tab1
----
145
154
187

query II rowsort
SELECT + 84, 40 + col2 AS col2 FROM tab2
----
84
63
84
80
84
98

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL - MIN( DISTINCT - 41 ) AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL - MIN ( DISTINCT - 41 ) AS col0 FROM tab0
----
41

query I rowsort
SELECT 9 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-606
SELECT ALL - + ( SUM( DISTINCT + 8 ) ) col2, + 7 AS col2 FROM tab1 AS cor0
----
-8
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-606
SELECT ALL - + ( SUM ( DISTINCT + 8 ) ) col2, + 7 AS col2 FROM tab1 AS cor0
----
-8
7

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( - 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-608
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 58 * - col1 + - + col1 * - 38 * col1 AS col1 FROM tab2 AS cor0
----
166696
220836
95880

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

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT + 12 DIV + col1 AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-611
SELECT + 12 / + col1 AS col0 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT + 25 * - COUNT( * ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-612
SELECT + 25 * - COUNT ( * ) FROM tab0
----
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL - SUM( + 39 ) AS col1 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - SUM ( + 39 ) AS col1 FROM tab1
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - 36 AS col1, col1 col1 FROM tab2
----
1440
77
2088
67
828
51

query II rowsort
SELECT DISTINCT col0 * + + col0, 78 AS col1 FROM tab2
----
2116
78
4096
78
5625
78

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - 6 + - 50 AND - + col0 + + col0 + - col2
----

query I rowsort
SELECT ALL + col1 * col0 * - - col0 * 17 FROM tab2 AS cor0
----
1834572
5361664
6406875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-620
SELECT DISTINCT + + 47 DIV MAX( DISTINCT + - CAST( - col1 AS SIGNED ) ) * - - 83 - 68 AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT + + 47 / MAX ( DISTINCT + - CAST ( - col1 AS INTEGER ) ) * - - 83 - 68 AS col2 FROM tab1 AS cor0
----
15

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT - col0 + col1 NOT BETWEEN NULL AND + 63 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT - MAX( - 68 ) AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-623
SELECT - MAX ( - 68 ) AS col1 FROM tab2
----
68

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + 67 * 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE col1 + + 13 NOT IN ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE col1 + + 13 NOT IN ( - col1 )
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL + 86 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + 86 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + - col2 * col1 col0 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ALL 38 - - COUNT( ALL + ( col1 ) ) FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL 38 - - COUNT ( ALL + ( col1 ) ) FROM tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT col2 * 54 - - - col0 FROM tab1
----
3101
3581
5133

onlyif mysql # aggregate syntax: 
query III rowsort label-634
SELECT - COUNT( * ) AS col2, + COUNT( * ), COUNT( * ) col1 FROM tab2
----
-3
3
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT SUM( 56 ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-635
SELECT SUM ( 56 ) FROM tab0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-636
SELECT col1, - col1 - + col0 + - + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
14
31
47
-70
5
-31

skipif mysql # not compatible
query II rowsort label-636
SELECT col1, - col1 - + col0 + - + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
14
31
47
-70
5
-31

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

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

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL + MIN ( DISTINCT 18 ) FROM tab2
----
18

query I rowsort
SELECT ALL col2 - 66 AS col2 FROM tab0
----
-19
-56
33

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

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

query I rowsort
SELECT ALL 15 - + 72 AS col1 FROM tab2
----
-57
-57
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT - MAX( ALL + 37 ) col1 FROM tab2
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-643
SELECT DISTINCT - MAX ( ALL + 37 ) col1 FROM tab2
----
-37

query I rowsort
SELECT col0 + + 82 AS col1 FROM tab0 AS cor0
----
169
179
97

onlyif mysql # DIV for integer division: 
query II rowsort label-645
SELECT - col2 + col0 AS col2, - col2 + - col0 + + col1 * col0 DIV + col1 FROM tab0 AS cor0
----
-2
-99
-32
-47
77
-10

skipif mysql # not compatible
query II rowsort label-645
SELECT - col2 + col0 AS col2, - col2 + - col0 + + col1 * col0 / + col1 FROM tab0 AS cor0
----
-2
-99
-32
-47
77
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-646
SELECT ALL - - COUNT( * ) AS col2, - 33 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-646
SELECT ALL - - COUNT ( * ) AS col2, - 33 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( - - col1, + ( - + col2 ), + col1, - - 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab1 cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT col2 + + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + CAST( - col2 AS SIGNED ) + 94 )
----

skipif mysql # not compatible
query I rowsort label-650
SELECT col2 + + col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + CAST ( - col2 AS INTEGER ) + 94 )
----

query I rowsort
SELECT ALL + 31 * 49 * 68 + + col1 FROM tab0 AS cor0
----
103293
103313
103373

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-652
SELECT - CAST( - col0 AS SIGNED ), + col2 * 95 AS col2 FROM tab0 AS cor0
----
15
4465
87
950
97
9405

skipif mysql # not compatible
query II rowsort label-652
SELECT - CAST ( - col0 AS INTEGER ), + col2 * 95 AS col2 FROM tab0 AS cor0
----
15
4465
87
950
97
9405

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - + 46 ) * - + col2 + col2 col2 FROM tab0 AS cor0
----
-2115
-4455
-450

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + 99
----

query I rowsort
SELECT + 69 * + col0 AS col2 FROM tab0
----
1035
6003
6693

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-659
SELECT * FROM tab1 WHERE NOT + col0 * CAST( NULL AS SIGNED ) * - - col1 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-659
SELECT * FROM tab1 WHERE NOT + col0 * CAST ( NULL AS INTEGER ) * - - col1 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - - 55 * - col1 FROM tab1
----
-23375
-235235
-39270

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL = col1
----

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

query I rowsort
SELECT + 82 + col1 FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT - 86 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-71
1
11

query II rowsort
SELECT - col0 + + - col2 * + 31 AS col1, col1 + + col0 FROM tab1 AS cor0
----
-1914
90
-2199
138
-3027
65

query II rowsort
SELECT col1 + + col0 + + col0, 16 + + 93 AS col2 FROM tab0 AS cor0
----
111
109
195
109
195
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 col0, + col2 * - col2 * - + col1 AS col0 FROM tab1 cor0
----
49
129024
49
17405
49
217328

query II rowsort
SELECT ALL - 27 * - + col0 + + + col1 + col0 AS col1, col0 FROM tab1 AS cor0
----
1442
51
2385
85
2595
91

query I rowsort
SELECT - 8 - col1 FROM tab0 AS cor0
----
-29
-89
-9

query I rowsort
SELECT ALL + 87 + col1 AS col2 FROM tab2 AS cor0
----
138
154
164

query I rowsort
SELECT col0 + + - 68 AS col2 FROM tab1 AS cor0
----
-17
17
23

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + MAX( ALL - col2 ) FROM tab0 cor0 WHERE - col0 + - ( + + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT + MAX ( ALL - col2 ) FROM tab0 cor0 WHERE - col0 + - ( + + col0 ) IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 + - 22 AS col0 FROM tab0 cor0
----
-1
-21
59

query I rowsort
SELECT DISTINCT - col0 * + 34 + col2 AS col1 FROM tab1
----
-1638
-2831
-3026

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-675
SELECT DISTINCT AVG ( DISTINCT 31 ) + - + CAST( NULL AS DECIMAL ) AS col0, - COUNT( * ) * 13 DIV COUNT( * ) AS col1 FROM tab0
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-675
SELECT DISTINCT AVG ( DISTINCT 31 ) + - + CAST ( NULL AS REAL ) AS col0, - COUNT ( * ) * 13 / COUNT ( * ) AS col1 FROM tab0
----
NULL
-13

query I rowsort
SELECT ALL 13 * + col1 + 78 * + col1 FROM tab0
----
1911
7371
91

query I rowsort
SELECT ALL 62 - - 68 AS col1 FROM tab2
----
130
130
130

query I rowsort
SELECT + col0 * col0 * - - col1 + + col1 + col2 + - + 1 AS col0 FROM tab0
----
158979
18352
9508

query I rowsort
SELECT DISTINCT col2 - - col0 + + col2 * - - col2 FROM tab1
----
3625
4783
9363

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + MAX( - - 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-681
SELECT + MAX ( - - 94 ) FROM tab1
----
94

query I rowsort
SELECT - col2 * - - 57 AS col1 FROM tab1 AS cor0
----
-3363
-3876
-5472

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

query II rowsort
SELECT col0, - 49 FROM tab0
----
15
-49
87
-49
97
-49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 19 col1, + 28 FROM tab1 cor0
----
-19
28

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-688
SELECT DISTINCT CAST( 11 AS SIGNED ) AS col1, col2 AS col2, - - 30 FROM tab1
----
9 values hashing to 42e979c2d42d6ccab3f1854796bf6bc1

skipif mysql # not compatible
query III rowsort label-688
SELECT DISTINCT CAST ( 11 AS INTEGER ) AS col1, col2 AS col2, - - 30 FROM tab1
----
9 values hashing to 42e979c2d42d6ccab3f1854796bf6bc1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-690
SELECT DISTINCT + col2 * + CAST( + col2 AS DECIMAL ) AS col0, col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 97 * col2 NOT IN ( - - col2, col1, + col0 * 56 * + + col0 * + col2 )
----

skipif mysql # not compatible
query II rowsort label-690
SELECT DISTINCT + col2 * + CAST ( + col2 AS REAL ) AS col0, col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 97 * col2 NOT IN ( - - col2, col1, + col0 * 56 * + + col0 * + col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( 49, ( 53 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + COUNT( * ) col0 FROM tab2 WHERE - col1 = + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-692
SELECT + COUNT ( * ) col0 FROM tab2 WHERE - col1 = + col0
----
0

query I rowsort
SELECT col2 + ( + col0 ) * + ( + col1 ) AS col0 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT ALL - + col1 + + 30 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-21
-37
-47

query I rowsort
SELECT + col1 * + 74 + - + 98 + + col1 * + - col2 * + col1 AS col2 FROM tab2
----
-231560
-255502
-56147

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT DISTINCT + col2 DIV - - 67 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT + col2 / - - 67 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + - col0 * - + 1 AS col1 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT - 86 * col0 AS col2 FROM tab2 AS cor0
----
-3956
-5504
-6450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL < + 35 )
----

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

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

query I rowsort
SELECT ALL - + 45 + + 13 AS col2 FROM tab2 AS cor0
----
-32
-32
-32

query II rowsort
SELECT + 13 AS col2, - 38 + col2 AS col0 FROM tab1 AS cor0
----
13
21
13
30
13
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 * + + col1 col1 FROM tab2 AS cor0
----
-2907
-3819
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT + 51 - - + ( MAX( ALL + col1 ) ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-705
SELECT + 51 - - + ( MAX ( ALL + col1 ) ) FROM tab1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT ALL + col2 + + - 92 * + col2 DIV col2 FROM tab1
----
-24
-33
4

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + col2 + + - 92 * + col2 / col2 FROM tab1
----
-24
-33
4

query I rowsort
SELECT col2 - + ( 17 ) FROM tab2
----
23
41
6

query I rowsort
SELECT DISTINCT col2 + + - ( col0 ) AS col1 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL + 81 - - col0 * 20 FROM tab2
----
1001
1361
1581

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 88 * + col1 col2, + col2 AS col2 FROM tab1
----
1232
96
4136
68
440
59

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

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

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

query I rowsort
SELECT 40 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + 62 AS col2 FROM tab2 cor0
----
62
62
62

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

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

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - col1 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-717
SELECT DISTINCT - MAX ( ALL - col1 ) col0 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) + - - col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-718
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) + - - col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-51
-85
-91

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-720
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) = ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-720
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) = ( + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT DISTINCT MAX( DISTINCT - 90 ) AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT MAX ( DISTINCT - 90 ) AS col0 FROM tab2
----
-90

query I rowsort
SELECT + - 78 + - - col0 AS col1 FROM tab0 AS cor0
----
-63
19
9

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

query I rowsort
SELECT ALL 16 + + + col2 FROM tab1 AS cor0
----
112
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ( - MAX( + col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-727
SELECT ( - MAX ( + col0 ) ) FROM tab1
----
-91

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

skipif mysql # not compatible
query I rowsort label-728
SELECT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col2 - - + 34 FROM tab2
----
57
74
92

query I rowsort
SELECT col0 - - col0 + + - col2 FROM tab1
----
111
114
6

query I rowsort
SELECT + col0 * - + col1 - ( + col0 ) * + col1 AS col2 FROM tab2
----
-10050
-4692
-9856

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT DISTINCT - SUM( + 92 ) FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - SUM ( + 92 ) FROM tab0 AS cor0
----
-276

query I rowsort
SELECT - col0 + + ( + + 43 ) + - 60 AS col1 FROM tab1 AS cor0
----
-102
-108
-68

query I rowsort
SELECT DISTINCT + ( + 94 ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL + ( - col2 ) + col0 FROM tab0 AS cor0
----
-2
-32
77

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

query I rowsort
SELECT ALL + - 79 + + col1 FROM tab0 cor0
----
-58
-78
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 63 > NULL )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 15 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col0 ) col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT 54 * col1 AS col1 FROM tab1
----
2538
270
756

query I rowsort
SELECT ALL 72 * + col0 FROM tab0
----
1080
6264
6984

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT 75 * COUNT( * ) AS col2 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-746
SELECT 75 * COUNT ( * ) AS col2 FROM tab0
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

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

query I rowsort
SELECT - col0 * + col1 - + 1 FROM tab1
----
-426
-4278
-715

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT - ( + 87 ) + + COUNT( * ) AS col0 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - ( + 87 ) + + COUNT ( * ) AS col0 FROM tab2
----
-84

query I rowsort
SELECT - 25 * col2 AS col1 FROM tab1
----
-1475
-1700
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT - MIN( col2 ) * + ( 51 ) FROM tab2
----
-1173

skipif mysql # not compatible
query I rowsort label-753
SELECT - MIN ( col2 ) * + ( 51 ) FROM tab2
----
-1173

query I rowsort
SELECT + 15 * + col2 AS col2 FROM tab0
----
1485
150
705

query I rowsort
SELECT - col1 * 19 AS col2 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col1 + 44 NOT IN ( + col0 + + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT + CAST( col0 AS SIGNED ) * - 61 AS col0 FROM tab0
----
-5307
-5917
-915

skipif mysql # not compatible
query I rowsort label-757
SELECT + CAST ( col0 AS INTEGER ) * - 61 AS col0 FROM tab0
----
-5307
-5917
-915

query I rowsort
SELECT ALL + col2 - + 95 FROM tab2
----
-37
-55
-72

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

query I rowsort
SELECT - col2 * col0 - - 92 FROM tab1
----
-4804
-4923
-6096

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

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

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT ( - 13 ) IS NULL
----
10
47
99

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 15 AS col1 FROM tab1 WHERE NOT - col0 * + col2 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 15 AS col1 FROM tab1 WHERE NOT - col0 * + col2 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT col2 - - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE CAST( - 35 AS SIGNED ) IS NOT NULL
----
198
20
94

skipif mysql # not compatible
query I rowsort label-769
SELECT col2 - - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE CAST ( - 35 AS INTEGER ) IS NOT NULL
----
198
20
94

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

query I rowsort
SELECT ALL + 43 * col1 AS col2 FROM tab2 cor0
----
2193
2881
3311

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT DISTINCT col1 * ( - col0 ) - col1 DIV + col1 AS col0 FROM tab0
----
-1216
-1828
-98

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT col1 * ( - col0 ) - col1 / + col1 AS col0 FROM tab0
----
-1216
-1828
-98

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

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

query I rowsort
SELECT - ( + col2 ) FROM tab2 AS cor0 WHERE col2 * 50 < ( NULL )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 49 * 25 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 16 ) NOT BETWEEN + col0 AND ( 57 )
----

query I rowsort
SELECT + ( + col1 ) * 25 FROM tab2 AS cor0
----
1275
1675
1925

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

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

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

skipif mysql # not compatible
query I rowsort label-782
SELECT - 26 * CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT MAX( + 92 ) * - 38 AS col1 FROM tab2 AS cor0
----
-3496

skipif mysql # not compatible
query I rowsort label-783
SELECT MAX ( + 92 ) * - 38 AS col1 FROM tab2 AS cor0
----
-3496

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT - ( 78 ) DIV col0 AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-788
SELECT - ( 78 ) / col0 AS col2 FROM tab0
----
-5
0
0

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

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

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

skipif mysql # not compatible
query I rowsort label-791
SELECT - COUNT ( DISTINCT - col0 ) FROM tab1
----
-3

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

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

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

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

query I rowsort
SELECT ALL - ( 71 ) * col0 AS col1 FROM tab1 AS cor0
----
-3621
-6035
-6461

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

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

query I rowsort
SELECT - col0 * + col0 * - col2 AS col0 FROM tab0 AS cor0
----
10575
75690
931491

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

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

query I rowsort
SELECT 35 + 30 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col0 ) AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 - + 54 + + col0 <= col0 + - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-804
SELECT AVG ( + 75 ) * COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT 68 + COUNT( * ) FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 99 * col0
----
68

skipif mysql # not compatible
query I rowsort label-806
SELECT 68 + COUNT ( * ) FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 99 * col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-807
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE ( - ( CAST( - 21 AS SIGNED ) ) ) NOT BETWEEN NULL AND - 23
----
3

skipif mysql # not compatible
query I rowsort label-807
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE ( - ( CAST ( - 21 AS INTEGER ) ) ) NOT BETWEEN NULL AND - 23
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * - + col2 * + ( 97 * + col0 ) IS NOT NULL AND 67 IS NOT NULL
----

query I rowsort
SELECT + col1 + - 59 FROM tab0
----
-38
-58
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-810
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( - - col2 AS SIGNED ) * - col0 + - col1 * - col1 NOT IN ( + col1 - col0 ) AND NOT ( + col2 ) > col1 * col2
----

skipif mysql # not compatible
query III rowsort label-810
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( - - col2 AS INTEGER ) * - col0 + - col1 * - col1 NOT IN ( + col1 - col0 ) AND NOT ( + col2 ) > col1 * col2
----

query I rowsort
SELECT ALL col1 * + 44 + - col2 FROM tab2 WHERE col2 NOT BETWEEN ( - col1 ) AND ( NULL ) AND ( + col2 ) NOT BETWEEN NULL AND col1
----

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

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

query I rowsort
SELECT ALL col2 + col1 * col0 AS col0 FROM tab1
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT ALL - SUM( col2 ) * - COUNT( DISTINCT + 35 ) * COUNT( * ) + + 87 AS col2 FROM tab0
----
555

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL - SUM ( col2 ) * - COUNT ( DISTINCT + 35 ) * COUNT ( * ) + + 87 AS col2 FROM tab0
----
555

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

query I rowsort
SELECT DISTINCT 10 FROM tab0 WHERE NOT col2 + 71 NOT BETWEEN col2 AND 76
----

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

skipif mysql # not compatible
query I rowsort label-817
SELECT COUNT ( * ) + MAX ( + + col1 ) FROM tab2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-818
SELECT - 62 DIV - - 88 + + SUM( - col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-818
SELECT - 62 / - - 88 + + SUM ( - col0 ) FROM tab1 cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-819
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - + col1 - - + col2 - 9 * - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-819
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - + col1 - - + col2 - 9 * - CAST ( col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col2 + - ( - - 89 ) * - col0 + 25 FROM tab2 AS cor0
----
11050
5177
8281

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 40, 49 - - ( + col1 ) + col1 * - col0 col1 FROM tab0 AS cor0
----
40
-1085
40
-1757
40
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + 18
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT - 42 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-827
SELECT - 42 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-828
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, - ( + col0 ) FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-828
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, - ( + col0 ) FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-830
SELECT + 59 DIV + COUNT( * ) AS col2, COUNT( * ) col0 FROM tab1
----
19
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-830
SELECT + 59 / + COUNT ( * ) AS col2, COUNT ( * ) col0 FROM tab1
----
19
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-831
SELECT DISTINCT + COUNT( * ), MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-831
SELECT DISTINCT + COUNT ( * ), MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
3
NULL

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

query I rowsort
SELECT 16 * + col0 FROM tab0
----
1392
1552
240

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-835
SELECT ALL * FROM tab1 WHERE - 20 * + - CAST( - - col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-835
SELECT ALL * FROM tab1 WHERE - 20 * + - CAST ( - - col0 AS INTEGER ) < NULL
----

query I rowsort
SELECT ALL 64 AS col1 FROM tab0 cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query II rowsort label-837
SELECT DISTINCT - + 63, col0 * - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-63
-46
-63
-64
-63
-75

skipif mysql # not compatible
query II rowsort label-837
SELECT DISTINCT - + 63, col0 * - col0 / col0 AS col0 FROM tab2 AS cor0
----
-63
-46
-63
-64
-63
-75

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-840
SELECT ALL + 90 FROM tab1 WHERE NOT ( - col0 * + - 13 * col2 * - + col1 + + col1 / + col2 + + 86 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + 90 FROM tab1 WHERE NOT ( - col0 * + - 13 * col2 * - + col1 + + col1 / + col2 + + 86 * CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL - 23 - 9 FROM tab0 WHERE NOT + + col1 - - col0 + col0 NOT BETWEEN - 8 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT DISTINCT - 70 * + 62 * + + CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT - 70 * + 62 * + + CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT - + SUM( ALL - col0 ) + - + 63 FROM tab1 cor0
----
164

skipif mysql # not compatible
query I rowsort label-843
SELECT - + SUM ( ALL - col0 ) + - + 63 FROM tab1 cor0
----
164

query I rowsort
SELECT - 89 AS col0 FROM tab2 AS cor0 WHERE 33 * - 41 NOT IN ( - col1 )
----
-89
-89
-89

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT ALL col0 + CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL col0 + CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT DISTINCT col1 * - col0 + + col0 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT + ( - - SUM( DISTINCT - 52 ) ) AS col1 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-848
SELECT + ( - - SUM ( DISTINCT - 52 ) ) AS col1 FROM tab2 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT ALL - 72 DIV - 6 + - 52 DIV - 68 + + 88 AS col1 FROM tab0
----
100
100
100

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL - 72 / - 6 + - 52 / - 68 + + 88 AS col1 FROM tab0
----
100
100
100

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT MAX( - - 27 ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-850
SELECT MAX ( - - 27 ) AS col2 FROM tab2
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + 95 col2 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT ALL col0 DIV 69 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL col0 / 69 FROM tab1
----
0
1
1

query I rowsort
SELECT ( 42 ) - 39 * + - 17 AS col0 FROM tab0
----
705
705
705

onlyif mysql # aggregate syntax: 
query II rowsort label-854
SELECT ALL 74 * 14 - + COUNT( * ) AS col1, + 43 FROM tab1
----
1033
43

skipif mysql # not compatible
query II rowsort label-854
SELECT ALL 74 * 14 - + COUNT ( * ) AS col1, + 43 FROM tab1
----
1033
43

query I rowsort
SELECT ALL ( - col1 ) * - + col1 FROM tab0
----
1
441
6561

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT + COUNT( * ) + + 60 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-857
SELECT + COUNT ( * ) + + 60 FROM tab2 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT ALL - col1 DIV 85 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - col1 / 85 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 84 * + + col0 * + col0 + + ( col1 ) FROM tab0 AS cor0
----
18981
635817
790357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 39 * + - 13 IS NULL
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL MAX( col0 ) - + - COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL MAX ( col0 ) - + - COUNT ( * ) FROM tab0
----
100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT DISTINCT - col1 DIV - col2 + ( + 72 ) + - 89 + col2 * - 14 * - col1 AS col1 FROM tab0 cor0
----
1369
2925
53282

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - col1 / - col2 + ( + 72 ) + - 89 + col2 * - 14 * - col1 AS col1 FROM tab0 cor0
----
1369
2925
53282

query II rowsort
SELECT DISTINCT ( + col2 ), 82 FROM tab2 AS cor0
----
23
82
40
82
58
82

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-865
SELECT - + 2 * - 29 / col2 col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 14 + + col2 BETWEEN col0 AND - col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT ALL + + 90 DIV - + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + + 90 / - + col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 17 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 17 IS NOT NULL
----
0

query I rowsort
SELECT + - col2 * - 55 AS col0 FROM tab0 cor0
----
2585
5445
550

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

query II rowsort
SELECT ALL col1 AS col2, - 18 AS col1 FROM tab1
----
14
-18
47
-18
5
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT ALL - MIN( + 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - MIN ( + 32 ) FROM tab0
----
-32

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

query I rowsort
SELECT 82 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

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

query I rowsort
SELECT + col2 * col1 * - col2 - + + col0 AS col2 FROM tab1 cor0
----
-129075
-17490
-217419

query I rowsort
SELECT DISTINCT + 39 + - 3 * - col0 AS col0 FROM tab0 AS cor0
----
300
330
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 92 col1 FROM tab2
----
115
132
150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND col0
----

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

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

query II rowsort
SELECT - + 86 / col2 AS col0, col2 AS col1 FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 - 87 * - + ( - col2 ) FROM tab2
----
-1955
-3416
-4971

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-886
SELECT 66 * + - COUNT( * ) AS col0, - 10 FROM tab0
----
-198
-10

skipif mysql # not compatible
query II rowsort label-886
SELECT 66 * + - COUNT ( * ) AS col0, - 10 FROM tab0
----
-198
-10

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN 44 AND + 31
----

query II rowsort
SELECT DISTINCT + 66 * - col1 * - 64, - 70 AS col2 FROM tab1
----
198528
-70
21120
-70
59136
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT 61 * col1 + col0 + + CAST( - - 45 AS SIGNED ) - - col1 FROM tab1 AS cor0
----
3050
440
964

skipif mysql # not compatible
query I rowsort label-889
SELECT 61 * col1 + col0 + + CAST ( - - 45 AS INTEGER ) - - col1 FROM tab1 AS cor0
----
3050
440
964

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

query I rowsort
SELECT + col0 * + 70 - col2 AS col0 FROM tab2 AS cor0
----
3197
4440
5192

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT - col2 DIV 11 AS col1 FROM tab0
----
-4
-9
0

skipif mysql # not compatible
query I rowsort label-892
SELECT - col2 / 11 AS col1 FROM tab0
----
-4
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT + - 99 + - SUM( DISTINCT + 25 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-124

skipif mysql # not compatible
query I rowsort label-893
SELECT + - 99 + - SUM ( DISTINCT + 25 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT + COUNT( * ) * 24 AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-894
SELECT + COUNT ( * ) * 24 AS col1 FROM tab0
----
72

query II rowsort
SELECT - - 40, - col1 + 22 * + col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
40
1071
40
1407
40
1617

query I rowsort
SELECT DISTINCT - - 63 + 11 + 98 + - col1 + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 + - col2 FROM tab1 AS cor0
----
-59
-144
-68
-159
-96
-147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT - - COUNT( * ) * - MAX( ALL - 20 ) - + - COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-899
SELECT - - COUNT ( * ) * - MAX ( ALL - 20 ) - + - COUNT ( * ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT - 82 * - - 54 AS col1 FROM tab1 AS cor0
----
-4428
-4428
-4428

query I rowsort
SELECT ALL col0 * 79 * col1 FROM tab0 cor0
----
144333
7663
95985

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT DISTINCT - MIN( ALL 79 ) FROM tab0 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-902
SELECT DISTINCT - MIN ( ALL 79 ) FROM tab0 cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 76 * - 33 * - ( col2 ) col0 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT DISTINCT + MIN( - 44 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT + MIN ( - 44 ) FROM tab1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT ALL + col2 DIV - col0 * 92 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + col2 / - col0 * 92 FROM tab2
----
0
0
0

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

query I rowsort
SELECT DISTINCT 69 * 0 FROM tab0
----
0

query I rowsort
SELECT + col1 * ( + + col1 ) FROM tab2
----
2601
4489
5929

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-913
SELECT ALL col0 DIV + - ( 17 ) AS col1 FROM tab1
----
-3
-5
-5

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL col0 / + - ( 17 ) AS col1 FROM tab1
----
-3
-5
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-915
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT - 51 IN ( - + col1, - 30 * - col1, + col1 / - col0, 37 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT - 51 IN ( - + col1, - 30 * - col1, + col1 / - col0, 37 )
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - ( + + col0 ), 4 / - col0 * - col1 )
----

query I rowsort
SELECT DISTINCT col1 + - 99 AS col2 FROM tab2 AS cor0
----
-22
-32
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT DISTINCT + 44 DIV - col0 + - 24 + + col2 * - 46 FROM tab1 cor0
----
-2738
-3152
-4440

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT + 44 / - col0 + - 24 + + col2 * - 46 FROM tab1 cor0
----
-2738
-3152
-4440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT COUNT( * ) + - - 54 AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT COUNT ( * ) + - - 54 AS col0 FROM tab0
----
57

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

query I rowsort
SELECT ( - - col2 ) + + - col1 FROM tab0
----
-11
-34
98

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

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

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

query I rowsort
SELECT DISTINCT - - 70 FROM tab0 cor0
----
70

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

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

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

query II rowsort
SELECT ALL 84 * col2 + - col2, col0 FROM tab1 cor0
----
4897
85
5644
91
7968
51

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN col2 AND + - 31
----

query I rowsort
SELECT ALL col0 + + + 30 AS col0 FROM tab0
----
117
127
45

query III rowsort
SELECT * FROM tab0 WHERE NULL < + 88
----

query I rowsort
SELECT ALL + col1 * + 50 + - 33 AS col2 FROM tab2
----
2517
3317
3817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT ( CAST( 22 AS SIGNED ) ) - - - col2 FROM tab1
----
-37
-46
-74

skipif mysql # not compatible
query I rowsort label-935
SELECT ( CAST ( 22 AS INTEGER ) ) - - - col2 FROM tab1
----
-37
-46
-74

query I rowsort
SELECT DISTINCT 87 - - col2 - col0 - 82 AS col2 FROM tab1
----
-18
-21
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT 89 - + + 99 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT 89 - + + 99 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - + col1 + + 50 AS col2 FROM tab2
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT ( + - 86 ) - - col2 DIV - 84 * - - col1 col1 FROM tab2
----
-86
-86
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-939
SELECT ( + - 86 ) - - col2 / - 84 * - - col1 col1 FROM tab2
----
-86
-86
-86

query I rowsort
SELECT 97 - + col2 * col2 AS col0 FROM tab1
----
-3384
-4527
-9119

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT + col1 DIV + + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-942
SELECT + col1 / + + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT - 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT - col1 * - ( - 89 ) AS col0 FROM tab2 AS cor0
----
-4539
-5963
-6853

query I rowsort
SELECT DISTINCT - - 44 * - 31 FROM tab1 AS cor0
----
-1364

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT DISTINCT + 29 DIV col0 * + col1 AS col2 FROM tab0 AS cor0
----
0
81

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT + 29 / col0 * + col1 AS col2 FROM tab0 AS cor0
----
0
81

query I rowsort
SELECT - col2 * + col2 * - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-21000
-8409663
-970299

query I rowsort
SELECT ALL + 99 * col1 FROM tab1
----
1386
4653
495

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT + - 76 * + + SUM( ALL - 42 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT + - 76 * + + SUM ( ALL - 42 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT ALL + + 90 + + + col0 + + + 72 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT + MAX( ALL - - 54 ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT + MAX ( ALL - - 54 ) AS col0 FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT + 88 + CAST( NULL AS SIGNED ) * + - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT + 88 + CAST ( NULL AS INTEGER ) * + - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 38 + - - col1 * ( + col0 ) FROM tab1 AS cor0
----
387
4239
676

query I rowsort
SELECT - ( - ( - 30 ) ) AS col0 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT 83 + col0 + - col2 FROM tab0
----
160
51
81

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

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT 34 IS NULL
----
46
64
75

query I rowsort
SELECT + ( - 41 ) + col2 + - - col1 - col2 AS col1 FROM tab0 AS cor0
----
-20
-40
40

query I rowsort
SELECT - col0 + 70 AS col0 FROM tab1 cor0
----
-15
-21
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-961
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + - 49 * - + CAST( NULL AS SIGNED ) / + col0 > + col0
----

skipif mysql # not compatible
query III rowsort label-961
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - 49 * - + CAST ( NULL AS INTEGER ) / + col0 > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL MAX( DISTINCT col1 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL MAX ( DISTINCT col1 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT + - COUNT( * ) * + 35 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-105

skipif mysql # not compatible
query I rowsort label-963
SELECT + - COUNT ( * ) * + 35 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-105

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

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

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

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

skipif mysql # not compatible
query I rowsort label-967
SELECT + MIN ( + + col2 ) FROM tab1
----
59

query I rowsort
SELECT ALL col2 + - ( + col0 ) FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-969
SELECT * FROM tab1 WHERE NULL IN ( 44, + ( + CAST( NULL AS SIGNED ) ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-969
SELECT * FROM tab1 WHERE NULL IN ( 44, + ( + CAST ( NULL AS INTEGER ) ), + col0 )
----

query I rowsort
SELECT DISTINCT - col2 * + + 61 - col2 FROM tab0
----
-2914
-6138
-620

query II rowsort
SELECT + - 91 AS col2, col1 AS col0 FROM tab0 WHERE + ( + col0 ) + col2 IS NULL
----

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

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

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

query I rowsort
SELECT - - col0 / - 61 FROM tab2 WHERE NOT ( NULL NOT IN ( col1 + + col0 + + col0, + col0 * + col0 + - col0 * + col2 ) )
----

query I rowsort
SELECT 56 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query II rowsort
SELECT + 35 AS col2, 81 FROM tab2
----
35
81
35
81
35
81

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

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

query I rowsort
SELECT DISTINCT ( + - 19 ) FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT 52 * + - COUNT( * ) FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-980
SELECT 52 * + - COUNT ( * ) FROM tab2
----
-156

query I rowsort
SELECT DISTINCT + col0 * - col0 * - col2 AS col0 FROM tab0 AS cor0
----
10575
75690
931491

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-984
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - AVG ( ALL 77 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - AVG ( ALL 77 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-985
SELECT - + COUNT( * ) DIV - + COUNT( * ), 34 col1 FROM tab2 WHERE NOT col1 IS NULL
----
1
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-985
SELECT - + COUNT ( * ) / - + COUNT ( * ), 34 col1 FROM tab2 WHERE NOT col1 IS NULL
----
1
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * ( - 68 ) col0 FROM tab0
----
-1020
-5916
-6596

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 87 col0 FROM tab0
----
-4089
-8613
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT - col0 DIV + 60 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-989
SELECT - col0 / + 60 AS col1 FROM tab1
----
-1
-1
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT + 41 DIV SUM( ALL 35 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-991
SELECT + 41 / SUM ( ALL 35 ) AS col0 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-992
SELECT + COUNT ( DISTINCT + col0 ) FROM tab1
----
3

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

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

query I rowsort
SELECT DISTINCT - col1 * 62 * - 60 FROM tab2 cor0
----
189720
249240
286440

query I rowsort
SELECT DISTINCT - + 23 * - 83 AS col0 FROM tab0 AS cor0
----
1909

query I rowsort
SELECT + col2 * - col0 + col1 - - col1 + 72 AS col2 FROM tab1
----
-4796
-4933
-6022

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT ALL - - SUM( ALL + 64 ) + - 36 AS col2 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL - - SUM ( ALL + 64 ) + - 36 AS col2 FROM tab2 AS cor0
----
156

query I rowsort
SELECT - + ( + + 6 ) FROM tab1 WHERE NOT ( 61 <> + col2 + - col1 + - col1 * col0 )
----

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

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT + SUM( - 8 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1002
SELECT + SUM ( - 8 ) FROM tab1 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - + col0 * - col2 + + - col0 col2, + col1 AS col2 FROM tab2 AS cor0
----
-163904
77
-326325
67
-48714
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT - ( col2 ) * - col2 + - 41 DIV col2 FROM tab2 AS cor0
----
1599
3364
528

skipif mysql # not compatible
query I rowsort label-1004
SELECT - ( col2 ) * - col2 + - 41 / col2 FROM tab2 AS cor0
----
1599
3364
528

query II rowsort
SELECT DISTINCT - col2 AS col2, + col2 + - - col0 FROM tab2
----
-23
69
-40
104
-58
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1006
SELECT DISTINCT - CAST( - + 18 AS SIGNED ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - CAST ( - + 18 AS INTEGER ) FROM tab1
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT SUM( + 56 ) AS col2 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1009
SELECT SUM ( + 56 ) AS col2 FROM tab0 AS cor0
----
168

query II rowsort
SELECT ALL - col2 AS col1, - col0 AS col0 FROM tab1
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT + 79 + MAX( + - 94 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + 79 + MAX ( + - 94 ) FROM tab1
----
-15

query I rowsort
SELECT - + col2 / + ( col0 ) FROM tab0 WHERE - 12 - 67 = - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT ALL 49 * + ( 70 ) * + MAX( - + col0 ) AS col0 FROM tab0 AS cor0
----
-51450

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL 49 * + ( 70 ) * + MAX ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-51450

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1015
SELECT ALL - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT 9 IS NULL
----
-3

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE 66 IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1017
SELECT DISTINCT 91 DIV col1 DIV + 65 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT 91 / col1 / + 65 AS col1 FROM tab2
----
0

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

query I rowsort
SELECT col1 * + col1 + + col2 + - 11 AS col0 FROM tab2 AS cor0
----
2613
4536
5958

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

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

query I rowsort
SELECT DISTINCT + 8 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-43
-77
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT - - col2 DIV + + 83 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1022
SELECT - - col2 / + + 83 FROM tab0 AS cor0
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + col1 / - col1 AS col2 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 + - 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 23
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 = + 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab0
----
84

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= NULL
----

query II rowsort
SELECT DISTINCT + 44 * + + 86 * - + 37 * + 93 AS col1, - col0 * - 39 AS col1 FROM tab1
----
-13020744
1989
-13020744
3315
-13020744
3549

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT ALL - col0 DIV + 66 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - col0 / + 66 FROM tab0
----
-1
-1
0

query II rowsort
SELECT ALL 30, col0 FROM tab2
----
30
46
30
64
30
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL - SUM( - + 96 ) AS col1 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL - SUM ( - + 96 ) AS col1 FROM tab1 AS cor0
----
288

query I rowsort
SELECT DISTINCT 46 - - 44 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
90

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

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

query I rowsort
SELECT - col2 * - 72 FROM tab1
----
4248
4896
6912

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL - ( + SUM ( + - 37 ) ) FROM tab2
----
111

query I rowsort
SELECT DISTINCT + 7 * + col0 AS col2 FROM tab1
----
357
595
637

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT DISTINCT SUM( 14 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT SUM ( 14 ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT 10 + + col2 FROM tab0 AS cor0 WHERE NOT + col2 * + - col0 + + col2 BETWEEN col0 AND NULL
----
109
20
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + col2 <= - col1
----

query I rowsort
SELECT - 3 + - 17 + + 47 AS col0 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT ALL - ( col0 ) + col0 * - + col1 * - col2 + col0 * col0 AS col0 FROM tab2 AS cor0 WHERE - 66 * + 62 <= col0 * - col1
----
56028

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

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

query I rowsort
SELECT DISTINCT + col1 * + - col1 FROM tab1
----
-196
-2209
-25

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

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

query I rowsort
SELECT 8 * - col0 * + 8 * + 66 FROM tab1
----
-215424
-359040
-384384

query I rowsort
SELECT DISTINCT 57 FROM tab0 WHERE ( + 16 ) IS NOT NULL
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 61 * + col1 * col1 col0, col1 FROM tab2
----
158661
51
273829
67
361669
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL MIN( ALL + col2 ) * - 85 - + - COUNT( * ) FROM tab0
----
-847

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL MIN ( ALL + col2 ) * - 85 - + - COUNT ( * ) FROM tab0
----
-847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1052
SELECT - 51 * - - CAST( NULL AS SIGNED ) - - 45 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1052
SELECT - 51 * - - CAST ( NULL AS INTEGER ) - - 45 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 2 <= NULL
----

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

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

query I rowsort
SELECT + - 54 + + + 31 AS col2 FROM tab1 cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1056
SELECT - 62 * + COUNT( * ) AS col1, MAX( col0 ) - - 28 * + COUNT( * ) + + 41 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-186
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1056
SELECT - 62 * + COUNT ( * ) AS col1, MAX ( col0 ) - - 28 * + COUNT ( * ) + + 41 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-186
222

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1060
SELECT - + col0 DIV col0 + - + col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-1060
SELECT - + col0 / col0 + - + col1 FROM tab0 AS cor0
----
-2
-22
-82

query I rowsort
SELECT 50 * col1 * - 98 FROM tab1 AS cor0
----
-230300
-24500
-68600

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

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

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

skipif mysql # not compatible
query I rowsort label-1063
SELECT + - 39 / col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT 86 * + col0 AS col2, + 64 FROM tab0 AS cor0
----
1290
64
7482
64
8342
64

query I rowsort
SELECT 53 * + col0 FROM tab2
----
2438
3392
3975

query I rowsort
SELECT DISTINCT + 11 * + col0 FROM tab0
----
1067
165
957

query II rowsort
SELECT ALL col0 * - + col0 AS col0, 3 * - col2 AS col1 FROM tab0
----
-225
-141
-7569
-30
-9409
-297

query I rowsort
SELECT ALL - 84 * + 63 AS col2 FROM tab0
----
-5292
-5292
-5292

query III rowsort
SELECT * FROM tab2 WHERE NOT 86 / - col1 + - col0 IN ( - + col2 - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT DISTINCT col2 DIV col2 * + 66 col2 FROM tab2
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1070
SELECT DISTINCT col2 / col2 * + 66 col2 FROM tab2
----
66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1072
SELECT DISTINCT - 26 * ( - 35 ) DIV col1 + - col0 AS col1 FROM tab1 AS cor0
----
-72
14
97

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT - 26 * ( - 35 ) / col1 + - col0 AS col1 FROM tab1 AS cor0
----
-72
14
97

query I rowsort
SELECT DISTINCT - 95 * + - 71 FROM tab0 AS cor0
----
6745

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 89 <> ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-1076
SELECT + MIN ( - + 36 ) AS col2 FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT - CAST( 7 AS SIGNED ) * + 43 AS col1 FROM tab0 cor0
----
-301
-301
-301

skipif mysql # not compatible
query I rowsort label-1077
SELECT - CAST ( 7 AS INTEGER ) * + 43 AS col1 FROM tab0 cor0
----
-301
-301
-301

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

skipif mysql # not compatible
query I rowsort label-1078
SELECT - - 35 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT DISTINCT - 85 + + - MIN( ALL ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT - 85 + + - MIN ( ALL ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-136

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - 75 / - + col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT IN ( + - 66 + 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + 37 + - 40 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT col2 + col2 * + col2 + col0 FROM tab0 cor0
----
197
2271
9997

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= NULL AND col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 22 FROM tab0
----
-12
25
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1089
SELECT 62 * + 75 * + col2 + col0 DIV - col2 + col0 FROM tab1
----
274434
316290
446451

skipif mysql # not compatible
query I rowsort label-1089
SELECT 62 * + 75 * + col2 + col0 / - col2 + col0 FROM tab1
----
274434
316290
446451

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1090
SELECT + COUNT( * ) * + - COUNT( * ) DIV - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE - col1 * + col1 <> - col1
----
2

skipif mysql # not compatible
query I rowsort label-1090
SELECT + COUNT ( * ) * + - COUNT ( * ) / - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE - col1 * + col1 <> - col1
----
2

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE col1 <= ( - + col1 + col1 )
----

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

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

query I rowsort
SELECT ALL 74 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + MAX( col0 ) AS col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1095
SELECT + MAX ( col0 ) AS col1 FROM tab1 cor0
----
91

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

skipif mysql # not compatible
query I rowsort label-1096
SELECT - + MAX ( + 6 ) FROM tab1 AS cor0
----
-6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1098
SELECT + 11 FROM tab0 AS cor0 WHERE NOT - col2 * col0 <= + CAST( col0 AS SIGNED ) * - - col1
----

skipif mysql # not compatible
query I rowsort label-1098
SELECT + 11 FROM tab0 AS cor0 WHERE NOT - col2 * col0 <= + CAST ( col0 AS INTEGER ) * - - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( col1, 78 * + col2, + ( col2 ), 92, - - 31 )
----

query I rowsort
SELECT DISTINCT - 57 * + col2 * ( - - 23 ) * 47 - col1 FROM tab0 AS cor0
----
-2896080
-6100084
-616191

query I rowsort
SELECT - 1 * + + 35 AS col1 FROM tab2 cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1102
SELECT 19 * - CAST( NULL AS SIGNED ) / + - COUNT( * ) FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT 19 * - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) FROM tab2, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89 col1, col2 AS col2 FROM tab2
----
-89
23
-89
40
-89
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT COUNT( * ) * + 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-1104
SELECT COUNT ( * ) * + 93 FROM tab0
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT DISTINCT 16 DIV - MIN( ALL col1 ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT 16 / - MIN ( ALL col1 ) FROM tab0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1106
SELECT ALL 24 AS col2, CAST( NULL AS DECIMAL ) FROM tab0
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-1106
SELECT ALL 24 AS col2, CAST ( NULL AS REAL ) FROM tab0
----
24
NULL
24
NULL
24
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) col1 FROM tab0 AS cor0 WHERE col2 <> - + 13 * + col0 * - - 16
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1108
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) col1 FROM tab0 AS cor0 WHERE col2 <> - + 13 * + col0 * - - 16
----
3
3

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

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

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

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

query II rowsort
SELECT 23, col0 AS col1 FROM tab0 cor0
----
23
15
23
87
23
97

query I rowsort
SELECT - 55 + 0 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT ALL 36 FROM tab0 WHERE NOT NULL BETWEEN - 80 AND 81 - + col2
----

query I rowsort
SELECT col1 + + 52 * - col2 AS col1 FROM tab2
----
-1145
-2003
-2949

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

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

query II rowsort
SELECT - col2 + - col2, col2 FROM tab1 AS cor0 WHERE + col2 > - 98
----
-118
59
-136
68
-192
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT MIN( + - ( + col2 ) ) + MAX( 91 ) - - COUNT( * ) * + - 10 FROM tab0 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT MIN ( + - ( + col2 ) ) + MAX ( 91 ) - - COUNT ( * ) * + - 10 FROM tab0 cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT + - 66 * - 47 * + ( + COUNT( * ) ) FROM tab0 AS cor0
----
9306

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT + - 66 * - 47 * + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
9306

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

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

query I rowsort
SELECT DISTINCT col1 * + 75 * - col2 + - col2 FROM tab1
----
-100896
-22184
-239768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT + 86 - ( col0 ) FROM tab1
----
-5
1
35

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

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT + MIN ( - + col0 ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT + 22 + col2 AS col1 FROM tab2 cor0
----
45
62
80

query I rowsort
SELECT - col2 + + 53 FROM tab0 AS cor0
----
-46
43
6

query I rowsort
SELECT ALL col2 + - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * + 55 FROM tab1 AS cor0
----
-2585
-275
-770

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

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

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

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

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

query I rowsort
SELECT - ( col1 ) * - col0 AS col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query II rowsort label-1134
SELECT 23 DIV col1 * - + col0 + - ( + 13 ) DIV + - ( + col1 ), + col2 FROM tab0 AS cor0
----
-2218
99
-87
10
0
47

skipif mysql # not compatible
query II rowsort label-1134
SELECT 23 / col1 * - + col0 + - ( + 13 ) / + - ( + col1 ), + col2 FROM tab0 AS cor0
----
-2218
99
-87
10
0
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1135
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - 41 + + ( + + 67 ), col1 + + col2, CAST( NULL AS SIGNED ), + col2 )
----

skipif mysql # not compatible
query III rowsort label-1135
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - 41 + + ( + + 67 ), col1 + + col2, CAST ( NULL AS INTEGER ), + col2 )
----

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab2
----
4

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1138
SELECT DISTINCT - col0 * - col2 * - - 36, col1 DIV - + col1 + + col0 AS col1 FROM tab1
----
176256
50
180540
84
222768
90

skipif mysql # not compatible
query II rowsort label-1138
SELECT DISTINCT - col0 * - col2 * - - 36, col1 / - + col1 + + col0 AS col1 FROM tab1
----
176256
50
180540
84
222768
90

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - 47 col2 FROM tab0
----
-32
40
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL - COUNT( * ) * + ( - ( 27 ) ) AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - COUNT ( * ) * + ( - ( 27 ) ) AS col1 FROM tab1 AS cor0
----
81

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT + 9 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL + col0 * 26 AS col1 FROM tab1
----
1326
2210
2366

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

query III rowsort
SELECT * FROM tab0 WHERE 0 <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1153
SELECT + - CAST( NULL AS SIGNED ) + col0 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-1153
SELECT + - CAST ( NULL AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 16 + + + col1 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - ( col0 ) + 90 IS NOT NULL
----
46
64
75

query I rowsort
SELECT - + 31 + col1 FROM tab2 AS cor0
----
20
36
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / - - 29 IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 2 - + col0 + + 1 + 26 * col2 < col0
----

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

query I rowsort
SELECT DISTINCT 71 - - 93 FROM tab2
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-1162
SELECT DISTINCT col0 DIV - + col2 - col1 FROM tab1
----
-14
-48
-6

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT col0 / - + col2 - col1 FROM tab1
----
-14
-48
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT - 18 * + MAX( + 43 ) FROM tab2
----
-774

skipif mysql # not compatible
query I rowsort label-1164
SELECT - 18 * + MAX ( + 43 ) FROM tab2
----
-774

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT - + col2 - + - 76 + - 26 DIV col2 AS col2 FROM tab2 AS cor0
----
18
36
52

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT - + col2 - + - 76 + - 26 / col2 AS col2 FROM tab2 AS cor0
----
18
36
52

query I rowsort
SELECT - 57 * - + 29 FROM tab1 AS cor0
----
1653
1653
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT SUM( col1 ) FROM tab1 AS cor0 WHERE NOT ( - + col2 ) / + 86 * + col1 + col2 + col1 > + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT SUM ( col1 ) FROM tab1 AS cor0 WHERE NOT ( - + col2 ) / + 86 * + col1 + col2 + col1 > + - col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT DISTINCT MAX( DISTINCT - + 96 ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT MAX ( DISTINCT - + 96 ) AS col1 FROM tab2
----
-96

query II rowsort
SELECT ALL - + 99, col0 * + + col0 AS col2 FROM tab0 AS cor0
----
-99
225
-99
7569
-99
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, 28 col2 FROM tab1 AS cor0
----
-59
28
-68
28
-96
28

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

query II rowsort
SELECT col1 AS col0, ( + - col0 ) FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1176
SELECT + CAST( + col0 AS SIGNED ) * - 34 AS col1 FROM tab2 AS cor0
----
-1564
-2176
-2550

skipif mysql # not compatible
query I rowsort label-1176
SELECT + CAST ( + col0 AS INTEGER ) * - 34 AS col1 FROM tab2 AS cor0
----
-1564
-2176
-2550

query I rowsort
SELECT - 75 * + col1 AS col1 FROM tab0
----
-1575
-6075
-75

query I rowsort
SELECT ALL - + 23 FROM tab1 WHERE NOT 5 IS NULL
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL - COUNT( ALL 92 ) * - 31 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL - COUNT ( ALL 92 ) * - 31 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT DISTINCT 89 * - 66 * - COUNT( * ) AS col1 FROM tab0
----
17622

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT 89 * - 66 * - COUNT ( * ) AS col1 FROM tab0
----
17622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT CAST( - - col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1181
SELECT CAST ( - - col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT MIN( ALL + ( - - 23 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1182
SELECT MIN ( ALL + ( - - 23 ) ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + 79 * - 70 col2 FROM tab1 WHERE NULL IS NULL
----
-5581
-5615
-5621

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1184
SELECT * FROM tab2 WHERE - col0 / 34 / + CAST( NULL AS SIGNED ) / + - col0 - + col1 <> NULL OR NULL NOT BETWEEN - 93 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1184
SELECT * FROM tab2 WHERE - col0 / 34 / + CAST ( NULL AS INTEGER ) / + - col0 - + col1 <> NULL OR NULL NOT BETWEEN - 93 AND NULL
----

query II rowsort
SELECT ALL col2 + + col0, col2 FROM tab0 AS cor0
----
196
99
62
47
97
10

query II rowsort
SELECT DISTINCT + 73 + + col2 * + 82 * - col2 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-131127
40
-275775
58
-43305
23

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

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

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

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

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL < + col0 / - 54 - - col1
----

query I rowsort
SELECT ALL ( - + 15 ) - - - col0 * - col0 FROM tab0
----
210
7554
9394

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN 97 - - - 51 AND NULL
----
51
14
96
85
5
59

query I rowsort
SELECT + col1 * - 76 AS col1 FROM tab1 AS cor0
----
-1064
-3572
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * ( 5 ), col1 col2 FROM tab1 AS cor0
----
295
5
340
47
480
14

query I rowsort
SELECT + - 14 AS col2 FROM tab1 cor0 WHERE + 69 IS NOT NULL
----
-14
-14
-14

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

query I rowsort
SELECT DISTINCT + + col0 + - + col1 * + 36 - + 72 FROM tab2 AS cor0
----
-1862
-2409
-2780

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

query I rowsort
SELECT ALL - col2 - - 66 FROM tab0
----
-33
19
56

query I rowsort
SELECT + 14 - 23 * + col1 FROM tab0
----
-1849
-469
-9

query I rowsort
SELECT ALL col2 + + 64 + + col2 FROM tab1
----
182
200
256

query I rowsort
SELECT col0 - - - 49 AS col0 FROM tab2
----
-3
15
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT ALL COUNT( * ) * + + 39 AS col1, - COUNT( * ) + - COUNT( * ) * - - ( - 29 ) + + MAX( 48 ) + - 11 * + MAX( - col0 ) + 31 AS col0 FROM tab2
----
117
669

skipif mysql # not compatible
query II rowsort label-1203
SELECT ALL COUNT ( * ) * + + 39 AS col1, - COUNT ( * ) + - COUNT ( * ) * - - ( - 29 ) + + MAX ( 48 ) + - 11 * + MAX ( - col0 ) + 31 AS col0 FROM tab2
----
117
669

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT DISTINCT - 57 DIV - col1 FROM tab0
----
0
2
57

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT - 57 / - col1 FROM tab0
----
0
2
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1206
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 WHERE + 88 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 WHERE + 88 IS NOT NULL
----
-1

query II rowsort
SELECT 64 * - 6, col0 AS col2 FROM tab1 AS cor0
----
-384
51
-384
85
-384
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT + - col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1208
SELECT + - col2 / - col0 AS col1 FROM tab0 AS cor0
----
0
1
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT ALL col2 DIV + 52 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL col2 / + 52 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT COUNT( * ) col1 FROM tab0 AS cor0 WHERE col1 BETWEEN + - col2 AND + - 77 * + 41
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1211
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE col1 BETWEEN + - col2 AND + - 77 * + 41
----
0

query I rowsort
SELECT - 90 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - ( - 53 ) FROM tab2 AS cor0
----
53

query I rowsort
SELECT + - 81 * col1 FROM tab2 AS cor0
----
-4131
-5427
-6237

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

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

query I rowsort
SELECT + 67 + + col1 AS col0 FROM tab2
----
118
134
144

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT DISTINCT COUNT( * ) + + 29 FROM tab0, tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT COUNT ( * ) + + 29 FROM tab0, tab0 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 + - 3 * + 82 col1 FROM tab1 WHERE - col2 IS NOT NULL
----
-267
-300
-328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 35 col2 FROM tab0
----
1
35
21
35
81
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + + + SUM( ALL - 25 ) - 26 FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-1220
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + + SUM ( ALL - 25 ) - 26 FROM tab2
----
-101

query I rowsort
SELECT DISTINCT - 8 FROM tab2, tab0 cor0
----
-8

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT + col1 IN ( 72 )
----
1
21
81

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

query I rowsort
SELECT DISTINCT - 90 + - 85 + + + 98 FROM tab0 AS cor0
----
-77

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

query I rowsort
SELECT - 97 * col0 + - - col1 * col2 FROM tab2 AS cor0 WHERE 78 * col0 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT ALL - 80 * MAX( ALL col0 ) AS col0 FROM tab1
----
-7280

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL - 80 * MAX ( ALL col0 ) AS col0 FROM tab1
----
-7280

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

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL + COUNT ( * ) / 36 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL 98 * COUNT( col0 ) AS col2 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 98 * COUNT ( col0 ) AS col2 FROM tab1
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT MIN( DISTINCT CAST( + col1 AS SIGNED ) ) FROM tab1 WHERE NULL IN ( col1 + 99 / 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT MIN ( DISTINCT CAST ( + col1 AS INTEGER ) ) FROM tab1 WHERE NULL IN ( col1 + 99 / 64 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1232
SELECT MAX( col1 ) DIV - MIN( DISTINCT col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1232
SELECT MAX ( col1 ) / - MIN ( DISTINCT col2 ) FROM tab1
----
0

query I rowsort
SELECT col1 - + 59 FROM tab1
----
-12
-45
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT col0 DIV - 65 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1234
SELECT col0 / - 65 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1235
SELECT 58 DIV - MIN( DISTINCT - col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1235
SELECT 58 / - MIN ( DISTINCT - col2 ) FROM tab2
----
1

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT 55 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT DISTINCT + col0 + + CAST( + col0 + col2 AS SIGNED ) AS col0 FROM tab2
----
115
168
208

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT + col0 + + CAST ( + col0 + col2 AS INTEGER ) AS col0 FROM tab2
----
115
168
208

query I rowsort
SELECT + col0 * 77 AS col2 FROM tab1
----
3927
6545
7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1239
SELECT + CAST( + ( AVG ( DISTINCT + ( + 36 ) ) ) AS SIGNED ) col2 FROM tab2 WHERE NOT col2 * + col0 IS NULL
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1239
SELECT + CAST ( + ( AVG ( DISTINCT + ( + 36 ) ) ) AS INTEGER ) col2 FROM tab2 WHERE NOT col2 * + col0 IS NULL
----
36

query I rowsort
SELECT + col1 + 55 * + col1 FROM tab0
----
1176
4536
56

query I rowsort
SELECT - col1 - 47 FROM tab2
----
-114
-124
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 83 > col0 / - col0 + + 45
----

query I rowsort
SELECT + 2 * - col2 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - 11 ) * - col0 BETWEEN NULL AND + col0 + col0
----

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab0 WHERE NOT ( - 88 ) BETWEEN ( col0 / - col1 ) AND NULL
----
-40

query III rowsort
SELECT * FROM tab1 WHERE NOT + 37 >= + 44 * + 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 * col2 col1 FROM tab0
----
3290
6930
700

query I rowsort
SELECT 24 - + col2 FROM tab0
----
-23
-75
14

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

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

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

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

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

query I rowsort
SELECT ALL col2 + col0 * - col0 FROM tab2
----
-2093
-4056
-5567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT ALL - col0 - - col0 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-4368
-510
-765

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL - col0 - - col0 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-4368
-510
-765

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 34 * - col2 = + 78 / - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query I rowsort
SELECT DISTINCT 64 * - 85 FROM tab0 AS cor0
----
-5440

query I rowsort
SELECT DISTINCT + col1 * + 59 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) <= 10
----
2773
295
826

query I rowsort
SELECT DISTINCT 42 FROM tab2 AS cor0 CROSS JOIN tab0
----
42

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

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

query I rowsort
SELECT 48 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # DIV for integer division: 
query I rowsort label-1263
SELECT - + 87 + - col2 DIV + col1 FROM tab0 AS cor0
----
-186
-87
-87

skipif mysql # not compatible
query I rowsort label-1263
SELECT - + 87 + - col2 / + col1 FROM tab0 AS cor0
----
-186
-87
-87

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( - col0 + + col2 ) < col1 * 64
----
59
68
96

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1267
SELECT * FROM tab1 WHERE ( NULL ) IN ( CAST( NULL AS SIGNED ) + CAST( - col0 AS DECIMAL ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-1267
SELECT * FROM tab1 WHERE ( NULL ) IN ( CAST ( NULL AS INTEGER ) + CAST ( - col0 AS REAL ) * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col2 * 99 col1 FROM tab2
----
158400
333036
52371

query I rowsort
SELECT - col1 + - col2 FROM tab0 WHERE ( + col2 * 51 ) NOT IN ( 45 )
----
-100
-128
-31

query I rowsort
SELECT 73 * + - col0 AS col0 FROM tab1
----
-3723
-6205
-6643

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( + 42 ) ) * - col1 IN ( + col0 )
----

query I rowsort
SELECT ALL ( - 50 ) + + col2 AS col2 FROM tab0
----
-3
-40
49

query III rowsort
SELECT ALL * FROM tab2 WHERE 83 - - 27 NOT BETWEEN ( col1 * col1 ) AND ( + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 14 * + - 19 AS col1 FROM tab0
----
-266
-266
-266

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT col0 * 11 DIV 94 AS col2 FROM tab1
----
10
5
9

skipif mysql # not compatible
query I rowsort label-1277
SELECT col0 * 11 / 94 AS col2 FROM tab1
----
10
5
9

query I rowsort
SELECT ( col1 ) * - col0 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col2 * 47 AS col0 FROM tab1
----
2773
3196
4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1280
SELECT DISTINCT CAST( 22 AS SIGNED ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT CAST ( 22 AS INTEGER ) FROM tab1
----
22

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1282
SELECT + 83 + + ( CAST( col2 AS SIGNED ) ) DIV col0 AS col1 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN 16 AND + col0
----
84

skipif mysql # not compatible
query I rowsort label-1282
SELECT + 83 + + ( CAST ( col2 AS INTEGER ) ) / col0 AS col1 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN 16 AND + col0
----
84

query I rowsort
SELECT 66 FROM tab2 AS cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT + - col2 + - - 46 FROM tab2 AS cor0
----
-12
23
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT ALL - + 65 + - - 85 DIV col2 AS col1 FROM tab0 AS cor0
----
-57
-64
-65

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - + 65 + - - 85 / col2 AS col1 FROM tab0 AS cor0
----
-57
-64
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT - col0 + 14 + + ( 91 ) + - col2 DIV col1 AS col0 FROM tab2
----
30
41
59

skipif mysql # not compatible
query I rowsort label-1286
SELECT - col0 + 14 + + ( 91 ) + - col2 / col1 AS col0 FROM tab2
----
30
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT DISTINCT + 25 - + COUNT( * ) - - MAX( ALL + 54 ) AS col0 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT + 25 - + COUNT ( * ) - - MAX ( ALL + 54 ) AS col0 FROM tab1
----
76

query I rowsort
SELECT DISTINCT 88 + col1 FROM tab2
----
139
155
165

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

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

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

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

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

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

query II rowsort
SELECT - col1 AS col2, 71 * + ( col1 ) * col1 FROM tab0 AS cor0
----
-1
71
-21
31311
-81
465831

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

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

query I rowsort
SELECT DISTINCT col2 * - 89 FROM tab0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL ( + ( ( - COUNT( * ) ) ) ) * - 46 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL ( + ( ( - COUNT ( * ) ) ) ) * - 46 FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT + MAX( - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT + MAX ( - col1 ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 37 BETWEEN NULL AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT - 71 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 71 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT + 20 * - SUM( 65 ) AS col0 FROM tab0 AS cor0
----
-3900

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT + 20 * - SUM ( 65 ) AS col0 FROM tab0 AS cor0
----
-3900

query I rowsort
SELECT DISTINCT col2 * 57 AS col1 FROM tab2 WHERE NOT 84 NOT BETWEEN ( + col2 ) AND ( 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT MIN( + col0 ) AS col1 FROM tab0 WHERE NOT ( - col1 * col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT MIN ( + col0 ) AS col1 FROM tab0 WHERE NOT ( - col1 * col2 ) IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT COUNT ( DISTINCT + + col0 ) FROM tab1
----
3

query I rowsort
SELECT ALL + - col0 * + col0 * 56 * + col1 AS col2 FROM tab0 AS cor0
----
-1020600
-526904
-8901144

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - col0 ) + + + 70 < + 83 * 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + - col1 + + + col1 AS col1, - col0 col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT - 97 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-1309
SELECT - 97 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1310
SELECT ALL 28 / - + COUNT( * ) * + + MAX( ( - col2 ) ) * + 89 + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL 28 / - + COUNT ( * ) * + + MAX ( ( - col2 ) ) * + 89 + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 BETWEEN 33 * 91 * - - col1 + - col1 AND + col0 * 41 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 79 + + col0 FROM tab0
----
166
176
94

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

query I rowsort
SELECT 83 + - col2 AS col2 FROM tab1
----
-13
15
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT 1 + - 15 DIV + + COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-1317
SELECT 1 + - 15 / + + COUNT ( * ) FROM tab2
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 26 + col1 IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT + 5 * - 4 AS col1, 92 + + col0 * - col1 * + 12 - + 5 FROM tab2 AS cor0
----
-20
-28065
-20
-59049
-20
-60213

query I rowsort
SELECT - 8 * + 94 + - + col2 FROM tab0 cor0
----
-762
-799
-851

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - - SUM( - 53 ) FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - - SUM ( - 53 ) FROM tab1 AS cor0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1325
SELECT ALL + col2 AS col0, + col0 / + col2 / + 24 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 44 = ( - 18 / - col2 )
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-1325
SELECT ALL + col2 AS col0, + col0 / + col2 / + 24 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 44 = ( - 18 / - col2 )
----
59
NULL
68
NULL
96
NULL

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

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

query I rowsort
SELECT - ( + 44 ) * + 41 - col2 * 88 * + 21 - 79 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 31 * + - 33 AS col2 FROM tab2
----
-1023
-1023
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1330
SELECT ALL + 90 AS col0, - 56 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
90
NULL
90
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-1330
SELECT ALL + 90 AS col0, - 56 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
90
NULL
90
NULL
90
NULL

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col1, col2 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1336
SELECT * FROM tab2 AS cor0 WHERE NOT 6 / + - 57 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1336
SELECT * FROM tab2 AS cor0 WHERE NOT 6 / + - 57 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + col0 + + 60 FROM tab2 cor0 WHERE NOT - col1 * col0 + + + col0 IS NULL
----
-15
-4
14

query I rowsort
SELECT + + ( 7 ) * + col1 AS col0 FROM tab0 AS cor0
----
147
567
7

query I rowsort
SELECT ALL + 6 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1343
SELECT col1 + col0 + col2 * - - 17 AS col2, + col2 * - col2 + - CAST( + ( ( col0 ) ) AS SIGNED ) - + 89 * + 56 col0 FROM tab0
----
1781
-14882
278
-5171
895
-7208

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1343
SELECT col1 + col0 + col2 * - - 17 AS col2, + col2 * - col2 + - CAST ( + ( ( col0 ) ) AS INTEGER ) - + 89 * + 56 col0 FROM tab0
----
1781
-14882
278
-5171
895
-7208

query I rowsort
SELECT DISTINCT - col1 * 20 FROM tab1 cor0
----
-100
-280
-940

query I rowsort
SELECT col2 + + ( + col2 ) FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

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

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

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

query I rowsort
SELECT ALL 77 * - 97 FROM tab2
----
-7469
-7469
-7469

query I rowsort
SELECT ALL + ( - col2 ) * col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT DISTINCT - col0 + - col1 * - col1 DIV - col1 FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT - col0 + - col1 * - col1 / - col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL + col2 + + + 98 FROM tab2
----
121
138
156

query I rowsort
SELECT - ( - - col1 ) - col2 FROM tab0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + - col1 < ( - col1 * col1 ) AND NULL NOT IN ( + - col1 * - col2 / col2 )
----

query I rowsort
SELECT DISTINCT - col0 - + 35 FROM tab1
----
-120
-126
-86

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col2 < NULL )
----

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * - 38 * - - col0 col0 FROM tab0 AS cor0
----
-188442
-210102
-32490

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1365
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + col1 * - - CAST( CAST( - col2 AS SIGNED ) AS SIGNED ) * - 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1365
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + col1 * - - CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) * - 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query II rowsort
SELECT 94 AS col0, + 52 * - col1 FROM tab2 AS cor0
----
94
-2652
94
-3484
94
-4004

query II rowsort
SELECT - col1, - col2 * + col1 AS col0 FROM tab2 cor0
----
-51
-1173
-67
-3886
-77
-3080

query III rowsort
SELECT ALL + col1 AS col2, col2 AS col1, + 44 FROM tab1 AS cor0
----
9 values hashing to b5d89c7786f1d62f4de6bb27e00298b3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 / + - 92 IS NOT NULL
----

query II rowsort
SELECT ALL - col1, col2 + + 99 AS col1 FROM tab0 AS cor0
----
-1
198
-21
109
-81
146

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 WHERE NOT 11 * + col1 IS NULL
----
46
64
75

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL + MIN( - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL + MIN ( - col0 ) FROM tab2
----
-75

query I rowsort
SELECT ALL + col2 + + - col0 * + - 82 * + 86 AS col0 FROM tab0 AS cor0
----
105827
613534
684143

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 * - - ( - + ( + col1 ) ) ) >= col1 * ( - ( + - 83 ) ) + col2 + - col1 + - col0
----

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

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

query I rowsort
SELECT - + 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

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

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

query I rowsort
SELECT - 12 * - col0 + 36 FROM tab0 AS cor0
----
1080
1200
216

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - + col1 + - - 33 AS col2 FROM tab1 AS cor0
----
115
54
87

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

query I rowsort
SELECT DISTINCT - col0 + + + 64 FROM tab0 AS cor0
----
-23
-33
49

query I rowsort
SELECT 88 + - col0 * - + 11 FROM tab2 AS cor0
----
594
792
913

query I rowsort
SELECT DISTINCT + col0 + - 79 AS col0 FROM tab1 AS cor0
----
-28
12
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT ALL col2 - - - 75 DIV - 90 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL col2 - - - 75 / - 90 FROM tab2
----
23
40
58

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

query II rowsort
SELECT DISTINCT col0 - + col2 AS col1, 94 + - col2 AS col0 FROM tab1
----
-45
-2
23
26
26
35

query II rowsort
SELECT ( col2 ) AS col0, col1 * col2 FROM tab2
----
23
1173
40
3080
58
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT DISTINCT - col2 DIV + + col0 - - ( 93 ) - 51 + col1 AS col1 FROM tab1 AS cor0
----
47
55
89

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT - col2 / + + col0 - - ( 93 ) - 51 + col1 AS col1 FROM tab1 AS cor0
----
47
55
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + - col2 + 9 ) IS NOT NULL AND NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1400
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + - col2 + 9 ) IS NOT NULL AND NOT NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT 21 DIV - col0 * - 40 * - 82 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1401
SELECT 21 / - col0 * - 40 * - 82 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + SUM( 76 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
684

skipif mysql # not compatible
query I rowsort label-1402
SELECT + SUM ( 76 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
684

query II rowsort
SELECT col0, - col1 AS col1 FROM tab2
----
46
-51
64
-77
75
-67

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 88 <= + ( + col2 ) - - col1
----
85
5
59

query II rowsort
SELECT col2 * + col2, 75 AS col2 FROM tab0
----
100
75
2209
75
9801
75

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE - 54 IS NOT NULL
----
10
47
99

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

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

query II rowsort
SELECT + col2, col2 + - - 83 AS col0 FROM tab1
----
59
142
68
151
96
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT MIN( ALL 32 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
32

skipif mysql # not compatible
query I rowsort label-1416
SELECT MIN ( ALL 32 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
32

query I rowsort
SELECT - 45 * - col1 * - col2 + + col1 + + - col0 + + col2 FROM tab1 cor0
----
-13296
-143796
-60421

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL + 42 + - 20 * - - COUNT( * ) AS col0 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL + 42 + - 20 * - - COUNT ( * ) AS col0 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1419
SELECT * FROM tab2 cor0 WHERE CAST( 10 AS SIGNED ) + + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1419
SELECT * FROM tab2 cor0 WHERE CAST ( 10 AS INTEGER ) + + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT - 73 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - 73 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT DISTINCT col2 * + + col0 FROM tab0 AS cor0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) + 17 < - col1
----

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT col2 * + + col0 FROM tab0 AS cor0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) + 17 < - col1
----

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

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

query I rowsort
SELECT ALL - ( - 83 ) AS col1 FROM tab2 AS cor0
----
83
83
83

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

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

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

query I rowsort
SELECT DISTINCT - col2 * 27 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
-1168
-1878
2441

query I rowsort
SELECT + col2 - - + col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + col1 - - - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + 25 * col0 AS col2 FROM tab2
----
1104
1536
1800

query I rowsort
SELECT ALL 96 - + - 48 AS col2 FROM tab1
----
144
144
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT ALL - col2 + - col1 / 90 FROM tab1 WHERE + ( col0 ) * - CAST( NULL AS SIGNED ) BETWEEN - col2 + - - col0 + - col0 AND + + 32 * col0 + - col2
----

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - col2 + - col1 / 90 FROM tab1 WHERE + ( col0 ) * - CAST ( NULL AS INTEGER ) BETWEEN - col2 + - - col0 + - col0 AND + + 32 * col0 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT DISTINCT - 64 + - - ( + 5 ) DIV - - col2 - col1 FROM tab1
----
-111
-69
-78

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT - 64 + - - ( + 5 ) / - - col2 - col1 FROM tab1
----
-111
-69
-78

query II rowsort
SELECT ALL + 75 AS col0, - col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + - + col0 AS col1 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT + - col1 - - CAST( NULL AS SIGNED ) + 85 AS col2 FROM tab2 WHERE col0 - - col2 + 57 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1436
SELECT + - col1 - - CAST ( NULL AS INTEGER ) + 85 AS col2 FROM tab2 WHERE col0 - - col2 + 57 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT + COUNT( * ) + + - 78 + - COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-1438
SELECT + COUNT ( * ) + + - 78 + - COUNT ( * ) FROM tab0
----
-78

query I rowsort
SELECT + + 51 * - col0 FROM tab1 AS cor0
----
-2601
-4335
-4641

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NULL <= NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT BETWEEN + col1 AND col2
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT + MIN( + col0 ) AS col1, + MIN( DISTINCT - - ( - + col0 ) ) col2 FROM tab2 AS cor0
----
46
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1446
SELECT + MIN ( + col0 ) AS col1, + MIN ( DISTINCT - - ( - + col0 ) ) col2 FROM tab2 AS cor0
----
46
-75

query I rowsort
SELECT + + col1 * - col1 * col1 AS col0 FROM tab1 AS cor0
----
-103823
-125
-2744

query I rowsort
SELECT ALL + col2 + 73 * - col2 AS col0 FROM tab0 AS cor0
----
-3384
-7128
-720

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

query I rowsort
SELECT DISTINCT + col2 / + - 77 FROM tab2 WHERE - 40 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL col0 / - - col2 AS col0 FROM tab1
----
0
1
1

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

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

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

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

query I rowsort
SELECT + 1 * + col1 + - 84 FROM tab2 AS cor0
----
-17
-33
-7

query I rowsort
SELECT 44 * + 23 FROM tab0 AS cor0
----
1012
1012
1012

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( ( - 97 ) ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

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

query I rowsort
SELECT 31 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1463
SELECT DISTINCT - + col0 / - - 82 FROM tab2 WHERE NOT NULL > col0 + - + ( - col0 ) * + CAST( NULL AS SIGNED ) * + col0 / + col2
----

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - + col0 / - - 82 FROM tab2 WHERE NOT NULL > col0 + - + ( - col0 ) * + CAST ( NULL AS INTEGER ) * + col0 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL - 16 - - - COUNT( * ) col1 FROM tab2 AS cor0
----
-19

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> + 87
----

query I rowsort
SELECT col0 * 75 - + col0 + + 90 AS col2 FROM tab2 AS cor0
----
3494
4826
5640

query I rowsort
SELECT + col0 + - + 82 + + col0 AS col0 FROM tab2 AS cor0
----
10
46
68

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

query I rowsort
SELECT col1 + + - col1 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + col2 * - 41 + - - 97 AS col2 FROM tab1
----
-2322
-2691
-3839

query I rowsort
SELECT ALL - 98 - - - 0 + + - 69 AS col1 FROM tab2
----
-167
-167
-167

query I rowsort
SELECT DISTINCT ( - col2 ) + - col2 * - col2 AS col0 FROM tab0
----
2162
90
9702

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

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT ( + 94 ) IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1476
SELECT ALL 93 * MAX( CAST( NULL AS SIGNED ) ), 39 * 51 DIV COUNT( * ) AS col1 FROM tab2
----
NULL
663

skipif mysql # not compatible
query II rowsort label-1476
SELECT ALL 93 * MAX ( CAST ( NULL AS INTEGER ) ), 39 * 51 / COUNT ( * ) AS col1 FROM tab2
----
NULL
663

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 * - col0 * + + 96 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1478
SELECT ALL COUNT( * ) * CAST( - 92 AS SIGNED ) * - - 18 FROM tab0 AS cor0
----
-4968

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL COUNT ( * ) * CAST ( - 92 AS INTEGER ) * - - 18 FROM tab0 AS cor0
----
-4968

query I rowsort
SELECT ALL + 83 * - col2 AS col0 FROM tab2 AS cor0
----
-1909
-3320
-4814

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - - 98 ) IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 63 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT - SUM( ALL - 38 ) + - 42 + + 85 col0 FROM tab2 cor0
----
157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1483
SELECT - SUM ( ALL - 38 ) + - 42 + + 85 col0 FROM tab2 cor0
----
157

query I rowsort
SELECT - - 13 * + 5 * 53 AS col2 FROM tab0 AS cor0 WHERE NOT col2 <= 14
----
3445
3445

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

skipif mysql # not compatible
query I rowsort label-1485
SELECT + - 93 * + COUNT ( * ) * - MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
20925

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1487
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / + CAST( NULL AS SIGNED ) < ( - 67 )
----

skipif mysql # not compatible
query III rowsort label-1487
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 / + CAST ( NULL AS INTEGER ) < ( - 67 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col2 / - - 14
----

query I rowsort
SELECT - + 79 * - col2 AS col2 FROM tab2 cor0
----
1817
3160
4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 AS col0, col2 col0 FROM tab0 AS cor0
----
53
10
53
47
53
99

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

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL col2 / + + col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT ALL + 31 * + col0 AS col1 FROM tab1
----
1581
2635
2821

query I rowsort
SELECT - - col1 - + 25 + + + col2 FROM tab2 WHERE NULL IS NULL
----
100
49
92

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

skipif mysql # not compatible
query I rowsort label-1494
SELECT MAX ( + + col1 ) / + COUNT ( * ) AS col1 FROM tab0
----
27

query I rowsort
SELECT col0 FROM tab0 WHERE ( + col2 / + col0 * - col2 * - 5 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 84 > + 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + + col2 ) + - + col2 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT - col0 * - 91 + col2 - col2 FROM tab2
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NULL NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( - col0 )
----
0

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

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

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

query I rowsort
SELECT DISTINCT 82 + col1 + + - col0 * col2 * + + col0 FROM tab0 cor0
----
-10412
-75587
-931408

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE + 76 / 64 - col1 NOT BETWEEN - col2 AND - - col1
----
0

skipif mysql # not compatible
query I rowsort label-1503
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE + 76 / 64 - col1 NOT BETWEEN - col2 AND - - col1
----
0

query I rowsort
SELECT 0 - - 81 - ( - 19 ) AS col0 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT 52 * - 26 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

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

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

query II rowsort
SELECT ALL - + 72 AS col0, col2 - col2 FROM tab2 AS cor0
----
-72
0
-72
0
-72
0

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

query II rowsort
SELECT ALL 63, - col2 + 43 AS col1 FROM tab0
----
63
-4
63
-56
63
33

query I rowsort
SELECT DISTINCT 89 * - col0 FROM tab0
----
-1335
-7743
-8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1511
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT 3 * + MAX( - - col1 ) AS col0 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-1514
SELECT 3 * + MAX ( - - col1 ) AS col0 FROM tab2
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1515
SELECT ALL * FROM tab1 WHERE + CAST( + - 40 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1515
SELECT ALL * FROM tab1 WHERE + CAST ( + - 40 AS INTEGER ) IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL MAX( + 78 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL MAX ( + 78 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
78

query I rowsort
SELECT ALL - 39 AS col2 FROM tab0
----
-39
-39
-39

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

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

query I rowsort
SELECT ALL - + col2 + + - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT - 78 * 44 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 < - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1523
SELECT - 78 * 44 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 < - col2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - - col0 + - - col2 AS col1 FROM tab2 AS cor0
----
104
133
69

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + MAX( + + col0 ) * - 20 + - 39 + + 74 FROM tab0
----
-1905

skipif mysql # not compatible
query I rowsort label-1528
SELECT + MAX ( + + col0 ) * - 20 + - 39 + + 74 FROM tab0
----
-1905

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT DISTINCT MAX( - 15 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT MAX ( - 15 ) FROM tab2
----
-15

query III rowsort
SELECT * FROM tab1 WHERE ( + - 92 - - col0 ) NOT BETWEEN NULL AND + col2 - 72
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL SUM( - col1 ) * COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL SUM ( - col1 ) * COUNT ( * ) FROM tab1
----
-198

query I rowsort
SELECT col2 + + col0 + - - col0 * col1 * + col2 * + col2 AS col2 FROM tab0
----
182797
2683997
950893

query III rowsort
SELECT * FROM tab2 WHERE NULL <> 83 + col0 * - col2
----

query I rowsort
SELECT ALL + 9 * - col1 AS col2 FROM tab1
----
-126
-423
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 55 * + - col0 + + col0 BETWEEN - + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - - col1 * - + col0 * col1 + col0 * col0 AS col2 FROM tab2
----
-15174144
-19521525
-2749742

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1539
SELECT 66 DIV - - col2 AS col1 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1539
SELECT 66 / - - col2 AS col1 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1540
SELECT - 29 DIV - - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 29 / - - col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + col2 + + 68 * + col1 * col1 < NULL )
----

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

query I rowsort
SELECT ALL col1 * + + col2 * 44 + 78 FROM tab1
----
13058
140702
59214

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

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

query I rowsort
SELECT 90 + - - 59 FROM tab2 AS cor0
----
149
149
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT ALL - + 58 DIV + 54 + + + SUM( ALL col0 ) - - 67 AS col2 FROM tab0 AS cor0
----
265

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - + 58 / + 54 + + + SUM ( ALL col0 ) - - 67 AS col2 FROM tab0 AS cor0
----
265

query I rowsort
SELECT + - col2 + + - 9 FROM tab1 cor0
----
-105
-68
-77

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

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( 40 ) AND - col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT + ( + 5 ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1551
SELECT + ( + 5 ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
15

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

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

query I rowsort
SELECT DISTINCT 30 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
30

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

query I rowsort
SELECT DISTINCT col1 * - 94 FROM tab2
----
-4794
-6298
-7238

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1560
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - col1 + col2 AS col2 FROM tab0 AS cor0
----
NULL
-11
NULL
-34
NULL
98

skipif mysql # not compatible
query II rowsort label-1560
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - col1 + col2 AS col2 FROM tab0 AS cor0
----
NULL
-11
NULL
-34
NULL
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 67 NOT BETWEEN + 60 AND ( + 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT + 39 DIV - + 1 FROM tab1
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-1563
SELECT + 39 / - + 1 FROM tab1
----
-39
-39
-39

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

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

query II rowsort
SELECT ALL + + col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

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

query I rowsort
SELECT DISTINCT 60 + + col0 FROM tab0 AS cor0
----
147
157
75

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

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

query I rowsort
SELECT DISTINCT - col2 + + 1 * - - 99 AS col1 FROM tab0 cor0
----
0
52
89

query III rowsort
SELECT col0 AS col1, - 8 AS col2, + - col0 FROM tab1 AS cor0
----
9 values hashing to f38485d06f7ebcae735b92c330e4db1e

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT ( - COUNT( - + col2 ) ) + - 46 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT ( - COUNT ( - + col2 ) ) + - 46 FROM tab2
----
-49

query I rowsort
SELECT + 65 FROM tab0 WHERE - 55 * + col1 >= NULL
----

query I rowsort
SELECT ALL 93 + - + col0 FROM tab1
----
2
42
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE - 19 * - col0 NOT BETWEEN NULL AND + col0
----
-3

skipif mysql # not compatible
query I rowsort label-1575
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE - 19 * - col0 NOT BETWEEN NULL AND + col0
----
-3

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ( - ( COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1577
SELECT ( - ( COUNT ( * ) ) ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE 59 BETWEEN ( col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT ALL CAST( NULL AS SIGNED ) * + SUM( ALL + col0 ) - - - 71 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL CAST ( NULL AS INTEGER ) * + SUM ( ALL + col0 ) - - - 71 AS col2 FROM tab0
----
NULL

query II rowsort
SELECT ALL + 86 * + + 29, + col0 AS col0 FROM tab2
----
2494
46
2494
64
2494
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1581
SELECT DISTINCT COUNT ( * ) * + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) col1 FROM tab2
----
9

query I rowsort
SELECT - col2 - + 27 * - ( + + ( + col0 ) ) AS col2 FROM tab0
----
2339
2520
358

query II rowsort
SELECT ALL col2 * - col2 AS col2, - col0 AS col2 FROM tab2
----
-1600
-64
-3364
-75
-529
-46

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

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

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

query I rowsort
SELECT - 56 * + 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ee5a15f8fdb48d1371fb53c920a0e744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT + - CAST( NULL AS SIGNED ) * 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1587
SELECT + - CAST ( NULL AS INTEGER ) * 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1588
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0, SUM( DISTINCT + 4 ) FROM tab1 WHERE ( 36 + col0 * + 27 ) > NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1588
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0, SUM ( DISTINCT + 4 ) FROM tab1 WHERE ( 36 + col0 * + 27 ) > NULL
----
NULL
NULL

query I rowsort
SELECT + 25 FROM tab1, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query II rowsort
SELECT col1, + col2 * + - ( + 98 ) + col0 FROM tab1
----
14
-9357
47
-6573
5
-5697

query II rowsort
SELECT DISTINCT col0, - col2 FROM tab2 AS cor0 WHERE col1 <= 29
----

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL - CAST( - ( CAST( - col2 AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - CAST ( - ( CAST ( - col2 AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN + - col1 AND ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN + - col1 AND ( - + col0 )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT col0 DIV col2 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
47
706
99

skipif mysql # not compatible
query I rowsort label-1601
SELECT col0 / col2 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
47
706
99

query I rowsort
SELECT + 44 * + + 14 AS col1 FROM tab1
----
616
616
616

query I rowsort
SELECT DISTINCT ( + - col0 ) * - 28 FROM tab0
----
2436
2716
420

onlyif mysql # aggregate syntax: 
query II rowsort label-1604
SELECT ALL - 42 * + 17 AS col0, - SUM( DISTINCT + col0 ) FROM tab1
----
-714
-227

skipif mysql # not compatible
query II rowsort label-1604
SELECT ALL - 42 * + 17 AS col0, - SUM ( DISTINCT + col0 ) FROM tab1
----
-714
-227

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + ( + - 0 ) + + 49 - + 36 * - col1 / + col2 + + 35
----

query I rowsort
SELECT ALL + - 65 + - col2 + - + col0 * - col0 FROM tab2 WHERE + 45 * col2 + + 90 + - + 25 IS NOT NULL
----
2028
3991
5502

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 <> + - col0 - + 47
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1611
SELECT DISTINCT col0 * 73 DIV 90 * - - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
180
6090
7566

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT col0 * 73 / 90 * - - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
180
6090
7566

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab1
----
49

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

query I rowsort
SELECT + ( - - 33 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL - 47 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - 47 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT col1 + - col2 * 51 FROM tab0 AS cor0
----
-2316
-489
-5048

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - COUNT( * ) * 65 + - - 22 col1 FROM tab1 AS cor0
----
-173

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1617
SELECT - COUNT ( * ) * 65 + - - 22 col1 FROM tab1 AS cor0
----
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - col0 col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1619
SELECT DISTINCT - + 18 + 59 DIV - + 65 AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT - + 18 + 59 / - + 65 AS col0 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN - 40 AND - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 + 44 AS col1, + col1 AS col1 FROM tab1
----
49
5
58
14
91
47

query II rowsort
SELECT - - col1 AS col1, - col0 FROM tab2 WHERE NULL BETWEEN NULL AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ALL - SUM( + - 74 ) FROM tab0 WHERE ( - + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL - SUM ( + - 74 ) FROM tab0 WHERE ( - + col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT COUNT( * ) * + 40 + - COUNT( * ) FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT COUNT ( * ) * + 40 + - COUNT ( * ) FROM tab0
----
117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL 78 * + - COUNT( * ) + + + ( - 93 ) AS col1 FROM tab2
----
-327

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL 78 * + - COUNT ( * ) + + + ( - 93 ) AS col1 FROM tab2
----
-327

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT - - 10 - - - MIN( 32 ) FROM tab1 WHERE + - ( + col2 ) - - col1 IS NOT NULL
----
-22

skipif mysql # not compatible
query I rowsort label-1627
SELECT - - 10 - - - MIN ( 32 ) FROM tab1 WHERE + - ( + col2 ) - - col1 IS NOT NULL
----
-22

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 * 35 AS col0 FROM tab0
----
15
1645
87
350
97
3465

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

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

query I rowsort
SELECT DISTINCT - + col0 + + + 42 FROM tab1 AS cor0
----
-43
-49
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT + + 98 DIV - - col1 - + 70 AS col1 FROM tab0 AS cor0
----
-66
-69
28

skipif mysql # not compatible
query I rowsort label-1631
SELECT + + 98 / - - col1 - + 70 AS col1 FROM tab0 AS cor0
----
-66
-69
28

query II rowsort
SELECT ALL ( col0 ) AS col1, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL - - COUNT( * ) * - MAX( - + col1 ) * + + 64 AS col0 FROM tab2 AS cor0
----
9792

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - - COUNT ( * ) * - MAX ( - + col1 ) * + + 64 AS col0 FROM tab2 AS cor0
----
9792

query I rowsort
SELECT + col0 + col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
138
65
90

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

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL - CAST ( NULL AS INTEGER ) * + SUM ( + col0 ) * - 58 AS col1 FROM tab1 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT ALL - 80 * + - 62 AS col0 FROM tab2 cor0
----
4960
4960
4960

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

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

query I rowsort
SELECT ALL + 31 * + - col2 FROM tab2
----
-1240
-1798
-713

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1644
SELECT ALL + COUNT ( * ) / - MAX ( DISTINCT + col2 ) * MAX ( DISTINCT col2 ) col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT DISTINCT COUNT( + col2 ) * - 37 * - - 99 AS col0 FROM tab2
----
-10989

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT COUNT ( + col2 ) * - 37 * - - 99 AS col0 FROM tab2
----
-10989

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

query II rowsort
SELECT + 12, col2 FROM tab0
----
12
10
12
47
12
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 27 BETWEEN col0 + col1 AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT COUNT( * ) * + + MAX( ALL col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT COUNT ( * ) * + + MAX ( ALL col0 ) FROM tab2
----
225

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, 53 * - col1 AS col1 FROM tab0 AS cor0 WHERE NULL > + 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1652
SELECT ALL - - CAST( - ( col0 ) AS SIGNED ), col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif mysql # not compatible
query II rowsort label-1652
SELECT ALL - - CAST ( - ( col0 ) AS INTEGER ), col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT col1 + + - col0 + + 53 * col0 AS col2 FROM tab0 cor0
----
4545
5045
861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 95 col0, col1 * - - col0 FROM tab2 WHERE NOT 13 IS NULL
----
95
2346
95
4928
95
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT ALL MAX( ALL + - CAST( NULL AS SIGNED ) ) / - 22 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL MAX ( ALL + - CAST ( NULL AS INTEGER ) ) / - 22 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1656
SELECT ALL CAST( + - col0 AS SIGNED ) col1, + col2 * - 20 AS col0 FROM tab1
----
-51
-1920
-85
-1180
-91
-1360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1656
SELECT ALL CAST ( + - col0 AS INTEGER ) col1, + col2 * - 20 AS col0 FROM tab1
----
-51
-1920
-85
-1180
-91
-1360

query I rowsort
SELECT DISTINCT - 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-4

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

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

query I rowsort
SELECT - 1 * 64 AS col0 FROM tab1 AS cor0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 15 + - + 95 >= 74
----

query I rowsort
SELECT DISTINCT + - col2 + - col1 + - - col2 AS col1 FROM tab0 AS cor0 WHERE col1 + - 99 < NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - - col0 + + col1 * col0 col1 FROM tab2 AS cor0
----
2341
4915
5033

query II rowsort
SELECT DISTINCT + - ( 75 ) * - 44 * col0 AS col0, + col2 AS col1 FROM tab1 AS cor0 WHERE - 48 + col0 BETWEEN - - col1 AND + col2
----
280500
59

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

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

query I rowsort
SELECT ALL col2 + + 91 AS col0 FROM tab1
----
150
159
187

query I rowsort
SELECT - col1 * + - 67 - 25 FROM tab2
----
3392
4464
5134

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT + col1 DIV 24 * - col2 - + col1 FROM tab0
----
-1
-21
-222

skipif mysql # not compatible
query I rowsort label-1669
SELECT + col1 / 24 * - col2 - + col1 FROM tab0
----
-1
-21
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-1670
SELECT col0 - col1 DIV - col0 + + col0 FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-1670
SELECT col0 - col1 / - col0 + + col0 FROM tab1
----
102
170
182

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1673
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL <> - + 55 )
----
0

query II rowsort
SELECT DISTINCT col2, - col1 * - 90 FROM tab2 AS cor0
----
23
4590
40
6930
58
6030

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1676
SELECT col0 * - CAST( + col1 AS SIGNED ) * - col2 * + 84 + - 42 FROM tab0
----
1534638
4796778
806610

skipif mysql # not compatible
query I rowsort label-1676
SELECT col0 * - CAST ( + col1 AS INTEGER ) * - col2 * + 84 + - 42 FROM tab0
----
1534638
4796778
806610

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT + ( + MIN ( col1 ) ) FROM tab0
----
1

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

query II rowsort
SELECT - 44 AS col2, + 65 + - - col0 FROM tab1 AS cor0
----
-44
116
-44
150
-44
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 93 ) > 31
----

query I rowsort
SELECT DISTINCT - col0 * - + col2 * + + col0 + 38 * col0 AS col2 FROM tab2 AS cor0
----
166272
329100
50416

query III rowsort
SELECT 86 AS col1, - 30, 36 AS col1 FROM tab1 AS cor0
----
9 values hashing to d981f20d8a3297e0c07b84c595e30dc1

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT - SUM( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - SUM ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
-223

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT ALL + col2 DIV - - col1 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL + col2 / - - col1 AS col0 FROM tab0
----
0
0
99

query I rowsort
SELECT ALL - + col0 * + - col1 + - + col1 * - - ( - 9 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT ALL + COUNT( * ), ( 19 ) AS col1 FROM tab1, tab0 AS cor0
----
9
19

skipif mysql # not compatible
query II rowsort label-1688
SELECT ALL + COUNT ( * ), ( 19 ) AS col1 FROM tab1, tab0 AS cor0
----
9
19

query I rowsort
SELECT 19 + + col0 FROM tab1
----
104
110
70

query I rowsort
SELECT 8 + - + col2 AS col0 FROM tab1
----
-51
-60
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL + 64 * + - 71 * + COUNT( * ) AS col0 FROM tab2
----
-13632

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + 64 * + - 71 * + COUNT ( * ) AS col0 FROM tab2
----
-13632

query I rowsort
SELECT - 4 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( - col2 * col0 / + 93 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1693
SELECT + + COUNT( * ) * + ( + CAST( NULL AS DECIMAL ) ) + + ( - 48 ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1693
SELECT + + COUNT ( * ) * + ( + CAST ( NULL AS REAL ) ) + + ( - 48 ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1694
SELECT ALL 28 * COUNT( * ) AS col2, 57 AS col2 FROM tab1 AS cor0
----
84
57

skipif mysql # not compatible
query II rowsort label-1694
SELECT ALL 28 * COUNT ( * ) AS col2, 57 AS col2 FROM tab1 AS cor0
----
84
57

query I rowsort
SELECT DISTINCT + + 57 + + col0 FROM tab2 AS cor0
----
103
121
132

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NULL < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT DISTINCT 8 * - 83 + - COUNT( * ) + SUM( - 38 ) * - COUNT( * ) FROM tab2 AS cor0
----
-325

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT 8 * - 83 + - COUNT ( * ) + SUM ( - 38 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-325

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + 10 IS NULL
----

query I rowsort
SELECT col2 + + - col0 - - - col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL COUNT( * ) + 28 AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL COUNT ( * ) + 28 AS col1 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL - - ( - - col0 ) + - ( 53 ) AS col1 FROM tab0 AS cor0
----
-38
34
44

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

query I rowsort
SELECT col2 + + 41 FROM tab1 AS cor0
----
100
109
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL - COUNT( col0 ) + + MAX( + 30 ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - COUNT ( col0 ) + + MAX ( + 30 ) AS col0 FROM tab1
----
27

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30 * + col1 - 16 * + col1 col1, col2 * - + col2 FROM tab1
----
196
-9216
658
-4624
70
-3481

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT DISTINCT COUNT( DISTINCT 3 ) - 90 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT COUNT ( DISTINCT 3 ) - 90 FROM tab0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT DISTINCT - col2 + + CAST( col0 AS SIGNED ) + - - col0 FROM tab0
----
-17
164
95

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT - col2 + + CAST ( col0 AS INTEGER ) + - - col0 FROM tab0
----
-17
164
95

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

query I rowsort
SELECT - ( 17 ) * - - 99 FROM tab2 cor0
----
-1683
-1683
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + - MAX( DISTINCT + col0 ) FROM tab0 cor0 WHERE NOT - 9 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-1715
SELECT + - MAX ( DISTINCT + col0 ) FROM tab0 cor0 WHERE NOT - 9 IS NULL
----
-97

query II rowsort
SELECT - 99 AS col2, 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to f39144b402b9fc5204af4ab7d554fb9f

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

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

query II rowsort
SELECT 9 AS col2, 92 + col1 FROM tab0 AS cor0 WHERE NOT col0 > ( - col1 )
----

query I rowsort
SELECT ALL + - 71 AS col1 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL col0 + - - col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT DISTINCT + 86 + ( ( - col1 ) ) FROM tab2 AS cor0
----
19
35
9

query I rowsort
SELECT ( - 63 ) * - - col1 FROM tab2
----
-3213
-4221
-4851

query I rowsort
SELECT 90 * - 1 FROM tab1
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - 2 col1 FROM tab2
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT col1 DIV + - 20 AS col1 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1726
SELECT col1 / + - 20 AS col1 FROM tab1
----
-2
0
0

query II rowsort
SELECT 98 * - + col0 AS col1, - 55 * + + 5 + - + 0 FROM tab2
----
-4508
-275
-6272
-275
-7350
-275

query II rowsort
SELECT DISTINCT col1 AS col2, + 28 - col1 AS col0 FROM tab0
----
1
27
21
7
81
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL MAX( ALL - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL MAX ( ALL - col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1730
SELECT ( - CAST( - - col1 AS SIGNED ) ) * 6 col0 FROM tab0
----
-126
-486
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1730
SELECT ( - CAST ( - - col1 AS INTEGER ) ) * 6 col0 FROM tab0
----
-126
-486
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ( - COUNT( * ) ) * + - COUNT( * ) * - - SUM( - + ( - col1 ) ) FROM tab0
----
927

skipif mysql # not compatible
query I rowsort label-1731
SELECT ( - COUNT ( * ) ) * + - COUNT ( * ) * - - SUM ( - + ( - col1 ) ) FROM tab0
----
927

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

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

query I rowsort
SELECT ALL + - col2 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT - col2 + 14 + col1 DIV col2 + 13 AS col1 FROM tab0
----
-19
-72
19

skipif mysql # not compatible
query I rowsort label-1735
SELECT - col2 + 14 + col1 / col2 + 13 AS col1 FROM tab0
----
-19
-72
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 60 col0 FROM tab2
----
100
118
83

query I rowsort
SELECT DISTINCT - 90 + + 91 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
1

query I rowsort
SELECT ALL col2 * - col0 + + 15 + + 46 AS col1 FROM tab2 AS cor0
----
-2499
-4289
-997

query I rowsort
SELECT DISTINCT - col0 + + - col0 AS col0 FROM tab0 cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT ALL + SUM( col0 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + SUM ( col0 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT 89 - + + col0 - col2 FROM tab2
----
-15
-44
20

query I rowsort
SELECT ALL col2 + - - col1 + - - 24 * + col0 * - 18 FROM tab0
----
-37553
-41804
-6352

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT SUM( ALL - + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1744
SELECT SUM ( ALL - + col1 ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE col2 = + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 37 * + col0 col1 FROM tab2 cor0
----
1702
2368
2775

query II rowsort
SELECT ALL + col0, 8 AS col1 FROM tab2 AS cor0
----
46
8
64
8
75
8

query I rowsort
SELECT + 84 * + 95 + col2 AS col1 FROM tab2
----
8003
8020
8038

query I rowsort
SELECT 87 FROM tab0 WHERE - col1 = ( col1 )
----

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

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

query I rowsort
SELECT 44 + 60 FROM tab2
----
104
104
104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1752
SELECT * FROM tab0 WHERE 77 * ( col2 ) NOT BETWEEN 33 / + col1 + CAST( NULL AS SIGNED ) * col2 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1752
SELECT * FROM tab0 WHERE 77 * ( col2 ) NOT BETWEEN 33 / + col1 + CAST ( NULL AS INTEGER ) * col2 AND ( NULL )
----

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE col0 * - col1 NOT IN ( + col2 )
----
705
870
9603

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT COUNT( - ( ( 57 ) ) ) col2 FROM tab2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT COUNT( * ) FROM tab2 WHERE NOT ( - col1 ) >= col0
----
3

skipif mysql # not compatible
query I rowsort label-1756
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( - col1 ) >= col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT DISTINCT 44 * COUNT( * ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT 44 * COUNT ( * ) FROM tab2
----
132

query I rowsort
SELECT DISTINCT + 98 * + 43 AS col1 FROM tab1
----
4214

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT MIN( DISTINCT ( - col1 ) ) * + 11 FROM tab2 WHERE NOT NULL IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT MIN ( DISTINCT ( - col1 ) ) * + 11 FROM tab2 WHERE NOT NULL IN ( col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = 63
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT ALL MAX( DISTINCT - col1 ) * MAX( - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL MAX ( DISTINCT - col1 ) * MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 58 + - col1 FROM tab0
----
-23
37
57

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

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

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

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT + 3 * col0 AS col0 FROM tab0
----
261
291
45

query I rowsort
SELECT DISTINCT - col1 * - 70 + 12 FROM tab1
----
3302
362
992

query I rowsort
SELECT 78 * - 0 - + col1 AS col0 FROM tab0
----
-1
-21
-81

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

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

query I rowsort
SELECT ALL - 67 + 96 FROM tab1
----
29
29
29

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

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + MAX ( ( - col2 ) ) FROM tab0
----
-10

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

query I rowsort
SELECT DISTINCT - 18 + - col0 AS col0 FROM tab2
----
-64
-82
-93

query I rowsort
SELECT + 72 * 53 AS col0 FROM tab1
----
3816
3816
3816

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 90 * 33 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 51 <> ( ( col0 ) + col1 / - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT - col0 DIV 3 FROM tab1 AS cor0
----
-17
-28
-30

skipif mysql # not compatible
query I rowsort label-1778
SELECT - col0 / 3 FROM tab1 AS cor0
----
-17
-28
-30

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

query III rowsort
SELECT * FROM tab2 WHERE col2 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= ( - 91 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN - 51 AND ( + col2 )
----

query I rowsort
SELECT col0 + - 26 FROM tab0
----
-11
61
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT 95 + + 24 * COUNT( * ) FROM tab0
----
167

skipif mysql # not compatible
query I rowsort label-1784
SELECT 95 + + 24 * COUNT ( * ) FROM tab0
----
167

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + 36
----

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

query I rowsort
SELECT DISTINCT + 67 + ( + col0 - + col2 / + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 36 - 3 ) IS NOT NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE col0 * - col1 > 26 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT DISTINCT + MIN( + col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + MIN ( + col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 72 * col1 + col0 = + col0 + + col2 * - 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 * - col1 <> 18 * - 65
----
-14
-47
-5

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

query I rowsort
SELECT DISTINCT + 30 * - col0 AS col1 FROM tab2 AS cor0
----
-1380
-1920
-2250

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

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

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

query I rowsort
SELECT 3 + - 64 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 AS col0 FROM tab1
----
-132651
-614125
-753571

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT DISTINCT 83 * + - MIN( 63 ) AS col1 FROM tab0
----
-5229

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT 83 * + - MIN ( 63 ) AS col1 FROM tab0
----
-5229

query I rowsort
SELECT ALL col0 * + 56 FROM tab1
----
2856
4760
5096

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT ALL 1 DIV ( - col1 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL 1 / ( - col1 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT DISTINCT - ( CAST( 21 AS SIGNED ) ) AS col0 FROM tab2 WHERE col0 + + col1 * col1 < 21 * ( col0 )
----

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - ( CAST ( 21 AS INTEGER ) ) AS col0 FROM tab2 WHERE col0 + + col1 * col1 < 21 * ( col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + 99 AS col2 FROM tab0
----
4653
9801
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT col2 * CAST( + 7 AS SIGNED ) FROM tab0
----
329
693
70

skipif mysql # not compatible
query I rowsort label-1804
SELECT col2 * CAST ( + 7 AS INTEGER ) FROM tab0
----
329
693
70

query I rowsort
SELECT DISTINCT 18 / - 9 FROM tab0 AS cor0 WHERE col1 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT - CAST( NULL AS SIGNED ) + - ( - SUM( + col0 ) + - MIN( + 37 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 + col0 > ( 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT - CAST ( NULL AS INTEGER ) + - ( - SUM ( + col0 ) + - MIN ( + 37 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 + col0 > ( 99 )
----
NULL

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

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 * - col0 ) IN ( + col0 )
----
51
67
77

query I rowsort
SELECT + ( + 92 ) + - + 14 AS col0 FROM tab0 AS cor0
----
78
78
78

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> + col2 + + 97 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / - 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 + + col2 FROM tab1 cor0
----
144
147
159

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

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col0 FROM tab0
----
196
62
97

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

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

skipif mysql # not compatible
query I rowsort label-1819
SELECT col1 / + + CAST ( NULL AS REAL ) * + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 73 + 88 AS col0, - 88 * - - 80 - col1 AS col2 FROM tab0
----
15
-7041
15
-7061
15
-7121

query I rowsort
SELECT - col0 + - col2 + - - 2 FROM tab1
----
-142
-145
-157

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

skipif mysql # not compatible
query I rowsort label-1822
SELECT - + 35 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL - + col0 + col0 + - 21 + - 91 + - col1 DIV - 38 FROM tab0 AS cor0
----
-110
-112
-112

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - + col0 + col0 + - 21 + - 91 + - col1 / - 38 FROM tab0 AS cor0
----
-110
-112
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-1824
SELECT DISTINCT - COUNT( * ) + - 6, COUNT( * ) * - + 23 AS col0 FROM tab2 AS cor0
----
-9
-69

skipif mysql # not compatible
query II rowsort label-1824
SELECT DISTINCT - COUNT ( * ) + - 6, COUNT ( * ) * - + 23 AS col0 FROM tab2 AS cor0
----
-9
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT COUNT( * ) + SUM( + ( col2 ) ) FROM tab1 WHERE ( + col2 * + 76 + - + CAST( NULL AS SIGNED ) * + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT COUNT ( * ) + SUM ( + ( col2 ) ) FROM tab1 WHERE ( + col2 * + 76 + - + CAST ( NULL AS INTEGER ) * + col2 ) IS NOT NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT DISTINCT - 19 AS col0 FROM tab1 AS cor0 WHERE ( - 91 ) NOT BETWEEN - col0 AND + CAST( - col2 AS SIGNED ) + + col0
----
-19

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT - 19 AS col0 FROM tab1 AS cor0 WHERE ( - 91 ) NOT BETWEEN - col0 AND + CAST ( - col2 AS INTEGER ) + + col0
----
-19

query I rowsort
SELECT DISTINCT - - 7 AS col2 FROM tab1 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1830
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - - ( CAST( 85 AS SIGNED ) ) / - col1
----

skipif mysql # not compatible
query III rowsort label-1830
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - - ( CAST ( 85 AS INTEGER ) ) / - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 > col1 + 88
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1832
SELECT + CAST( + ( COUNT( DISTINCT + 75 ) ) AS SIGNED ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1832
SELECT + CAST ( + ( COUNT ( DISTINCT + 75 ) ) AS INTEGER ) col1 FROM tab0 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-1833
SELECT + - 77 / - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
25

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

query I rowsort
SELECT + col2 * col2 + 92 AS col2 FROM tab0 cor0
----
192
2301
9893

query I rowsort
SELECT col1 * + 50 AS col2 FROM tab0 AS cor0
----
1050
4050
50

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

query I rowsort
SELECT DISTINCT + + 93 * + col0 FROM tab2 AS cor0
----
4278
5952
6975

query II rowsort
SELECT 79, col1 FROM tab1
----
79
14
79
47
79
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT col2 - col1 / col2 AS col1 FROM tab1 WHERE NOT ( CAST( + + ( 88 ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1840
SELECT col2 - col1 / col2 AS col1 FROM tab1 WHERE NOT ( CAST ( + + ( 88 ) AS INTEGER ) ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT 53 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1842
SELECT 53 / - col2 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1843
SELECT + COUNT ( ALL 1 ) FROM tab2
----
3

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

query I rowsort
SELECT DISTINCT 80 * col1 AS col0 FROM tab2
----
4080
5360
6160

query II rowsort
SELECT ALL col1 AS col1, - 33 * col1 AS col0 FROM tab0
----
1
-33
21
-693
81
-2673

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 95 / - + col0 * col1 + + col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - - 57 AS col1 FROM tab0 AS cor0
----
-4959
-5529
-855

query II rowsort
SELECT + 85 AS col2, ( - col2 ) AS col2 FROM tab0 cor0
----
85
-10
85
-47
85
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT + SUM( DISTINCT - 13 ) col1 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1852
SELECT + SUM ( DISTINCT - 13 ) col1 FROM tab2 AS cor0
----
-13

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL >= col2 * + - 49 + + 79 + + 32
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1857
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 9 AS col0, 69 AS col0 FROM tab1 AS cor0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-1857
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 9 AS col0, 69 AS col0 FROM tab1 AS cor0
----
NULL
69

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE ( ( NULL <> NULL ) )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - col2 * - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 - - col1 col2 FROM tab1
----
149
161
206

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT 71 + + - 64 * + 15 * - COUNT( * ) FROM tab1
----
2951

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT 71 + + - 64 * + 15 * - COUNT ( * ) FROM tab1
----
2951

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

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

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

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

query II rowsort
SELECT DISTINCT col0, 42 AS col1 FROM tab2
----
46
42
64
42
75
42

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1871
SELECT - ( - + 6 ), SUM( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
6
156

skipif mysql # not compatible
query II rowsort label-1871
SELECT - ( - + 6 ), SUM ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
6
156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1872
SELECT DISTINCT + CAST( col0 AS DECIMAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT + CAST ( col0 AS REAL ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT 6 + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1873
SELECT 6 + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT ALL MIN( - + 41 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL MIN ( - + 41 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT MIN( + + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1875
SELECT MIN ( + + col0 ) AS col2 FROM tab0
----
15

query II rowsort
SELECT + - ( - col0 ) AS col1, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT + 76 * 91 + col1 + + - 69 + + 37 DIV 29 * + + ( + col1 ) FROM tab0 AS cor0
----
6849
6889
7009

skipif mysql # not compatible
query I rowsort label-1877
SELECT + 76 * 91 + col1 + + - 69 + + 37 / 29 * + + ( + col1 ) FROM tab0 AS cor0
----
6849
6889
7009

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - ( - col2 ) + - 22
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT + col0 + + col1 FROM tab1 AS cor0 WHERE NOT + 14 * - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-1880
SELECT + col0 + + col1 FROM tab1 AS cor0 WHERE NOT + 14 * - CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL + 0 * - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL + 0 * - + COUNT ( * ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col1 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT AVG ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 62 NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 30 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 41 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT + MAX( DISTINCT ( 91 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1891
SELECT + MAX ( DISTINCT ( 91 ) ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab0 WHERE 29 NOT IN ( col2 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-1893
SELECT DISTINCT + COUNT( * ) AS col1, + SUM( ALL + ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
3
199

skipif mysql # not compatible
query II rowsort label-1893
SELECT DISTINCT + COUNT ( * ) AS col1, + SUM ( ALL + ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
3
199

query I rowsort
SELECT ALL + 35 + - - 90 FROM tab1 AS cor0
----
125
125
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + - COUNT( ALL - - 48 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + - COUNT ( ALL - - 48 ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 1 col2, ( col1 ) + + col0 + 81 FROM tab1
----
1
146
1
171
1
219

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT + SUM( ALL + 41 ) FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + SUM ( ALL + 41 ) FROM tab0
----
123

query I rowsort
SELECT 68 + - + col1 AS col1 FROM tab1
----
21
54
63

query I rowsort
SELECT ALL + + col1 + - col0 FROM tab2 cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 71 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 62 NOT IN ( - 44 + - - col1, 42 + + 26, 85, + 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT 55, + col1 FROM tab0 cor0
----
55
1
55
21
55
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1904
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT + 58 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 13 * + 31 - + 35 FROM tab1
----
368
368
368

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT DISTINCT - ( + - 64 ) DIV - 21 + - col2 AS col2 FROM tab2
----
-26
-43
-61

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - ( + - 64 ) / - 21 + - col2 AS col2 FROM tab2
----
-26
-43
-61

query I rowsort
SELECT DISTINCT + ( + 41 ) * - col2 FROM tab0
----
-1927
-4059
-410

query I rowsort
SELECT col2 + - col2 - + 44 * + col0 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 67 + - + col0 FROM tab1 AS cor0
----
-18
-24
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT + 13 DIV - - ( + 48 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1912
SELECT + 13 / - - ( + 48 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col2 + + col1 AS col0, 81 * 51 FROM tab2 AS cor0
----
117
4131
125
4131
74
4131

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT ALL - + col0 DIV + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-17
-22
-48

skipif mysql # not compatible
query I rowsort label-1914
SELECT ALL - + col0 / + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-17
-22
-48

query I rowsort
SELECT - 27 + - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT ALL - COUNT( DISTINCT - - col1 ) * - MIN( DISTINCT col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL - COUNT ( DISTINCT - - col1 ) * - MIN ( DISTINCT col1 ) FROM tab1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col1 ) col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT + - SUM( CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT + - SUM ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 49 AS col2 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT - ( 65 ) * col1 AS col0 FROM tab2 cor0
----
-3315
-4355
-5005

query I rowsort
SELECT DISTINCT - col2 / - col0 + - col2 FROM tab0 AS cor0 WHERE NOT - 97 + - 62 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * col0 col0 FROM tab1 AS cor0
----
3009
5015
5369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( - CAST( NULL AS SIGNED ) ) <> col0 * - + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-1924
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( - CAST ( NULL AS INTEGER ) ) <> col0 * - + 42 )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 9 IN ( col2 + - - 13 * - col1, 76 * - 56 - + col0, + 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1926
SELECT DISTINCT MIN( ALL - + col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT MIN ( ALL - + col2 ) FROM tab2
----
-58

query I rowsort
SELECT DISTINCT - ( + - ( + 64 ) ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL >= - + col2
----
0

skipif mysql # not compatible
query I rowsort label-1928
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL >= - + col2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + col1 NOT BETWEEN 17 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 = - col2 * - - 39 * - col1 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT DISTINCT - MAX( + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1932
SELECT DISTINCT - MAX ( + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - - 95 AS col1 FROM tab0 AS cor0
----
95
95
95

query III rowsort
SELECT * FROM tab1 WHERE ( - - 87 ) <> ( 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 70 * + + col1 AS col1 FROM tab1 AS cor0
----
3290
350
980

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT + 40 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1936
SELECT + 40 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL - COUNT( ALL col1 ) + - + SUM( col2 ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - COUNT ( ALL col1 ) + - + SUM ( col2 ) FROM tab1 AS cor0
----
-226

query I rowsort
SELECT DISTINCT - col0 * + + col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( 63 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT ALL + - 88 DIV + MIN( + 43 ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + - 88 / + MIN ( + 43 ) AS col2 FROM tab1 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 65 ) + - ( - col0 ) col0 FROM tab1 cor0
----
116
150
156

query I rowsort
SELECT - col1 + + col0 * 73 * col2 FROM tab2 AS cor0
----
186803
317483
77183

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL + - 94 + + - COUNT( * ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL + - 94 + + - COUNT ( * ) FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 + 88 col2 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL + ( + - col0 ) + - col2 * col1 * - + col1 AS col1 FROM tab1 AS cor0
----
1390
150121
18765

query I rowsort
SELECT 74 * - col2 FROM tab2 WHERE + + col2 <> col0
----
-1702
-2960
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT COUNT( ALL - 4 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1947
SELECT COUNT ( ALL - 4 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT col0, - col0 AS col0 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT col0 * + 33 * - col1 FROM tab2
----
-162624
-165825
-77418

query III rowsort
SELECT * FROM tab2 WHERE - 91 + + 15 + - - col0 - + col0 + + 54 > + 25 / col2 / + col0 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT + MIN( DISTINCT - - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT + MIN ( DISTINCT - - 0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT - MIN( 5 ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1952
SELECT - MIN ( 5 ) AS col1 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1953
SELECT DISTINCT - + COUNT( * ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-1953
SELECT DISTINCT - + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col1 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col2 * ( - 23 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + 6 ) col0 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1959
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ), col1 + 99 AS col0 FROM tab0 AS cor0
----
NULL
100
NULL
120
NULL
180

skipif mysql # not compatible
query II rowsort label-1959
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ), col1 + 99 AS col0 FROM tab0 AS cor0
----
NULL
100
NULL
120
NULL
180

query I rowsort
SELECT - + col0 * 36 AS col1 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL MAX( - + 87 ) FROM tab2 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL MAX ( - + 87 ) FROM tab2 cor0
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-1962
SELECT - ( - col1 ) DIV + 80, - col0 AS col2 FROM tab1
----
0
-51
0
-85
0
-91

skipif mysql # not compatible
query II rowsort label-1962
SELECT - ( - col1 ) / + 80, - col0 AS col2 FROM tab1
----
0
-51
0
-85
0
-91

query II rowsort
SELECT col2 AS col0, 86 FROM tab2
----
23
86
40
86
58
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + COUNT( * ) col1 FROM tab1 WHERE NOT + col0 * - 16 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1964
SELECT + COUNT ( * ) col1 FROM tab1 WHERE NOT + col0 * - 16 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL MIN( - 94 ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL MIN ( - 94 ) FROM tab1
----
-94

query I rowsort
SELECT - col2 * col0 * ( + 35 ) * - col0 AS col2 FROM tab0
----
2649150
32602185
370125

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT DISTINCT col2 DIV + 30 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT col2 / + 30 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT ALL col0 + - + CAST( col1 AS SIGNED ) / - 86 FROM tab2 WHERE NULL < ( + 7 )
----

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL col0 + - + CAST ( col1 AS INTEGER ) / - 86 FROM tab2 WHERE NULL < ( + 7 )
----

query I rowsort
SELECT DISTINCT 73 + - col2 FROM tab2 cor0
----
15
33
50

query II rowsort
SELECT ALL + col2 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL - COUNT( * ) col2 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-1971
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + col0 + - 0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - MIN( + col0 ) + + + COUNT( * ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-1973
SELECT - MIN ( + col0 ) + + + COUNT ( * ) AS col1 FROM tab1
----
-48

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT col1 = + 51
----
67
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1975
SELECT + 19 DIV CAST( CAST( - 10 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1975
SELECT + 19 / CAST ( CAST ( - 10 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col0 - - - 58 + + - col0 AS col2 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT SUM( col0 ) - - 32 col2 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1977
SELECT SUM ( col0 ) - - 32 col2 FROM tab0 AS cor0
----
231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1978
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + col0 * - col0 / - + col0 BETWEEN col2 - CAST( - col0 AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-1978
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + + col0 * - col0 / - + col0 BETWEEN col2 - CAST ( - col0 AS INTEGER ) AND col0
----

query I rowsort
SELECT DISTINCT + - col2 - - 9 AS col0 FROM tab2 AS cor0
----
-14
-31
-49

query I rowsort
SELECT DISTINCT col2 * + + 40 * 54 * + col1 + col2 AS col1 FROM tab2
----
2533703
6652840
8393818

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL + COUNT( * ) * - - MAX( + - col0 ) - + + SUM( 15 ) * - 45 FROM tab1
----
1872

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + COUNT ( * ) * - - MAX ( + - col0 ) - + + SUM ( 15 ) * - 45 FROM tab1
----
1872

query I rowsort
SELECT DISTINCT 73 - + + col1 FROM tab0
----
-8
52
72

query III rowsort
SELECT ALL * FROM tab0 WHERE 16 NOT BETWEEN + col2 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT + col2 + + ( - 55 ) AS col0 FROM tab2
----
-15
-32
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - + col1 + + col1 IS NULL ) OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - col1 * - + col1 AS col2 FROM tab2 AS cor0
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL > - col2
----
0

query II rowsort
SELECT ALL - col2, 1 * - 31 + + col2 FROM tab1 AS cor0 WHERE NOT + 35 IS NOT NULL
----

query I rowsort
SELECT col2 * col1 - 65 FROM tab2 AS cor0
----
1108
3015
3821

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * ( - col1 ) IS NULL
----

query II rowsort
SELECT DISTINCT + col0, col0 * + - col1 FROM tab2 AS cor0
----
46
-2346
64
-4928
75
-5025

query II rowsort
SELECT + col2, 56 + - 26 AS col1 FROM tab2 AS cor0
----
23
30
40
30
58
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL - 69 + MAX( + + 54 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL - 69 + MAX ( + + 54 ) FROM tab0 cor0
----
-15

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 * col2 * - - col2 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT ALL + col0 DIV 41 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + col0 / 41 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1998
SELECT DISTINCT 3 + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT 3 + - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col0 AS col1 FROM tab2 WHERE NOT - - 87 * - + ( - col1 ) + + - ( - 18 ) * - col1 < NULL
----

query I rowsort
SELECT 12 + + col0 - + col1 * - col0 AS col0 FROM tab1
----
4380
522
777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab1 WHERE 53 * + + col0 + - + 3 * - + ( - 47 ) IS NOT NULL
----
42
42
42

query I rowsort
SELECT DISTINCT 98 FROM tab0 WHERE NOT NULL IS NOT NULL
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT ALL 26 DIV col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL 26 / col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL - + SUM( + 20 ) - + COUNT( * ) AS col2 FROM tab1 WHERE NOT - col2 NOT BETWEEN 14 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - + SUM ( + 20 ) - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col2 NOT BETWEEN 14 AND col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / - - 14 + col2 + + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2006
SELECT DISTINCT col0 DIV col0 AS col1, col0 AS col2 FROM tab1
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-2006
SELECT DISTINCT col0 / col0 AS col1, col0 AS col2 FROM tab1
----
1
51
1
85
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT - 69 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT - 69 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT ALL 44 + - col0 + + col1 + - - col0 AS col1 FROM tab0 AS cor0
----
125
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + COUNT( DISTINCT + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2009
SELECT + COUNT ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 - 50 FROM tab1
----
-101
-135
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT DISTINCT + COUNT( * ) AS col2, + 31 AS col1 FROM tab2
----
3
31

skipif mysql # not compatible
query II rowsort label-2011
SELECT DISTINCT + COUNT ( * ) AS col2, + 31 AS col1 FROM tab2
----
3
31

query I rowsort
SELECT - col2 + + + 52 FROM tab0 AS cor0
----
-47
42
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 9 col2 FROM tab0 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) <> col1
----

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / - col2 - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 69 >= + - col1 * - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - 9 + - + COUNT( * ) - + 81 FROM tab2 WHERE - 96 NOT IN ( - col0 )
----
-93

skipif mysql # not compatible
query I rowsort label-2018
SELECT - 9 + - + COUNT ( * ) - + 81 FROM tab2 WHERE - 96 NOT IN ( - col0 )
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 - + - col2 col0 FROM tab2
----
0
17
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT DISTINCT + col1 DIV 81 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT + col1 / 81 FROM tab2
----
0

query I rowsort
SELECT ( + ( + col2 ) ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT - COUNT( col0 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2022
SELECT - COUNT ( col0 ) col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT + 52 + ( - COUNT( * ) ) DIV - 57 AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-2023
SELECT + 52 + ( - COUNT ( * ) ) / - 57 AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT ( + CAST( - + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL - 59 AS col0 FROM tab0 WHERE + + 43 IS NOT NULL
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT - MAX( DISTINCT - 5 ) col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2026
SELECT - MAX ( DISTINCT - 5 ) col1 FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL - + 92 * - SUM( DISTINCT - - col1 ) FROM tab0 AS cor0
----
9476

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - + 92 * - SUM ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
9476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT DISTINCT CAST( + - col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT + 44 > - col0 * col2 - - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL + 1 + - SUM( - 12 ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL + 1 + - SUM ( - 12 ) FROM tab2 AS cor0
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + 59 AS col0 FROM tab1 AS cor0
----
14
59
47
59
5
59

query I rowsort
SELECT ALL + 92 + col0 AS col2 FROM tab0 cor0
----
107
179
189

query II rowsort
SELECT + + ( + + col2 ) * - 16, 27 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - 50 - - + col0 * + 12 - + + 37 + + - col1 * - + col0 AS col2 FROM tab2
----
2862
5686
5905

query I rowsort
SELECT DISTINCT - 60 + - 32 FROM tab2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT ALL + col0 DIV - - col1 AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + col0 / - - col1 AS col0 FROM tab1
----
1
17
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2037
SELECT DISTINCT COUNT( * ) col1, 88 * - CAST( NULL AS SIGNED ) * - - ( 8 ) col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2037
SELECT DISTINCT COUNT ( * ) col1, 88 * - CAST ( NULL AS INTEGER ) * - - ( 8 ) col2 FROM tab0
----
3
NULL

query I rowsort
SELECT DISTINCT + col2 * 82 FROM tab2
----
1886
3280
4756

query III rowsort
SELECT * FROM tab1 WHERE - - col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( - 54 ) col0 FROM tab2
----
-2484
-3456
-4050

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT - 89 DIV - 57 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2041
SELECT - 89 / - 57 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - 94 * - - 87 FROM tab1
----
-8178
-8178
-8178

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= col0 * - ( + col0 ) + + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT - 47 * - COUNT( * ) FROM tab0 cor0
----
141

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - 47 * - COUNT ( * ) FROM tab0 cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL + + col0 + + CAST( NULL AS SIGNED ) + - 28 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-2045
SELECT ALL + + col0 + + CAST ( NULL AS INTEGER ) + - 28 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 1 FROM tab1
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT 99 * - SUM( DISTINCT - col1 ) + + COUNT( * ) AS col0 FROM tab0
----
10200

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT 99 * - SUM ( DISTINCT - col1 ) + + COUNT ( * ) AS col0 FROM tab0
----
10200

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL + ( + - ( COUNT( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + ( + - ( COUNT ( * ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - MIN( ALL + ( - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2049
SELECT - MIN ( ALL + ( - col0 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT ALL - + MAX( col0 ), 27 AS col2 FROM tab2 AS cor0
----
-75
27

skipif mysql # not compatible
query II rowsort label-2051
SELECT ALL - + MAX ( col0 ), 27 AS col2 FROM tab2 AS cor0
----
-75
27

query I rowsort
SELECT + - col2 - - 71 FROM tab0 AS cor0
----
-28
24
61

query I rowsort
SELECT + col1 * - 48 - - ( col0 ) - + 97 AS col1 FROM tab1 AS cor0
----
-2262
-252
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + MAX( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + MAX ( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

query II rowsort
SELECT col0 AS col2, - ( col0 ) * col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE - col2 * + 91 - 54 IS NOT NULL OR NOT NULL >= NULL
----
15
-18225
87
-158949
97
-9409

query I rowsort
SELECT - - 14 AS col0 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT + 15 IS NOT NULL
----

query I rowsort
SELECT - + 15 AS col0 FROM tab2 cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, - col0 col1 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT COUNT( - col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2060
SELECT COUNT ( - col0 ) col0 FROM tab1
----
3

query I rowsort
SELECT ALL + 72 AS col0 FROM tab1 WHERE ( + 26 ) > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + COUNT( DISTINCT - - 40 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2062
SELECT + COUNT ( DISTINCT - - 40 ) FROM tab1
----
1

query II rowsort
SELECT - 24, + col2 FROM tab0
----
-24
10
-24
47
-24
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2064
SELECT - CAST( 5 AS SIGNED ) FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-2064
SELECT - CAST ( 5 AS INTEGER ) FROM tab1
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT - MAX( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - MAX ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT DISTINCT CAST( 50 AS SIGNED ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT CAST ( 50 AS INTEGER ) FROM tab0
----
50

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + col2 >= + 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 71 + - 69 * + col0 * + + col1 + col0 + col2 + - - 27 * + col2 * + col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 83 * + - 13 FROM tab1 AS cor0
----
-1079

query I rowsort
SELECT - - col0 * - 73 AS col0 FROM tab0 AS cor0
----
-1095
-6351
-7081

query I rowsort
SELECT ALL 41 + - col2 * - + col2 FROM tab0 AS cor0
----
141
2250
9842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT DISTINCT col0 * - col2 + 45 * + 44 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE col1 + + col1 + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT col0 * - col2 + 45 * + 44 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE col1 + + col1 + + col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 71 + col1, + 70 col1 FROM tab0 AS cor0
----
152
70
72
70
92
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT + COUNT( - 47 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2075
SELECT + COUNT ( - 47 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - - col2 + + ( col2 ) FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT 70 + - ( - col1 ) * - 33 AS col0 FROM tab1 AS cor0
----
-1481
-392
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL + 66 * - - 16 + + COUNT( * ) FROM tab1 AS cor0
----
1059

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + 66 * - - 16 + + COUNT ( * ) FROM tab1 AS cor0
----
1059

query I rowsort
SELECT + 33 + + col1 FROM tab1
----
38
47
80

query I rowsort
SELECT ALL + 11 * 28 * + col0 FROM tab1
----
15708
26180
28028

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT col1 DIV - + col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2081
SELECT col1 / - + col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + col2 * - + col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2083
SELECT ALL - - CAST( NULL AS DECIMAL ) + - 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - - CAST ( NULL AS REAL ) + - 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 51 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col1 + + ( + col1 ) )
----

query II rowsort
SELECT col2 + 15 AS col1, 10 AS col1 FROM tab2
----
38
10
55
10
73
10

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT ( ( + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT ( ( + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + ( 92 ) FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL - 57 * col2 AS col2 FROM tab2 AS cor0
----
-1311
-2280
-3306

query I rowsort
SELECT - col2 * - + col0 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2093
SELECT ALL COUNT( CAST( + - col2 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL COUNT ( CAST ( + - col2 AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ( MAX( DISTINCT + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2094
SELECT ( MAX ( DISTINCT + col2 ) ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + ( + COUNT( DISTINCT - 21 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + ( + COUNT ( DISTINCT - 21 ) ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT - 5 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + ( + 85 ) + + col1
----

query I rowsort
SELECT ALL - 71 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # DIV for integer division: 
query II rowsort label-2100
SELECT DISTINCT + 76, 72 DIV - + col2 AS col2 FROM tab1
----
76
-1
76
0

skipif mysql # not compatible
query II rowsort label-2100
SELECT DISTINCT + 76, 72 / - + col2 AS col2 FROM tab1
----
76
-1
76
0

query I rowsort
SELECT - - 46 * - ( - col1 ) * + 15 AS col1 FROM tab2 AS cor0
----
35190
46230
53130

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + SUM( ALL - col2 ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2103
SELECT + SUM ( ALL - col2 ) AS col0 FROM tab1 cor0
----
-223

query I rowsort
SELECT DISTINCT + + 0 * col1 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2105
SELECT ALL + COUNT( * ) * + 89 AS col0, + 13 DIV 40 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
267
0

skipif mysql # not compatible
query II rowsort label-2105
SELECT ALL + COUNT ( * ) * + 89 AS col0, + 13 / 40 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
267
0

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE - col0 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( - - 97 ) col2 FROM tab0
----
4559
9603
970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT - CAST( + + col1 AS SIGNED ) - + + col2 AS col0 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-2108
SELECT - CAST ( + + col1 AS INTEGER ) - + + col2 AS col0 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT col2 + 27 AS col1 FROM tab0
----
126
37
74

query I rowsort
SELECT ALL col0 * + col0 * - col2 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query II rowsort label-2111
SELECT ALL MIN( - col1 ) AS col2, - 0 FROM tab2 AS cor0
----
-77
0

skipif mysql # not compatible
query II rowsort label-2111
SELECT ALL MIN ( - col1 ) AS col2, - 0 FROM tab2 AS cor0
----
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2112
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2113
SELECT + - col2 * - CAST( + ( - + CAST( - + 73 AS SIGNED ) ) AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-186880
-317550
-77234

skipif mysql # not compatible
query I rowsort label-2113
SELECT + - col2 * - CAST ( + ( - + CAST ( - + 73 AS INTEGER ) ) AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-186880
-317550
-77234

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL - + 50 * + COUNT( * ) + + 5 AS col1 FROM tab0 AS cor0
----
-145

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - + 50 * + COUNT ( * ) + + 5 AS col1 FROM tab0 AS cor0
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2115
SELECT - CAST( NULL AS SIGNED ) AS col2, ( - COUNT( * ) ) + + COUNT( * ) FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2115
SELECT - CAST ( NULL AS INTEGER ) AS col2, ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab2
----
NULL
0

query I rowsort
SELECT DISTINCT 3 * + col2 AS col2 FROM tab0
----
141
297
30

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT col0 * + 54 * - - col2 + - col0 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab0 cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - 79 <= - col2
----

query I rowsort
SELECT DISTINCT col1 * - col0 * + - col2 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + col1 AS col2 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT ALL + col2 DIV + col1 + - - col0 FROM tab0 AS cor0
----
15
196
87

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + col2 / + col1 + - - col0 FROM tab0 AS cor0
----
15
196
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT - col2 DIV - 13 FROM tab1
----
4
5
7

skipif mysql # not compatible
query I rowsort label-2124
SELECT - col2 / - 13 FROM tab1
----
4
5
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT CAST( NULL AS SIGNED ) * col1 * - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT CAST ( NULL AS INTEGER ) * col1 * - - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - - col1 ) FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL + col1, + 9 - + + col1 AS col2 FROM tab1
----
14
-5
47
-38
5
4

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2129
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + + 33 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-2129
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + + 33 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2130
SELECT + COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 NOT IN ( - + 56, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT ALL + + CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + + CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE 86 / - - col2 <= NULL
----

query I rowsort
SELECT ALL - 21 * + 16 FROM tab2
----
-336
-336
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT - MIN( - col0 ) * + COUNT( * ) + 43 AS col0 FROM tab2 cor0
----
268

skipif mysql # not compatible
query I rowsort label-2135
SELECT - MIN ( - col0 ) * + COUNT ( * ) + 43 AS col0 FROM tab2 cor0
----
268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT ALL - CAST( NULL AS SIGNED ) + - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - CAST ( NULL AS INTEGER ) + - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2137
SELECT DISTINCT + CAST( SUM( + 33 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT + CAST ( SUM ( + 33 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
99

query I rowsort
SELECT ALL + col2 + + col2 * + 4 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2139
SELECT ALL + + CAST( - - 91 AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + + CAST ( - - 91 AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT ( MIN( DISTINCT - - col1 ) ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT ( MIN ( DISTINCT - - col1 ) ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2141
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2141
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 - col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-66
-96
66

query I rowsort
SELECT + 9 + - 91 AS col2 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + col1 * + + col2 FROM tab0 WHERE + 9 * col0 <= + col2 + + + col0 + + 70
----

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT ALL col2 * + CAST( NULL AS SIGNED ) + + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) + + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab2 WHERE - col1 + - + col2 * + 9 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + MAX( ALL - + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2148
SELECT + MAX ( ALL - + col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT 25 - + COUNT( * ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT 25 - + COUNT ( * ) FROM tab0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT ALL - 90 DIV col1 - + col2 * col2 DIV + 16 AS col2 FROM tab2
----
-101
-211
-34

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - 90 / col1 - + col2 * col2 / + 16 AS col2 FROM tab2
----
-101
-211
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT - col0 * - col0 - + 36 * 52 DIV + ( + col1 ) col2 FROM tab2 AS cor0
----
2080
4072
5598

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2151
SELECT - col0 * - col0 - + 36 * 52 / + ( + col1 ) col2 FROM tab2 AS cor0
----
2080
4072
5598

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT 6 DIV - + col2 - + col0 * - - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2152
SELECT 6 / - + col2 - + col0 * - - col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - 45 - + ( + col1 ) * col2 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
-197165
-291495
-54003

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT ALL col0 DIV + - 14 AS col1 FROM tab1
----
-3
-6
-6

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL col0 / + - 14 AS col1 FROM tab1
----
-3
-6
-6

query I rowsort
SELECT DISTINCT - - ( + 22 ) FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL - MIN( ALL - + col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2156
SELECT ALL - MIN ( ALL - + col0 ) col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab1 cor0
----
-76

query I rowsort
SELECT + + ( + - col1 ) FROM tab2 cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - 77 col1 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT ALL CAST( NULL AS SIGNED ) / + - col2 * CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL CAST ( NULL AS INTEGER ) / + - col2 * CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL + MIN( ALL - 37 ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL + MIN ( ALL - 37 ) FROM tab2
----
-37

query I rowsort
SELECT ( - col2 ) * ( - 33 ) FROM tab1
----
1947
2244
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT DISTINCT 98 * - MAX( - - ( col0 ) ) AS col2 FROM tab0
----
-9506

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT 98 * - MAX ( - - ( col0 ) ) AS col2 FROM tab0
----
-9506

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT 56 DIV col0 * - 54 AS col2 FROM tab0
----
-162
0
0

skipif mysql # not compatible
query I rowsort label-2164
SELECT 56 / col0 * - 54 AS col2 FROM tab0
----
-162
0
0

query II rowsort
SELECT ALL 29 AS col1, 9 AS col2 FROM tab1
----
29
9
29
9
29
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT COUNT( DISTINCT - - col0 ) col2 FROM tab1 WHERE - + col2 / + + 63 * - 99 + + 26 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2167
SELECT COUNT ( DISTINCT - - col0 ) col2 FROM tab1 WHERE - + col2 / + + 63 * - 99 + + 26 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - col0 + 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query II rowsort
SELECT + col1 AS col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT 61 * + 49 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= - col1
----

query I rowsort
SELECT DISTINCT 95 + ( + 91 ) + + 83 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2, 87 FROM tab2 AS cor0
----
23
87
40
87
58
87

query I rowsort
SELECT ( - 28 ) - - - 80 FROM tab2 AS cor0
----
-108
-108
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT ALL CAST( col2 AS SIGNED ) + + col1 + col1 * 12 * - - col0 AS col0 FROM tab0
----
1264
14708
21955

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL CAST ( col2 AS INTEGER ) + + col1 + col1 * 12 * - - col0 AS col0 FROM tab0
----
1264
14708
21955

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT COUNT( * ) * 51 + - COUNT( + 53 ) + + 36 AS col0 FROM tab0, tab1 AS cor0
----
486

skipif mysql # not compatible
query I rowsort label-2178
SELECT COUNT ( * ) * 51 + - COUNT ( + 53 ) + + 36 AS col0 FROM tab0, tab1 AS cor0
----
486

query I rowsort
SELECT DISTINCT + col1 - - col1 * + - col0 * + col2 FROM tab0
----
-18249
-57024
-9602

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) - + col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT - MAX( DISTINCT + 88 ) + - 47 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + CAST( - col1 AS SIGNED ) * + + 38 + + col0 * - - col1 IS NULL
----
-135

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - MAX ( DISTINCT + 88 ) + - 47 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + CAST ( - col1 AS INTEGER ) * + + 38 + + col0 * - - col1 IS NULL
----
-135

query I rowsort
SELECT DISTINCT - - 3 * + + 38 * - 98 + + col0 FROM tab1 AS cor0
----
-11081
-11087
-11121

query I rowsort
SELECT 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query II rowsort
SELECT DISTINCT + col2, col1 + - - col2 FROM tab2
----
23
74
40
117
58
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL MAX( + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL MAX ( + col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT DISTINCT + - 57 AS col1 FROM tab2 AS cor0 WHERE NOT 0 NOT IN ( - col0, - ( + col1 ), + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT + CAST( 62 AS SIGNED ) * + 20 FROM tab2 AS cor0
----
1240
1240
1240

skipif mysql # not compatible
query I rowsort label-2188
SELECT + CAST ( 62 AS INTEGER ) * + 20 FROM tab2 AS cor0
----
1240
1240
1240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2189
SELECT ALL 70 DIV - COUNT( ALL - 79 ) + - 23 AS col1 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL 70 / - COUNT ( ALL - 79 ) + - 23 AS col1 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL 72 * - col0 + + + ( col2 ) * 40 FROM tab0
----
-3024
-5864
800

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + col0
----

query I rowsort
SELECT + 74 * - 40 FROM tab0
----
-2960
-2960
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT + MAX( + ( col0 ) ) * + 3 AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + MAX ( + ( col0 ) ) * + 3 AS col1 FROM tab2
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * - col2 * + col0 * - 28 col2 FROM tab2 AS cor0
----
-11449200
-2784656
-6737920

query I rowsort
SELECT ALL - - 63 + - - 52 AS col0 FROM tab0 AS cor0
----
115
115
115

onlyif mysql # aggregate syntax: 
query II rowsort label-2196
SELECT ( + + COUNT( * ) ), 78 AS col0 FROM tab1 cor0
----
3
78

skipif mysql # not compatible
query II rowsort label-2196
SELECT ( + + COUNT ( * ) ), 78 AS col0 FROM tab1 cor0
----
3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 23 + + col1 * - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 23 + + col1 * - col1 < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 89 col2 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT + - col2 - - 35 FROM tab2 AS cor0 WHERE ( - col2 ) NOT BETWEEN ( NULL ) AND + - col1
----
-23
-5
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL - + 14 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL - + 14 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col2 ) + + 16 * 59 col1 FROM tab2 AS cor0
----
1002
967
984

query I rowsort
SELECT 75 + - 62 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2203
SELECT DISTINCT + 54 * - SUM( + + 12 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT + 54 * - SUM ( + + 12 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 36 + + col2 AS col1 FROM tab0 cor0
----
-26
11
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 37 <> - 92 * + 71 * + 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - - col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - 35 + - - 56
----

query I rowsort
SELECT col0 * + ( - col1 ) * + 14 - + col0 AS col0 FROM tab2
----
-32890
-69056
-70425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col1 FROM tab1 WHERE NOT col0 - - - 13 IS NULL
----
-77

query II rowsort
SELECT ALL - 6, + col2 FROM tab1
----
-6
59
-6
68
-6
96

query I rowsort
SELECT ( - - 66 ) FROM tab1
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2212
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) NOT BETWEEN - 96 * - col2 AND + col1
----

skipif mysql # not compatible
query III rowsort label-2212
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) NOT BETWEEN - 96 * - col2 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2213
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2213
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL SUM( DISTINCT - + 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL SUM ( DISTINCT - + 2 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL col0 * col1 - - 14 AS col1 FROM tab0 WHERE NULL < - 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2216
SELECT CAST( + - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2216
SELECT CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - 52 FROM tab0 AS cor0
----
4524
5044
780

query I rowsort
SELECT ALL + col2 + ( + col2 ) FROM tab0 cor0
----
198
20
94

query II rowsort
SELECT DISTINCT ( + col1 ), - col2 * + col0 FROM tab2 AS cor0
----
51
-1058
67
-4350
77
-2560

query I rowsort
SELECT DISTINCT + 17 * - + col0 AS col1 FROM tab0 AS cor0
----
-1479
-1649
-255

query I rowsort
SELECT + ( + 82 ) * - col2 FROM tab2 AS cor0
----
-1886
-3280
-4756

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2222
SELECT - ( - CAST( 98 AS SIGNED ) ) DIV - - col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2222
SELECT - ( - CAST ( 98 AS INTEGER ) ) / - - col1 AS col2 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col1 * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL + col2 * + col2 * - col0 + CAST( + - 54 AS SIGNED ) AS col1 FROM tab0
----
-33189
-8754
-950751

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + col2 * + col2 * - col0 + CAST ( + - 54 AS INTEGER ) AS col1 FROM tab0
----
-33189
-8754
-950751

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL MIN( + + col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL MIN ( + + col0 ) FROM tab0
----
15

query III rowsort
SELECT * FROM tab1 WHERE - - col1 <= NULL
----

query I rowsort
SELECT - 77 * + col2 AS col1 FROM tab0
----
-3619
-7623
-770

query I rowsort
SELECT + 25 * col1 AS col2 FROM tab1
----
1175
125
350

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 60 FROM tab2
----
-15
-4
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 - - col2 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2231
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 - - col2 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - ( + + ( + col1 ) ) + + - ( + + col1 ) FROM tab1 cor0
----
1330
290
3149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2, - col2 )
----

query I rowsort
SELECT - 27 + 45 AS col2 FROM tab0
----
18
18
18

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT - COUNT( ALL - 77 ) + 31 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2236
SELECT - COUNT ( ALL - 77 ) + 31 FROM tab1
----
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 68 <= - col2 / - 28
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2238
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT 48 IN ( col0 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT ALL - 99 DIV + col0 FROM tab0
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - 99 / + col0 FROM tab0
----
-1
-1
-6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 94 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT 58 * + COUNT( * ) - - COUNT( col1 ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2244
SELECT 58 * + COUNT ( * ) - - COUNT ( col1 ) FROM tab0
----
177

query I rowsort
SELECT 89 * + col2 + col0 AS col0 FROM tab2
----
2093
3624
5237

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 > ( NULL )
----

query I rowsort
SELECT 1 / col0 - col1 AS col1 FROM tab0 WHERE NULL < - col1
----

query I rowsort
SELECT DISTINCT - col0 * + ( 54 ) FROM tab0
----
-4698
-5238
-810

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( + 8 + - 27 )
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL >= + col0 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT CAST( COUNT( 89 ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2251
SELECT CAST ( COUNT ( 89 ) AS INTEGER ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT MAX( DISTINCT col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2252
SELECT MAX ( DISTINCT col2 ) AS col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT + COUNT( ALL col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + COUNT ( ALL col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL - SUM( 51 ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL - SUM ( 51 ) FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT - SUM( - 14 ) AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-2256
SELECT - SUM ( - 14 ) AS col1 FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT ALL CAST( NULL AS SIGNED ) / 89 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL CAST ( NULL AS INTEGER ) / 89 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 10 * + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT DISTINCT col1 * col1 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND CAST( 66 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT col1 * col1 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND CAST ( 66 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - SUM( DISTINCT ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2260
SELECT - SUM ( DISTINCT ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT + MAX( 29 ) AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-2261
SELECT + MAX ( 29 ) AS col1 FROM tab1
----
29

query I rowsort
SELECT ALL + - 2 * + col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 * + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT + - SUM( + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2264
SELECT + - SUM ( + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT - - COUNT( - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2265
SELECT - - COUNT ( - col1 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NULL IN ( ( - col1 ) * + 75 )
----

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT - 10 * 79 + - col2 AS col1 FROM tab0 AS cor0
----
-800
-837
-889

query I rowsort
SELECT - 78 * 38 + col1 FROM tab1
----
-2917
-2950
-2959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + + col0 * col0 col2 FROM tab0
----
294
7638
9478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 32 col2 FROM tab0
----
1504
3168
320

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL + SUM( DISTINCT + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + SUM ( DISTINCT + col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + + ( ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2274
SELECT + + ( ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 68 IN ( - 56 + - 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 22 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT + 85 * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-765

skipif mysql # not compatible
query I rowsort label-2277
SELECT + 85 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-765

query I rowsort
SELECT ALL - 32 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - ( col2 ) FROM tab0 WHERE ( NOT + col0 IS NULL )
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 99 * - - 80 + col2 IN ( col0 )
----

query I rowsort
SELECT + 40 + - - col0 AS col2 FROM tab0 AS cor0
----
127
137
55

query I rowsort
SELECT + - col0 * + + 87 + col1 FROM tab0 cor0
----
-1224
-7548
-8438

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2283
SELECT 11 * COUNT( * ) * COUNT( * ) + - COUNT( * ) DIV - COUNT( + 57 ) FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-2283
SELECT 11 * COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) / - COUNT ( + 57 ) FROM tab1 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT + 62 + COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT + 62 + COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + + MAX( - col0 ) * + - COUNT( * ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2285
SELECT + + MAX ( - col0 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT + CAST( + 19 AS SIGNED ) FROM tab2 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-2286
SELECT + CAST ( + 19 AS INTEGER ) FROM tab2 AS cor0
----
19
19
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col2 + 0 <> - col1 + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT + SUM( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + + 26 col0 FROM tab2 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT - MIN( DISTINCT col0 ) FROM tab0 WHERE NOT ( - 76 ) IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-2290
SELECT - MIN ( DISTINCT col0 ) FROM tab0 WHERE NOT ( - 76 ) IS NULL
----
-15

query I rowsort
SELECT - col0 * - - 11 * - 93 + + - col2 FROM tab2 AS cor0
----
47035
65432
76667

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( ( - col1 ) * - col2 + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT - + COUNT( * ) * MIN( col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2293
SELECT - + COUNT ( * ) * MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + ( - 50 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query II rowsort label-2295
SELECT - - COUNT( * ), - 50 AS col0 FROM tab0 cor0
----
3
-50

skipif mysql # not compatible
query II rowsort label-2295
SELECT - - COUNT ( * ), - 50 AS col0 FROM tab0 cor0
----
3
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 13 col2 FROM tab0 AS cor0
----
13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2298
SELECT * FROM tab0 cor0 WHERE ( CAST( NULL AS SIGNED ) * col0 ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2298
SELECT * FROM tab0 cor0 WHERE ( CAST ( NULL AS INTEGER ) * col0 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 + - col1 + - col1 AS col1 FROM tab1 AS cor0
----
1316
285
3102

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN ( - 53 ) AND col0 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND + - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL MAX( - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL MAX ( - col0 ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 67 BETWEEN + col2 AND + - col2 * - ( col0 ) * - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 85 col0, + 84 - 87 + - col0 * + 95 * + 10 FROM tab1 AS cor0
----
85
-48453
85
-80753
85
-86453

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT - - COUNT( * ) + + COUNT( 65 ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2305
SELECT - - COUNT ( * ) + + COUNT ( 65 ) AS col2 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 45 + col2 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
1619
3394
530

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - 72 * 79 - + + col2 * + + 32 + + 3 + - ( ( 85 ) ) FROM tab2
----
-6506
-7050
-7626

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2310
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 0 * - CAST( - + 19 AS SIGNED ) * - + col1 )
----

skipif mysql # not compatible
query III rowsort label-2310
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 0 * - CAST ( - + 19 AS INTEGER ) * - + col1 )
----

query I rowsort
SELECT + 88 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) = col2 * - 40 / col1
----

query I rowsort
SELECT ALL + - ( + - col2 ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL 89 * col2 + col1 * col1 FROM tab1 AS cor0
----
5276
8261
8740

query I rowsort
SELECT col2 * - 18 FROM tab1 AS cor0
----
-1062
-1224
-1728

query I rowsort
SELECT - - col0 * - ( ( col0 ) ) AS col2 FROM tab1 cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + + - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * + col0 col0, col1 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

query I rowsort
SELECT DISTINCT - col2 * - + 29 FROM tab0
----
1363
2871
290

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT 37 DIV ( + col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2319
SELECT 37 / ( + col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * - 84 AS col2 FROM tab1
----
-4956
-5712
-8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT ( - 98 ) AS col0 FROM tab2
----
-98

query I rowsort
SELECT DISTINCT + col0 * col0 + col2 - + 7 * + col0 + + col0 FROM tab1 AS cor0
----
2391
6774
7803

query I rowsort
SELECT + col2 * + + col2 + col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 32 + 49 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT DISTINCT COUNT( * ) DIV - 24 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT COUNT ( * ) / - 24 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL + MAX( 90 ) AS col1 FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + MAX ( 90 ) AS col1 FROM tab2 cor0
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-2329
SELECT col2 DIV + col1 AS col2, + 14 + col1 col1 FROM tab2 AS cor0
----
0
65
0
81
0
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2329
SELECT col2 / + col1 AS col2, + 14 + col1 col1 FROM tab2 AS cor0
----
0
65
0
81
0
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - + col2 col2, col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

query II rowsort
SELECT 82 + - col0 AS col2, - col1 FROM tab2 AS cor0
----
18
-77
36
-51
7
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT - COUNT( * ) + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2332
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * + + 36 * + col0 FROM tab1 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT - 66 + - + col0 - - - col1 FROM tab2 AS cor0
----
-163
-207
-208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 34 IN ( + + col1 )
----

query I rowsort
SELECT + col2 + col0 * - + ( + 73 ) FROM tab2 WHERE NULL IN ( + col0 * + - 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL + COUNT( + + col0 ) + - - COUNT( * ) + + + 70 AS col0 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + COUNT ( + + col0 ) + - - COUNT ( * ) + + + 70 AS col0 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - ( COUNT( * ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2338
SELECT - ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT 54 * + col2 - - - 44 FROM tab2
----
1198
2116
3088

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE - col2 / - col0 <= - + 94 * - col0 - + col1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT COUNT( DISTINCT ( + col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT COUNT ( DISTINCT ( + col0 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2342
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + col2 AS SIGNED ) * - col1 + + + 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2342
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + col2 AS INTEGER ) * - col1 + + + 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col1 - - + 18 AS col2 FROM tab0 AS cor0
----
-3
-63
17

query I rowsort
SELECT ALL + 85 * + col0 * - col1 AS col2 FROM tab1
----
-36125
-363545
-60690

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT - MAX( - ( col1 ) ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT DISTINCT - MAX ( - ( col1 ) ) col1 FROM tab2
----
51

query I rowsort
SELECT 53 * col0 AS col1 FROM tab2
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT DISTINCT - - COUNT( * ), + 34 AS col2 FROM tab1 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-2347
SELECT DISTINCT - - COUNT ( * ), + 34 AS col2 FROM tab1 AS cor0
----
3
34

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < - - 85 + + 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col1 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL - MIN( - 98 ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - MIN ( - 98 ) FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT + - CAST( - CAST( - - col0 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2351
SELECT + - CAST ( - CAST ( - - col0 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT + col2 * 75 - + 4 FROM tab0 AS cor0
----
3521
7421
746

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT 58 * 63 * - COUNT( * ) col0 FROM tab2 cor0
----
-10962

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2353
SELECT DISTINCT 58 * 63 * - COUNT ( * ) col0 FROM tab2 cor0
----
-10962

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - 8 ) NOT BETWEEN col1 AND - - ( col1 )
----

query I rowsort
SELECT ALL + col0 * + + col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) - col2 IS NOT NULL
----

query I rowsort
SELECT ( 78 ) AS col0 FROM tab1
----
78
78
78

query II rowsort
SELECT ALL col0 * + col2 AS col0, - 17 AS col1 FROM tab2
----
1058
-17
2560
-17
4350
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL - MIN( ALL col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL - MIN ( ALL col0 ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT - 74 * + + MIN( ALL col1 ) FROM tab2
----
-3774

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT - 74 * + + MIN ( ALL col1 ) FROM tab2
----
-3774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT ALL + CAST( NULL AS SIGNED ) + 68 - col0 * + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + CAST ( NULL AS INTEGER ) + 68 - col0 * + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( col1, 58, - col2 + - col2 + + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 0 + - - 68 AS col1 FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2365
SELECT ALL + COUNT( * ) AS col1, - 63 AS col1 FROM tab2 cor0
----
3
-63

skipif mysql # not compatible
query II rowsort label-2365
SELECT ALL + COUNT ( * ) AS col1, - 63 AS col1 FROM tab2 cor0
----
3
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT ALL + + 37 + - 77 DIV + + MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL + + 37 + - 77 / + + MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL 58 - + SUM( ALL - col1 ) * 23 AS col2 FROM tab2
----
4543

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL 58 - + SUM ( ALL - col1 ) * 23 AS col2 FROM tab2
----
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + COUNT( * ) - - 86 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-2368
SELECT + COUNT ( * ) - - 86 FROM tab1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( + 84 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + 84 ) FROM tab2
----
NULL

query I rowsort
SELECT col0 * - + col2 - + - col1 * + 1 AS col1 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT ALL + col0 + 59 * - 20 FROM tab2
----
-1105
-1116
-1134

query I rowsort
SELECT - 3 - + col2 - - + col1 FROM tab1
----
-24
-57
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - - ( 52 ) col1 FROM tab1
----
-111
-120
-148

query I rowsort
SELECT DISTINCT + 74 - - col0 * - 48 FROM tab1
----
-2374
-4006
-4294

onlyif mysql # aggregate syntax: 
query II rowsort label-2375
SELECT - COUNT( * ) + - COUNT( * ) * 51 + + 74 col0, 6 FROM tab0
----
-82
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2375
SELECT - COUNT ( * ) + - COUNT ( * ) * 51 + + 74 col0, 6 FROM tab0
----
-82
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT col0 + + col1 * + CAST( + - 33 AS SIGNED ) + 0 + - + 75 FROM tab2
----
-1712
-2211
-2552

skipif mysql # not compatible
query I rowsort label-2376
SELECT col0 + + col1 * + CAST ( + - 33 AS INTEGER ) + 0 + - + 75 FROM tab2
----
-1712
-2211
-2552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2377
SELECT ALL * FROM tab0 WHERE 97 - + + 44 BETWEEN CAST( NULL AS SIGNED ) * - col2 / col2 * - + col0 AND + + 71
----

skipif mysql # not compatible
query III rowsort label-2377
SELECT ALL * FROM tab0 WHERE 97 - + + 44 BETWEEN CAST ( NULL AS INTEGER ) * - col2 / col2 * - + col0 AND + + 71
----

query II rowsort
SELECT - 7 * + + col2 * + col2 + - 4, col2 FROM tab2
----
-11204
40
-23552
58
-3707
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 4 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col0 * + col0 - + 51
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 * + col0 + col1 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col0 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2383
SELECT + SUM( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT + SUM ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT 7 DIV + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2385
SELECT 7 / + COUNT ( * ) FROM tab1
----
2

query II rowsort
SELECT col1, col1 + + + 41 * + + col2 + - col1 AS col2 FROM tab1
----
14
3936
47
2788
5
2419

query II rowsort
SELECT DISTINCT + - col2, + col0 AS col2 FROM tab2 cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT + col1 * + + ( - + 77 ) AS col1 FROM tab1 AS cor0
----
-1078
-3619
-385

query I rowsort
SELECT + col1 * - + col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT + + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT + + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 + + col2
----

query I rowsort
SELECT - 92 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-92
-92
-92

query II rowsort
SELECT DISTINCT + col2, - 70 + + - col0 FROM tab0
----
10
-157
47
-85
99
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT - 86 / + - SUM( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - 86 / + - SUM ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col2 + - 33 + + + col2 AS col0 FROM tab1 AS cor0
----
103
159
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT - + COUNT( * ) AS col1, + COUNT( * ) FROM tab0 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2397
SELECT - + COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 cor0
----
-3
3

query I rowsort
SELECT ALL col1 * 2 * - - 90 + col2 FROM tab2
----
12118
13900
9203

query I rowsort
SELECT ALL - 57 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL + + 48 * + 70 AS col1 FROM tab2 AS cor0
----
3360
3360
3360

query II rowsort
SELECT - col0 + + col1, - col1 AS col1 FROM tab0 AS cor0
----
-66
-21
-96
-1
66
-81

query I rowsort
SELECT ALL + col2 + 41 + + col1 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2, col2, + 84 * + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2404
SELECT AVG ( - ( + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) ) ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT AVG ( - ( + CAST ( - CAST ( NULL AS REAL ) AS REAL ) ) ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 72 + - 0 col2 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT - 53 + - - col1 FROM tab1 AS cor0
----
-39
-48
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2407
SELECT ALL CAST( NULL AS DECIMAL ) * 43 + - ( - col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL CAST ( NULL AS REAL ) * 43 + - ( - col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 97 * + col0 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2409
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) * + col1 + col1, 33 )
----

skipif mysql # not compatible
query III rowsort label-2409
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) * + col1 + col1, 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT DISTINCT CAST( + col2 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * + 57 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT DISTINCT col2 - + + col1 AS col2 FROM tab1
----
21
54
82

query I rowsort
SELECT 83 - col0 AS col0 FROM tab0 AS cor0
----
-14
-4
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL - - SUM( - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL - - SUM ( - col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT COUNT( * ) AS col2, + 38 FROM tab0 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-2415
SELECT COUNT ( * ) AS col2, + 38 FROM tab0 AS cor0
----
3
38

query I rowsort
SELECT ALL + + ( - 72 ) AS col0 FROM tab0 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT + + ( COUNT( * ) ) * 71 AS col2 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-2417
SELECT + + ( COUNT ( * ) ) * 71 AS col2 FROM tab2 cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - + SUM( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT - + SUM ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2419
SELECT DISTINCT + SUM( - - col2 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT + SUM ( - - col2 ) / + COUNT ( * ) FROM tab0 AS cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT ALL - col2 DIV + - 74 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL - col2 / + - 74 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + + col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT MAX( DISTINCT + ( - + col2 ) ) AS col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT MAX ( DISTINCT + ( - + col2 ) ) AS col2 FROM tab2 cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT col1 DIV + + 42 + - col0 + 16 col0 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) * - col0 IS NULL
----
-71
-81
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2423
SELECT col1 / + + 42 + - col0 + 16 col0 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) * - col0 IS NULL
----
-71
-81
2

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - 53 AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT col1 DIV - + 48 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2426
SELECT col1 / - + 48 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT col1 * col1 * + ( 4 ) FROM tab0
----
1764
26244
4

query I rowsort
SELECT - col1 + col2 * + - col2 - - + col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + + col2 + 80 AS col0 FROM tab1 cor0
----
139
148
176

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) * ( + + 55 ) * + - COUNT( * ) - - MIN( - 19 ) / - 66 - - + 26 AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN + + 53 * - 30 AND NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2430
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) * ( + + 55 ) * + - COUNT ( * ) - - MIN ( - 19 ) / - 66 - - + 26 AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN + + 53 * - 30 AND NULL
----
0
NULL

query I rowsort
SELECT ALL col0 * 5 AS col2 FROM tab1
----
255
425
455

query II rowsort
SELECT col1, + 54 FROM tab1
----
14
54
47
54
5
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT SUM( ALL + + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2433
SELECT SUM ( ALL + + col0 ) FROM tab1
----
227

query I rowsort
SELECT DISTINCT + - ( 76 ) FROM tab2 cor0
----
-76

query II rowsort
SELECT - col0 AS col0, 20 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col2, - col0, - col0 * - col0 * - + 57, + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT ALL - 25 col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2436
SELECT ALL - 25 col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT DISTINCT + + COUNT( * ) + + 84 AS col1 FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT + + COUNT ( * ) + + 84 AS col1 FROM tab0 cor0
----
87

query I rowsort
SELECT + col1 * col2 - col1 AS col0 FROM tab1 AS cor0
----
1330
290
3149

query II rowsort
SELECT ALL - col2 AS col2, - 45 FROM tab0 AS cor0
----
-10
-45
-47
-45
-99
-45

query I rowsort
SELECT + + 95 - + 59 AS col1 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT 3 + - + col2 AS col0 FROM tab0 cor0
----
-44
-7
-96

query I rowsort
SELECT - col1 - col2 + + col0 * + col1 + - col0 * col0 FROM tab0 AS cor0
----
-5773
-9412
862

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT - col2 + 40 DIV + col0 + - col1 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-2444
SELECT - col2 + 40 / + col0 + - col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT 71 + + - col0 FROM tab0
----
-16
-26
56

query I rowsort
SELECT ALL col2 * - 4 - 37 FROM tab1
----
-273
-309
-421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2447
SELECT MIN( DISTINCT - + col2 ) + CAST( NULL AS SIGNED ), MIN( ALL + - 61 ) AS col2 FROM tab1
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-2447
SELECT MIN ( DISTINCT - + col2 ) + CAST ( NULL AS INTEGER ), MIN ( ALL + - 61 ) AS col2 FROM tab1
----
NULL
-61

query I rowsort
SELECT DISTINCT 13 + - 73 * - col1 * + col1 * - - col1 FROM tab1
----
200325
7579092
9138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + + - col2 col1 FROM tab1
----
-27
1
10

query I rowsort
SELECT ALL - 9 FROM tab2 WHERE ( + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 34 * + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 + - col1 * 71 / - + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + MIN( ( 93 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT + MIN ( ( 93 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT + - 60 * + - COUNT( * ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-2454
SELECT + - 60 * + - COUNT ( * ) FROM tab0 AS cor0
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2455
SELECT ALL CAST( NULL AS SIGNED ), MAX( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-2455
SELECT ALL CAST ( NULL AS INTEGER ), MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
96

query I rowsort
SELECT - + ( - 15 ) FROM tab0 cor0
----
15
15
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT DISTINCT - 76 AS col0, - COUNT( * ) FROM tab0 cor0
----
-76
-3

skipif mysql # not compatible
query II rowsort label-2458
SELECT DISTINCT - 76 AS col0, - COUNT ( * ) FROM tab0 cor0
----
-76
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL + 41 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + 41 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + 91 * + SUM( + col2 ) FROM tab0 AS cor0
----
14196

skipif mysql # not compatible
query I rowsort label-2460
SELECT + 91 * + SUM ( + col2 ) FROM tab0 AS cor0
----
14196

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT - - MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2461
SELECT - - MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-2462
SELECT 51, ( 22 ) * - 69 * + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
51
-1518
51
-1518
51
-1518

skipif mysql # not compatible
query II rowsort label-2462
SELECT 51, ( 22 ) * - 69 * + col0 / col0 AS col1 FROM tab0 AS cor0
----
51
-1518
51
-1518
51
-1518

query I rowsort
SELECT - col1 + col2 + col1 * ( + col2 ) FROM tab2 AS cor0
----
1145
3043
3877

query I rowsort
SELECT ALL - col0 + 80 AS col0 FROM tab1 AS cor0
----
-11
-5
29

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 12 <> NULL
----

query I rowsort
SELECT DISTINCT ( 92 ) + ( + col1 ) AS col1 FROM tab1
----
106
139
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2468
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 * col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 * col2 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2469
SELECT DISTINCT * FROM tab0 WHERE + CAST( + col2 AS DECIMAL ) + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2469
SELECT DISTINCT * FROM tab0 WHERE + CAST ( + col2 AS REAL ) + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + - col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT + + CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2471
SELECT + + CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT - - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2472
SELECT - - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + COUNT( * ) * ( - ( + - MIN( ALL + col2 ) ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-2473
SELECT + COUNT ( * ) * ( - ( + - MIN ( ALL + col2 ) ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
30

query I rowsort
SELECT + 10 + - col0 FROM tab2
----
-36
-54
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT - SUM( ALL 84 ) FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - SUM ( ALL 84 ) FROM tab0 AS cor0
----
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2477
SELECT + COUNT( * ) * + - COUNT( * ) DIV - MIN( ALL - + col2 ) + + 46 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2477
SELECT + COUNT ( * ) * + - COUNT ( * ) / - MIN ( ALL - + col2 ) + + 46 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + - + 5 col0 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT - + 32 + + - col0 AS col1 FROM tab1 AS cor0
----
-117
-123
-83

query I rowsort
SELECT DISTINCT 42 - + 69 * - ( 49 ) * + - col1 * - 98 AS col0 FROM tab2 AS cor0
----
16898280
22199688
25513068

query I rowsort
SELECT - + ( - col1 ) AS col1 FROM tab2 WHERE NOT - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT - CAST( + col0 AS SIGNED ) + 57 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2482
SELECT - CAST ( + col0 AS INTEGER ) + 57 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT MIN( - col2 ) * + - 88 - - MAX( - col0 ) FROM tab1
----
8397

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT MIN ( - col2 ) * + - 88 - - MAX ( - col0 ) FROM tab1
----
8397

query II rowsort
SELECT + 99, col2 FROM tab2
----
99
23
99
40
99
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 89 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT + 23 * + + ( - col1 ) FROM tab2 AS cor0
----
-1173
-1541
-1771

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2488
SELECT - CAST( NULL AS DECIMAL ) / 67 * - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT - CAST ( NULL AS REAL ) / 67 * - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 - - + 59 = - 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col1 * - col1 + - + col0 * - col1 * + 65 IS NULL )
----

query II rowsort
SELECT DISTINCT + 30, col2 FROM tab2 WHERE NOT NULL >= + - col2 - 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - - 45 ) + + 77 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ALL + MAX( - + 55 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + MAX ( - + 55 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

query I rowsort
SELECT + col0 * - + col1 AS col2 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - - 18 + - - 86 - col0 + + ( + col0 ) * + ( + - col2 ) + 94 FROM tab1 AS cor0
----
-4749
-4902
-6081

query I rowsort
SELECT col2 + + 99 + col2 * + col0 FROM tab0 AS cor0 WHERE NOT NULL >= 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT DISTINCT - col1 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT - col1 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 + ( - col0 ) AS col2 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 73
----

query I rowsort
SELECT ALL + 18 + col1 AS col1 FROM tab2
----
69
85
95

query II rowsort
SELECT + col1 * 79 * - - col0 AS col2, + col0 FROM tab2
----
185334
46
389312
64
396975
75

query I rowsort
SELECT + 19 * + + col2 FROM tab0
----
1881
190
893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 22 col1 FROM tab1
----
-1122
-1870
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-2505
SELECT 80 DIV col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2505
SELECT 80 / col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2506
SELECT DISTINCT + 54, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2506
SELECT DISTINCT + 54, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
54
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col1 FROM tab0
----
84
84
84

query I rowsort
SELECT + ( - 36 ) AS col0 FROM tab0 AS cor0 WHERE - col1 < NULL
----

query I rowsort
SELECT ALL - - col2 * 12 FROM tab2 cor0
----
276
480
696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2510
SELECT - - col2 + - col2 * + CAST( NULL AS SIGNED ), ( 71 ) col1 FROM tab1 AS cor0
----
NULL
71
NULL
71
NULL
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2510
SELECT - - col2 + - col2 * + CAST ( NULL AS INTEGER ), ( 71 ) col1 FROM tab1 AS cor0
----
NULL
71
NULL
71
NULL
71

query I rowsort
SELECT ALL col1 * + col1 + + col1 AS col1 FROM tab1 AS cor0 WHERE col1 NOT IN ( - ( + 88 ) )
----
210
2256
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN 7 + col1 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2513
SELECT - ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - MAX( DISTINCT - - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2514
SELECT - MAX ( DISTINCT - - col1 ) AS col0 FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 59 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT DISTINCT + 50 - - ( - col1 ) DIV - 80 * 44 FROM tab1 cor0
----
50

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT + 50 - - ( - col1 ) / - 80 * 44 FROM tab1 cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2517
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2517
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( ( + - col0 ) ) AS col2 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + col2 AS col1, ( - col1 ) * - - col0 FROM tab0
----
10
-1827
47
-1215
99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT CAST( NULL AS SIGNED ) / col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT CAST ( NULL AS INTEGER ) / col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT MAX( DISTINCT + col1 ) * 45 AS col1 FROM tab2
----
3465

skipif mysql # not compatible
query I rowsort label-2521
SELECT MAX ( DISTINCT + col1 ) * 45 AS col1 FROM tab2
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT - SUM( ALL - - 60 ) col1 FROM tab2, tab0 AS cor0
----
-540

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2522
SELECT DISTINCT - SUM ( ALL - - 60 ) col1 FROM tab2, tab0 AS cor0
----
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2523
SELECT - COUNT( DISTINCT ( + CAST( 43 AS SIGNED ) ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2523
SELECT - COUNT ( DISTINCT ( + CAST ( 43 AS INTEGER ) ) ) FROM tab1
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = + 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL + MIN( + + col2 ) AS col2 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL + MIN ( + + col2 ) AS col2 FROM tab0 cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 15 * + 3 AS col0 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT - col1 * ( col0 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT - col1 * ( col0 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
33

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - - 37 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 6 * ( + + 70 ) FROM tab1 AS cor0
----
420

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT 68 + + MIN( col2 ) col0 FROM tab1 AS cor0
----
127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2533
SELECT 68 + + MIN ( col2 ) col0 FROM tab1 AS cor0
----
127

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT - col0 > col0 * - col2 - - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL + COUNT( ( ( col0 ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL + COUNT ( ( ( col0 ) ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL + COUNT( * ) + COUNT( col1 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + COUNT ( * ) + COUNT ( col1 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - col1 + + - col1 FROM tab1 AS cor0
----
-10
-28
-94

query II rowsort
SELECT ALL + - col2 AS col0, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + ( - - col0 ) + + col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT col2 + - 18 FROM tab2
----
22
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT SUM( + - col0 ) + - 94 FROM tab0
----
-293

skipif mysql # not compatible
query I rowsort label-2541
SELECT SUM ( + - col0 ) + - 94 FROM tab0
----
-293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 + + - col2 * - col1 col0 FROM tab2
----
1270
3177
3983

onlyif mysql # aggregate syntax: 
query II rowsort label-2543
SELECT + SUM( - - 49 ) AS col1, - 40 AS col2 FROM tab0
----
147
-40

skipif mysql # not compatible
query II rowsort label-2543
SELECT + SUM ( - - 49 ) AS col1, - 40 AS col2 FROM tab0
----
147
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL MIN( DISTINCT - col0 ) FROM tab1 WHERE NOT - - 9 * + 79 * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL MIN ( DISTINCT - col0 ) FROM tab1 WHERE NOT - - 9 * + 79 * + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL + 31 + + COUNT( - col2 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + 31 + + COUNT ( - col2 ) FROM tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT + 91 * - 49 * - SUM( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
539539

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT + 91 * - 49 * - SUM ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
539539

query I rowsort
SELECT - 5 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT col0 * CAST( NULL AS SIGNED ) / + - 7 / 97 - + 75 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT col0 * CAST ( NULL AS INTEGER ) / + - 7 / 97 - + 75 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 15 * - col0 - + col1 + + col2 * + - 84 + + col0 FROM tab0 AS cor0
----
-2079
-4239
-9675

query II rowsort
SELECT DISTINCT + 74 * - col0 + 54 + - col2 * + col2 * - - col2 AS col0, ( - col1 ) AS col1 FROM tab1
----
-211615
-5
-321112
-47
-888456
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT - 41 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - COUNT( + + 78 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2553
SELECT - COUNT ( + + 78 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 - - + 90 - - 88 * 89 * - + col2 + - 51 col0 FROM tab2
----
-180051
-313195
-454171

query II rowsort
SELECT DISTINCT - + col2, 84 AS col1 FROM tab0 AS cor0 WHERE + col2 * - + col1 <> + ( - col0 )
----
-10
84
-47
84
-99
84

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> col0
----
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 59 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT - col2 DIV 99 * + + col1 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2559
SELECT - col2 / 99 * + + col1 + - col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT ALL col1 DIV 40 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL col1 / 40 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2561
SELECT ALL col2, + CAST( + - 95 AS SIGNED ) FROM tab2 AS cor0
----
23
-95
40
-95
58
-95

skipif mysql # not compatible
query II rowsort label-2561
SELECT ALL col2, + CAST ( + - 95 AS INTEGER ) FROM tab2 AS cor0
----
23
-95
40
-95
58
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col0 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + 3
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 / col2 = 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT SUM( ALL + + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT SUM ( ALL + + col2 ) FROM tab2
----
121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT col2 * - 14 FROM tab0
----
-1386
-140
-658

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + 26 + - - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT ( - ( + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT ( - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT - SUM( DISTINCT CAST( + 1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2570
SELECT - SUM ( DISTINCT CAST ( + 1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT ALL + - col0 DIV - ( col0 ) FROM tab2 AS cor0 WHERE + 83 + - + 50 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL + - col0 / - ( col0 ) FROM tab2 AS cor0 WHERE + 83 + - + 50 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT MAX( + 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2572
SELECT MAX ( + 5 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT COUNT( * ) + + + 81 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2573
SELECT COUNT ( * ) + + + 81 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT 75 * COUNT( * ) AS col1 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-2574
SELECT 75 * COUNT ( * ) AS col1 FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT - 9 + - COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - 9 + - COUNT ( * ) FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT COUNT( * ) * 87 AS col1 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2576
SELECT COUNT ( * ) * 87 AS col1 FROM tab0 AS cor0
----
261

query I rowsort
SELECT DISTINCT + + 24 + col0 FROM tab2 AS cor0
----
70
88
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 77 col0 FROM tab2 AS cor0
----
19
37
54

query I rowsort
SELECT ALL + + col1 * + 77 FROM tab0 cor0
----
1617
6237
77

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT - 93 * col2 - + - 83 DIV - col1 FROM tab2
----
-2140
-3721
-5395

skipif mysql # not compatible
query I rowsort label-2581
SELECT - 93 * col2 - + - 83 / - col1 FROM tab2
----
-2140
-3721
-5395

query I rowsort
SELECT 3 + col1 FROM tab0
----
24
4
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL MAX( col2 ) - - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL MAX ( col2 ) - - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - ( - COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - ( - COUNT ( * ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL COUNT( * ) * + MAX( + + col0 ) AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL COUNT ( * ) * + MAX ( + + col0 ) AS col0 FROM tab1
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT - 87 + - CAST( NULL AS SIGNED ) / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT - 87 + - CAST ( NULL AS INTEGER ) / - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 88 * + col0 * + + col0 * - col0 FROM tab0 AS cor0
----
-297000
-57948264
-80315224

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT DISTINCT - COUNT( + - 79 ) + + MIN( - col0 ) col0 FROM tab0 cor0
----
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2589
SELECT DISTINCT - COUNT ( + - 79 ) + + MIN ( - col0 ) col0 FROM tab0 cor0
----
-100

query I rowsort
SELECT + - 92 * - - col2 AS col0 FROM tab0 AS cor0
----
-4324
-9108
-920

query III rowsort
SELECT * FROM tab2 WHERE + 76 >= + - 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 10 * - - col0 * + - 79 AS col0 FROM tab1 AS cor0
----
40290
67150
71890

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2594
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT + - COUNT( DISTINCT - 84 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT + - COUNT ( DISTINCT - 84 ) AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2597
SELECT ALL 20 DIV col2 * ( - CAST( + col0 AS SIGNED ) ) + col2 + - - ( + col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
-164
47
99

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL 20 / col2 * ( - CAST ( + col0 AS INTEGER ) ) + col2 + - - ( + col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
-164
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT + - 37 * COUNT( * ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2598
SELECT + - 37 * COUNT ( * ) FROM tab1 AS cor0
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 57 ) col1 FROM tab2 cor0
----
57
57
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col2 ) ) * - - col1 <> - col1
----

query I rowsort
SELECT ALL + ( + + 22 ) AS col0 FROM tab2
----
22
22
22

query I rowsort
SELECT ALL - 6 * - col0 FROM tab2
----
276
384
450

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 - + 26 + - col0 * col0 BETWEEN NULL AND - col0 + + 8
----

query I rowsort
SELECT DISTINCT - col2 * + 7 FROM tab1
----
-413
-476
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT + MIN( + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + MIN ( + col1 ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL - COUNT( DISTINCT - 41 ) FROM tab2 WHERE 81 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL - COUNT ( DISTINCT - 41 ) FROM tab2 WHERE 81 IS NOT NULL
----
-1

query III rowsort
SELECT * FROM tab2 WHERE col1 <= + col0 * + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT - + SUM( 90 ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

skipif mysql # not compatible
query I rowsort label-2608
SELECT - + SUM ( 90 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2609
SELECT DISTINCT - - col0 AS col2, ( CAST( - 80 AS SIGNED ) ) / + 39 FROM tab1 WHERE NOT NULL > - col1
----

skipif mysql # not compatible
query II rowsort label-2609
SELECT DISTINCT - - col0 AS col2, ( CAST ( - 80 AS INTEGER ) ) / + 39 FROM tab1 WHERE NOT NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT + COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2610
SELECT + COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT + + col0 * 54 + 69 FROM tab2 AS cor0
----
2553
3525
4119

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL col1 + - - CAST( + ( - col2 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL col1 + - - CAST ( + ( - col2 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT - col1 * col2 + - col1 * - + ( 56 ) FROM tab0 AS cor0
----
-43
729
966

query I rowsort
SELECT - col1 * + col2 + - + col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT - + 9 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2616
SELECT - + 9 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - col1 + - 18 * 32 + - - col2 + 22 FROM tab0 AS cor0
----
-456
-565
-588

query I rowsort
SELECT - + 86 FROM tab0 WHERE NULL <= col1 * - + col0 - col1
----

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2620
SELECT ALL + COUNT( - col0 ) AS col1 FROM tab1 WHERE + + 89 NOT BETWEEN NULL AND CAST( - col1 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL + COUNT ( - col0 ) AS col1 FROM tab1 WHERE + + 89 NOT BETWEEN NULL AND CAST ( - col1 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT DISTINCT + COUNT( * ) - 73 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT + COUNT ( * ) - 73 FROM tab2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2622
SELECT + CAST( ( + + col2 ) AS SIGNED ) AS col1, col1 * + col2 FROM tab2
----
23
1173
40
3080
58
3886

skipif mysql # not compatible
query II rowsort label-2622
SELECT + CAST ( ( + + col2 ) AS INTEGER ) AS col1, col1 * + col2 FROM tab2
----
23
1173
40
3080
58
3886

query I rowsort
SELECT col2 * ( - - col1 ) - - + col0 + - + ( col1 ) FROM tab1
----
1381
3240
375

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL + 87 - COUNT( * ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + 87 - COUNT ( * ) FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + COUNT( ALL + 59 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + COUNT ( ALL + 59 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE - - col1 <> col0
----
-10
-47
-99

query I rowsort
SELECT + ( + 86 ) AS col0 FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT + - 95 * + + col1 * + ( 34 ) FROM tab0 AS cor0
----
-261630
-3230
-67830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT + CAST( + ( - + 65 ) AS SIGNED ) FROM tab1 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-2629
SELECT + CAST ( + ( - + 65 ) AS INTEGER ) FROM tab1 AS cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 92 ) col2 FROM tab0 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 5 * 15 col1 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab0 AS cor0
----
-56

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + col1 ) <= + col0
----

query I rowsort
SELECT DISTINCT - 46 * - col0 FROM tab1
----
2346
3910
4186

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL NOT BETWEEN 66 + 29 * + 18 AND + col2 * - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT - ( + 36 ) * - - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT - ( + 36 ) * - - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 56 FROM tab2 WHERE NOT - col0 / + - col1 IS NULL
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2639
SELECT - 59, COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
-59
9

skipif mysql # not compatible
query II rowsort label-2639
SELECT - 59, COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
-59
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL + MAX( + + 8 ) AS col1 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL + MAX ( + + 8 ) AS col1 FROM tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT - MIN( ALL - 20 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
20
3

skipif mysql # not compatible
query II rowsort label-2641
SELECT - MIN ( ALL - 20 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
20
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2642
SELECT - CAST( - 45 AS SIGNED ) AS col2, + col1 FROM tab0 AS cor0
----
45
1
45
21
45
81

skipif mysql # not compatible
query II rowsort label-2642
SELECT - CAST ( - 45 AS INTEGER ) AS col2, + col1 FROM tab0 AS cor0
----
45
1
45
21
45
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 0 col1 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 79 + 81 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT DISTINCT col1 DIV - ( - - 42 ) AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT col1 / - ( - - 42 ) AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2646
SELECT - col2 + CAST( + CAST( + CAST( CAST( + + col0 AS SIGNED ) AS SIGNED ) AS SIGNED ) AS SIGNED ) col1 FROM tab1
----
-45
23
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2646
SELECT - col2 + CAST ( + CAST ( + CAST ( CAST ( + + col0 AS INTEGER ) AS INTEGER ) AS INTEGER ) AS INTEGER ) col1 FROM tab1
----
-45
23
26

query II rowsort
SELECT - 61 + + ( + 79 ), + col0 FROM tab1
----
18
51
18
85
18
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL + MIN( + + 3 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + MIN ( + + 3 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - col0 / + 49 <= + 21
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT + + 21 - ( + - 88 ) - + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
108
108
108

skipif mysql # not compatible
query I rowsort label-2651
SELECT + + 21 - ( + - 88 ) - + col1 / + col1 AS col2 FROM tab1 AS cor0
----
108
108
108

query I rowsort
SELECT ALL 73 + col2 FROM tab0 AS cor0
----
120
172
83

query I rowsort
SELECT DISTINCT + col1 - 53 * - 13 AS col1 FROM tab0
----
690
710
770

query I rowsort
SELECT col1 * - ( - - 57 ) * - 4 + - col0 FROM tab1
----
1055
10625
3141

query I rowsort
SELECT col1 + + col2 + 29 FROM tab2
----
103
146
154

onlyif mysql # DIV for integer division: 
query II rowsort label-2656
SELECT 3 + - 13 DIV - + col1 - - - col0 AS col2, + 31 FROM tab2
----
-43
31
-61
31
-72
31

skipif mysql # not compatible
query II rowsort label-2656
SELECT 3 + - 13 / - + col1 - - - col0 AS col2, + 31 FROM tab2
----
-43
31
-61
31
-72
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL + MAX( ALL - - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + MAX ( ALL - - col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT col1 * - col2 + - col1 + col2 FROM tab1
----
-1262
-241
-3175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT - 91 * + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT - 91 * + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 - + 53 AS col1, - ( - 83 ) AS col2 FROM tab0
----
-140
83
-150
83
-68
83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2661
SELECT - col0 FROM tab1 WHERE + CAST( + 44 AS SIGNED ) * + col0 * col2 + - + CAST( NULL AS DECIMAL ) + + - 81 * + - col1 - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2661
SELECT - col0 FROM tab1 WHERE + CAST ( + 44 AS INTEGER ) * + col0 * col2 + - + CAST ( NULL AS REAL ) + + - 81 * + - col1 - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT + - col1 * col2 * + col2 DIV - col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-2662
SELECT + - col1 * col2 * + col2 / - col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL + col1 * + + 84 AS col2 FROM tab2
----
4284
5628
6468

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 26 <> + - 64 * - 39 * - col0 / col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT - MIN( - + col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2665
SELECT - MIN ( - + col1 ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 74 < NULL
----

query I rowsort
SELECT DISTINCT - + col0 * 55 AS col0 FROM tab2 AS cor0
----
-2530
-3520
-4125

onlyif mysql # DIV for integer division: 
query II rowsort label-2668
SELECT + 26, col2 DIV - 31 AS col1 FROM tab2 AS cor0
----
26
-1
26
-1
26
0

skipif mysql # not compatible
query II rowsort label-2668
SELECT + 26, col2 / - 31 AS col1 FROM tab2 AS cor0
----
26
-1
26
-1
26
0

query I rowsort
SELECT + 60 * - 89 AS col0 FROM tab2 cor0
----
-5340
-5340
-5340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT DISTINCT + - MAX( - CAST( col0 AS SIGNED ) ) * - - COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + - MAX ( - CAST ( col0 AS INTEGER ) ) * - - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
135

query II rowsort
SELECT DISTINCT + 20 AS col2, - col1 FROM tab2
----
20
-51
20
-67
20
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL + MIN( ALL - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + MIN ( ALL - col2 ) FROM tab1
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 75 AS col1, 21 FROM tab0
----
75
21
75
21
75
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2675
SELECT 54 AS col1, COUNT( DISTINCT + 3 ) FROM tab2
----
54
1

skipif mysql # not compatible
query II rowsort label-2675
SELECT 54 AS col1, COUNT ( DISTINCT + 3 ) FROM tab2
----
54
1

query II rowsort
SELECT DISTINCT - + col2 + + col2 AS col2, 85 AS col2 FROM tab0 AS cor0
----
0
85

query I rowsort
SELECT ALL - + 76 * - - col2 AS col2 FROM tab1 AS cor0 WHERE + 80 BETWEEN NULL AND col1
----

query I rowsort
SELECT - - 96 AS col1 FROM tab2 AS cor0
----
96
96
96

onlyif mysql # DIV for integer division: 
query II rowsort label-2679
SELECT DISTINCT - col0, - col0 * + ( + col1 ) DIV - - ( + + col1 ) FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

skipif mysql # not compatible
query II rowsort label-2679
SELECT DISTINCT - col0, - col0 * + ( + col1 ) / - - ( + + col1 ) FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT DISTINCT col1 + + 20 FROM tab2
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT - SUM( DISTINCT + ( - - ( + col0 ) ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - SUM ( DISTINCT + ( - - ( + col0 ) ) ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT 55 + - + col2 FROM tab0 cor0
----
-44
45
8

query I rowsort
SELECT DISTINCT + col1 * + col1 - - col0 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL CAST( - 26 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL CAST ( - 26 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL - MIN( - col0 ) - - 5 + - 17 * - MIN( DISTINCT 35 ) FROM tab0
----
697

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - MIN ( - col0 ) - - 5 + - 17 * - MIN ( DISTINCT 35 ) FROM tab0
----
697

query I rowsort
SELECT - 71 FROM tab1 WHERE - 56 IS NOT NULL
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL + COUNT( ALL + - 45 ) FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + COUNT ( ALL + - 45 ) FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT + 54 IS NOT NULL
----

query II rowsort
SELECT col2 AS col1, 88 FROM tab1
----
59
88
68
88
96
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT - - COUNT( * ) * + COUNT( * ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2690
SELECT - - COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 AS cor0
----
9

query II rowsort
SELECT col0, + 37 AS col2 FROM tab0 AS cor0
----
15
37
87
37
97
37

query I rowsort
SELECT - col1 - + 94 AS col1 FROM tab2
----
-145
-161
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + ( COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2693
SELECT + ( COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT - MIN( DISTINCT col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2694
SELECT - MIN ( DISTINCT col0 ) AS col2 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * ( ( col1 ) ) < ( NULL )
----

query I rowsort
SELECT - col0 FROM tab0 WHERE col0 * + 53 < NULL
----

query I rowsort
SELECT ALL - ( 78 ) FROM tab1
----
-78
-78
-78

query I rowsort
SELECT ALL ( 88 ) - col2 FROM tab2
----
30
48
65

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2700
SELECT ALL * FROM tab1 WHERE ( col1 - + ( + ( - CAST( ( col2 ) AS SIGNED ) ) ) * 47 ) < - col0
----

skipif mysql # not compatible
query III rowsort label-2700
SELECT ALL * FROM tab1 WHERE ( col1 - + ( + ( - CAST ( ( col2 ) AS INTEGER ) ) ) * 47 ) < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2701
SELECT - ( - col2 ) * CAST( - col1 AS SIGNED ) AS col2 FROM tab0 WHERE NULL IN ( - col0 * + col1 )
----

skipif mysql # not compatible
query I rowsort label-2701
SELECT - ( - col2 ) * CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 WHERE NULL IN ( - col0 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 44 BETWEEN ( 8 / + col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN 76 AND ( - col2 + + 39 )
----

query I rowsort
SELECT ALL col2 + + 1 * 34 FROM tab1
----
102
130
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT ALL - 80 col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND 43 + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2705
SELECT ALL - 80 col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND 43 + CAST ( - col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN + col0 AND - 49 * - 8 - - ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - 57 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + COUNT( 58 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2709
SELECT + COUNT ( 58 ) col1 FROM tab1
----
3

query I rowsort
SELECT ALL ( 70 ) * - col1 AS col0 FROM tab2
----
-3570
-4690
-5390

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + ( + col0 ) * 14 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 81 ) * + 43 FROM tab1
----
3483

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) IN ( 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT + COUNT( * ) - - 89 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-2715
SELECT + COUNT ( * ) - - 89 FROM tab0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ( + COUNT( DISTINCT col0 ) ) - ( - SUM( ALL col0 ) ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-2716
SELECT ( + COUNT ( DISTINCT col0 ) ) - ( - SUM ( ALL col0 ) ) FROM tab2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - COUNT( * ) - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2717
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT - ( + col2 ) - - CAST( NULL AS SIGNED ) / - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT - ( + col2 ) - - CAST ( NULL AS INTEGER ) / - col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 * - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT ALL - MAX( col0 ) * + CAST( NULL AS SIGNED ) + 99 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - MAX ( col0 ) * + CAST ( NULL AS INTEGER ) + 99 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col1 / + 51 FROM tab0 AS cor0 WHERE - 24 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 65 FROM tab0 cor0
----
-44
-64
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 30 * col1 IS NULL
----

query I rowsort
SELECT ALL 68 + col2 FROM tab2 AS cor0
----
108
126
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT MAX( DISTINCT col1 ) + MIN( + 82 ) AS col2 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-2725
SELECT MAX ( DISTINCT col1 ) + MIN ( + 82 ) AS col2 FROM tab1
----
129

query I rowsort
SELECT ALL 54 * 72 FROM tab2
----
3888
3888
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT COUNT( * ) * + MAX( DISTINCT - col2 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-2727
SELECT COUNT ( * ) * + MAX ( DISTINCT - col2 ) FROM tab2
----
-69

query I rowsort
SELECT ALL + col1 - + col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT + ( COUNT( * ) ) - 9 AS col0 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2729
SELECT + ( COUNT ( * ) ) - 9 AS col0 FROM tab1 cor0
----
-6

query I rowsort
SELECT DISTINCT - 71 * + 58 FROM tab2 cor0
----
-4118

query I rowsort
SELECT DISTINCT + 2 * + col2 AS col1 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT DISTINCT col1 + 7 AS col1 FROM tab1 AS cor0
----
12
21
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - 25 * + col0 - col1 AS col2 FROM tab2 AS cor0
----
1099
1523
1808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) / - CAST( + col2 + 34 AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) / - CAST ( + col2 + 34 AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT SUM( ALL col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT SUM ( ALL col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + - SUM( DISTINCT - ( col0 ) ) AS col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-2738
SELECT + - SUM ( DISTINCT - ( col0 ) ) AS col2 FROM tab2 cor0
----
185

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - - 65 ) FROM tab1
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT - MIN( + - ( + ( + col2 ) ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT - MIN ( + - ( + ( + col2 ) ) ) FROM tab0
----
99

query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab1 WHERE ( col1 + - 4 * + col2 ) IS NOT NULL
----
-16

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( col2 ) AND ( + col1 * col2 )
----

query I rowsort
SELECT ALL col2 * + + 41 AS col1 FROM tab0
----
1927
4059
410

query I rowsort
SELECT ALL + col0 + col0 * - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
-1012
-2496
-4275

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE col1 = ( NULL )
----

query I rowsort
SELECT - 66 * - 20 FROM tab2 AS cor0
----
1320
1320
1320

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2750
SELECT DISTINCT 23, COUNT( - 53 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-2750
SELECT DISTINCT 23, COUNT ( - 53 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + - MIN( ALL 25 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

skipif mysql # not compatible
query I rowsort label-2751
SELECT + - MIN ( ALL 25 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2752
SELECT * FROM tab1 WHERE NOT + 41 BETWEEN col0 AND - CAST( 62 AS SIGNED ) + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2752
SELECT * FROM tab1 WHERE NOT + 41 BETWEEN col0 AND - CAST ( 62 AS INTEGER ) + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - MIN( ALL 71 ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2753
SELECT - MIN ( ALL 71 ) AS col1 FROM tab0 AS cor0
----
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 32 IS NOT NULL
----

query I rowsort
SELECT col1 + 29 AS col1 FROM tab2 AS cor0
----
106
80
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 + + col1 * col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT ALL - 43 + + col2 + + + col0 DIV + col0 FROM tab2
----
-19
-2
16

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL - 43 + + col2 + + + col0 / + col0 FROM tab2
----
-19
-2
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL SUM( ALL - 11 ) * - + MIN( DISTINCT + + 14 ) FROM tab0
----
462

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL SUM ( ALL - 11 ) * - + MIN ( DISTINCT + + 14 ) FROM tab0
----
462

query III rowsort
SELECT * FROM tab1 WHERE NULL = - 44 * - 26 - + 24
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = ( - col1 )
----

query I rowsort
SELECT DISTINCT 12 * + 73 * 64 AS col1 FROM tab0
----
56064

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL + MIN( DISTINCT + 41 ) + - ( 56 ) AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + MIN ( DISTINCT + 41 ) + - ( 56 ) AS col0 FROM tab2
----
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL NOT IN ( - - 36 ) ) OR ( 58 / + 14 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL + - COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 - - - 38 FROM tab1
----
21
30
58

query I rowsort
SELECT DISTINCT - col1 - + ( + 81 ) AS col0 FROM tab0
----
-102
-162
-82

query I rowsort
SELECT 70 + - + col2 FROM tab0
----
-29
23
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT ALL - col1 - - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL - col1 - - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 * - 3 col1 FROM tab0 AS cor0 WHERE NOT ( + 59 * + + col0 ) IS NULL
----
132
132
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2770
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2770
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT DISTINCT col0 * - col0 + - col1 AS col1, 79 FROM tab1 AS cor0
----
-2615
79
-7230
79
-8328
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 41 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col2 * - col1 ) NOT BETWEEN 73 AND ( - + col0 )
----

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab1 cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 * - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT 31 * + COUNT( - + 53 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT 31 * + COUNT ( - + 53 ) FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT COUNT( + 70 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2777
SELECT COUNT ( + 70 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 75 col1 FROM tab1
----
4425
5100
7200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2779
SELECT ALL 85 DIV ( MAX( + 78 ) ) AS col2, COUNT( * ) AS col1 FROM tab0
----
1
3

skipif mysql # not compatible
query II rowsort label-2779
SELECT ALL 85 / ( MAX ( + 78 ) ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2781
SELECT ALL col1, ( - CAST( - col1 AS SIGNED ) ) FROM tab0 cor0
----
1
1
21
21
81
81

skipif mysql # not compatible
query II rowsort label-2781
SELECT ALL col1, ( - CAST ( - col1 AS INTEGER ) ) FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT 0 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT 0 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col2 + - - col0, + col0 FROM tab2
----
104
64
133
75
69
46

query I rowsort
SELECT - col2 + + + col1 + col0 FROM tab2
----
101
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL - 18 * - COUNT( * ) FROM tab1 WHERE ( + 79 - + col2 + 58 - - + col0 * 47 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - 18 * - COUNT ( * ) FROM tab1 WHERE ( + 79 - + col2 + 58 - - + col0 * 47 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2786
SELECT ALL + col2 DIV - 32 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL + col2 / - 32 AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT DISTINCT + SUM( - 41 ) AS col1, MIN( ALL - col2 ) * COUNT( * ) FROM tab0 AS cor0
----
-123
-297

skipif mysql # not compatible
query II rowsort label-2788
SELECT DISTINCT + SUM ( - 41 ) AS col1, MIN ( ALL - col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
-123
-297

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 = ( 29 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT - + 59 + + COUNT( * ) + 67 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - + 59 + + COUNT ( * ) + 67 FROM tab1 AS cor0
----
11

query I rowsort
SELECT - col2 + + col2 - - col2 * 9 AS col0 FROM tab0 cor0 WHERE + 34 > - + 90
----
423
891
90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2792
SELECT ALL * FROM tab2 WHERE + + col0 NOT BETWEEN 79 AND + col0 / + 81 / - - 33 + CAST( NULL AS DECIMAL ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2792
SELECT ALL * FROM tab2 WHERE + + col0 NOT BETWEEN 79 AND + col0 / + 81 / - - 33 + CAST ( NULL AS REAL ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT 63 + CAST( + col0 AS SIGNED ) FROM tab0
----
150
160
78

skipif mysql # not compatible
query I rowsort label-2794
SELECT 63 + CAST ( + col0 AS INTEGER ) FROM tab0
----
150
160
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2795
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT IN ( - col1 / + + CAST( NULL AS SIGNED ), ( + + 55 ) * + col1 + + CAST( NULL AS SIGNED ) * col2 + col1 ) OR NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2795
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT IN ( - col1 / + + CAST ( NULL AS INTEGER ), ( + + 55 ) * + col1 + + CAST ( NULL AS INTEGER ) * col2 + col1 ) OR NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * 94 - + ( - col0 ) FROM tab0
----
-1887
-7599
3

query I rowsort
SELECT ALL 3 + - - col2 FROM tab1
----
62
71
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT - MIN( + - col1 ) + + + 33 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-2798
SELECT - MIN ( + - col1 ) + + + 33 FROM tab0
----
114

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 / col2 < + + col2
----

query I rowsort
SELECT - col0 + + col0 FROM tab0 AS cor0 WHERE + col2 + + col0 - - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + + col0 <> NULL
----

query I rowsort
SELECT ALL col2 + - - col2 AS col0 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT MAX( - 15 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT MAX ( - 15 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT - - col1 * col1 + + + 45 * - + 60 * + 53 * col0 FROM tab2 AS cor0
----
-10728011
-6579999
-9152471

query I rowsort
SELECT + - col2 * - 59 AS col2 FROM tab0 AS cor0
----
2773
5841
590

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 53 > + 91
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - 32 FROM tab0 AS cor0
----
-1504
-3168
-320

query I rowsort
SELECT col1 * + + ( - 8 ) AS col2 FROM tab2 cor0
----
-408
-536
-616

query I rowsort
SELECT DISTINCT + - 28 * + - col0 FROM tab0 AS cor0
----
2436
2716
420

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT DISTINCT + col2 DIV - ( + col0 ) + - - 21 + - 2 * + col1 + col0 DIV + col1 col2 FROM tab2 AS cor0
----
-112
-133
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2810
SELECT DISTINCT + col2 / - ( + col0 ) + - - 21 + - 2 * + col1 + col0 / + col1 col2 FROM tab2 AS cor0
----
-112
-133
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2811
SELECT CAST( col1 AS SIGNED ) DIV + 87 * col2 + 46 + + col2 DIV - - col0 AS col2 FROM tab2 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-2811
SELECT CAST ( col1 AS INTEGER ) / + 87 * col2 + 46 + + col2 / - - col0 AS col2 FROM tab2 AS cor0
----
46
46
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 61 * - col1 - + + col0 - + 22 AND + col2
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + + col0 BETWEEN - ( col2 ) - - col2 AND - - ( - - 6 )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT + COUNT( ALL + - col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2814
SELECT + COUNT ( ALL + - col0 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 66 NOT BETWEEN ( col0 ) / 62 * + - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT col2 DIV - ( col0 ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT col2 / - ( col0 ) FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL - SUM( ALL + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - SUM ( ALL + col1 ) FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - 6 * + - COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2819
SELECT - 6 * + - COUNT ( * ) FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT 5 * 75 * - - MIN( DISTINCT - 31 ) FROM tab0 AS cor0
----
-11625

skipif mysql # not compatible
query I rowsort label-2820
SELECT 5 * 75 * - - MIN ( DISTINCT - 31 ) FROM tab0 AS cor0
----
-11625

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT - ( + MAX( - col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - ( + MAX ( - col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
5

query I rowsort
SELECT 92 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL OR NOT ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT DISTINCT + ( - + 49 ) DIV + - col0 + - 28 AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT + ( - + 49 ) / + - col0 + - 28 AS col0 FROM tab1 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT ALL ( CAST( - col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL ( CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2826
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE CAST( 10 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2826
SELECT - CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE CAST ( 10 AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT ALL col2 * CAST( NULL AS SIGNED ) + - col1 * + ( col1 ) * - - 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + - col1 * + ( col1 ) * - - 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT DISTINCT 57 + col0 DIV + col2 + col0 * col0 FROM tab2 AS cor0
----
2175
4154
5683

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT 57 + col0 / + col2 + col0 * col0 FROM tab2 AS cor0
----
2175
4154
5683

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > 75
----

query I rowsort
SELECT + 27 + col1 FROM tab2 AS cor0
----
104
78
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT 63 + 11 + + 16 + ( - col0 ) * - - col0 * - CAST( NULL AS SIGNED ) * - + 48 * - + 26 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT 63 + 11 + + 16 + ( - col0 ) * - - col0 * - CAST ( NULL AS INTEGER ) * - + 48 * - + 26 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) + + col2 * + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) + + col2 * + + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - 32 NOT IN ( + 61 * + - col2 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT - COUNT( * ) + 31 * - ( + - COUNT( col1 ) ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-2834
SELECT - COUNT ( * ) + 31 * - ( + - COUNT ( col1 ) ) AS col2 FROM tab2
----
90

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 17 * + - col1, col0 * + col1 - + col1 * + 37 col0 FROM tab0
----
-1377
-1782
-17
60
-357
1050

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 - + + col0, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * - 74 + - - col0 col2 FROM tab0 AS cor0
----
-2641
-2651
-2723

query II rowsort
SELECT DISTINCT 92 + 19 AS col1, col1 FROM tab2 AS cor0
----
111
51
111
67
111
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2840
SELECT ALL CAST( + - col0 AS SIGNED ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab1 WHERE NOT + col0 <= + col0
----

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT + col1 * + 72 < + col2
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - MIN( 74 ) AS col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - MIN ( 74 ) AS col2 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT - - 10 * - ( + - 64 ) FROM tab2 AS cor0
----
640
640
640

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL MIN( + 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL MIN ( + 34 ) FROM tab1 AS cor0
----
34

query II rowsort
SELECT DISTINCT - 14 * 30 AS col0, - col0 FROM tab0
----
-420
-15
-420
-87
-420
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT COUNT( ALL col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( - col0 ) + - + 28 col2 FROM tab1 WHERE + col1 IS NULL
----
NULL

query II rowsort
SELECT - col2 + + - col0 AS col0, 75 AS col2 FROM tab0 WHERE NOT + - col2 IS NULL
----
-196
75
-62
75
-97
75

query I rowsort
SELECT ALL - - col1 + + col0 FROM tab0 WHERE - col2 IS NOT NULL
----
108
96
98

query I rowsort
SELECT DISTINCT + 32 * 34 FROM tab2
----
1088

query I rowsort
SELECT + 38 * - + 89 AS col2 FROM tab1
----
-3382
-3382
-3382

query II rowsort
SELECT col0 * - 42, + col2 FROM tab0
----
-3654
10
-4074
99
-630
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT - col1 DIV - col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2854
SELECT - col1 / - col1 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL 93 + - 86 * 87 AS col1 FROM tab1 AS cor0
----
-7389
-7389
-7389

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2856
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 73, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-2856
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 73, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT + 66 + - COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT + 66 + - COUNT ( * ) FROM tab0 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + 91 ) col2 FROM tab2 AS cor0
----
114
131
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2859
SELECT ALL + + 3 + + 81 + + - ( + + 57 ) * col2 + - ( + col0 ) + 48 DIV - + 59 col0 FROM tab2 AS cor0
----
-1273
-2260
-3297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2859
SELECT ALL + + 3 + + 81 + + - ( + + 57 ) * col2 + - ( + col0 ) + 48 / - + 59 col0 FROM tab2 AS cor0
----
-1273
-2260
-3297

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT COUNT( * ) + MIN( col0 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2860
SELECT COUNT ( * ) + MIN ( col0 ) FROM tab1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT - SUM( DISTINCT + 48 ) DIV + - COUNT( * ) FROM tab2 WHERE + col1 IS NOT NULL
----
16

skipif mysql # not compatible
query I rowsort label-2861
SELECT - SUM ( DISTINCT + 48 ) / + - COUNT ( * ) FROM tab2 WHERE + col1 IS NOT NULL
----
16

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 IN ( + col1 + col2, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( 64 * + - 11 + col0 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL MIN( - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL MIN ( - col1 ) FROM tab0 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 + - col0 col0 FROM tab0 AS cor0
----
-109
-27
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL + COUNT( * ) + - 40 * 66 * + - 74 FROM tab0 AS cor0
----
195363

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + COUNT ( * ) + - 40 * 66 * + - 74 FROM tab0 AS cor0
----
195363

query I rowsort
SELECT - col0 - col2 * - col2 FROM tab1 AS cor0
----
3396
4533
9165

query I rowsort
SELECT + - col1 AS col0 FROM tab2 WHERE NOT - 43 * + 60 + col1 >= NULL AND - 72 > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 86 AS col1, + 90 col0 FROM tab0
----
-86
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT 37 + + COUNT( - col2 ) * + 20 AS col0 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-2870
SELECT 37 + + COUNT ( - col2 ) * + 20 AS col0 FROM tab2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT MAX( + col2 ) + - + COUNT( * ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-2871
SELECT MAX ( + col2 ) + - + COUNT ( * ) FROM tab0
----
96

query II rowsort
SELECT ALL col2 AS col1, col1 * + + col2 AS col2 FROM tab0 AS cor0
----
10
210
47
3807
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT DISTINCT - ( - CAST( - col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - ( - CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2874
SELECT ALL col0, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2874
SELECT ALL col0, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + + COUNT( * ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2875
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab2 cor0
----
3

query II rowsort
SELECT ALL - 72, + col0 FROM tab0 AS cor0
----
-72
15
-72
87
-72
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT DISTINCT - - 95 * MAX( - - 36 ) FROM tab1 WHERE + 51 IS NOT NULL
----
3420

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT - - 95 * MAX ( - - 36 ) FROM tab1 WHERE + 51 IS NOT NULL
----
3420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col0 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2880
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 + + + col1, CAST( - - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2880
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 + + + col1, CAST ( - - col1 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col1, col0 col0 FROM tab0 cor0
----
210
87
3807
15
99
97

query II rowsort
SELECT DISTINCT - col2, col2 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * + col2 / + 25 ) <> 37
----

query II rowsort
SELECT DISTINCT 19, + ( - 92 ) AS col2 FROM tab1
----
19
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT - 37 FROM tab2 WHERE NOT ( NOT NULL NOT IN ( CAST( + col1 AS SIGNED ) + + col1 - 77, col0 * + ( - col0 ) / - 65 ) )
----

skipif mysql # not compatible
query I rowsort label-2885
SELECT - 37 FROM tab2 WHERE NOT ( NOT NULL NOT IN ( CAST ( + col1 AS INTEGER ) + + col1 - 77, col0 * + ( - col0 ) / - 65 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 84 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT + - MIN( ALL - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2889
SELECT + - MIN ( ALL - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT + + 40 * + MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT + + 40 * + MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - 46 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT ALL - CAST( NULL AS SIGNED ) * + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - CAST ( NULL AS INTEGER ) * + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + 41 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - 61 + + - col0 AS col1 FROM tab1 AS cor0
----
-105
-141
-98

query I rowsort
SELECT ALL + 76 + + + col0 AS col2 FROM tab0 AS cor0
----
163
173
91

query I rowsort
SELECT col2 * + 19 + - - col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 64 * - - col1 * col1 FROM tab0
----
-28224
-419904
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - COUNT( ALL - ( - + 41 ) ) - - 50 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2898
SELECT - COUNT ( ALL - ( - + 41 ) ) - - 50 FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT - 70 DIV + col0 col2 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2899
SELECT DISTINCT - 70 / + col0 col2 FROM tab2
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2900
SELECT ALL + CAST( NULL AS DECIMAL ) * COUNT( * ) * + + 39 AS col1, - COUNT( * ) col0 FROM tab0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2900
SELECT ALL + CAST ( NULL AS REAL ) * COUNT ( * ) * + + 39 AS col1, - COUNT ( * ) col0 FROM tab0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT COUNT( * ) * - MAX( - col0 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2901
SELECT COUNT ( * ) * - MAX ( - col0 ) FROM tab0 AS cor0
----
45

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 46 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2903
SELECT DISTINCT - col0 DIV ( + + col1 ) AS col0, col2 FROM tab0 AS cor0
----
-4
10
-97
99
0
47

skipif mysql # not compatible
query II rowsort label-2903
SELECT DISTINCT - col0 / ( + + col1 ) AS col0, col2 FROM tab0 AS cor0
----
-4
10
-97
99
0
47

query II rowsort
SELECT ALL col1 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2905
SELECT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT ALL - 32 AS col1, - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32
-23
-32
-40
-32
-58

query II rowsort
SELECT + col0, + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT col0 * - + col1 + col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

query I rowsort
SELECT col1 * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

query II rowsort
SELECT - ( col0 ) AS col2, + col2 + 4 AS col0 FROM tab2 cor0
----
-46
27
-64
44
-75
62

query I rowsort
SELECT ALL + ( 39 ) AS col2 FROM tab0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + 64 * COUNT( + - col1 ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 64 * COUNT ( + - col1 ) FROM tab2
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT DISTINCT + ( + 45 ) AS col1, 5 + COUNT( * ) FROM tab2
----
45
8

skipif mysql # not compatible
query II rowsort label-2913
SELECT DISTINCT + ( + 45 ) AS col1, 5 + COUNT ( * ) FROM tab2
----
45
8

query I rowsort
SELECT ALL + 22 * 53 AS col2 FROM tab2 WHERE NOT col2 * - col1 > col1 + 22 * + col2
----
1166
1166
1166

query I rowsort
SELECT DISTINCT + 4 + col2 FROM tab1
----
100
63
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT + 39 * + col0 - + - 5 + + col0 DIV + ( + + 60 ) col0 FROM tab2 cor0
----
1799
2502
2931

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2916
SELECT + 39 * + col0 - + - 5 + + col0 / + ( + + 60 ) col0 FROM tab2 cor0
----
1799
2502
2931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT DISTINCT col0 * - ( - CAST( - - col2 AS SIGNED ) ) FROM tab0 cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT col0 * - ( - CAST ( - - col2 AS INTEGER ) ) FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT DISTINCT - col0 * + CAST( - + col0 AS SIGNED ) * + 81 + col1 - col0 + + 48 * + 66 AS col1 FROM tab2 AS cor0
----
174569
334957
458785

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT - col0 * + CAST ( - + col0 AS INTEGER ) * + 81 + col1 - col0 + + 48 * + 66 AS col1 FROM tab2 AS cor0
----
174569
334957
458785

query II rowsort
SELECT ALL + col2 + - + 13 AS col2, - col2 * - - 64 AS col1 FROM tab1 AS cor0
----
46
-3776
55
-4352
83
-6144

query II rowsort
SELECT ALL col2 AS col2, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + MAX( col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2921
SELECT + MAX ( col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 53 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 8, + col0 col2 FROM tab1 AS cor0
----
-8
51
-8
85
-8
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT col0 - - col1 + - col2 + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-2925
SELECT col0 - - col1 + - col2 + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col2 + - - ( - 6 ) * + 87 + - - col0 * col1 col1 FROM tab1 AS cor0
----
1536
198
6951

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT COUNT( * ) + + 16 AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT COUNT ( * ) + + 16 AS col0 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT DISTINCT SUM( ALL + col1 ) - + COUNT( DISTINCT + col2 ) + - 97 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT SUM ( ALL + col1 ) - + COUNT ( DISTINCT + col2 ) + - 97 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col0 * + ( 27 ) AS col2 FROM tab0
----
2349
2619
405

query II rowsort
SELECT - 3 * + + col0 AS col0, col0 AS col0 FROM tab2
----
-138
46
-192
64
-225
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2931
SELECT DISTINCT col2 DIV CAST( + + col0 AS SIGNED ) col1 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2931
SELECT DISTINCT col2 / CAST ( + + col0 AS INTEGER ) col1 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL + 9 * - + CAST( NULL AS SIGNED ) / - 12 * - - AVG ( DISTINCT + col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + 9 * - + CAST ( NULL AS INTEGER ) / - 12 * - - AVG ( DISTINCT + col0 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( + 69 ) AS col1 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT ALL + col2 * - + col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT CAST( NULL AS SIGNED ) / - 19 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2935
SELECT CAST ( NULL AS INTEGER ) / - 19 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - 32 AS col1 FROM tab0 AS cor0
----
2784
3104
480

query I rowsort
SELECT 42 * 18 FROM tab1
----
756
756
756

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT MAX( 54 ) col0 FROM tab1 WHERE NOT 95 NOT BETWEEN 20 AND + - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2938
SELECT MAX ( 54 ) col0 FROM tab1 WHERE NOT 95 NOT BETWEEN 20 AND + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT + + COUNT( ALL + + col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT + + COUNT ( ALL + + col1 ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 28 * - 81 IS NOT NULL
----

query I rowsort
SELECT ALL + - ( col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - + 56 AS col2, + col2 AS col2 FROM tab2 cor0 WHERE - col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 69 * + + col1 * + 46 * + 15 - + - 16 IS NULL
----

query II rowsort
SELECT col0 * col0 + + 49 + 22 + - 25 * 76 + col0 * + + 59, col2 FROM tab0 AS cor0
----
-719
47
10873
10
13303
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT - COUNT( * ) + + 49 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2946
SELECT - COUNT ( * ) + + 49 FROM tab0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 84 * 55 * col2 col0 FROM tab0
----
3257100
4019400
44365860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, + 55 * + col1 col0 FROM tab2
----
51
2805
67
3685
77
4235

query I rowsort
SELECT + col0 * - ( 24 ) FROM tab2
----
-1104
-1536
-1800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 66 IS NULL
----

query I rowsort
SELECT DISTINCT 99 + - 54 AS col1 FROM tab1 AS cor0
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-2952
SELECT col2, 72 DIV - col0 AS col2 FROM tab1 AS cor0
----
59
0
68
0
96
-1

skipif mysql # not compatible
query II rowsort label-2952
SELECT col2, 72 / - col0 AS col2 FROM tab1 AS cor0
----
59
0
68
0
96
-1

query I rowsort
SELECT ALL + 87 * - col0 + + + 59 AS col0 FROM tab0 AS cor0
----
-1246
-7510
-8380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2954
SELECT CAST( NULL AS SIGNED ) AS col2, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-2954
SELECT CAST ( NULL AS INTEGER ) AS col2, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT DISTINCT ( - col1 ) + - + col0 + col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - 70 + + + 13 AS col2 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL - - 42 FROM tab1 WHERE - col2 <> + - 85
----
42
42
42

query I rowsort
SELECT DISTINCT col0 * + col1 - col2 FROM tab0
----
-2
1168
1817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT + col2 / CAST( NULL AS SIGNED ) + - - 3 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-2959
SELECT + col2 / CAST ( NULL AS INTEGER ) + - - 3 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 77 * + 89 FROM tab1 AS cor0
----
6853
6853
6853

onlyif mysql # DIV for integer division: 
query I rowsort label-2961
SELECT - col1 DIV + col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2961
SELECT - col1 / + col0 AS col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 45 + + col1 < - 12 * - col2
----

query I rowsort
SELECT + col2 * + - 50 AS col1 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query II rowsort label-2964
SELECT ALL COUNT( * ), COUNT( * ) * 67 AS col0 FROM tab0
----
3
201

skipif mysql # not compatible
query II rowsort label-2964
SELECT ALL COUNT ( * ), COUNT ( * ) * 67 AS col0 FROM tab0
----
3
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL COUNT( - + 92 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL COUNT ( - + 92 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2966
SELECT DISTINCT * FROM tab2 WHERE + 54 + + ( - ( CAST( + - col0 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2966
SELECT DISTINCT * FROM tab2 WHERE + 54 + + ( - ( CAST ( + - col0 AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT + ( + + 94 ) AS col0 FROM tab0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2968
SELECT DISTINCT + - col2 * 12 + col2, col2 - - 64 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-253
NULL
-440
NULL
-638
NULL

skipif mysql # not compatible
query II rowsort label-2968
SELECT DISTINCT + - col2 * 12 + col2, col2 - - 64 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-253
NULL
-440
NULL
-638
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT - - CAST( + + COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT + 44 <> + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT - - CAST ( + + COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT + 44 <> + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL - COUNT( col1 ) * + 41 * + - ( ( SUM( ALL + col1 ) ) ) FROM tab0
----
12669

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - COUNT ( col1 ) * + 41 * + - ( ( SUM ( ALL + col1 ) ) ) FROM tab0
----
12669

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 46 * - - 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - 11 AS col2 FROM tab0
----
1089
110
517

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2973
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) NOT BETWEEN CAST( col2 AS DECIMAL ) AND - + col1
----

skipif mysql # not compatible
query III rowsort label-2973
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) NOT BETWEEN CAST ( col2 AS REAL ) AND - + col1
----

query I rowsort
SELECT DISTINCT - 62 + - - col2 + 27 * - - col1 AS col2 FROM tab0 AS cor0
----
2172
515
64

query I rowsort
SELECT ALL - + 52 + + col0 + col1 FROM tab2 cor0
----
45
89
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - - col1 + + col0 * + + col2 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT MAX( + + 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT MAX ( + + 34 ) FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2979
SELECT ALL * FROM tab0 WHERE NOT + - ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2979
SELECT ALL * FROM tab0 WHERE NOT + - ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT - 40 * + + 1 + + COUNT( * ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT - 40 * + + 1 + + COUNT ( * ) FROM tab0
----
-37

query II rowsort
SELECT ALL - col1, col2 AS col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT - col1 * - col1 + + + col2 + + col2 AS col0 FROM tab2
----
2647
4605
6009

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2984
SELECT + + col1 AS col2 FROM tab1 WHERE + CAST( + + col0 AS SIGNED ) + + 20 DIV 54 * + - 88 * + 19 < col0
----

skipif mysql # not compatible
query I rowsort label-2984
SELECT + + col1 AS col2 FROM tab1 WHERE + CAST ( + + col0 AS INTEGER ) + + 20 / 54 * + - 88 * + 19 < col0
----

query I rowsort
SELECT ALL + 11 + col0 AS col1 FROM tab0 AS cor0
----
108
26
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL + MIN( ALL col2 ) AS col2 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + MIN ( ALL col2 ) AS col2 FROM tab0 cor0
----
10

query I rowsort
SELECT DISTINCT col2 + - 5 + 81 AS col0 FROM tab2 AS cor0
----
116
134
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < - - col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2989
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 - - col0 + - col2 AS col1 FROM tab2 AS cor0
----
107
113
114

query I rowsort
SELECT DISTINCT + 7 * + col2 - col2 FROM tab1
----
354
408
576

query I rowsort
SELECT DISTINCT + - 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT + 32 / - CAST( NULL AS SIGNED ) - - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT + 32 / - CAST ( NULL AS INTEGER ) - - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 84 - + col0 NOT BETWEEN col2 * + - col0 AND - 83
----

query I rowsort
SELECT DISTINCT + ( - - 16 ) FROM tab1 cor0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2996
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2996
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT + COUNT( - - ( + col0 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + COUNT ( - - ( + col0 ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT + + MIN( col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2998
SELECT + + MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - ( + 44 ) FROM tab0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + col0 * + 73 FROM tab0
----
1095
6351
7081

query I rowsort
SELECT 34 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT COUNT( * ) col2 FROM tab1 WHERE NOT - + col0 * col1 + 19 > - - 29 + 25
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3002
SELECT COUNT ( * ) col2 FROM tab1 WHERE NOT - + col0 * col1 + 19 > - - 29 + 25
----
3

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT SUM( + + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT SUM ( + + col2 ) AS col2 FROM tab1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT DISTINCT + COUNT( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT + CAST( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) >= - 1
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NOT + CAST ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) >= - 1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 99 + + + 15 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3007
SELECT + col0 DIV 57 * - + col1 FROM tab2 AS cor0
----
-67
-77
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT + col0 / 57 * - + col1 FROM tab2 AS cor0
----
-67
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL COUNT( * ) * - - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL COUNT ( * ) * - - COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT + col1 + + 6 AS col2 FROM tab1 AS cor0
----
11
20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT DISTINCT - SUM( ALL ( - - 20 ) ) + - 90 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT - SUM ( ALL ( - - 20 ) ) + - 90 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT DISTINCT - - col2 + - - 84 FROM tab0 AS cor0
----
131
183
94

query I rowsort
SELECT col0 + col0 * - col0 * - ( + 6 ) FROM tab0 AS cor0
----
1365
45501
56551

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3013
SELECT - CAST( NULL AS DECIMAL ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - CAST ( NULL AS REAL ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + 3 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT + 3 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 26 + + col0 col2 FROM tab0 AS cor0
----
-11
61
71

query I rowsort
SELECT DISTINCT + col2 + - ( - col1 ) * - + col2 * + col1 FROM tab0 AS cor0
----
-308320
-4400
0

query II rowsort
SELECT + col2 * + - col0 AS col0, col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - 27 AS col0 FROM tab0
----
-17
20
72

query I rowsort
SELECT 97 * + + 50 FROM tab2
----
4850
4850
4850

onlyif mysql # DIV for integer division: 
query I rowsort label-3020
SELECT col1 DIV - + 60 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3020
SELECT col1 / - + 60 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3021
SELECT DISTINCT CAST( + + 16 AS SIGNED ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3021
SELECT DISTINCT CAST ( + + 16 AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * - col0 * col1 * col2 / col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL + COUNT( * ) + - MAX( - col1 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL + COUNT ( * ) + - MAX ( - col1 ) FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL + + ( + col2 ) * + - 69 - 49 * col1 AS col0 FROM tab2 AS cor0
----
-4086
-6533
-7285

query I rowsort
SELECT ALL - 65 - + + 53 AS col0 FROM tab0
----
-118
-118
-118

query II rowsort
SELECT ALL + col0, col0 + + - col2 AS col1 FROM tab1
----
51
-45
85
26
91
23

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL BETWEEN - + col2 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT SUM( - - 98 ) AS col1 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-3028
SELECT SUM ( - - 98 ) AS col1 FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT COUNT( * ) * + 50 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3029
SELECT COUNT ( * ) * + 50 FROM tab0 AS cor0
----
150

query II rowsort
SELECT col2, + 89 FROM tab1 AS cor0
----
59
89
68
89
96
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT + COUNT( ALL - + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3031
SELECT + COUNT ( ALL - + col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 51 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) * + - col0 + + ( + ( - col1 ) ) col2 FROM tab1 AS cor0
----
4882
5010
6141

query I rowsort
SELECT col0 * + + 85 * + col1 AS col2 FROM tab1 AS cor0
----
36125
363545
60690

onlyif mysql # DIV for integer division: 
query II rowsort label-3035
SELECT ALL col1 AS col1, + col0 DIV - 5 AS col0 FROM tab0 AS cor0
----
1
-19
21
-17
81
-3

skipif mysql # not compatible
query II rowsort label-3035
SELECT ALL col1 AS col1, + col0 / - 5 AS col0 FROM tab0 AS cor0
----
1
-19
21
-17
81
-3

query II rowsort
SELECT ALL col0 AS col1, - 28 AS col1 FROM tab1
----
51
-28
85
-28
91
-28

query I rowsort
SELECT - - 72 AS col2 FROM tab2 WHERE NOT 85 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT + ( 29 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 * - col2 <> + - 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 3 col2, + col2 AS col0 FROM tab2
----
3
23
3
40
3
58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 AS col1, + 41 AS col1 FROM tab0 AS cor0
----
-1
41
-21
41
-81
41

query III rowsort
SELECT col2, ( - 71 ) + + 71 AS col0, 7 AS col1 FROM tab1 cor0
----
9 values hashing to bb7901145071670b3ab79d217e422801

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - 38 * - col0 FROM tab2 cor0
----
-1748
-2432
-2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT ( + 73 ) AS col2 FROM tab1
----
73

query II rowsort
SELECT ALL - col2 * 63, + 24 + + col2 AS col2 FROM tab2
----
-1449
47
-2520
64
-3654
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3050
SELECT - ( + - SUM( ALL + + col2 ) ) * + COUNT( * ) DIV - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3050
SELECT - ( + - SUM ( ALL + + col2 ) ) * + COUNT ( * ) / - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT - + 82 * + COUNT( * ) * - COUNT( * ) * + 9 AS col2 FROM tab1 cor0
----
6642

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - + 82 * + COUNT ( * ) * - COUNT ( * ) * + 9 AS col2 FROM tab1 cor0
----
6642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL - + CAST( - col2 AS SIGNED ) + col2 + + - col1 FROM tab0 AS cor0
----
-1
13
197

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - + CAST ( - col2 AS INTEGER ) + col2 + + - col1 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT ALL - 38 * + col0 FROM tab0 cor0
----
-3306
-3686
-570

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 NOT BETWEEN + ( - 59 ) AND col2 * + + 35 + - col1 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT - ( + - COUNT( + col1 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3055
SELECT - ( + - COUNT ( + col1 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT col0 - - + col0 FROM tab1 AS cor0 WHERE 43 * col2 IS NOT NULL
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-3057
SELECT SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT - CAST( NULL AS SIGNED ) + + col1 * - col2 * - CAST( - 98 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT - CAST ( NULL AS INTEGER ) + + col1 * - col2 * - CAST ( - 98 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3059
SELECT DISTINCT + 77 AS col2, MAX( DISTINCT + col2 ) FROM tab2
----
77
58

skipif mysql # not compatible
query II rowsort label-3059
SELECT DISTINCT + 77 AS col2, MAX ( DISTINCT + col2 ) FROM tab2
----
77
58

query I rowsort
SELECT + col1 + - 1 + - ( + + col0 ) FROM tab2
----
-9
12
4

query I rowsort
SELECT - 10 + - ( col1 ) * - col0 AS col2 FROM tab2
----
2336
4918
5015

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( col2 + - col2 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT COUNT( * ) col1 FROM tab0 WHERE NOT NULL >= - col2 * col0 + 93
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3063
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 WHERE NOT NULL >= - col2 * col0 + 93
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN - 61 AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3065
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
102
170
182

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3067
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= CAST( NULL AS DECIMAL ) + + 97 - - 71 * + - ( - + col1 )
----

skipif mysql # not compatible
query III rowsort label-3067
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS REAL ) + + 97 - - 71 * + - ( - + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT ALL - + col1 + + col0 DIV + col0 - + + col2 AS col1 FROM tab0 AS cor0
----
-127
-30
-99

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL - + col1 + + col0 / + col0 - + + col2 AS col1 FROM tab0 AS cor0
----
-127
-30
-99

query I rowsort
SELECT col1 * - - col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT + MIN( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3070
SELECT + MIN ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT ALL col1 * - col0 * 65 + col2 DIV 76 * - 22 * + col2 FROM tab2 AS cor0
----
-152490
-320320
-326625

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL col1 * - col0 * 65 + col2 / 76 * - 22 * + col2 FROM tab2 AS cor0
----
-152490
-320320
-326625

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3072
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - 7 + + + 11
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT DISTINCT + COUNT( * ), + COUNT( * ) col1 FROM tab0 AS cor0 WHERE - col2 BETWEEN - + col2 AND NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3075
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE - col2 BETWEEN - + col2 AND NULL
----
0
0

query I rowsort
SELECT 26 * - 4 AS col2 FROM tab2 AS cor0
----
-104
-104
-104

query I rowsort
SELECT + col2 * - - col1 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT 11 * 69 FROM tab2
----
759
759
759

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT DISTINCT + 31 * - - COUNT( * ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT + 31 * - - COUNT ( * ) AS col0 FROM tab1
----
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 > + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL - MIN( - col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3081
SELECT ALL - MIN ( - col0 ) col1 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3082
SELECT ALL * FROM tab1 WHERE NULL = + col2 * CAST( col0 AS SIGNED ) + + + col0
----

skipif mysql # not compatible
query III rowsort label-3082
SELECT ALL * FROM tab1 WHERE NULL = + col2 * CAST ( col0 AS INTEGER ) + + + col0
----

query II rowsort
SELECT - 23, + col1 FROM tab0 AS cor0
----
-23
1
-23
21
-23
81

query II rowsort
SELECT - 78 AS col2, col1 FROM tab1
----
-78
14
-78
47
-78
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT + - COUNT( * ) + - MIN( - 60 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3085
SELECT + - COUNT ( * ) + - MIN ( - 60 ) FROM tab0 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-3086
SELECT ALL col1 + - col2, - ( - ( 37 ) ) * col0 DIV col1 - - col0 col2 FROM tab1 AS cor0
----
-21
162
-54
714
-82
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3086
SELECT ALL col1 + - col2, - ( - ( 37 ) ) * col0 / col1 - - col0 col2 FROM tab1 AS cor0
----
-21
162
-54
714
-82
185

query I rowsort
SELECT - col0 + 23 AS col2 FROM tab1 AS cor0
----
-28
-62
-68

query II rowsort
SELECT ALL + 6 AS col1, col0 AS col1 FROM tab1 AS cor0
----
6
51
6
85
6
91

query I rowsort
SELECT ALL ( - - 69 ) + + col2 AS col1 FROM tab0 AS cor0
----
116
168
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT DISTINCT + + col2 * - CAST( + col0 AS SIGNED ) - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + + col2 * - CAST ( + col0 AS INTEGER ) - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 44 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 46 FROM tab2 AS cor0
----
-18
-29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT DISTINCT - SUM( + + 31 ) AS col1 FROM tab1 WHERE 39 BETWEEN NULL AND - ( - col2 ) + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - SUM ( + + 31 ) AS col1 FROM tab1 WHERE 39 BETWEEN NULL AND - ( - col2 ) + - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL 8 + - + COUNT( ALL - + col0 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL 8 + - + COUNT ( ALL - + col0 ) FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * + col2 * 25 col1 FROM tab2
----
35650
62000
89900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT - MIN( ALL 99 ) DIV + + MIN( + col1 ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - MIN ( ALL 99 ) / + + MIN ( + col1 ) FROM tab1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT - CAST( 60 AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT - CAST ( 60 AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col0 FROM tab0 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - COUNT( * ) * + + 64 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3099
SELECT - COUNT ( * ) * + + 64 FROM tab0 AS cor0
----
-192

query I rowsort
SELECT ALL + col2 * - + ( - + 86 ) * + - col0 - - 44 FROM tab0 AS cor0
----
-60586
-74776
-825814

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL + MIN( 5 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL + MIN ( 5 ) FROM tab0 AS cor0
----
5

query I rowsort
SELECT - + col1 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
-340
-4186
-663

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + - col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 24 * + 69 * 35 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-57960

query I rowsort
SELECT DISTINCT + + col1 * - col0 AS col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3106
SELECT ALL col2 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL col2 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT 99 * - 81 FROM tab0
----
-8019

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3108
SELECT ALL + col0 DIV - CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + col0 / - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 88 * col0 FROM tab1
----
4488
7480
8008

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN col2 AND NULL
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT SUM( + 22 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT SUM ( + 22 ) AS col1 FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 < 40
----
15
81
47

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT 29 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3115
SELECT + col1 AS col0, - col2 + + - 9 + + - 72 * + CAST( + + ( + col2 ) AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-3115
SELECT + col1 AS col0, - col2 + + - 9 + + - 72 * + CAST ( + + ( + col2 ) AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT DISTINCT + MAX( DISTINCT + + col2 ) + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + MAX ( DISTINCT + + col2 ) + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - col1 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3118
SELECT 88 + - CAST( NULL AS SIGNED ) + - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT 88 + - CAST ( NULL AS INTEGER ) + - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) * + COUNT( + col2 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3119
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * + COUNT ( + col2 ) AS col2 FROM tab1
----
-9

query II rowsort
SELECT col1 * + 28 * - 70, + col0 AS col0 FROM tab2
----
-131320
75
-150920
64
-99960
46

query II rowsort
SELECT DISTINCT 87 AS col0, col2 FROM tab1 AS cor0
----
87
59
87
68
87
96

query I rowsort
SELECT DISTINCT 75 + - col0 AS col1 FROM tab0 AS cor0
----
-12
-22
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 87 col1 FROM tab0 AS cor0
----
1305
7569
8439

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 >= - + 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3125
SELECT * FROM tab2 AS cor0 WHERE col0 * + col0 + 9 > - - CAST( CAST( + 24 AS SIGNED ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3125
SELECT * FROM tab2 AS cor0 WHERE col0 * + col0 + 9 > - - CAST ( CAST ( + 24 AS INTEGER ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT ALL + 83 + - COUNT( * ) * - 48 AS col2 FROM tab2 cor0
----
227

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + 83 + - COUNT ( * ) * - 48 AS col2 FROM tab2 cor0
----
227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + col1 ) < + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + 99 FROM tab2
----
145
163
174

query I rowsort
SELECT DISTINCT 90 - + + col0 + + col0 FROM tab2
----
90

query I rowsort
SELECT ALL + col2 - + - 59 AS col2 FROM tab1
----
118
127
155

query I rowsort
SELECT - col2 + - 92 * - col1 * - 80 * + + col2 FROM tab0
----
-1545610
-28019567
-728739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + + col2, 65 + col2 - - 99 col0 FROM tab2
----
-17
222
-23
187
-24
204

query I rowsort
SELECT ALL col0 - 10 AS col0 FROM tab0
----
5
77
87

query II rowsort
SELECT - 40 AS col2, + col1 * + 67 AS col2 FROM tab1
----
-40
3149
-40
335
-40
938

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 + + 39 FROM tab2
----
51
85
67
114
77
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col2 FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT - ( + + COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3137
SELECT - ( + + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL ( 43 ) AS col1 FROM tab0
----
43
43
43

query I rowsort
SELECT - 31 * - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT ALL - col0 DIV + col0 AS col0 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - col0 / + col0 AS col0 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col1 + 25 * + + col2 + col0 FROM tab0 AS cor0
----
1109
2571
316

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT + COUNT( * ) * - 7 * + 50 + - + COUNT( * ) col2 FROM tab2
----
-1053

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3144
SELECT + COUNT ( * ) * - 7 * + 50 + - + COUNT ( * ) col2 FROM tab2
----
-1053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3145
SELECT ALL COUNT( * ) DIV - 27 * + 19 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL COUNT ( * ) / - 27 * + 19 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT ALL + col2 DIV - + col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + col2 / - + col2 FROM tab1
----
-1
-1
-1

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT - MIN( - ( - 56 ) ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - MIN ( - ( - 56 ) ) FROM tab0
----
-56

query I rowsort
SELECT + - col2 AS col2 FROM tab0 WHERE ( NOT ( NULL <> - col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT 23 DIV + MIN( col1 ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-3150
SELECT 23 / + MIN ( col1 ) AS col0 FROM tab0
----
23

query I rowsort
SELECT + 1 * ( 21 ) AS col1 FROM tab1
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3152
SELECT DISTINCT * FROM tab2 WHERE - CAST( col1 AS SIGNED ) NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3152
SELECT DISTINCT * FROM tab2 WHERE - CAST ( col1 AS INTEGER ) NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 29 * + col0 AS col0 FROM tab1
----
1479
2465
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT 69 + + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT 69 + + COUNT ( * ) FROM tab1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT CAST( NULL AS SIGNED ) * + col1 - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT CAST ( NULL AS INTEGER ) * + col1 - - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT CAST( NULL AS SIGNED ) * AVG ( ALL 67 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT CAST ( NULL AS INTEGER ) * AVG ( ALL 67 ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT col0 DIV col1 + col0 AS col1 FROM tab0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-3157
SELECT col0 / col1 + col0 AS col1 FROM tab0
----
15
194
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT COUNT( * ) * 35 FROM tab1 WHERE + col2 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3158
SELECT COUNT ( * ) * 35 FROM tab1 WHERE + col2 > ( NULL )
----
0

query I rowsort
SELECT DISTINCT + col1 * 43 + 67 FROM tab1
----
2088
282
669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + col1 col0 FROM tab2
----
1109
2637
4417

query III rowsort
SELECT * FROM tab0 WHERE ( - 76 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT ALL ( - col0 ) DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL ( - col0 ) / col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL ( + col0 ) FROM tab1 WHERE NOT ( col1 * + col0 ) BETWEEN ( - col2 + + col2 * col0 ) AND ( col0 * - 24 )
----
51
85
91

query I rowsort
SELECT DISTINCT - col0 * 3 AS col0 FROM tab1
----
-153
-255
-273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + 63 BETWEEN ( 16 ) AND + col2 + + col1 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 < col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT + 74 DIV + col1 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3167
SELECT + 74 / + col1 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT col0 + 59 * - 43 AS col2 FROM tab2
----
-2462
-2473
-2491

query I rowsort
SELECT 64 AS col0 FROM tab0 WHERE NOT ( + col2 ) >= col2 * col1
----
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT DISTINCT 53 + - MIN( ALL + 89 ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT 53 + - MIN ( ALL + 89 ) FROM tab2
----
-36

query I rowsort
SELECT ( 81 ) AS col2 FROM tab1
----
81
81
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= + 64 + col2
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT 81 NOT BETWEEN + 89 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab1 WHERE + col0 / 20 BETWEEN col2 AND ( col2 * - col1 )
----

query I rowsort
SELECT col1 * 1 AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 35 BETWEEN + col1 AND - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3179
SELECT DISTINCT CAST( col2 AS SIGNED ) * col1 FROM tab1 cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col1 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * 65 FROM tab1 WHERE NOT col0 - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * 65 FROM tab1 WHERE NOT col0 - - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT + MAX( + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT + MAX ( + col1 ) AS col0 FROM tab0
----
81

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3184
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < - col2 * CAST( NULL AS DECIMAL ) + + col1 / - col0
----

skipif mysql # not compatible
query III rowsort label-3184
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < - col2 * CAST ( NULL AS REAL ) + + col1 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT ALL - CAST( AVG ( + 18 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - CAST ( AVG ( + 18 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT + MIN( + col0 ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3186
SELECT + MIN ( + col0 ) col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 15 * + col1 AND 21 / col1 + 22 * - 26
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT ALL + - MIN( DISTINCT + CAST( + 41 AS SIGNED ) ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL + - MIN ( DISTINCT + CAST ( + 41 AS INTEGER ) ) FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT DISTINCT + + MAX( ALL 93 ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT + + MAX ( ALL 93 ) FROM tab0 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT ALL 1 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
18
2
4

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL 1 + col0 / col1 AS col2 FROM tab1 AS cor0
----
18
2
4

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - col2 ) * - col0 >= ( + 93 - col1 )
----
15
87
97

query I rowsort
SELECT + - 29 * - 22 FROM tab0 cor0
----
638
638
638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3193
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col0 + + col2 >= col1 + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col0 + + col2 >= col1 + + 94
----
NULL

query I rowsort
SELECT DISTINCT + ( - col1 ) + col1 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 WHERE + ( 80 ) IN ( + 9 )
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 WHERE + ( 80 ) IN ( + 9 )
----
0

query I rowsort
SELECT ALL col2 + col0 + col1 AS col0 FROM tab2
----
120
181
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT + 27 * - + 21 * + MIN( DISTINCT + 44 * + 34 ) FROM tab2
----
-848232

skipif mysql # not compatible
query I rowsort label-3197
SELECT + 27 * - + 21 * + MIN ( DISTINCT + 44 * + 34 ) FROM tab2
----
-848232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT ALL ( - 96 ) col2 FROM tab1 WHERE NOT + col0 >= CAST( - 66 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3198
SELECT ALL ( - 96 ) col2 FROM tab1 WHERE NOT + col0 >= CAST ( - 66 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE - 9 + 90 * - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IN ( + 52 + 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 29 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT COUNT( * ) - - 84 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
84

skipif mysql # not compatible
query I rowsort label-3202
SELECT COUNT ( * ) - - 84 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT 62 + - 17 DIV 51 AS col1 FROM tab2
----
62
62
62

skipif mysql # not compatible
query I rowsort label-3203
SELECT 62 + - 17 / 51 AS col1 FROM tab2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL SUM( ALL - - col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL SUM ( ALL - - col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + COUNT( * ) + MAX( - col1 ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3206
SELECT + COUNT ( * ) + MAX ( - col1 ) AS col0 FROM tab1
----
-2

query I rowsort
SELECT + col2 + - 88 AS col0 FROM tab0 AS cor0
----
-41
-78
11

query I rowsort
SELECT DISTINCT + - 80 * - - col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 / - 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT DISTINCT - - 84 + - COUNT( * ) FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT - - 84 + - COUNT ( * ) FROM tab2 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL SUM( - col1 ) + + - 59 FROM tab1
----
-125

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL SUM ( - col1 ) + + - 59 FROM tab1
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3212
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) + 92 * 43 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3212
SELECT DISTINCT * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) + 92 * 43 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 99 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - ( 34 ) ) >= ( 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT ALL 12 DIV - + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL 12 / - + col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 88 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 10 = + + col2
----
3

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 10 = + + col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT MAX( ALL 91 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - 57 / - ( col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT MAX ( ALL 91 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - 57 / - ( col0 ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) IN ( - 24 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 * + 11 / - col1 NOT IN ( 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3221
SELECT * FROM tab0 cor0 WHERE col1 * 99 * CAST( 67 AS SIGNED ) + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3221
SELECT * FROM tab0 cor0 WHERE col1 * 99 * CAST ( 67 AS INTEGER ) + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT + + MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3222
SELECT + + MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3223
SELECT + COUNT( * ) DIV 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT + COUNT ( * ) / 79 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL 10 * + COUNT( * ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL 10 * + COUNT ( * ) AS col1 FROM tab0
----
30

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col1 / + + col0 * col2 ) <= NULL
----

query II rowsort
SELECT ALL ( 10 ), 65 AS col1 FROM tab2
----
10
65
10
65
10
65

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT DISTINCT + 70 * + AVG ( + 56 ) AS col2 FROM tab2 WHERE NULL IN ( + col2 / + 64 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3229
SELECT 55 FROM tab0 WHERE NOT 5 NOT IN ( + + 40 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3229
SELECT 55 FROM tab0 WHERE NOT 5 NOT IN ( + + 40 * CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT DISTINCT ( COUNT( * ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3230
SELECT DISTINCT ( COUNT ( * ) ) col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 88 + - col2 ) NOT IN ( col2 * - col2 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 * col0 ) < - col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT - 65 * - COUNT( * ) * - 13 FROM tab0 AS cor0
----
-2535

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT - 65 * - COUNT ( * ) * - 13 FROM tab0 AS cor0
----
-2535

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT MIN( DISTINCT + + 99 ) AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT MIN ( DISTINCT + + 99 ) AS col1 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + 15 - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col2 + - + col1 ) IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-3235
SELECT + 15 - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col2 + - + col1 ) IS NOT NULL
----
15

query II rowsort
SELECT + col2 AS col1, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT - 11 DIV + - 44 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3237
SELECT - 11 / + - 44 col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 65 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * 77 col1 FROM tab0
----
6930

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - + 14 NOT BETWEEN - ( + 69 ) * - col2 AND - col2 / - 43
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col1 ) AND ( 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT + - 20 + + col2 * - + 5 * ( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT + - 20 + + col2 * - + 5 * ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-101
-209
-52

query I rowsort
SELECT DISTINCT + + col0 + col2 - 88 FROM tab2 AS cor0
----
-19
16
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + + col0 col0 FROM tab2 AS cor0
----
143
161
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3246
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col0 + + - col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT + - 12 + MAX( + col2 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT + - 12 + MAX ( + col2 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT col2 * - - col2 + - col0 FROM tab1
----
3396
4533
9165

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col0 BETWEEN NULL AND ( col2 ) )
----
87
21
10

query II rowsort
SELECT DISTINCT col1, col0 * + col0 AS col1 FROM tab0
----
1
9409
21
7569
81
225

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( - col1 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE NOT col2 - - ( col0 ) > + 81 * + 25
----
-14
-47
-5

query I rowsort
SELECT 42 * + + 56 FROM tab2
----
2352
2352
2352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col0 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT ALL col2 * 98 DIV - 84 AS col1 FROM tab1
----
-112
-68
-79

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL col2 * 98 / - 84 AS col1 FROM tab1
----
-112
-68
-79

query I rowsort
SELECT ALL - col1 + + - col0 AS col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT - 60 * + COUNT( * ) + + 63 AS col1 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT - 60 * + COUNT ( * ) + + 63 AS col1 FROM tab0 AS cor0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3259
SELECT ALL - + COUNT( * ) DIV - SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - + COUNT ( * ) / - SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL 42 * + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL 42 * + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-126

query I rowsort
SELECT ALL + col2 + col1 + - + 92 * 25 FROM tab0 AS cor0
----
-2172
-2200
-2269

query I rowsort
SELECT ALL - 97 + + - col2 + + ( + col2 ) FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - col2 - + col0 * col2 FROM tab2 WHERE col1 <= - 16 * + - 38 * + - ( + col2 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT DISTINCT + - 52 DIV + col0 AS col1 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT + - 52 / + col0 AS col1 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT + col0 * + ( + 31 ) FROM tab2 AS cor0
----
1426
1984
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT + - col2 DIV - 18 col2 FROM tab1 AS cor0
----
3
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3268
SELECT + - col2 / - 18 col2 FROM tab1 AS cor0
----
3
3
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3269
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3269
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3270
SELECT 23 DIV - 80 * COUNT( + + 39 ) * - ( + - COUNT( - col2 ) ) + + 81 + + 68 FROM tab2 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-3270
SELECT 23 / - 80 * COUNT ( + + 39 ) * - ( + - COUNT ( - col2 ) ) + + 81 + + 68 FROM tab2 AS cor0
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT + + 92 * col2 DIV ( - + col0 ) FROM tab1 AS cor0
----
-173
-63
-68

skipif mysql # not compatible
query I rowsort label-3271
SELECT + + 92 * col2 / ( - + col0 ) FROM tab1 AS cor0
----
-173
-63
-68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 + + col2 + - - col1 < - col1 / + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT - 54 + MAX( DISTINCT + 9 ) FROM tab0 cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
-45

skipif mysql # not compatible
query I rowsort label-3274
SELECT - 54 + MAX ( DISTINCT + 9 ) FROM tab0 cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
-45

query I rowsort
SELECT DISTINCT col2 * - 15 AS col2 FROM tab2
----
-345
-600
-870

query II rowsort
SELECT col1 AS col0, - 21 + + col2 AS col1 FROM tab0
----
1
78
21
-11
81
26

query II rowsort
SELECT DISTINCT col0 AS col0, col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT - CAST( NULL AS SIGNED ) * - - ( 3 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT - CAST ( NULL AS INTEGER ) * - - ( 3 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT 9 DIV col1 * + 31 col1 FROM tab0
----
0
0
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3281
SELECT 9 / col1 * + 31 col1 FROM tab0
----
0
0
279

onlyif mysql # DIV for integer division: 
query II rowsort label-3282
SELECT col1 DIV - 26 col0, + ( 86 ) FROM tab1 AS cor0
----
-1
86
0
86
0
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3282
SELECT col1 / - 26 col0, + ( 86 ) FROM tab1 AS cor0
----
-1
86
0
86
0
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + + 79 / + - ( + - ( - - 88 ) ) + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + - ( - + col2 ) + + + 55 + + col1 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 + + + 70 AS col2, + 75 + col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) > + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL - COUNT( ALL col2 ) + 79 FROM tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - COUNT ( ALL col2 ) + 79 FROM tab1 cor0
----
76

query I rowsort
SELECT ALL - + col2 + + - 20 FROM tab0 AS cor0
----
-119
-30
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL SUM( ALL + col2 ) FROM tab0 AS cor0 WHERE + col1 * - col0 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL SUM ( ALL + col2 ) FROM tab0 AS cor0 WHERE + col1 * - col0 IS NOT NULL
----
156

query I rowsort
SELECT ALL ( + - 46 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-46
-46

query I rowsort
SELECT - ( - 76 ) + col0 * + 7 FROM tab2
----
398
524
601

query I rowsort
SELECT ALL col2 * + col2 * 43 AS col0 FROM tab0
----
421443
4300
94987

query I rowsort
SELECT + 46 + 22 FROM tab2
----
68
68
68

query I rowsort
SELECT ALL - 6 * - 25 FROM tab0
----
150
150
150

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3294
SELECT + col1 FROM tab2 WHERE + 27 NOT BETWEEN - CAST( CAST( - 99 AS SIGNED ) AS DECIMAL ) AND + + col1
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3294
SELECT + col1 FROM tab2 WHERE + 27 NOT BETWEEN - CAST ( CAST ( - 99 AS INTEGER ) AS REAL ) AND + + col1
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3295
SELECT 62 + col1 * - ( CAST( + 76 AS SIGNED ) ) FROM tab1
----
-1002
-318
-3510

skipif mysql # not compatible
query I rowsort label-3295
SELECT 62 + col1 * - ( CAST ( + 76 AS INTEGER ) ) FROM tab1
----
-1002
-318
-3510

query I rowsort
SELECT - col2 + - - 26 FROM tab2
----
-14
-32
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT + + col0 AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3297
SELECT + + col0 AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT + + SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT + + SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL col0 - + 9 AS col1 FROM tab0
----
6
78
88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3300
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN - - 68 AND - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3300
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN - - 68 AND - - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL + - 2 * + - 30 + ( + ( - - COUNT( * ) ) ) AS col0 FROM tab0 WHERE - + col1 / + 61 + - + 58 * + - col0 IS NULL
----
60

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + - 2 * + - 30 + ( + ( - - COUNT ( * ) ) ) AS col0 FROM tab0 WHERE - + col1 / + 61 + - + 58 * + - col0 IS NULL
----
60

query I rowsort
SELECT DISTINCT ( 71 ) AS col2 FROM tab0
----
71

query II rowsort
SELECT DISTINCT + - col0, - col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT DISTINCT + 68 DIV - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-22

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + 68 / - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT ALL 67 AS col2, + ( - MAX( DISTINCT col0 ) ) * - 23 AS col0 FROM tab2 AS cor0
----
67
1725

skipif mysql # not compatible
query II rowsort label-3305
SELECT ALL 67 AS col2, + ( - MAX ( DISTINCT col0 ) ) * - 23 AS col0 FROM tab2 AS cor0
----
67
1725

query II rowsort
SELECT DISTINCT + col2, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / + 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 61 FROM tab2 cor0
----
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3310
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3310
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT 80 * col0 AS col0 FROM tab1 AS cor0
----
4080
6800
7280

query II rowsort
SELECT col2, + col0 + + 88 * col0 FROM tab0 AS cor0
----
10
7743
47
1335
99
8633

query I rowsort
SELECT DISTINCT col0 * + 95 FROM tab1
----
4845
8075
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + SUM( - col2 ) AS col2 FROM tab2 WHERE NOT + 62 + 23 / col2 <= - col1 + ( - 65 ) - col0
----
-121

skipif mysql # not compatible
query I rowsort label-3314
SELECT + SUM ( - col2 ) AS col2 FROM tab2 WHERE NOT + 62 + 23 / col2 <= - col1 + ( - 65 ) - col0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 * - col0 col2 FROM tab0
----
-10575
-75690
-931491

query I rowsort
SELECT DISTINCT 74 + col0 * + + 68 * - col1 FROM tab0 WHERE ( - col2 * + 43 IS NULL )
----

query I rowsort
SELECT - 20 AS col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3318
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( 2 )
----

skipif mysql # not compatible
query III rowsort label-3318
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( 2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3319
SELECT + col2 DIV 41 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3319
SELECT + col2 / 41 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col2 IN ( - - 58, + col0 )
----
-51
-85
-91

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 85 + - - col2 ) BETWEEN NULL AND - col1 + + col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - - ( - COUNT( * ) ) * + MIN( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3324
SELECT - - ( - COUNT ( * ) ) * + MIN ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT + - col0 * + col1 + - + col2 * - - 24 + col2 FROM tab1 AS cor0
----
-1782
-2922
-5841

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL 77 * COUNT( * ) * + + 9 AS col2 FROM tab1 cor0
----
2079

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL 77 * COUNT ( * ) * + + 9 AS col2 FROM tab1 cor0
----
2079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 58 col2, + 58 FROM tab2
----
58
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + + 23 FROM tab0 AS cor0
----
110
120
38

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL < + col1
----

query I rowsort
SELECT ALL + 93 + col1 AS col0 FROM tab0 AS cor0 WHERE + col1 * + col2 NOT IN ( col0, col2 )
----
114
174

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + ( - col1 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL COUNT( * ) + + 54 AS col0 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL COUNT ( * ) + + 54 AS col0 FROM tab2 AS cor0
----
57

query I rowsort
SELECT - + ( + col0 ) + 32 + col2 FROM tab1 AS cor0
----
6
77
9

query I rowsort
SELECT + col1 + - col2 + + + 77 * - col2 - 33 + + col0 AS col2 FROM tab2 AS cor0
----
-1730
-3012
-4415

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= 43
----

query I rowsort
SELECT ALL - 53 - + - col2 - + + 50 + + 68 FROM tab0 AS cor0
----
-25
12
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - - col0 * - col1 * + CAST( + - 24 AS SIGNED ) NOT IN ( + 73 * + + 80 * + 24, ( + - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - - col0 * - col1 * + CAST ( + - 24 AS INTEGER ) NOT IN ( + 73 * + + 80 * + 24, ( + - col2 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - col0 col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT ALL + 99 DIV col0 + 20 + col0 DIV - col2 AS col0 FROM tab0
----
13
21
26

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + 99 / col0 + 20 + col0 / - col2 AS col0 FROM tab0
----
13
21
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + ( + - 88 ) * COUNT( * ) FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-3341
SELECT + ( + - 88 ) * COUNT ( * ) FROM tab0
----
-264

query I rowsort
SELECT DISTINCT 10 * col2 + - 68 * + col1 FROM tab2
----
-3238
-3976
-4836

query I rowsort
SELECT ALL col2 - + + col2 + col2 AS col1 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT + - ( 12 ) - ( - + col2 ) + - 42 DIV - - 9 AS col0 FROM tab0 cor0
----
-6
31
83

skipif mysql # not compatible
query I rowsort label-3344
SELECT + - ( 12 ) - ( - + col2 ) + - 42 / - - 9 AS col0 FROM tab0 cor0
----
-6
31
83

query I rowsort
SELECT + 74 - + col1 * + + col1 AS col0 FROM tab2 cor0
----
-2527
-4415
-5855

query I rowsort
SELECT col2 - col0 - + col1 + + 55 * 33 * - - 3 * - + col2 AS col1 FROM tab0 AS cor0
----
-255964
-539054
-54548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 AS cor0 WHERE 17 NOT BETWEEN + - col1 AND - col0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT 70 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3348
SELECT 70 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
210

query I rowsort
SELECT - col1 * - + 18 FROM tab2 AS cor0
----
1206
1386
918

query I rowsort
SELECT + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 <> - + 70 * + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3351
SELECT col1 AS col1, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3351
SELECT col1 AS col1, CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT col2, col0 + + col2 AS col0 FROM tab1 AS cor0
----
59
144
68
159
96
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL - SUM( + - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - SUM ( + - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL - 48 * + COUNT( - 99 ) * - + COUNT( * ) FROM tab0 AS cor0
----
432

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - 48 * + COUNT ( - 99 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
432

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + col2 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 66 IN ( col2 * col0, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT + MIN( - 96 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + MIN ( - 96 ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3358
SELECT + 34 DIV - - COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-3358
SELECT + 34 / - - COUNT ( * ) FROM tab0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT - ( - MIN( + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT - ( - MIN ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query II rowsort
SELECT ALL - col2 AS col0, 57 AS col0 FROM tab2
----
-23
57
-40
57
-58
57

query I rowsort
SELECT ALL 23 FROM tab0 AS cor0 WHERE NOT ( - col1 IS NULL )
----
23
23
23

query II rowsort
SELECT col2 * - col0, col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

onlyif mysql # DIV for integer division: 
query II rowsort label-3363
SELECT + - 84 DIV + 28, + col2 AS col0 FROM tab1 AS cor0
----
-3
59
-3
68
-3
96

skipif mysql # not compatible
query II rowsort label-3363
SELECT + - 84 / + 28, + col2 AS col0 FROM tab1 AS cor0
----
-3
59
-3
68
-3
96

query II rowsort
SELECT - col2 - + col0, + 31 AS col2 FROM tab2 AS cor0
----
-104
31
-133
31
-69
31

query I rowsort
SELECT DISTINCT + + col0 * + - 4 + + col0 FROM tab2 AS cor0
----
-138
-192
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NULL > NULL
----
0

query I rowsort
SELECT ALL col0 + - 11 FROM tab1
----
40
74
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT + CAST( + + col2 AS SIGNED ) + - - col0 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-3368
SELECT + CAST ( + + col2 AS INTEGER ) + - - col0 FROM tab0
----
196
62
97

query I rowsort
SELECT ALL + col0 - + col1 - col2 + + + col0 - + - ( - col1 ) * - col1 AS col2 FROM tab0
----
584
6463
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL + 88 - - 30 - + SUM( ALL - 18 ) FROM tab2
----
172

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + 88 - - 30 - + SUM ( ALL - 18 ) FROM tab2
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT 83 * col1 + + col2 DIV + + 9 AS col2 FROM tab1
----
1172
3908
421

skipif mysql # not compatible
query I rowsort label-3371
SELECT 83 * col1 + + col2 / + + 9 AS col2 FROM tab1
----
1172
3908
421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT ALL + ( - CAST( - col1 AS SIGNED ) ) * 83 FROM tab2
----
4233
5561
6391

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL + ( - CAST ( - col1 AS INTEGER ) ) * 83 FROM tab2
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query II rowsort label-3373
SELECT DISTINCT COUNT( * ) AS col0, 50 * - - ( - - 61 ) FROM tab1
----
3
3050

skipif mysql # not compatible
query II rowsort label-3373
SELECT DISTINCT COUNT ( * ) AS col0, 50 * - - ( - - 61 ) FROM tab1
----
3
3050

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 17 * - + col1 - 21 IS NULL
----

query I rowsort
SELECT DISTINCT + - 62 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT ALL - COUNT( * ) + + - SUM( - col0 ) AS col2 FROM tab2 cor0
----
182

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL - COUNT ( * ) + + - SUM ( - col0 ) AS col2 FROM tab2 cor0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT MIN( + 55 ) FROM tab0 cor0
----
55

skipif mysql # not compatible
query I rowsort label-3378
SELECT MIN ( + 55 ) FROM tab0 cor0
----
55

query II rowsort
SELECT DISTINCT - 52, col2 AS col2 FROM tab2 AS cor0
----
-52
23
-52
40
-52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL - SUM( DISTINCT - + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - SUM ( DISTINCT - + col1 ) AS col0 FROM tab1
----
66

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND NOT - ( 2 ) IS NULL
----

query I rowsort
SELECT + col2 - - 69 FROM tab1 WHERE NOT col1 > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col2 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

query II rowsort
SELECT ALL - ( - + ( - - col2 ) ) AS col1, - ( 0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL <> ( ( + col1 ) ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 72 BETWEEN + - col2 * - col0 + + col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) * 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + MAX( ALL + + 2 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3388
SELECT + MAX ( ALL + + 2 ) FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - + COUNT( - col2 ) * + 85 AS col2 FROM tab1 cor0
----
-255

skipif mysql # not compatible
query I rowsort label-3389
SELECT - + COUNT ( - col2 ) * + 85 AS col2 FROM tab1 cor0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT 35 + COUNT( * ) AS col0 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-3390
SELECT 35 + COUNT ( * ) AS col0 FROM tab2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3391
SELECT - COUNT( DISTINCT - + 65 ) FROM tab2 WHERE NOT + col0 * - - CAST( - 64 AS SIGNED ) + + col1 > + + ( + + CAST( + col2 AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3391
SELECT - COUNT ( DISTINCT - + 65 ) FROM tab2 WHERE NOT + col0 * - - CAST ( - 64 AS INTEGER ) + + col1 > + + ( + + CAST ( + col2 AS REAL ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT - 26 DIV - 43 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT - 26 / - 43 FROM tab1
----
0
0
0

query I rowsort
SELECT - 97 AS col2 FROM tab1 WHERE NOT + col1 * + col1 * col1 + + col0 + + col0 > + col0
----

query I rowsort
SELECT DISTINCT 57 * + 67 AS col0 FROM tab0 AS cor0
----
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT MIN( ALL + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3395
SELECT MIN ( ALL + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - + 45 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <= + 39 * + col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT ALL CAST( - - col1 AS SIGNED ) * 64 * - - col0 * 80 AS col1 FROM tab1
----
2176000
21898240
3655680

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL CAST ( - - col1 AS INTEGER ) * 64 * - - col0 * 80 AS col1 FROM tab1
----
2176000
21898240
3655680

query I rowsort
SELECT 85 + + col2 + + ( + col0 ) AS col2 FROM tab0
----
147
182
281

query I rowsort
SELECT ALL - 26 * - col2 FROM tab0 AS cor0
----
1222
2574
260

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 85 * - 83 * col1
----

query I rowsort
SELECT - 17 + - ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-40
-57
-75

query I rowsort
SELECT - + 57 + col1 FROM tab1 AS cor0
----
-10
-43
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT + + 7 + - COUNT( * ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3405
SELECT + + 7 + - COUNT ( * ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT - col1 + + 47 FROM tab1 AS cor0 WHERE + col2 * col0 / + - 94 IS NOT NULL
----
0
33
42

query I rowsort
SELECT + col2 * + 39 FROM tab1 cor0
----
2301
2652
3744

query II rowsort
SELECT + col2, - col1 * - + 23 AS col0 FROM tab0 AS cor0
----
10
483
47
1863
99
23

query I rowsort
SELECT ALL col0 - 89 * col0 AS col2 FROM tab1
----
-4488
-7480
-8008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3410
SELECT DISTINCT + col0 - + + CAST( NULL AS SIGNED ) AS col0, - CAST( - 9 AS SIGNED ) FROM tab0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3410
SELECT DISTINCT + col0 - + + CAST ( NULL AS INTEGER ) AS col0, - CAST ( - 9 AS INTEGER ) FROM tab0
----
NULL
9

query I rowsort
SELECT - 78 * - ( + - col2 ) - - 41 * 86 * + - col2 AS col2 FROM tab1
----
-212636
-245072
-345984

query I rowsort
SELECT DISTINCT 62 - + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * + + col1 * - ( 14 ) FROM tab2
----
-36414
-62846
-83006

onlyif mysql # DIV for integer division: 
query I rowsort label-3414
SELECT ALL - 93 DIV col2 * + + 8 + col2 AS col0 FROM tab0 AS cor0
----
-62
39
99

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - 93 / col2 * + + 8 + col2 AS col0 FROM tab0 AS cor0
----
-62
39
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT col2 DIV + col1 * col1 * + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT col2 / + col1 * col1 * + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL + COUNT( ALL - col0 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + COUNT ( ALL - col0 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT MIN( - 21 ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT MIN ( - 21 ) AS col1 FROM tab0
----
-21

query II rowsort
SELECT col1 * + col2 * - col2 AS col2, col1 + + + col0 AS col2 FROM tab1
----
-129024
65
-17405
90
-217328
138

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 79 * 59 + + col2 ) NOT BETWEEN 23 * + col0 - + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 62 * - ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3422
SELECT ALL + - COUNT( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + - COUNT ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT col1 DIV + 21 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3423
SELECT col1 / + 21 FROM tab2
----
2
3
3

query I rowsort
SELECT - col2 * + - col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT 61 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT COUNT( * ) + - 72 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3426
SELECT COUNT ( * ) + - 72 FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT + 38 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT + 38 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - col0 * - col1 FROM tab0 AS cor0
----
-2
1168
1817

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 67 <> - + 8
----

query II rowsort
SELECT DISTINCT + col1 - + - col2 + col0 AS col2, 89 AS col2 FROM tab1
----
149
89
161
89
206
89

query I rowsort
SELECT - + 44 - col2 + - + col2 AS col2 FROM tab2 AS cor0
----
-124
-160
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT - + CAST( + ( 2 ) AS SIGNED ) - - + CAST( - ( + - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3433
SELECT - + CAST ( + ( 2 ) AS INTEGER ) - - + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 97 IS NULL
----

query I rowsort
SELECT ALL col1 * + col0 * + + col1 + col2 * col1 FROM tab1 AS cor0
----
11340
204215
2420

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT - COUNT( * ) + - 71 AS col2 FROM tab0 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3436
SELECT - COUNT ( * ) + - 71 AS col2 FROM tab0 cor0
----
-74

query I rowsort
SELECT 42 FROM tab0 AS cor0 WHERE ( ( NOT ( 86 ) IS NULL ) )
----
42
42
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + 67
----

query II rowsort
SELECT col2, - col2 * + col0 * + col0 AS col0 FROM tab1
----
59
-426275
68
-563108
96
-249696

query I rowsort
SELECT DISTINCT + 68 * + 29 FROM tab2
----
1972

onlyif mysql # aggregate syntax: 
query II rowsort label-3441
SELECT COUNT( * ) AS col1, 62 AS col1 FROM tab2
----
3
62

skipif mysql # not compatible
query II rowsort label-3441
SELECT COUNT ( * ) AS col1, 62 AS col1 FROM tab2
----
3
62

query I rowsort
SELECT col2 * - - 42 * - col2 FROM tab0
----
-411642
-4200
-92778

query II rowsort
SELECT col2, + 93 AS col0 FROM tab1
----
59
93
68
93
96
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT + MIN( ALL + + 19 ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT + MIN ( ALL + + 19 ) FROM tab1 AS cor0
----
19

query I rowsort
SELECT ALL 58 AS col2 FROM tab2 AS cor0 WHERE NOT 61 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, + col0 col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL col0 * + ( + 54 ) AS col0 FROM tab1
----
2754
4590
4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3448
SELECT ALL - MAX( + CAST( - + col2 AS SIGNED ) ) DIV + 59 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3448
SELECT ALL - MAX ( + CAST ( - + col2 AS INTEGER ) ) / + 59 col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col0 - - 23 col2, + 42 * + + col0 AS col0 FROM tab2 AS cor0
----
127
2688
156
3150
92
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 62 AS col1 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3452
SELECT DISTINCT - MAX( col1 ) AS col2, + 44 AS col0 FROM tab2 AS cor0
----
-77
44

skipif mysql # not compatible
query II rowsort label-3452
SELECT DISTINCT - MAX ( col1 ) AS col2, + 44 AS col0 FROM tab2 AS cor0
----
-77
44

query I rowsort
SELECT - + col0 + - 80 FROM tab1 AS cor0
----
-131
-165
-171

query I rowsort
SELECT DISTINCT - col1 + + 4 * 33 AS col0 FROM tab0
----
111
131
51

query I rowsort
SELECT - col1 + - - col2 AS col0 FROM tab2 WHERE NULL = + 62
----

query I rowsort
SELECT col1 + col0 + col2 * - - col1 AS col0 FROM tab1
----
1409
3334
385

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3457
SELECT ( - 81 ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT ( - 81 ) + + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - ( - + col2 ) * - col2 + - + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3459
SELECT * FROM tab2 WHERE col0 IN ( - CAST( + 10 AS SIGNED ) / - 54 )
----

skipif mysql # not compatible
query III rowsort label-3459
SELECT * FROM tab2 WHERE col0 IN ( - CAST ( + 10 AS INTEGER ) / - 54 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, + col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - col1 * + 72 AS col0 FROM tab0
----
-1512
-5832
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT - MAX( DISTINCT - + 19 ) FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-3462
SELECT - MAX ( DISTINCT - + 19 ) FROM tab0 cor0
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 70 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3464
SELECT + - 20, + SUM( DISTINCT - + 32 ) AS col2 FROM tab0 AS cor0
----
-20
-32

skipif mysql # not compatible
query II rowsort label-3464
SELECT + - 20, + SUM ( DISTINCT - + 32 ) AS col2 FROM tab0 AS cor0
----
-20
-32

query I rowsort
SELECT + - col0 * + + col2 * + col1 FROM tab0 cor0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 * col1 - col1 < + - col0
----

query I rowsort
SELECT - - 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL - + COUNT( * ) * - 9 AS col1 FROM tab0 WHERE NOT + col2 + col1 - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - + COUNT ( * ) * - 9 AS col1 FROM tab0 WHERE NOT + col2 + col1 - col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT col1 * - + CAST( NULL AS SIGNED ) - + 39 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT col1 * - + CAST ( NULL AS INTEGER ) - + 39 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3470
SELECT - col0 DIV + CAST( - ( col1 ) AS SIGNED ) - col1 AS col1 FROM tab1 cor0
----
-11
-46
12

skipif mysql # not compatible
query I rowsort label-3470
SELECT - col0 / + CAST ( - ( col1 ) AS INTEGER ) - col1 AS col1 FROM tab1 cor0
----
-11
-46
12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 45 < col2
----
87
21
10

query I rowsort
SELECT col1 * + - 78 * 88 AS col0 FROM tab2 AS cor0
----
-350064
-459888
-528528

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * - 13 - + + col0 BETWEEN col0 AND + 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT ALL ( 53 ) DIV + - col2 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL ( 53 ) / + - col2 AS col1 FROM tab0
----
-1
-5
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 69 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT + 0 * - col2 + col0 DIV 66 * col0 FROM tab2 AS cor0
----
0
0
75

skipif mysql # not compatible
query I rowsort label-3476
SELECT + 0 * - col2 + col0 / 66 * col0 FROM tab2 AS cor0
----
0
0
75

query I rowsort
SELECT DISTINCT 80 * + col1 FROM tab1 AS cor0
----
1120
3760
400

query II rowsort
SELECT DISTINCT col0 AS col1, + col0 FROM tab1
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( 48 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 64 + - col1 + - col2 IS NOT NULL
----

query II rowsort
SELECT + col0 AS col1, 1 AS col2 FROM tab1 AS cor0
----
51
1
85
1
91
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 IS NULL )
----

query II rowsort
SELECT ALL + col0 AS col1, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL + col0 + - 90 FROM tab1 AS cor0
----
-39
-5
1

query I rowsort
SELECT ALL col2 * col2 + - - col0 + - col1 AS col2 FROM tab1
----
3561
4668
9253

query III rowsort
SELECT * FROM tab2 WHERE - ( - - col1 ) * + col0 IS NULL
----

query I rowsort
SELECT - 96 + + col1 - - 35 + - col0 FROM tab0
----
-127
-157
5

query I rowsort
SELECT DISTINCT col0 * - - 14 FROM tab0
----
1218
1358
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - COUNT( * ) + - 92 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-3489
SELECT - COUNT ( * ) + - 92 FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT DISTINCT + MAX( - 26 ) AS col1 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT + MAX ( - 26 ) AS col1 FROM tab0 WHERE NOT NULL >= NULL
----
NULL

query II rowsort
SELECT - 91 + col2, + col0 AS col0 FROM tab0 cor0
----
-44
15
-81
87
8
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + + col2 col0 FROM tab1 AS cor0 WHERE col0 >= - col0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT AVG ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 + - - col1 BETWEEN ( NULL ) AND ( 73 )
----
51
14
96
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 + - 63 col1 FROM tab1 AS cor0
----
-37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = - col0 * + + 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL ( + - ( - + CAST( + + 42 AS SIGNED ) ) ) - - 89 FROM tab1
----
131
131
131

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL ( + - ( - + CAST ( + + 42 AS INTEGER ) ) ) - - 89 FROM tab1
----
131
131
131

query I rowsort
SELECT DISTINCT 1 - + 49 FROM tab0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT col1 DIV + - col0 - - - col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3499
SELECT col1 / + - col0 - - - col2 AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * + 16 / COUNT( * ) - + 15 * - 63 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 16 / COUNT ( * ) - + 15 * - 63 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - MAX( - + col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3501
SELECT - MAX ( - + col0 ) FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT SUM( - 75 ) FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT SUM ( - 75 ) FROM tab0 AS cor0
----
-225

query II rowsort
SELECT DISTINCT - 30, ( - col0 ) AS col2 FROM tab1 AS cor0
----
-30
-51
-30
-85
-30
-91

query II rowsort
SELECT ALL col2 AS col2, 67 AS col0 FROM tab2 AS cor0
----
23
67
40
67
58
67

query I rowsort
SELECT ALL + - col2 * 37 AS col2 FROM tab0 AS cor0
----
-1739
-3663
-370

onlyif mysql # DIV for integer division: 
query II rowsort label-3506
SELECT - col0 DIV + 62 + col2, + ( + - 79 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
-79
39
-79
57
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3506
SELECT - col0 / + 62 + col2, + ( + - 79 ) col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
-79
39
-79
57
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col0 FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT 36 * + CAST( - col1 AS SIGNED ) col1 FROM tab1
----
-1692
-180
-504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3508
SELECT 36 * + CAST ( - col1 AS INTEGER ) col1 FROM tab1
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - ( + MAX( DISTINCT + ( + 88 ) ) ) AS col2 FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-3509
SELECT - ( + MAX ( DISTINCT + ( + 88 ) ) ) AS col2 FROM tab0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL - MAX( ALL - 71 ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL - MAX ( ALL - 71 ) AS col0 FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT + MIN( DISTINCT - 1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3512
SELECT + MIN ( DISTINCT - 1 ) AS col2 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col2 FROM tab0
----
41

query I rowsort
SELECT DISTINCT + + col2 * - col1 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL - MIN( + col2 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - MIN ( + col2 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
177

query I rowsort
SELECT - 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 * + col2 col0 FROM tab1
----
4661
5372
7584

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL 93 + + 20 DIV 97 FROM tab0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL 93 + + 20 / 97 FROM tab0
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) * - SUM( - 67 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) * - SUM ( - 67 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - col1 + + 57 FROM tab1 AS cor0
----
-37
29
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT + COUNT( * ) * + COUNT( * ) FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3521
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE 11 * - 88 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3522
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE 11 * - 88 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT - 25 AS col0, ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-25
3

skipif mysql # not compatible
query II rowsort label-3523
SELECT - 25 AS col0, ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-25
3

query II rowsort
SELECT - ( - col0 ), + col2 AS col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT - COUNT( * ) AS col1, + 61 FROM tab0
----
-3
61

skipif mysql # not compatible
query II rowsort label-3525
SELECT - COUNT ( * ) AS col1, + 61 FROM tab0
----
-3
61

query III rowsort
SELECT * FROM tab2 WHERE + col0 <= - 38
----

query I rowsort
SELECT DISTINCT + col0 * + - 95 + - 12 FROM tab0
----
-1437
-8277
-9227

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT DISTINCT 53 + - - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT 53 + - - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT - 93 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3531
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT DISTINCT COUNT( ALL - - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT COUNT ( ALL - - col0 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT - COUNT( 31 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3533
SELECT - COUNT ( 31 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT + ( + col2 ) + - + CAST( - - col2 AS SIGNED ) FROM tab1 cor0 WHERE NOT col2 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT + ( + col2 ) + - + CAST ( - - col2 AS INTEGER ) FROM tab1 cor0 WHERE NOT col2 IS NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 >= NULL
----

query I rowsort
SELECT - col2 * + - 49 AS col0 FROM tab0 cor0
----
2303
4851
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 31 AS col2 FROM tab1
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col0 FROM tab1
----
-98
-98
-98

query II rowsort
SELECT - col0 AS col1, col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT MAX( + 70 ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3541
SELECT MAX ( + 70 ) FROM tab0
----
70

query I rowsort
SELECT DISTINCT 68 * + - 83 AS col2 FROM tab0
----
-5644

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT 77 DIV - col2 AS col0 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-3543
SELECT 77 / - col2 AS col0 FROM tab0
----
-1
-7
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT ( - - CAST( + 27 AS SIGNED ) ) AS col0 FROM tab1
----
27
27
27

skipif mysql # not compatible
query I rowsort label-3544
SELECT ( - - CAST ( + 27 AS INTEGER ) ) AS col0 FROM tab1
----
27
27
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 1 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ( + + ( + col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 + col1 IS NULL
----
46
64
75

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT - 19 NOT BETWEEN + ( + 66 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3548
SELECT COUNT( * ) DIV 17 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3548
SELECT COUNT ( * ) / 17 AS col1 FROM tab2
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE - 49 <= NULL
----

query II rowsort
SELECT ALL + 31 AS col0, - 66 FROM tab2 WHERE NOT - col1 < + 13
----

query I rowsort
SELECT ALL + col0 * - col2 + + 78 FROM tab0 AS cor0
----
-627
-792
-9525

query II rowsort
SELECT ( - col2 ) * col0 + - + 36 AS col2, + col1 FROM tab0 cor0
----
-741
81
-906
21
-9639
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT 60 * 45 * + 69 + COUNT( * ) + 14 AS col2 FROM tab2 AS cor0
----
186317

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT 60 * 45 * + 69 + COUNT ( * ) + 14 AS col2 FROM tab2 AS cor0
----
186317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT - - CAST( + - col1 AS SIGNED ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3554
SELECT - - CAST ( + - col1 AS INTEGER ) col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT ALL COUNT( * ) + + MAX( - + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL COUNT ( * ) + + MAX ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 9 + + + col2 FROM tab2
----
32
49
67

query I rowsort
SELECT - col0 FROM tab0 WHERE + col1 <= col0
----
-87
-97

query I rowsort
SELECT DISTINCT 87 - + col2 * - col0 * + col0 AS col2 FROM tab2
----
163927
326337
48755

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - COUNT( * ) + SUM( col0 ) AS col2 FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-3559
SELECT - COUNT ( * ) + SUM ( col0 ) AS col2 FROM tab0
----
196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3560
SELECT ALL col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN 63 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL SUM( + col0 ) + ( 11 ) AS col1 FROM tab2 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL SUM ( + col0 ) + ( 11 ) AS col1 FROM tab2 AS cor0
----
196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT col1 IS NOT NULL ) )
----

query I rowsort
SELECT col0 + - + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-45
23
26

query I rowsort
SELECT ALL col1 + 62 + + 23 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL - - CAST( + ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - - CAST ( + ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT ALL col0 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col0 * - 87 * + col0 FROM tab2 AS cor0
----
-184092
-356352
-489375

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 46 + - - col1 + - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - COUNT( * ) * COUNT( DISTINCT + 70 ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3571
SELECT - COUNT ( * ) * COUNT ( DISTINCT + 70 ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - 24 FROM tab1 WHERE NOT - 70 IS NULL
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT + CAST( NULL AS SIGNED ) * - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT + CAST ( NULL AS INTEGER ) * - - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 73 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-632
-797
-9530

query I rowsort
SELECT ALL - col1 + + + 2 * 76 * - col1 AS col0 FROM tab2 AS cor0
----
-10251
-11781
-7803

query I rowsort
SELECT DISTINCT + 62 + + 41 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL MAX( ALL - + 90 ) AS col0 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL MAX ( ALL - + 90 ) AS col0 FROM tab1
----
-90

query III rowsort
SELECT * FROM tab0 WHERE 57 * - col1 * + 71 + - - 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT - + col0 * col2 DIV col0 + + 43 FROM tab2 AS cor0
----
-15
20
3

skipif mysql # not compatible
query I rowsort label-3579
SELECT - + col0 * col2 / col0 + + 43 FROM tab2 AS cor0
----
-15
20
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 + col1 col2 FROM tab0 AS cor0
----
-27
-47
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3581
SELECT MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + col2 + - + col0 + 3 + col0 FROM tab0 AS cor0
----
102
13
50

query I rowsort
SELECT ALL + col2 * 4 FROM tab0 WHERE NULL BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT ALL - col1 - 10 + - 33 * + col0 AS col1 FROM tab0
----
-2902
-3212
-586

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + 63 * + MIN( ALL + + ( - - col1 ) ) col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3585
SELECT ALL + 63 * + MIN ( ALL + + ( - - col1 ) ) col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT DISTINCT - - CAST( - + col1 AS SIGNED ) FROM tab1 WHERE + col0 * col0 > + col0 + + - col1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT - - CAST ( - + col1 AS INTEGER ) FROM tab1 WHERE + col0 * col0 > + col0 + + - col1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT CAST( NULL AS SIGNED ) - col2 + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT CAST ( NULL AS INTEGER ) - col2 + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + ( col2 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL - - MAX( 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - - MAX ( 70 ) FROM tab0 AS cor0
----
70

query I rowsort
SELECT DISTINCT - - 33 - + + ( - + 25 ) AS col0 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL 23 AS col1 FROM tab2 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3592
SELECT DISTINCT + MAX( - col0 ), - 13 AS col2 FROM tab2 AS cor0
----
-46
-13

skipif mysql # not compatible
query II rowsort label-3592
SELECT DISTINCT + MAX ( - col0 ), - 13 AS col2 FROM tab2 AS cor0
----
-46
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT + MIN( ALL + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + MIN ( ALL + col2 ) FROM tab2
----
23

query I rowsort
SELECT - - ( - - 14 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT MIN( - - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT MIN ( - - col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + - 29 AS col1 FROM tab1 cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT - + 9 AS col0, COUNT( * ) FROM tab1 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-3597
SELECT - + 9 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-9
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> CAST( + 21 AS SIGNED ) + col2
----
0

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> CAST ( + 21 AS INTEGER ) + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT DISTINCT AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 31 * - col2 FROM tab1 AS cor0
----
-1829
-2108
-2976

query I rowsort
SELECT ALL - 48 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + 25 col2 FROM tab0 AS cor0
----
-1175
-2475
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT CAST( NULL AS SIGNED ) * - col0 * + - 38 * col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3604
SELECT CAST ( NULL AS INTEGER ) * - col0 * + - 38 * col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + ( - col2 ) AS col1 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + SUM( DISTINCT - + 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3606
SELECT + SUM ( DISTINCT - + 2 ) FROM tab2
----
-2

query I rowsort
SELECT col2 * + 45 + + col2 * + 84 + - col0 AS col0 FROM tab2
----
2921
5096
7407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 65, - col0 * - 4 col0 FROM tab2 AS cor0
----
65
184
65
256
65
300

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab1 cor0
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-3610
SELECT + + col1 DIV - 96 + + 49 + + col0, + col1 FROM tab0 cor0
----
136
21
146
1
64
81

skipif mysql # not compatible
query II rowsort label-3610
SELECT + + col1 / - 96 + + 49 + + col0, + col1 FROM tab0 cor0
----
136
21
146
1
64
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT DISTINCT + COUNT( * ) + MAX( + - col2 ) + + - 24 + 43 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + COUNT ( * ) + MAX ( + - col2 ) + + - 24 + 43 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL COUNT( * ) + - COUNT( - col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL COUNT ( * ) + - COUNT ( - col1 ) FROM tab1
----
0

query I rowsort
SELECT ALL 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab0 cor0
----
68

query I rowsort
SELECT + ( + 21 ) FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL > col2 * - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND ( col2 ) = + ( - - 89 )
----

query I rowsort
SELECT ALL - col1 + + col2 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
2128
79
9800

query I rowsort
SELECT - 65 * + 78 + - col2 FROM tab1 AS cor0
----
-5129
-5138
-5166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col0 col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT CAST( NULL AS SIGNED ) + - + 23 * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT CAST ( NULL AS INTEGER ) + - + 23 * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 88 * - col1 + + col1 FROM tab1
----
-1218
-4089
-435

query II rowsort
SELECT + col0 AS col1, 85 FROM tab2
----
46
85
64
85
75
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT CAST( + + col0 AS SIGNED ) * + col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3623
SELECT CAST ( + + col0 AS INTEGER ) * + col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT - col1 * + + col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 11 * + - 3 col1 FROM tab1 AS cor0
----
59
-33
68
-33
96
-33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 * col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT - COUNT( * ) + 43 AS col2 FROM tab0 WHERE ( NULL ) > 4 * col1
----
43

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - COUNT ( * ) + 43 AS col2 FROM tab0 WHERE ( NULL ) > 4 * col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT col0 - col1 DIV 54 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3628
SELECT col0 - col1 / 54 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) < 91 + - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3630
SELECT 66 FROM tab2 WHERE NOT col0 * CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-3630
SELECT 66 FROM tab2 WHERE NOT col0 * CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL MIN( 62 ) AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL MIN ( 62 ) AS col1 FROM tab1
----
62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 12 / + col0 + col2 >= - col2 + col0
----

query I rowsort
SELECT - col0 FROM tab2 WHERE + col1 NOT IN ( 42 )
----
-46
-64
-75

query I rowsort
SELECT 87 * + ( col1 ) AS col0 FROM tab1
----
1218
4089
435

query I rowsort
SELECT 56 * - 38 FROM tab2
----
-2128
-2128
-2128

query I rowsort
SELECT DISTINCT ( 93 ) - - col2 * - col0 FROM tab0
----
-612
-777
-9510

query I rowsort
SELECT - ( + 59 ) FROM tab1 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col1 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3640
SELECT * FROM tab1 WHERE col0 * 53 - col0 BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3640
SELECT * FROM tab1 WHERE col0 * 53 - col0 BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * + col1 + col0 col2 FROM tab1 AS cor0
----
-5
-97
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - 7 ) * - 59 >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL COUNT( * ) * - 30 + 68 AS col2 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL COUNT ( * ) * - 30 + 68 AS col2 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - 72 + MIN( DISTINCT - 29 ) FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-3646
SELECT - 72 + MIN ( DISTINCT - 29 ) FROM tab1 AS cor0
----
-101

query III rowsort
SELECT * FROM tab1 WHERE ( 57 * - ( + col2 ) ) IN ( + col0 + - 64 )
----

query I rowsort
SELECT DISTINCT - 88 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
-88

query I rowsort
SELECT ALL col2 * - col2 - + col0 FROM tab2
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT DISTINCT COUNT( ALL 87 ) + 72 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT COUNT ( ALL 87 ) + 72 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

query I rowsort
SELECT + 14 * - col2 FROM tab2 cor0
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT + + COUNT( * ) * 93 AS col0 FROM tab1 cor0
----
279

skipif mysql # not compatible
query I rowsort label-3652
SELECT + + COUNT ( * ) * 93 AS col0 FROM tab1 cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3653
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN ( 93 * col0 ) AND ( 58 )
----

skipif mysql # not compatible
query III rowsort label-3653
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN ( 93 * col0 ) AND ( 58 )
----

query I rowsort
SELECT 97 * 70 AS col1 FROM tab2 AS cor0
----
6790
6790
6790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT 76 col2 FROM tab2 AS cor0 WHERE NULL > ( - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3655
SELECT 76 col2 FROM tab2 AS cor0 WHERE NULL > ( - CAST ( + col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL ( col1 ) * col2 + col2 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT ALL 3 + col2 AS col1 FROM tab2 AS cor0
----
26
43
61

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT ( - col1 + - 12 ) IN ( - col1 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT + col2 DIV 95 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT + col2 / 95 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + MAX( col2 ) - 71 FROM tab2 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3660
SELECT + MAX ( col2 ) - 71 FROM tab2 cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NULL < col2
----
0

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NULL < col2
----
0

query I rowsort
SELECT + 41 - col2 FROM tab2 WHERE NOT ( - 73 * + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( col0 ) * 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab0
----
22

query I rowsort
SELECT - col2 * 49 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT COUNT( * ) * 81 + - COUNT( * ) FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT COUNT ( * ) * 81 + - COUNT ( * ) FROM tab1 AS cor0
----
240

query I rowsort
SELECT col2 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE + col2 * ( col2 ) + col2 * - 63 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + + 45 * - col1 AS col0 FROM tab0 cor0
----
-3645
-45
-945

query I rowsort
SELECT ALL ( - 75 ) FROM tab0 AS cor0 WHERE NOT ( - 28 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT DISTINCT - MIN( DISTINCT + 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT - MIN ( DISTINCT + 0 ) FROM tab1
----
0

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( + 8 = ( NULL ) )
----

query II rowsort
SELECT col0 AS col2, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT DISTINCT - col1 * - col0 FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col1 * 8 BETWEEN col2 + - col0 AND 66 * CAST( col0 * + col1 AS SIGNED ) + 41
----

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - col1 * - col0 FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col1 * 8 BETWEEN col2 + - col0 AND 66 * CAST ( col0 * + col1 AS INTEGER ) + 41
----

query I rowsort
SELECT ALL - - ( col2 ) / col0 + col1 FROM tab0 AS cor0 WHERE - 33 IS NULL
----

query I rowsort
SELECT ALL + col2 + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT ALL col1 * col0 + + col1 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
10117
4743
9933

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 88 NOT IN ( 53 ) OR NULL BETWEEN - 75 AND NULL
----

query II rowsort
SELECT + col1 AS col0, col1 * - - 42 FROM tab2 AS cor0
----
51
2142
67
2814
77
3234

query I rowsort
SELECT + + col1 * 50 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
2350
250
700

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE ( - + 31 ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( - col1 )
----

query I rowsort
SELECT + 50 * col0 * - 44 FROM tab2
----
-101200
-140800
-165000

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT 38 * - - COUNT( * ) AS col2, - COUNT( * ) FROM tab1
----
114
-3

skipif mysql # not compatible
query II rowsort label-3685
SELECT 38 * - - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1
----
114
-3

query I rowsort
SELECT + 16 + + col1 FROM tab2
----
67
83
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT - col1 DIV + 19 + + col0 + - 17 FROM tab1
----
34
68
72

skipif mysql # not compatible
query I rowsort label-3687
SELECT - col1 / + 19 + + col0 + - 17 FROM tab1
----
34
68
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + COUNT( * ) + + 56 * 56 FROM tab1
----
3139

skipif mysql # not compatible
query I rowsort label-3688
SELECT + COUNT ( * ) + + 56 * 56 FROM tab1
----
3139

query II rowsort
SELECT DISTINCT + col1 * col0 AS col0, 36 + + col0 AS col1 FROM tab2
----
2346
82
4928
100
5025
111

query I rowsort
SELECT - 97 + + + col2 FROM tab1
----
-1
-29
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL - MIN( DISTINCT + ( 21 ) ) + + + 5 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL - MIN ( DISTINCT + ( 21 ) ) + + + 5 FROM tab1 AS cor0
----
-16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - + 77 ) NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT + 65 + - - col0 * + ( + + ( CAST( NULL AS SIGNED ) ) ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT + 65 + - - col0 * + ( + + ( CAST ( NULL AS INTEGER ) ) ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 47 + - 81 + col1 AS col0 FROM tab1 AS cor0
----
-20
-29
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL - COUNT( * ) - - 50 + + - 59 AS col1 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL - COUNT ( * ) - - 50 + + - 59 AS col1 FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL MIN( - + 69 ) AS col2 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL MIN ( - + 69 ) AS col2 FROM tab1
----
-69

query I rowsort
SELECT ALL 88 - + 67 AS col2 FROM tab2
----
21
21
21

query I rowsort
SELECT 32 * - ( + - col2 ) AS col0 FROM tab0
----
1504
3168
320

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL + COUNT( * ) * + COUNT( ALL - - col0 ) * - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL + COUNT ( * ) * + COUNT ( ALL - - col0 ) * - COUNT ( * ) FROM tab0
----
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0 * 91, 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT COUNT( * ) + - - 53 AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3701
SELECT COUNT ( * ) + - - 53 AS col0 FROM tab2 AS cor0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col2 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN - - 6 AND NULL
----

query II rowsort
SELECT + col2, - 34 FROM tab2
----
23
-34
40
-34
58
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT COUNT( + - ( + 41 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3705
SELECT COUNT ( + - ( + 41 ) ) FROM tab0
----
3

query II rowsort
SELECT - 17 AS col1, col2 * + - col1 * col0 FROM tab0
----
-17
-18270
-17
-57105
-17
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-3707
SELECT ALL - col1 AS col2, col1 DIV - 75 AS col2 FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-3707
SELECT ALL - col1 AS col2, col1 / - 75 AS col2 FROM tab1
----
-14
0
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT + 75 * + - ( - COUNT( * ) ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT + 75 * + - ( - COUNT ( * ) ) FROM tab0
----
225

query I rowsort
SELECT DISTINCT 12 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT ALL + 39 - + col2 * col2 FROM tab2 WHERE ( + - ( + 50 ) * + + CAST( - 74 AS SIGNED ) - col0 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + 39 - + col2 * col2 FROM tab2 WHERE ( + - ( + 50 ) * + + CAST ( - 74 AS INTEGER ) - col0 ) >= NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT col2 + - - CAST( - 95 AS SIGNED ) + + 78 FROM tab1 cor0
----
42
51
79

skipif mysql # not compatible
query I rowsort label-3713
SELECT col2 + - - CAST ( - 95 AS INTEGER ) + + 78 FROM tab1 cor0
----
42
51
79

query II rowsort
SELECT ALL - col2 * - - 21, + col2 FROM tab1 cor0
----
-1239
59
-1428
68
-2016
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT DISTINCT col2 * col1 * col2 DIV col0 + - + 97 FROM tab0 AS cor0
----
-73
11831
4

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT col2 * col1 * col2 / col0 + - + 97 FROM tab0 AS cor0
----
-73
11831
4

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE ( - - 31 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL COUNT( * ) + - 2 * 14 AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL COUNT ( * ) + - 2 * 14 AS col2 FROM tab0 AS cor0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT ALL col2 + - col1 DIV 40 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL col2 + - col1 / 40 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT DISTINCT - col1 + - col2 * 0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - ( + - 91 ) FROM tab2
----
91

query I rowsort
SELECT DISTINCT + ( 14 ) FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col1, 20 * + + 99 FROM tab0
----
10
1980
47
1980
99
1980

query I rowsort
SELECT - col0 * - 55 FROM tab1
----
2805
4675
5005

query I rowsort
SELECT DISTINCT - 30 - + 86 AS col1 FROM tab2
----
-116

query III rowsort
SELECT * FROM tab1 WHERE + + col0 / + col0 = ( NULL )
----

query I rowsort
SELECT ALL 59 AS col2 FROM tab0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT 60 * MIN( ALL col0 ) + 1 AS col2 FROM tab0 AS cor0
----
901

skipif mysql # not compatible
query I rowsort label-3727
SELECT 60 * MIN ( ALL col0 ) + 1 AS col2 FROM tab0 AS cor0
----
901

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT DISTINCT + - 37 + + col2 * - 38 * col1 + col1 + col1 DIV 49 + - col1 FROM tab2 AS cor0
----
-117076
-147704
-44610

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT + - 37 + + col2 * - 38 * col1 + col1 + col1 / 49 + - col1 FROM tab2 AS cor0
----
-117076
-147704
-44610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 66 col1 FROM tab2
----
106
124
89

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 42 IS NULL
----

query I rowsort
SELECT DISTINCT 11 * + col0 AS col2 FROM tab2
----
506
704
825

query I rowsort
SELECT + - 46 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT col2 * + - 36 FROM tab1
----
-2124
-2448
-3456

query I rowsort
SELECT 27 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 14 > + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT + ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3736
SELECT + ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT ALL + - CAST( - 18 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + - CAST ( - 18 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL MIN( + 79 ) AS col2 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL MIN ( + 79 ) AS col2 FROM tab0 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - - col2 = 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT SUM( DISTINCT col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col1 FROM tab1
----
66

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + + col2 AND - 40
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3743
SELECT + 18 DIV + CAST( - - col1 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 18 / + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3744
SELECT * FROM tab2 WHERE NOT + col2 + + CAST( NULL AS SIGNED ) BETWEEN 0 AND - col0
----

skipif mysql # not compatible
query III rowsort label-3744
SELECT * FROM tab2 WHERE NOT + col2 + + CAST ( NULL AS INTEGER ) BETWEEN 0 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - - col1 * + + col1, - 36 * - col1 col2 FROM tab2
----
-119646
1836
-336675
2412
-379456
2772

onlyif mysql # DIV for integer division: 
query II rowsort label-3746
SELECT DISTINCT - + 78 DIV 15 * + col1 * col0 * + col1 AS col2, ( + col0 ) * + col1 - + col1 + + col1 FROM tab2 AS cor0
----
-1683375
5025
-1897280
4928
-598230
2346

skipif mysql # not compatible
query II rowsort label-3746
SELECT DISTINCT - + 78 / 15 * + col1 * col0 * + col1 AS col2, ( + col0 ) * + col1 - + col1 + + col1 FROM tab2 AS cor0
----
-1683375
5025
-1897280
4928
-598230
2346

query I rowsort
SELECT ALL 68 FROM tab1 AS cor0 WHERE ( ( + 41 + + ( - 36 ) ) NOT IN ( col0 ) )
----
68
68
68

query II rowsort
SELECT DISTINCT col1 AS col1, col1 / 21 + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3749
SELECT * FROM tab1 cor0 WHERE NOT ( NOT - ( - CAST( + 30 AS SIGNED ) ) * 75 > - 6 * + col0 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3749
SELECT * FROM tab1 cor0 WHERE NOT ( NOT - ( - CAST ( + 30 AS INTEGER ) ) * 75 > - 6 * + col0 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT ALL - - 99 * - 39 / + 41 * - 25 AS col2 FROM tab2 cor0 WHERE - CAST( + - col1 AS SIGNED ) * 35 * - - 21 = ( - 42 )
----

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - - 99 * - 39 / + 41 * - 25 AS col2 FROM tab2 cor0 WHERE - CAST ( + - col1 AS INTEGER ) * 35 * - - 21 = ( - 42 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - - col0 col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - - 47 AS col2 FROM tab2 AS cor0
----
47

query I rowsort
SELECT + - col0 * + + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT + 49, 31 * col0 AS col0 FROM tab2 AS cor0
----
49
1426
49
1984
49
2325

query II rowsort
SELECT - - 61, col2 AS col1 FROM tab0 AS cor0
----
61
10
61
47
61
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + + + 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3758
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN - 51 * CAST( NULL AS SIGNED ) * - + 21 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3758
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN - 51 * CAST ( NULL AS INTEGER ) * - + 21 AND NULL
----

query II rowsort
SELECT DISTINCT col0 + 15 + - + 34 * col0 AS col2, 94 * + 38 AS col1 FROM tab0 AS cor0
----
-2856
3572
-3186
3572
-480
3572

query I rowsort
SELECT DISTINCT + col1 + col2 * + - col2 * - 63 * col2 FROM tab2 cor0
----
12292123
4032077
766572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3761
SELECT DISTINCT CAST( + 3 AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT CAST ( + 3 AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 * - - 4 FROM tab1 WHERE NOT ( NOT ( - + 67 ) / col1 * 71 <= col0 )
----
-204
-340
-364

query I rowsort
SELECT ALL 90 + + 2 + - - col0 FROM tab1
----
143
177
183

query I rowsort
SELECT + 56 + + col2 - 38 * 34 FROM tab2
----
-1178
-1196
-1213

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL + 64 * - MIN( ALL ( col2 ) ) AS col1 FROM tab0
----
-640

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + 64 * - MIN ( ALL ( col2 ) ) AS col1 FROM tab0
----
-640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT col1 + - CAST( NULL AS SIGNED ) - + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT col1 + - CAST ( NULL AS INTEGER ) - + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - MAX( ALL + 78 ) + + + ( 30 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-3767
SELECT - MAX ( ALL + 78 ) + + + ( 30 ) FROM tab2
----
-48

query I rowsort
SELECT 62 * col1 + - 21 - + 3 AS col1 FROM tab0
----
1278
38
4998

query I rowsort
SELECT ALL ( + col2 ) - + - 81 AS col0 FROM tab2
----
104
121
139

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + col1 - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 52 ) AS col2 FROM tab2
----
52

query I rowsort
SELECT ALL - col1 * + ( col2 ) AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT col1 + col2 + - col1 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col0 + - col2 * - col2 * col1 FROM tab0 cor0
----
178944
2187
9898

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT - COUNT( * ) AS col0, 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
0

skipif mysql # not compatible
query II rowsort label-3775
SELECT - COUNT ( * ) AS col0, 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT + 56 * - col2 AS col2 FROM tab0
----
-2632
-5544
-560

query I rowsort
SELECT - + 12 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + - 78 * - COUNT( * ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-3780
SELECT + - 78 * - COUNT ( * ) FROM tab0 AS cor0
----
234

query I rowsort
SELECT ALL col2 * 77 AS col1 FROM tab2 AS cor0
----
1771
3080
4466

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3782
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) * col0 NOT BETWEEN 2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3782
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) * col0 NOT BETWEEN 2 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * 14 FROM tab1 AS cor0
----
196
658
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT col2 * CAST( + + col0 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT col2 * CAST ( + + col0 AS INTEGER ) FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT DISTINCT - col1 DIV + col2 * + 71 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT - col1 / + col2 * + 71 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab2
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT DISTINCT - MIN( col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - MIN ( col0 ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT DISTINCT + - col2 * - col1 + 29 + + - col1 + - + 86 - + + col1 DIV 76 FROM tab1 AS cor0
----
1273
233
3092

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + - col2 * - col1 + 29 + + - col1 + - + 86 - + + col1 / 76 FROM tab1 AS cor0
----
1273
233
3092

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 53 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <= NULL
----

query I rowsort
SELECT ALL 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + 45 + + COUNT( * ) + + + ( + + 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
147

skipif mysql # not compatible
query I rowsort label-3794
SELECT + 45 + + COUNT ( * ) + + + ( + + 93 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
147

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-3795
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS DECIMAL ) = + 15
----

skipif mysql # not compatible
query IIIIII rowsort label-3795
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS REAL ) = + 15
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3796
SELECT + CAST( NULL AS SIGNED ) + MAX( + + col0 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT + CAST ( NULL AS INTEGER ) + MAX ( + + col0 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + - - 59 AS col1 FROM tab0 AS cor0
----
106
158
69

query I rowsort
SELECT - col2 + 13 AS col0 FROM tab0 AS cor0
----
-34
-86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT ALL - 55 - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL - 55 - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 AS col2, + 43 col2 FROM tab2 cor0
----
59
43
59
43
59
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT ALL - 15 + - - SUM( DISTINCT - - col1 ), + 72 AS col0 FROM tab1 AS cor0
----
51
72

skipif mysql # not compatible
query II rowsort label-3801
SELECT ALL - 15 + - - SUM ( DISTINCT - - col1 ), + 72 AS col0 FROM tab1 AS cor0
----
51
72

query II rowsort
SELECT - col2 AS col2, - col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / - ( 1 ) <= col2 * - 41 OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 29 ) + + col1 col1 FROM tab0 AS cor0
----
-28
-8
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70 col2, - col1 + 66 AS col0 FROM tab1
----
70
19
70
52
70
61

query III rowsort
SELECT * FROM tab0 WHERE ( 83 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3807
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NOT + col1 + - col0 - + col2 * + ( col2 ) * - - CAST( NULL AS SIGNED ) * + col0 - - - 23 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3807
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NOT + col1 + - col0 - + col2 * + ( col2 ) * - - CAST ( NULL AS INTEGER ) * + col0 - - - 23 IS NOT NULL
----

query I rowsort
SELECT - col1 + + 10 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col2 - - 95 FROM tab0 AS cor0
----
-4
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT DISTINCT 64 * - - MAX( ALL col1 ) FROM tab1 AS cor0
----
3008

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT 64 * - - MAX ( ALL col1 ) FROM tab1 AS cor0
----
3008

query I rowsort
SELECT ALL col2 * + 74 AS col2 FROM tab0
----
3478
7326
740

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - - 37 AS col0 FROM tab1 WHERE - + 41 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = col2 + + col1
----

query I rowsort
SELECT ALL + col1 * - col1 + - - col2 + col1 * 14 AS col0 FROM tab1 cor0 WHERE col2 = - 69
----

query I rowsort
SELECT ALL col1 * - - col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE NOT ( col0 ) * - + col1 + - + 24 + 77 NOT IN ( + - col1 )
----

query I rowsort
SELECT ALL + col0 * - col0 * 98 FROM tab2
----
-207368
-401408
-551250

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT + - 56 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - 73 AS col1 FROM tab0
----
-73
-73
-73

query II rowsort
SELECT DISTINCT - 3 AS col2, 26 * - 25 * - + col0 AS col2 FROM tab0
----
-3
56550
-3
63050
-3
9750

query II rowsort
SELECT + 48 AS col2, - ( + - col2 ) FROM tab1
----
48
59
48
68
48
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL SUM( ALL 42 ) AS col2 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL SUM ( ALL 42 ) AS col2 FROM tab2
----
126

query I rowsort
SELECT ALL - 2 * 46 AS col0 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT ALL - 47 * + col1 AS col1 FROM tab1
----
-2209
-235
-658

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE 69 NOT BETWEEN + 79 / + + col0 - ( + col0 ) AND ( + col2 )
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + MIN( DISTINCT + + col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3827
SELECT + MIN ( DISTINCT + + col0 ) AS col2 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT 46 DIV + + 60 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3828
SELECT 46 / + + 60 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3829
SELECT + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0 WHERE - col0 >= + - 70 / col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0 WHERE - col0 >= + - 70 / col0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
14
47
5

query I rowsort
SELECT ALL 91 + - + 39 + - 96 * - - 0 FROM tab0 AS cor0
----
52
52
52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 7 BETWEEN NULL AND - + 76
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 - + col1 + col0 col0 FROM tab0 AS cor0
----
-1
-1281
-1761

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL MAX( - - col1 ) + - COUNT( * ) AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL MAX ( - - col1 ) + - COUNT ( * ) AS col2 FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT 7 * + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT 7 * + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 9 - - col1 * + - 37 + col1 + col0 AS col1 FROM tab2
----
-1781
-2328
-2699

query I rowsort
SELECT col1 + + 8 * col0 AS col1 FROM tab2
----
419
589
667

query I rowsort
SELECT col0 + - col2 * - col1 * + col0 AS col0 FROM tab2
----
197184
291525
54004

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + MIN( + 20 ) AS col0 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3839
SELECT + MIN ( + 20 ) AS col0 FROM tab0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT - SUM( col2 ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT - SUM ( col2 ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-223

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + 27
----

query I rowsort
SELECT 7 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT col0 * - - 23 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
1058
1472
1725

query I rowsort
SELECT DISTINCT - 50 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-50

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * - col0 + - col1 - + col1 + - 37 + + 68 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * - ( - 72 ) <> - col0 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3850
SELECT ALL - COUNT( * ) * - - SUM( - CAST( 42 AS SIGNED ) ) + + COUNT( * ) FROM tab2 cor0
----
381

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - COUNT ( * ) * - - SUM ( - CAST ( 42 AS INTEGER ) ) + + COUNT ( * ) FROM tab2 cor0
----
381

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * - col2 < + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 52 + + col1 * - + col0 FROM tab1
----
-373
-4225
-662

query I rowsort
SELECT DISTINCT ( col2 ) * + col0 * - col1 AS col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - SUM( ALL + + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3854
SELECT - SUM ( ALL + + col0 ) AS col1 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col1 FROM tab1 WHERE NOT + - col1 > col1 / - 81
----
35

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * col0 * - 99 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 / - - col2 NOT BETWEEN col2 * + - col2 AND + col1 * + col1
----

query I rowsort
SELECT DISTINCT - 95 + + + col0 AS col2 FROM tab2 WHERE NOT 43 BETWEEN - col0 / + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( ( - col2 ) * col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 < - - 92
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT + 80 + + COUNT( * ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3861
SELECT + 80 + + COUNT ( * ) FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT DISTINCT + 69 + SUM( + + col1 ) AS col2 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + 69 + SUM ( + + col1 ) AS col2 FROM tab1 AS cor0
----
135

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3863
SELECT ALL + 29 AS col0, - col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
29
NULL
29
NULL
29
NULL

skipif mysql # not compatible
query II rowsort label-3863
SELECT ALL + 29 AS col0, - col1 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
29
NULL
29
NULL
29
NULL

query I rowsort
SELECT ALL col0 + + 39 - - col0 FROM tab1 AS cor0
----
141
209
221

query I rowsort
SELECT ( + + col0 ) * - 37 AS col1 FROM tab2 AS cor0
----
-1702
-2368
-2775

query I rowsort
SELECT ALL + AVG ( - ( - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE + 93 IN ( - 36 * 56 )
----
NULL

query I rowsort
SELECT DISTINCT + 46 + + + 24 AS col1 FROM tab2 AS cor0
----
70

query I rowsort
SELECT ALL col2 - - - col2 + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - 85 + ( - + 22 ) FROM tab2
----
-107

query II rowsort
SELECT ALL + - 92 * - 37 AS col1, 1 FROM tab0 WHERE + - col0 * + + col2 < - 58
----
3404
1
3404
1
3404
1

query I rowsort
SELECT DISTINCT + 59 + + 96 - + col1 FROM tab0
----
134
154
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL SUM( + 77 ) AS col0 FROM tab0, tab1 AS cor0
----
693

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL SUM ( + 77 ) AS col0 FROM tab0, tab1 AS cor0
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT COUNT( ALL - + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3873
SELECT COUNT ( ALL - + col1 ) FROM tab2
----
3

query I rowsort
SELECT ALL - 85 * + 59 * col1 AS col1 FROM tab1
----
-235705
-25075
-70210

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( + col1 ) BETWEEN - - 8 * + - ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + MIN( + 99 ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + MIN ( + 99 ) FROM tab1 cor0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3877
SELECT + + 32 DIV - 97 + + 78 * - + COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
-702

skipif mysql # not compatible
query I rowsort label-3877
SELECT + + 32 / - 97 + + 78 * - + COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL + - ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3880
SELECT ALL + - ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT + MIN( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3881
SELECT + MIN ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
46

query II rowsort
SELECT - col0, - col0 AS col1 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT ALL + + 62 FROM tab1 cor0
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT - 39 DIV + col1 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38
20
81

skipif mysql # not compatible
query I rowsort label-3884
SELECT - 39 / + col1 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38
20
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT MIN( col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3885
SELECT MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - 67 AS col1 FROM tab2 AS cor0 WHERE NOT - ( + 11 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3887
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( + ( - 0 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3887
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( + ( - 0 ) AS REAL )
----

query III rowsort
SELECT * FROM tab1 WHERE 31 NOT BETWEEN - 55 + - + col0 - + col1 AND + 83
----

query I rowsort
SELECT ALL 85 * - col1 * - + col2 AS col1 FROM tab1
----
114240
25075
271660

query I rowsort
SELECT DISTINCT - 52 + - col0 * + + col2 AS col1 FROM tab0
----
-757
-922
-9655

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT COUNT( - col0 ) + + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3891
SELECT COUNT ( - col0 ) + + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT DISTINCT + COUNT( * ) AS col2, 92 * + COUNT( * ) col0 FROM tab1
----
3
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3892
SELECT DISTINCT + COUNT ( * ) AS col2, 92 * + COUNT ( * ) col0 FROM tab1
----
3
276

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - 18 + - COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - 18 + - COUNT ( * ) FROM tab2
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3894
SELECT - - col1 * + 70 * 59 - - 6 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT - - col1 * + 70 * 59 - - 6 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 + - col2 - + col1 AS col0 FROM tab2 AS cor0
----
-125
-192
-194

query I rowsort
SELECT ALL + - col1 + - - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + - + col1 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT ALL + - 44 + col0 AS col1 FROM tab1 AS cor0
----
41
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT DISTINCT + COUNT( * ) + - SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + COUNT ( * ) + - SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
106

query I rowsort
SELECT DISTINCT + 85 + + 69 * + + col1 * - col0 + + col2 * + - col2 + + - 6 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 10 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-10

query I rowsort
SELECT col1 * + col1 * - col1 * col0 AS col2 FROM tab2
----
-22557225
-29218112
-6101946

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT 38 * - + 47 * + + COUNT( + 50 ) AS col0 FROM tab2
----
-5358

skipif mysql # not compatible
query I rowsort label-3903
SELECT 38 * - + 47 * + + COUNT ( + 50 ) AS col0 FROM tab2
----
-5358

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3904
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT COUNT( DISTINCT + 66 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3905
SELECT COUNT ( DISTINCT + 66 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 42 IS NULL
----

query I rowsort
SELECT DISTINCT - 78 + + 39 + - + col0 AS col1 FROM tab1 cor0
----
-124
-130
-90

query I rowsort
SELECT ALL 33 + col0 AS col0 FROM tab2 cor0
----
108
79
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3910
SELECT DISTINCT + col2 DIV - CAST( + + col2 AS SIGNED ) + - - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
20
80

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT + col2 / - CAST ( + + col2 AS INTEGER ) + - - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
20
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT DISTINCT - AVG ( + col0 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - AVG ( + col0 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL MIN( - col2 ) * - COUNT( * ) * 54 + - SUM( - ( col2 ) ) FROM tab2
----
9517

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL MIN ( - col2 ) * - COUNT ( * ) * 54 + - SUM ( - ( col2 ) ) FROM tab2
----
9517

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT DISTINCT + 37 DIV + + col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT + 37 / + + col1 AS col1 FROM tab2
----
0

query II rowsort
SELECT col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ( - + MIN( 1 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3915
SELECT ( - + MIN ( 1 ) ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT ALL - ( - - MIN( DISTINCT - col0 ) ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL - ( - - MIN ( DISTINCT - col0 ) ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL COUNT( * ) * - MIN( DISTINCT + + col0 ) * 69 AS col1 FROM tab1
----
-10557

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL COUNT ( * ) * - MIN ( DISTINCT + + col0 ) * 69 AS col1 FROM tab1
----
-10557

query I rowsort
SELECT DISTINCT - 24 * + - ( - 9 ) * 26 AS col2 FROM tab0
----
-5616

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - ( - + COUNT( * ) ) * - - MAX( - 66 ) FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3919
SELECT - ( - + COUNT ( * ) ) * - - MAX ( - 66 ) FROM tab2
----
-198

query I rowsort
SELECT ALL + col2 * - 4 AS col2 FROM tab0
----
-188
-396
-40

query I rowsort
SELECT ( + - col0 ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT DISTINCT + ( - col0 ) DIV - - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT + ( - col0 ) / - - col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL SUM( - + ( + col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL SUM ( - + ( + col1 ) ) FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query II rowsort label-3924
SELECT + 92 * + 34 + col0 col2, - col2 DIV col0 AS col2 FROM tab0 AS cor0
----
3143
-3
3215
0
3225
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3924
SELECT + 92 * + 34 + col0 col2, - col2 / col0 AS col2 FROM tab0 AS cor0
----
3143
-3
3215
0
3225
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - 41 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT DISTINCT + col1 * + + 47 / - 17 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT + col1 * + + 47 / - 17 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT - + col0 <> NULL
----

query I rowsort
SELECT col2 * 22 AS col0 FROM tab1
----
1298
1496
2112

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT + SUM( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT + SUM ( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
-199

query II rowsort
SELECT DISTINCT - 4 * col0 * + - col2 + + 90 AS col1, - col2 * + col2 FROM tab1 AS cor0
----
19674
-9216
20150
-3481
24842
-4624

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 * + 77 col2 FROM tab2 AS cor0
----
-3876
-5092
-5852

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 13, 58 / + - col1 )
----

query I rowsort
SELECT col0 * + - 43 + - col0 FROM tab0 AS cor0
----
-3828
-4268
-660

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col1 * 35 / + col0 + - col2 + - ( + - col2 ) + - + col2 < NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( col2 ) + col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 85 FROM tab0 WHERE + + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 / col0 + 9 + - 67 * - + col1 > NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE ( - col1 IS NOT NULL )
----
59
68
96

query II rowsort
SELECT DISTINCT + + ( + - col2 ) * col2 + - + ( + 12 ) AS col0, 14 FROM tab0 AS cor0
----
-112
14
-2221
14
-9813
14

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 54 * - col2 )
----

query I rowsort
SELECT ALL - col1 * + col0 + - 99 + - + 39 * - - 67 AS col2 FROM tab2 AS cor0
----
-5058
-7640
-7737

query II rowsort
SELECT DISTINCT + 91 * col0 + + col2 AS col1, + 67 AS col1 FROM tab1 AS cor0
----
4737
67
7794
67
8349
67

query I rowsort
SELECT DISTINCT - 76 - + col2 AS col2 FROM tab1 WHERE NOT NULL > + col2 - + col0
----

query I rowsort
SELECT ALL 22 * + 8 - + - col0 AS col0 FROM tab0 WHERE NOT + 29 <> + col2
----

query II rowsort
SELECT + - col1 AS col1, - 78 * - ( - 37 ) + + col0 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-14
-3549
-47
-7072
-5
-3226

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col0 <> 99 - + 0
----

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 + + col1 FROM tab2 AS cor0
----
23
97
40
141
58
142

query I rowsort
SELECT 22 * col1 * - 35 FROM tab2 cor0
----
-39270
-51590
-59290

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT + COUNT( * ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3952
SELECT + COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT + - 61 * COUNT( - col1 ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3953
SELECT + - 61 * COUNT ( - col1 ) FROM tab2 AS cor0
----
-183

query II rowsort
SELECT ALL col2 * col0 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
1058
-51
2560
-77
4350
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - - 2 AS col0, + col1 FROM tab0 AS cor0
----
2
1
2
21
2
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT - - 91 * COUNT( * ) FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3957
SELECT - - 91 * COUNT ( * ) FROM tab2 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + SUM( - col1 ) * - - 42 FROM tab2 AS cor0
----
-8190

skipif mysql # not compatible
query I rowsort label-3958
SELECT + SUM ( - col1 ) * - - 42 FROM tab2 AS cor0
----
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL + COUNT( DISTINCT + - col2 ) * + - MAX( ALL + col2 ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL + COUNT ( DISTINCT + - col2 ) * + - MAX ( ALL + col2 ) FROM tab2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3960
SELECT ALL * FROM tab2 WHERE + CAST( 1 AS SIGNED ) - - col1 / col2 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3960
SELECT ALL * FROM tab2 WHERE + CAST ( 1 AS INTEGER ) - - col1 / col2 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - col0 / + 65
----

query I rowsort
SELECT ALL + 63 AS col1 FROM tab0 WHERE - - ( + ( 78 ) ) IS NOT NULL
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT + + 66 * - col0 * - 37 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3963
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + + 66 * - col0 * - 37 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3964
SELECT ALL ( - + 86 ) AS col0, CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
-86
NULL
-86
NULL
-86
NULL

skipif mysql # not compatible
query II rowsort label-3964
SELECT ALL ( - + 86 ) AS col0, CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
-86
NULL
-86
NULL
-86
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3965
SELECT DISTINCT col2 * col2 AS col2, + CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
1600
NULL
3364
NULL
529
NULL

skipif mysql # not compatible
query II rowsort label-3965
SELECT DISTINCT col2 * col2 AS col2, + CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
1600
NULL
3364
NULL
529
NULL

query I rowsort
SELECT ALL 87 * - col2 FROM tab1
----
-5133
-5916
-8352

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND + + 8
----

query I rowsort
SELECT - 58 * - 53 * - col1 AS col0 FROM tab0 cor0
----
-248994
-3074
-64554

query I rowsort
SELECT DISTINCT + ( - + col2 ) * + - col1 * - col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT + COUNT( * ) * 55 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-3970
SELECT + COUNT ( * ) * 55 FROM tab1
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT - COUNT( * ) AS col1, 87 FROM tab1
----
-3
87

skipif mysql # not compatible
query II rowsort label-3971
SELECT - COUNT ( * ) AS col1, 87 FROM tab1
----
-3
87

query I rowsort
SELECT - ( + 26 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT - + SUM( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3973
SELECT - + SUM ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-121

query II rowsort
SELECT + col1, 53 AS col2 FROM tab0 AS cor0
----
1
53
21
53
81
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT + COUNT( * ) - COUNT( * ) * 5 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-12

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) * 5 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-12

query I rowsort
SELECT ALL + ( 22 ) AS col1 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT ALL - 17 + + col2 AS col1 FROM tab0 cor0
----
-7
30
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - MAX( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3978
SELECT - MAX ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 + - + 83 = - ( 75 )
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) + - - col0 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT col1 + - col2 + - - col1 - - col0 * - col0 AS col2 FROM tab0
----
-110
-7537
-9506

query I rowsort
SELECT DISTINCT - 63 + 31 + - col0 - - col1 * - + 27 FROM tab2
----
-1455
-1916
-2175

query I rowsort
SELECT col2 + 45 AS col2 FROM tab2
----
103
68
85

query I rowsort
SELECT 62 * + + col0 + col2 FROM tab1
----
3258
5329
5710

query II rowsort
SELECT DISTINCT - col2 + + col1 + 67 + + col1 + - 74, + col0 AS col0 FROM tab0 cor0
----
-104
97
108
15
25
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - COUNT( * ) / - + MAX( ALL - 91 ) AS col1 FROM tab2 AS cor0 WHERE + ( + col1 ) IN ( + - 24, + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT - COUNT ( * ) / - + MAX ( ALL - 91 ) AS col1 FROM tab2 AS cor0 WHERE + ( + col1 ) IN ( + - 24, + 97 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT - COUNT( * ) - ( CAST( + SUM( - col0 ) AS SIGNED ) ) AS col2 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-3987
SELECT - COUNT ( * ) - ( CAST ( + SUM ( - col0 ) AS INTEGER ) ) AS col2 FROM tab1
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL SUM( - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL SUM ( - - col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - - MIN( - + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3989
SELECT - - MIN ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT MAX( DISTINCT + + col2 ) col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3990
SELECT MAX ( DISTINCT + + col2 ) col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT + 8 DIV + - 14 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3992
SELECT + 8 / + - 14 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + 45 FROM tab0
----
10
45
47
45
99
45

query II rowsort
SELECT DISTINCT col1, 53 AS col2 FROM tab2
----
51
53
67
53
77
53

query II rowsort
SELECT ALL - 84 AS col2, col0 FROM tab0
----
-84
15
-84
87
-84
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col0 col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + + COUNT( * ) * 37 * + - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-3998
SELECT + + COUNT ( * ) * 37 * + - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
-333

query II rowsort
SELECT + 29 * - 63 AS col1, + col0 * 58 FROM tab0
----
-1827
5046
-1827
5626
-1827
870

query I rowsort
SELECT ALL 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # DIV for integer division: 
query II rowsort label-4001
SELECT col1 + - col0 AS col1, col2 + col1 + - col0 DIV + + col1 col2 FROM tab2 cor0
----
-8
124
13
117
5
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4001
SELECT col1 + - col0 AS col1, col2 + col1 + - col0 / + + col1 col2 FROM tab2 cor0
----
-8
124
13
117
5
74

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4003
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 43 AS col2, - 40 col0 FROM tab0 AS cor0
----
NULL
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4003
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 43 AS col2, - 40 col0 FROM tab0 AS cor0
----
NULL
-40

query I rowsort
SELECT 92 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT - ( - + CAST( - - col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4005
SELECT - ( - + CAST ( - - col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL + ( - COUNT( * ) ) * + 57 + - - COUNT( * ) FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL + ( - COUNT ( * ) ) * + 57 + - - COUNT ( * ) FROM tab2 AS cor0
----
-168

query I rowsort
SELECT + col0 * 70 FROM tab0
----
1050
6090
6790

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( - col1 + - + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4009
SELECT ALL COUNT( - + col2 ) - + + 8 DIV - - SUM( + - 40 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL COUNT ( - + col2 ) - + + 8 / - - SUM ( + - 40 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + 35 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + + 77 IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col1 FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL - - MAX( DISTINCT - col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - - MAX ( DISTINCT - col1 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT + 35 - + col1 FROM tab1 AS cor0
----
-12
21
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - 49 + - COUNT( * ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4015
SELECT - 49 + - COUNT ( * ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT ALL 16 + 59 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4017
SELECT * FROM tab2 AS cor0 WHERE ( - + col0 ) BETWEEN + 76 AND + CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4017
SELECT * FROM tab2 AS cor0 WHERE ( - + col0 ) BETWEEN + 76 AND + CAST ( - + col0 AS INTEGER )
----

query I rowsort
SELECT ALL + col1 - + - col0 * - + col1 * - col1 FROM tab1
----
10010
201066
2130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4019
SELECT ALL + 79 DIV - COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + 79 / - COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4020
SELECT DISTINCT MIN( DISTINCT + - col1 ) AS col1, - COUNT( * ) DIV - + 98 + COUNT( * ) AS col0 FROM tab1 cor0
----
-47
3

skipif mysql # not compatible
query II rowsort label-4020
SELECT DISTINCT MIN ( DISTINCT + - col1 ) AS col1, - COUNT ( * ) / - + 98 + COUNT ( * ) AS col0 FROM tab1 cor0
----
-47
3

query I rowsort
SELECT ALL - - ( col0 ) * - col2 + col0 FROM tab0 cor0 WHERE NOT - 53 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT ALL + CAST( NULL AS SIGNED ) + 46 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + CAST ( NULL AS INTEGER ) + 46 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT COUNT( * ) * + ( ( + - 20 ) ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT COUNT ( * ) * + ( ( + - 20 ) ) AS col0 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT + col2 * - col0 * - - ( - col1 ) + - 65 FROM tab1 cor0
----
25010
290771
68479

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4027
SELECT ( - + col2 ) * - CAST( - - col2 AS SIGNED ) + - + 41 DIV - - col1 AS col1 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-4027
SELECT ( - + col2 ) * - CAST ( - - col2 AS INTEGER ) + - + 41 / - - col1 AS col1 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 26 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + col0 ) FROM tab1 WHERE - - col0 NOT IN ( + 16 / - col2 + + + 78 + - - 64 )
----
51
85
91

query I rowsort
SELECT col0 * - - col0 * + col1 FROM tab1
----
36125
36414
389207

query II rowsort
SELECT + col2 AS col2, + col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT MIN( DISTINCT 28 ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT MIN ( DISTINCT 28 ) AS col1 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + COUNT( * ) + + ( - - MAX( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4034
SELECT + COUNT ( * ) + + ( - - MAX ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT - col0 + - col1 + + col2 + col0 DIV 55 + 30 FROM tab1 AS cor0
----
-39
0
61

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT - col0 + - col1 + + col2 + col0 / 55 + 30 FROM tab1 AS cor0
----
-39
0
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL 12 * - COUNT( * ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 12 * - COUNT ( * ) FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-4037
SELECT + col0 DIV - col2 col0, + 94 - - ( + + col2 ) FROM tab0
----
-8
104
0
141
0
193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4037
SELECT + col0 / - col2 col0, + 94 - - ( + + col2 ) FROM tab0
----
-8
104
0
141
0
193

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + COUNT( ALL + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4038
SELECT + COUNT ( ALL + col1 ) FROM tab1
----
3

query I rowsort
SELECT 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT ALL - COUNT( * ) + + 29 AS col2, 4 AS col0 FROM tab0 AS cor0
----
26
4

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL - COUNT ( * ) + + 29 AS col2, 4 AS col0 FROM tab0 AS cor0
----
26
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT col2 * - col0 + 64 + + ( - + col2 ) + + col1 + - - 53 * - col2 * + + 70 + 46 DIV - + ( + col0 ) FROM tab0 AS cor0
----
-174980
-376927
-37895

skipif mysql # not compatible
query I rowsort label-4041
SELECT col2 * - col0 + 64 + + ( - + col2 ) + + col1 + - - 53 * - col2 * + + 70 + 46 / - + ( + col0 ) FROM tab0 AS cor0
----
-174980
-376927
-37895

query I rowsort
SELECT + 89 * - 88 + + 66 AS col0 FROM tab1 AS cor0
----
-7766
-7766
-7766

query I rowsort
SELECT + 99 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + - 15 * - col1 col1 FROM tab2 cor0
----
-1091
-719
-930

query I rowsort
SELECT - 12 + + 37 FROM tab1
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT DISTINCT CAST( col1 AS SIGNED ), + col1 AS col0 FROM tab2
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT CAST ( col1 AS INTEGER ), + col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL col2 * + + col0 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL + 47 * + 89 * + 26 AS col0 FROM tab1
----
108758
108758
108758

query I rowsort
SELECT ALL col2 * col0 + + - 73 - + col0 + + + col1 * + col0 + + col2 AS col0 FROM tab1 cor0
----
10369
5341
5582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT CAST( NULL AS SIGNED ) / + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT CAST ( NULL AS INTEGER ) / + col2 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 36 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4053
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - 17 * + 4 FROM tab2 AS cor0
----
NULL
-68
NULL
-68
NULL
-68

skipif mysql # not compatible
query II rowsort label-4053
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - 17 * + 4 FROM tab2 AS cor0
----
NULL
-68
NULL
-68
NULL
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT + SUM( DISTINCT - - 67 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-4054
SELECT + SUM ( DISTINCT - - 67 ) FROM tab1
----
67

query I rowsort
SELECT + col1 * - + ( + 37 ) AS col0 FROM tab1
----
-1739
-185
-518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT DISTINCT col0 * + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT col0 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ( - ( + 17 ) ) AS col2 FROM tab2
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL MAX( DISTINCT + - col2 ) FROM tab2 WHERE NOT NULL > + col0 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL MAX ( DISTINCT + - col2 ) FROM tab2 WHERE NOT NULL > + col0 * 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT DISTINCT - ( + CAST( 53 AS SIGNED ) ) AS col0 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT - ( + CAST ( 53 AS INTEGER ) ) AS col0 FROM tab1
----
-53

query I rowsort
SELECT 93 * + col1 FROM tab1 AS cor0
----
1302
4371
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT DISTINCT - + ( + - CAST( NULL AS SIGNED ) ) * 64 * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT - + ( + - CAST ( NULL AS INTEGER ) ) * 64 * col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 + + col2 col0 FROM tab2 AS cor0
----
19
2
37

query II rowsort
SELECT - - 62 AS col1, col2 AS col2 FROM tab0 AS cor0
----
62
10
62
47
62
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL - + 17 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - + 17 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-20

query II rowsort
SELECT 58 AS col0, + col0 AS col2 FROM tab0
----
58
15
58
87
58
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL 76 + + COUNT( * ) AS col2 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL 76 + + COUNT ( * ) AS col2 FROM tab1
----
79

query I rowsort
SELECT ALL ( + col1 ) * - + col1 + col0 AS col2 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT DISTINCT 62 * - - col0 AS col2 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT - SUM( - - 72 ) AS col2 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-4070
SELECT - SUM ( - - 72 ) AS col2 FROM tab1 AS cor0
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-4071
SELECT + - col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT + - col0 / col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4072
SELECT DISTINCT + col2 DIV 72 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT + col2 / 72 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - col0 * col0 * 77 FROM tab2 cor0
----
-162932
-315392
-433125

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 13 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + 17 AND NULL
----
97
1
99

query I rowsort
SELECT DISTINCT 31 + - ( 58 ) FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT SUM( - 10 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4077
SELECT SUM ( - 10 ) FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + MIN( DISTINCT + 23 ) AS col1 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-4078
SELECT + MIN ( DISTINCT + 23 ) AS col1 FROM tab0
----
23

query I rowsort
SELECT ALL 6 * + col0 * - col0 + + col1 - - + 57 FROM tab1 WHERE NOT ( ( NOT - 14 IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - col2 * 92 IN ( col1, 44, + - col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + + 55 ) FROM tab0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + 64 FROM tab0 AS cor0 WHERE col1 = + 56
----

query I rowsort
SELECT DISTINCT + + col0 + - 17 AS col1 FROM tab2 AS cor0
----
29
47
58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 94 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 30 col0 FROM tab2 cor0 WHERE + 70 <> + - col1
----
-30
-30
-30

query I rowsort
SELECT 67 * - ( 8 ) FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT DISTINCT - col1 DIV - col2 col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4088
SELECT DISTINCT - col1 / - col2 col2 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab2
----
57

query I rowsort
SELECT col1 * col2 + - 27 FROM tab1
----
1317
268
3169

query I rowsort
SELECT 13 + col1 * col0 FROM tab2
----
2359
4941
5038

query I rowsort
SELECT ALL col1 - - 11 * - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-547
-930
-954

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4094
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL 34 + + MAX( ALL col1 ) FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL 34 + + MAX ( ALL col1 ) FROM tab2
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT - 79 DIV COUNT( * ) AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-4096
SELECT - 79 / COUNT ( * ) AS col1 FROM tab0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT + CAST( - ( + 63 ) AS SIGNED ) + - SUM( - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4097
SELECT + CAST ( - ( + 63 ) AS INTEGER ) + - SUM ( - col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT ALL - col0 * 76 FROM tab1
----
-3876
-6460
-6916

query I rowsort
SELECT - col1 * - 83 AS col0 FROM tab0
----
1743
6723
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4100
SELECT ALL + 3 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL + 3 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT MAX( 84 ) + + 30 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT MAX ( 84 ) + + 30 FROM tab1
----
114

query I rowsort
SELECT + ( - ( - col2 ) ) * col1 FROM tab0 WHERE NOT NULL < + 17 * - col0 + 14
----

query I rowsort
SELECT DISTINCT - col2 + - 10 AS col2 FROM tab0
----
-109
-20
-57

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col1 NOT BETWEEN ( 33 ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4105
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV - 55 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / - 55 AS col0 FROM tab0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4106
SELECT * FROM tab0 WHERE NULL = ( - col1 * CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4106
SELECT * FROM tab0 WHERE NULL = ( - col1 * CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ( SUM( + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4107
SELECT ( SUM ( + col2 ) ) FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT 83 DIV col2 FROM tab1 WHERE NOT col0 <= 48
----
0
1

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT 83 / col2 FROM tab1 WHERE NOT col0 <= 48
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT SUM( ( + ( col0 ) ) ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4109
SELECT SUM ( ( + ( col0 ) ) ) col1 FROM tab2
----
185

query I rowsort
SELECT ALL ( - ( 95 ) ) FROM tab0 cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT - 83 * - MAX( col1 ) FROM tab2 AS cor0
----
6391

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - 83 * - MAX ( col1 ) FROM tab2 AS cor0
----
6391

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT MIN( ALL col1 ) * SUM( - 58 * ( col0 DIV col2 ) ) FROM tab2 AS cor0
----
-11832

skipif mysql # not compatible
query I rowsort label-4112
SELECT MIN ( ALL col1 ) * SUM ( - 58 * ( col0 / col2 ) ) FROM tab2 AS cor0
----
-11832

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT 32 * - COUNT( * ) + 55 FROM tab1 WHERE NOT col0 IS NULL
----
-41

skipif mysql # not compatible
query I rowsort label-4114
SELECT 32 * - COUNT ( * ) + 55 FROM tab1 WHERE NOT col0 IS NULL
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4115
SELECT DISTINCT col1 * col2 AS col1 FROM tab1 AS cor0 WHERE ( CAST( NULL AS DECIMAL ) ) IS NULL
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT col1 * col2 AS col1 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS REAL ) ) IS NULL
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( CAST( col0 AS SIGNED ) - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4116
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( CAST ( col0 AS INTEGER ) - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT DISTINCT - col1 + - col2 DIV 85 FROM tab0 AS cor0
----
-2
-21
-81

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT - col1 + - col2 / 85 FROM tab0 AS cor0
----
-2
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4118
SELECT - 40 DIV SUM( ALL - col1 DIV + 48 + 92 * - 70 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4118
SELECT - 40 / SUM ( ALL - col1 / + 48 + 92 * - 70 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT DISTINCT + + col2 DIV + col2 AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT + + col2 / + col2 AS col0 FROM tab2 cor0
----
1

query I rowsort
SELECT + col0 + 47 * col0 AS col2 FROM tab1 AS cor0
----
2448
4080
4368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4121
SELECT ALL AVG ( col0 ) * 43 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) BETWEEN ( + col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL AVG ( col0 ) * 43 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) BETWEEN ( + col1 ) AND NULL
----
NULL

query I rowsort
SELECT - 15 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( col1 * col0 ) AND NULL
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4123
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 * col2 NOT BETWEEN NULL AND 34 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-4123
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 * col2 NOT BETWEEN NULL AND 34 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col2 BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT + col1 * - + 2 AS col2 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL <> ( col1 + + col1 )
----

query I rowsort
SELECT ALL - col1 * + 5 AS col0 FROM tab0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - 77 * + COUNT( * ) * COUNT( * ) FROM tab2
----
-693

skipif mysql # not compatible
query I rowsort label-4128
SELECT - 77 * + COUNT ( * ) * COUNT ( * ) FROM tab2
----
-693

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT DISTINCT ( - + MIN( ALL - col0 ) ) DIV - COUNT( * ) AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT ( - + MIN ( ALL - col0 ) ) / - COUNT ( * ) AS col2 FROM tab0
----
-32

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN + col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT DISTINCT - col0 DIV - 67 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT - col0 / - 67 AS col1 FROM tab2
----
0
1

query I rowsort
SELECT col0 / col1 FROM tab1 WHERE ( + 20 / col0 - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 61 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
-3111
-4087
-4697

query I rowsort
SELECT DISTINCT ( - - 76 ) FROM tab2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + 57 * - COUNT( * ) AS col1 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-4135
SELECT + 57 * - COUNT ( * ) AS col1 FROM tab1
----
-171

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + col0 IS NULL
----

query I rowsort
SELECT ALL + 77 + + col1 + col0 * - col1 AS col0 FROM tab0
----
-1057
-1729
-19

query I rowsort
SELECT DISTINCT + col0 + + + 7 AS col2 FROM tab0 AS cor0
----
104
22
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT COUNT( * ) + + 98 * - COUNT( * ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-4139
SELECT COUNT ( * ) + + 98 * - COUNT ( * ) FROM tab2
----
-291

query I rowsort
SELECT ALL + col2 + + 55 AS col2 FROM tab2
----
113
78
95

query I rowsort
SELECT DISTINCT - 98 FROM tab0 WHERE 75 IS NULL
----

query I rowsort
SELECT - - 48 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL ( - - col0 ) * col0 AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + - COUNT( ALL + col1 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4145
SELECT + - COUNT ( ALL + col1 ) AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT - 82 * + - 80 FROM tab2 AS cor0
----
6560
6560
6560

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4147
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT + col2 * + col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < + 78 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT + - MAX( DISTINCT 73 ) col2 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4149
SELECT + - MAX ( DISTINCT 73 ) col2 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT - - col1 * - - col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - ( + - 1 ) FROM tab2 cor0
----
1
1
1

query II rowsort
SELECT col2 AS col2, - 85 * + col0 + col1 AS col1 FROM tab1 cor0
----
59
-7220
68
-7688
96
-4321

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT - 94 DIV + ( - col1 ) + col1 * 24 FROM tab2 WHERE NOT ( + 18 + + 66 + - 26 DIV - col2 ) IS NULL
----
1225
1609
1849

skipif mysql # not compatible
query I rowsort label-4153
SELECT - 94 / + ( - col1 ) + col1 * 24 FROM tab2 WHERE NOT ( + 18 + + 66 + - 26 / - col2 ) IS NULL
----
1225
1609
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT COUNT( ALL - col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4154
SELECT DISTINCT COUNT ( ALL - col0 ) col0 FROM tab1
----
3

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 0 FROM tab0 WHERE NOT - col2 IS NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 20 * col1 FROM tab0 WHERE ( - col1 / + 23 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN 42 AND - + col0
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <> ( - - col0 )
----

query I rowsort
SELECT - 7 * + 97 AS col1 FROM tab1 AS cor0
----
-679
-679
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col1 ) * col2 col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT col2 * + col0 AS col1, + col0 FROM tab2 AS cor0
----
1058
46
2560
64
4350
75

query I rowsort
SELECT - col0 / 66 AS col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( + + ( + col0 ) ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - 74 + + MIN( ALL - ( 78 ) ) + + 0 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-152

skipif mysql # not compatible
query I rowsort label-4165
SELECT - 74 + + MIN ( ALL - ( 78 ) ) + + 0 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-152

query I rowsort
SELECT DISTINCT col1 + - 87 + - 18 FROM tab0 WHERE NULL > - - col2
----

query I rowsort
SELECT + ( 46 ) FROM tab0 AS cor0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT ALL + 1 DIV + 3 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL + 1 / + 3 + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4169
SELECT ALL * FROM tab1 cor0 WHERE 52 + - - col1 NOT BETWEEN + 59 AND ( - + 91 + CAST( NULL AS SIGNED ) )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-4169
SELECT ALL * FROM tab1 cor0 WHERE 52 + - - col1 NOT BETWEEN + 59 AND ( - + 91 + CAST ( NULL AS INTEGER ) )
----
85
5
59

query I rowsort
SELECT ALL + + 64 FROM tab0 AS cor0 WHERE NOT NULL IN ( 70, - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 - + + col2 * + - col1 * - col2 IN ( - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT - SUM( - + col2 ) + - - MAX( ALL - col0 ) FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT - SUM ( - + col2 ) + - - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
141

query I rowsort
SELECT - 64 / col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - + col2 ) AND ( NULL )
----

query I rowsort
SELECT + col0 * - 42 AS col1 FROM tab0 AS cor0
----
-3654
-4074
-630

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 * + + 85 * 93 + + - 3 ) >= 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL - MIN( + + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - MIN ( + + col1 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND col0 * - - 56 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4179
SELECT ALL - CAST( col2 AS SIGNED ), col1 FROM tab0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-4179
SELECT ALL - CAST ( col2 AS INTEGER ), col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT 94 + - col2 - - col0 AS col1 FROM tab0
----
171
62
92

query I rowsort
SELECT DISTINCT + 16 * - col1 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT + 10 * + - 6 + - col1 AS col1 FROM tab0
----
-141
-61
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT + CAST( NULL AS SIGNED ) + - COUNT( ALL + + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( ALL + + col0 ) FROM tab1
----
NULL

query II rowsort
SELECT ALL col0 AS col0, + col2 + - + col0 AS col0 FROM tab1
----
51
45
85
-26
91
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4185
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + - + 98 AS col2 FROM tab1 AS cor0
----
-51
-84
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4187
SELECT * FROM tab0 cor0 WHERE CAST( - 27 AS SIGNED ) * 84 + - col0 < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4187
SELECT * FROM tab0 cor0 WHERE CAST ( - 27 AS INTEGER ) * 84 + - col0 < ( NULL )
----

query I rowsort
SELECT + 26 - - + col2 AS col1 FROM tab0
----
125
36
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4189
SELECT ALL * FROM tab2 WHERE 5 + + CAST( - col1 AS SIGNED ) > NULL AND ( NULL ) <> ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4189
SELECT ALL * FROM tab2 WHERE 5 + + CAST ( - col1 AS INTEGER ) > NULL AND ( NULL ) <> ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - + 82 col0 FROM tab2
----
133
149
159

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + - 54 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - ( - col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
178
7559
9310

query I rowsort
SELECT + 34 AS col2 FROM tab0 cor0
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * 40 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 71 + + col1 IN ( - - col1, 45 )
----
3

skipif mysql # not compatible
query I rowsort label-4196
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 71 + + col1 IN ( - - col1, 45 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + + ( COUNT( col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4197
SELECT + + ( COUNT ( col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4198
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, + col1 * - ( + + ( + - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4198
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + col1 * - ( + + ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL
NULL

query II rowsort
SELECT DISTINCT - 8 AS col2, 95 AS col0 FROM tab2
----
-8
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT DISTINCT + MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4201
SELECT DISTINCT * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4201
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT DISTINCT - - MAX( - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT - - MAX ( - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - SUM( - - col2 ) AS col0 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - SUM ( - - col2 ) AS col0 FROM tab1 cor0
----
-223

query I rowsort
SELECT 11 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col0 * - col0 * col0 AS col0 FROM tab2 AS cor0
----
262144
421875
97336

query II rowsort
SELECT - + col0 AS col0, 77 AS col0 FROM tab1 AS cor0
----
-51
77
-85
77
-91
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT + 32 * ( - col0 ) * 32 DIV + ( - 73 ) + + 96 FROM tab0
----
1316
1456
306

skipif mysql # not compatible
query I rowsort label-4207
SELECT + 32 * ( - col0 ) * 32 / + ( - 73 ) + + 96 FROM tab0
----
1316
1456
306

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

query I rowsort
SELECT ALL ( + 78 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + - 85 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT + col0 + + 42 FROM tab0 AS cor0
----
129
139
57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 23 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + + 16 col2 FROM tab2 AS cor0
----
-30
-48
-59

query I rowsort
SELECT ALL + 71 + + 60 AS col2 FROM tab2 cor0
----
131
131
131

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL - - 3 + - + COUNT( * ) * - - 23 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL - - 3 + - + COUNT ( * ) * - - 23 FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col1 ) * col1 + col1 col0 FROM tab2
----
2652
4556
6006

query I rowsort
SELECT DISTINCT + col2 * + 60 FROM tab1
----
3540
4080
5760

query I rowsort
SELECT DISTINCT 3 * + col0 FROM tab0
----
261
291
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - col2 BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4220
SELECT DISTINCT - col1 DIV + 85 * + col2 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT - col1 / + 85 * + col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + + col2 <= NULL
----

query I rowsort
SELECT 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - MAX( ALL - col0 ) FROM tab0 WHERE NOT 15 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - MAX ( ALL - col0 ) FROM tab0 WHERE NOT 15 IS NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL - MIN( 69 ) AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - MIN ( 69 ) AS col1 FROM tab0 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT DISTINCT 50 DIV - col2 col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4225
SELECT DISTINCT 50 / - col2 col2 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT + + col2 DIV + + 1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4226
SELECT + + col2 / + + 1 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT ALL col1, - 85 FROM tab1 AS cor0
----
14
-85
47
-85
5
-85

query II rowsort
SELECT DISTINCT - col1 AS col2, + col1 * col1 FROM tab0 AS cor0
----
-1
1
-21
441
-81
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT MIN( col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - - 98 * + col2 / - 99 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT ( 28 ) DIV + col2 + + + 45 FROM tab0
----
45
45
47

skipif mysql # not compatible
query I rowsort label-4231
SELECT ( 28 ) / + col2 + + + 45 FROM tab0
----
45
45
47

query I rowsort
SELECT ALL + 65 FROM tab2 WHERE NULL < 36 + - col2
----

query II rowsort
SELECT ( + col2 ), + col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - 79
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( col2, col0 - + + col1 )
----

query I rowsort
SELECT ALL + 4 + ( - 82 ) FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + 14 + + + col1 + - 37 / - + col0 + + - col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT 63 DIV - col0 col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4238
SELECT 63 / - col0 col0 FROM tab0
----
-4
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - ( + COUNT( - col1 ) ) * 24 AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4239
SELECT - ( + COUNT ( - col1 ) ) * 24 AS col0 FROM tab2 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 60 col2 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT ALL - 4 + - col2 FROM tab1 AS cor0
----
-100
-63
-72

query I rowsort
SELECT ALL - - col0 + - ( col0 ) * + col0 AS col2 FROM tab0 cor0
----
-210
-7482
-9312

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * 97 IS NULL
----

query II rowsort
SELECT ALL col0 + 19 - + ( + + col2 ) + - col2 * 20 AS col0, col1 AS col0 FROM tab2 AS cor0
----
-1124
67
-418
51
-757
77

query I rowsort
SELECT ALL + + 26 - col1 FROM tab1 AS cor0
----
-21
12
21

query II rowsort
SELECT + 48 + - col2 AS col2, 72 AS col2 FROM tab0
----
-51
72
1
72
38
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + + col2 col2 FROM tab0
----
-18
19
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MIN( ALL - col1 ) - - + 7 - + 35 * + MIN( + + col1 ) * - 5 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MIN ( ALL - col1 ) - - + 7 - + 35 * + MIN ( + + col1 ) * - 5 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 67 * + - 60 AS col1 FROM tab2
----
-4020

query I rowsort
SELECT col1 + - + 29 AS col1 FROM tab0
----
-28
-8
52

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4252
SELECT + col2 + CAST( NULL AS DECIMAL ) AS col0, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-4252
SELECT + col2 + CAST ( NULL AS REAL ) AS col0, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT + col2 > + col2 * + col0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT - 26 * - col0 * CAST( col0 AS SIGNED ) * - - 71 FROM tab0 WHERE + col2 IN ( - col1, - col0 * col1 )
----

skipif mysql # not compatible
query I rowsort label-4254
SELECT - 26 * - col0 * CAST ( col0 AS INTEGER ) * - - 71 FROM tab0 WHERE + col2 IN ( - col1, - col0 * col1 )
----

query I rowsort
SELECT ALL + - col2 - col0 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT col0 * + + 3 AS col2 FROM tab1
----
153
255
273

query I rowsort
SELECT - 97 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + + 24 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + + 77 ) FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT col2 * + col1 * - col2 * - 88 FROM tab1 AS cor0
----
11354112
1531640
19124864

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 / 98 / - - 71 + col1 )
----

query I rowsort
SELECT ALL - 82 FROM tab0 WHERE NOT + 95 + - col0 * col1 + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 64 ) FROM tab0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT ALL - col0 * col1 DIV + col2 FROM tab2
----
-102
-123
-86

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - col0 * col1 / + col2 FROM tab2
----
-102
-123
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT MAX( ALL + 72 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4265
SELECT MAX ( ALL + 72 ) FROM tab1
----
72

query I rowsort
SELECT ALL col2 * - + col2 AS col1 FROM tab2
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) col0 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-4268
SELECT DISTINCT 73 DIV + + col2, col2 AS col2 FROM tab1
----
0
96
1
59
1
68

skipif mysql # not compatible
query II rowsort label-4268
SELECT DISTINCT 73 / + + col2, col2 AS col2 FROM tab1
----
0
96
1
59
1
68

query I rowsort
SELECT ALL + - 41 + col2 AS col0 FROM tab2 cor0
----
-1
-18
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 + - col0 + - 12 * + - col2 AND + 94 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 AS col2, + col1 * + 65 col0 FROM tab0 AS cor0
----
51
1365
51
5265
51
65

query I rowsort
SELECT - + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE - 7 IS NULL
----

query I rowsort
SELECT DISTINCT + ( 67 ) + - 92 FROM tab2 AS cor0
----
-25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT ALL + 52 DIV 17 + ( col0 ) FROM tab0 AS cor0
----
100
18
90

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + 52 / 17 + ( col0 ) FROM tab0 AS cor0
----
100
18
90

query II rowsort
SELECT ALL + 32, col0 FROM tab1
----
32
51
32
85
32
91

query I rowsort
SELECT ALL + col2 + + ( + col0 ) FROM tab2
----
104
133
69

query I rowsort
SELECT - col1 * + col1 - + + col1 + - 1 + + - col0 FROM tab0
----
-100
-550
-6658

query II rowsort
SELECT + + col0 + 7 * + 80, + col2 AS col0 FROM tab1 AS cor0
----
611
96
645
59
651
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4282
SELECT - CAST( + ( + - col1 ) AS SIGNED ) AS col1, + col2 * col1 FROM tab2 cor0
----
51
1173
67
3886
77
3080

skipif mysql # not compatible
query II rowsort label-4282
SELECT - CAST ( + ( + - col1 ) AS INTEGER ) AS col1, + col2 * col1 FROM tab2 cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT ALL - 24 * + col1 FROM tab0 AS cor0
----
-1944
-24
-504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 83 col1 FROM tab1
----
4233
7055
7553

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col2 + + 63 + col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - + MIN( - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4286
SELECT - + MIN ( - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4287
SELECT + CAST( NULL AS DECIMAL ) * - 66 * + col2 + col2 + - ( + + col0 ) * - + 39 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT + CAST ( NULL AS REAL ) * - 66 * + col2 + col2 + - ( + + col0 ) * - + 39 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 91 * - - 43 FROM tab1 AS cor0
----
3913
3913
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + 59 * + + col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + 59 * + + col1 IS NOT NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * ( CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * ( CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT DISTINCT + col1 DIV 86 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT + col1 / 86 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL + + COUNT( - 53 ) * - ( - 68 ) AS col1 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL + + COUNT ( - 53 ) * - ( - 68 ) AS col1 FROM tab1 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT - 37 * + COUNT( * ) FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT - 37 * + COUNT ( * ) FROM tab1
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT ALL - col2 * + col1 DIV + col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - col2 * + col1 / + col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4296
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST( - col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4296
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST ( - col2 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + 93 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT - col1 DIV ( + 83 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4298
SELECT - col1 / ( + 83 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT + COUNT( * ) * 46 + - 86 + + 10 AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-4299
SELECT + COUNT ( * ) * 46 + - 86 + + 10 AS col1 FROM tab1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT - 83 + + ( - 73 ) - + 73 DIV - 47 FROM tab1
----
-155
-155
-155

skipif mysql # not compatible
query I rowsort label-4300
SELECT - 83 + + ( - 73 ) - + 73 / - 47 FROM tab1
----
-155
-155
-155

query I rowsort
SELECT 13 * 79 + - 31 + - 94 - - ( + col2 ) FROM tab0 AS cor0
----
1001
912
949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4302
SELECT DISTINCT - SUM( + col0 ) * - CAST( NULL AS SIGNED ) + + 44 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT - SUM ( + col0 ) * - CAST ( NULL AS INTEGER ) + + 44 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT col0 DIV - 71 - - - col0 FROM tab0 AS cor0
----
-15
-88
-98

skipif mysql # not compatible
query I rowsort label-4303
SELECT col0 / - 71 - - - col0 FROM tab0 AS cor0
----
-15
-88
-98

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 9 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT - col0 - + CAST( - 22 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-29
-63
-69

skipif mysql # not compatible
query I rowsort label-4305
SELECT - col0 - + CAST ( - 22 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-29
-63
-69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + + 94 col1 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT ALL 74 + + col2 DIV + - col1 FROM tab1
----
63
68
73

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL 74 + + col2 / + - col1 FROM tab1
----
63
68
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT ALL + CAST( - col2 AS SIGNED ) + + col0 + - 19 FROM tab1
----
-64
4
7

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + CAST ( - col2 AS INTEGER ) + + col0 + - 19 FROM tab1
----
-64
4
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 99 * - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - + ( - + 73 ) FROM tab0
----
-26
26
63

query I rowsort
SELECT DISTINCT + col2 - 45 FROM tab1
----
14
23
51

query I rowsort
SELECT - + 3 AS col1 FROM tab1 AS cor0 WHERE NOT - ( - col1 ) IS NULL
----
-3
-3
-3

query II rowsort
SELECT + 28 AS col2, - 81 FROM tab2
----
28
-81
28
-81
28
-81

query II rowsort
SELECT ALL + col1 * ( col0 ), 90 AS col0 FROM tab2 AS cor0
----
2346
90
4928
90
5025
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT ALL - col2 DIV - col2 + col1 AS col2 FROM tab1 cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL - col2 / - col2 + col1 AS col2 FROM tab1 cor0
----
15
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT - + CAST( NULL AS SIGNED ) * - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT - + CAST ( NULL AS INTEGER ) * - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 76 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4319
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) NOT IN ( + col1, 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4319
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) NOT IN ( + col1, 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 46 * + 75 FROM tab2 AS cor0
----
-3450
-3450
-3450

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + + 45 + + - 77 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4322
SELECT CAST( + COUNT( * ) AS SIGNED ) * 81 * + COUNT( * ) AS col2 FROM tab1
----
729

skipif mysql # not compatible
query I rowsort label-4322
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * 81 * + COUNT ( * ) AS col2 FROM tab1
----
729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT - col1 * CAST( - - col2 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-4323
SELECT - col1 * CAST ( - - col2 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL COUNT( - 98 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL COUNT ( - 98 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 11 * + ( - col0 ) FROM tab0
----
1067
165
957

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4326
SELECT * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) = NULL )
----

skipif mysql # not compatible
query III rowsort label-4326
SELECT * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) = NULL )
----

query I rowsort
SELECT 49 * + col0 FROM tab0
----
4263
4753
735

query III rowsort
SELECT * FROM tab1 WHERE col2 + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + MIN( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4329
SELECT ALL + MIN ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - - col2 + + col1 AS col1 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( 93 )
----

query I rowsort
SELECT ALL - col2 * + 27 AS col0 FROM tab0
----
-1269
-2673
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT - + COUNT( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4333
SELECT - + COUNT ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 + - ( - - col0 ) - + 11 AS col2 FROM tab1 cor0
----
-155
-158
-170

query I rowsort
SELECT ALL - 38 * - 60 AS col2 FROM tab1 AS cor0
----
2280
2280
2280

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 17 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 col2, - col2 + - col0 * - col1 FROM tab1 AS cor0
----
81
366
81
4209
81
618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4338
SELECT + COUNT( - - col2 ) DIV + 10 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4338
SELECT + COUNT ( - - col2 ) / + 10 AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT 46 * + - COUNT( * ) * 71 - + 52 FROM tab2 AS cor0
----
-9850

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT 46 * + - COUNT ( * ) * 71 - + 52 FROM tab2 AS cor0
----
-9850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4340
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 + col1 IS NULL
----

query I rowsort
SELECT + 40 * - col0 + - col2 FROM tab2 AS cor0
----
-1863
-2600
-3058

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - 45 - COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4342
SELECT - 45 - COUNT ( * ) FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE + - col0 + - + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4343
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE + - col0 + - + col1 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT DISTINCT 92 DIV col0 * - col1 + - col1 * + col2 FROM tab2
----
-1275
-3157
-3953

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT 92 / col0 * - col1 + - col1 * + col2 FROM tab2
----
-1275
-3157
-3953

query I rowsort
SELECT 22 - - col2 FROM tab2
----
45
62
80

query II rowsort
SELECT DISTINCT - col2 AS col2, + 87 AS col0 FROM tab0
----
-10
87
-47
87
-99
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL - 43 * COUNT( * ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - 43 * COUNT ( * ) FROM tab1
----
-129

query I rowsort
SELECT + + col2 AS col1 FROM tab0 WHERE NOT - 31 > col2 + + col1 - - col0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + 69 col2 FROM tab2
----
3174
4416
5175

onlyif mysql # DIV for integer division: 
query I rowsort label-4350
SELECT DISTINCT + 10 DIV + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + 10 / + col2 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4351
SELECT ALL * FROM tab1 WHERE - + 37 * + col0 = + - CAST( + col1 AS SIGNED ) + + - col1 + - col1 + - col0 * + - 41
----

skipif mysql # not compatible
query III rowsort label-4351
SELECT ALL * FROM tab1 WHERE - + 37 * + col0 = + - CAST ( + col1 AS INTEGER ) + + - col1 + - col1 + - col0 * + - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - - ( + COUNT( * ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4352
SELECT ALL - - ( + COUNT ( * ) ) col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + + 44 AS col2, col0 + + col2 AS col2 FROM tab0 cor0
----
44
196
44
62
44
97

query I rowsort
SELECT ALL - col2 * - - col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 93, ( col0 ) col2 FROM tab0 AS cor0
----
93
15
93
87
93
97

query I rowsort
SELECT + 86 * - - 27 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT + - COUNT( * ) FROM tab2 WHERE NOT + + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4357
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT + + col1 = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT ALL - MAX( - 40 ) * - + CAST( NULL AS SIGNED ) + - COUNT( * ) * - + 64 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL - MAX ( - 40 ) * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + 64 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + col2 * 85 AS col0 FROM tab1 AS cor0
----
5015
5780
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT - COUNT( DISTINCT ( + + col1 ) ) + + COUNT( * ) col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4360
SELECT DISTINCT - COUNT ( DISTINCT ( + + col1 ) ) + + COUNT ( * ) col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4361
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0, col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 83 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-83
-83
-83

query II rowsort
SELECT ALL - col1 AS col2, 55 + + col0 FROM tab0
----
-1
152
-21
142
-81
70

query II rowsort
SELECT DISTINCT 52 AS col1, - col0 FROM tab0
----
52
-15
52
-87
52
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT 41 AS col2 FROM tab0 WHERE - - CAST( + 38 AS SIGNED ) + - - 32 + + col1 >= + + col1
----
41
41
41

skipif mysql # not compatible
query I rowsort label-4366
SELECT 41 AS col2 FROM tab0 WHERE - - CAST ( + 38 AS INTEGER ) + - - 32 + + col1 >= + + col1
----
41
41
41

query I rowsort
SELECT + 56 + + col2 FROM tab0
----
103
155
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL + CAST( 92 AS SIGNED ) AS col0 FROM tab2
----
92
92
92

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + CAST ( 92 AS INTEGER ) AS col0 FROM tab2
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT + 77 + - + MIN( DISTINCT + col0 ) + - - 27 AS col2 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + 77 + - + MIN ( DISTINCT + col0 ) + - - 27 AS col2 FROM tab0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL + COUNT( * ) - + - 19 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + 13 + + col0, ( + col2 ) )
----
19

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL + COUNT ( * ) - + - 19 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + 13 + + col0, ( + col2 ) )
----
19

query I rowsort
SELECT - col0 + - - col1 + - + 65 AS col0 FROM tab1
----
-102
-109
-145

query I rowsort
SELECT + 10 + + 32 * - + col0 AS col2 FROM tab2
----
-1462
-2038
-2390

query I rowsort
SELECT DISTINCT - col2 + - 24 FROM tab1 AS cor0
----
-120
-83
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + col2, - col0 AS col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL 23 - - col0 * + 74 FROM tab0
----
1133
6461
7201

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + - col0 IS NOT NULL OR NOT NULL NOT IN ( + 52, - 76 - - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4378
SELECT + col0 - col2 AS col0, col1 DIV + col0 FROM tab2
----
17
0
23
1
24
1

skipif mysql # not compatible
query II rowsort label-4378
SELECT + col0 - col2 AS col0, col1 / + col0 FROM tab2
----
17
0
23
1
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - COUNT( * ) - 9 col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4379
SELECT - COUNT ( * ) - 9 col1 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT col1 + 69 + - 89 * + 62 * - 22 + + 83 FROM tab1 AS cor0
----
121553
121562
121595

query I rowsort
SELECT - AVG ( DISTINCT - col1 ) + AVG ( + - col0 ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT DISTINCT + - 68 DIV + 77 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT + - 68 / + 77 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + 61 FROM tab1 AS cor0
----
112
146
152

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + + - col0 * - - col0 - col2 + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT 76 * ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4386
SELECT 76 * ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-228

query I rowsort
SELECT 86 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL + 82 * 27 AS col1 FROM tab1
----
2214
2214
2214

query I rowsort
SELECT 98 * + 62 FROM tab0
----
6076
6076
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT + 49 * + COUNT( DISTINCT col0 ) col1 FROM tab0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4390
SELECT DISTINCT + 49 * + COUNT ( DISTINCT col0 ) col1 FROM tab0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4391
SELECT * FROM tab2 WHERE NOT NULL IN ( - col1 + 87 * + col0 / + col2, - CAST( + 2 AS SIGNED ) * + 23 )
----

skipif mysql # not compatible
query III rowsort label-4391
SELECT * FROM tab2 WHERE NOT NULL IN ( - col1 + 87 * + col0 / + col2, - CAST ( + 2 AS INTEGER ) * + 23 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - 11 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT DISTINCT + 99 DIV + col0 col1 FROM tab2
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4393
SELECT DISTINCT + 99 / + col0 col1 FROM tab2
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4394
SELECT DISTINCT + col2 * - 7 * - - CAST( + - ( + col1 ) AS SIGNED ) AS col0, col1 AS col2 FROM tab0
----
1470
21
26649
81
693
1

skipif mysql # not compatible
query II rowsort label-4394
SELECT DISTINCT + col2 * - 7 * - - CAST ( + - ( + col1 ) AS INTEGER ) AS col0, col1 AS col2 FROM tab0
----
1470
21
26649
81
693
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + MAX( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4395
SELECT + MAX ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL col0, - col2 AS col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4399
SELECT DISTINCT - + 50 - 37, - 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-87
-19

skipif mysql # not compatible
query II rowsort label-4399
SELECT DISTINCT - + 50 - 37, - 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-87
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 67 / + col0 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT ALL COUNT( * ) AS col0, 92 FROM tab2 cor0
----
3
92

skipif mysql # not compatible
query II rowsort label-4401
SELECT ALL COUNT ( * ) AS col0, 92 FROM tab2 cor0
----
3
92

query I rowsort
SELECT ALL col1 + + 61 + - col0 + + - 90 FROM tab2 AS cor0 WHERE NULL NOT IN ( 27, col0, + col1 - + col2 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 32 < + + col1
----
91
47
68

query II rowsort
SELECT DISTINCT 29 AS col0, col1 * + col2 FROM tab2 cor0
----
29
1173
29
3080
29
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT - + COUNT( * ) + + 84 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - + COUNT ( * ) + + 84 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + - 28 + + ( + 35 ) AS col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT - - ( - 25 ) * + 66 - + 50 + + col1 * - 99 FROM tab1 AS cor0
----
-2195
-3086
-6353

query II rowsort
SELECT + - 91 AS col0, - 36 + - 95 AS col2 FROM tab0 AS cor0
----
-91
-131
-91
-131
-91
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT - MIN( DISTINCT + 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4409
SELECT - MIN ( DISTINCT + 3 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + ( + 84 ) FROM tab0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT COUNT( * ) FROM tab0 WHERE 91 * - ( + 14 ) BETWEEN NULL AND ( 47 + - ( col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4412
SELECT COUNT ( * ) FROM tab0 WHERE 91 * - ( + 14 ) BETWEEN NULL AND ( 47 + - ( col0 ) )
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - - col0 + - col0 + - col2 * 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - 92 FROM tab2 AS cor0
----
-17
-28
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4416
SELECT + col1 + 4 DIV + col1 AS col0, col0 AS col1 FROM tab0 AS cor0
----
21
87
5
97
81
15

skipif mysql # not compatible
query II rowsort label-4416
SELECT + col1 + 4 / + col1 AS col0, col0 AS col1 FROM tab0 AS cor0
----
21
87
5
97
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT + + MAX( - 63 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT + + MAX ( - 63 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4420
SELECT DISTINCT - col0, CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-4420
SELECT DISTINCT - col0, CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL - + ( + 25 ) AS col2 FROM tab1 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 17 col0, + 9 * 31 FROM tab0 AS cor0
----
17
279
17
279
17
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT - 87 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT - 87 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT - col2 DIV + col0 + - 88 AS col0 FROM tab2 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-4424
SELECT - col2 / + col0 + - 88 AS col0 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT + - SUM( ALL - - 64 ) col2 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4425
SELECT DISTINCT + - SUM ( ALL - - 64 ) col2 FROM tab2 AS cor0
----
-192

query I rowsort
SELECT + col1 * + + 23 FROM tab0 AS cor0
----
1863
23
483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4427
SELECT MIN( DISTINCT + - 8 ) DIV COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4427
SELECT MIN ( DISTINCT + - 8 ) / COUNT ( * ) FROM tab2 AS cor0
----
-2

query II rowsort
SELECT DISTINCT + col1, col0 * col2 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT COUNT( * ) * 64 AS col1 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT COUNT ( * ) * 64 AS col1 FROM tab2
----
192

query I rowsort
SELECT ALL col1 * - - col0 * + col0 AS col0 FROM tab2
----
107916
315392
376875

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT + 27 DIV col1 AS col1 FROM tab0 AS cor0
----
0
1
27

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 27 / col1 AS col1 FROM tab0 AS cor0
----
0
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT DISTINCT - + MIN( - col2 ) * 64 AS col2 FROM tab2 AS cor0
----
3712

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - + MIN ( - col2 ) * 64 AS col2 FROM tab2 AS cor0
----
3712

query II rowsort
SELECT ALL col2, 1 FROM tab1
----
59
1
68
1
96
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4438
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( + 9, col1, + 21 + col1 + - col0 * - - 54 * + - CAST( NULL AS SIGNED ) / - + 47, col1 * 7 + 42, - 19, + ( + CAST( NULL AS SIGNED ) ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-4438
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( + 9, col1, + 21 + col1 + - col0 * - - 54 * + - CAST ( NULL AS INTEGER ) / - + 47, col1 * 7 + 42, - 19, + ( + CAST ( NULL AS INTEGER ) ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT - MAX( DISTINCT - 43 ) AS col1 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - MAX ( DISTINCT - 43 ) AS col1 FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL - + 96 / + col0 FROM tab0 AS cor0 WHERE NULL <> 0 AND NULL < 5 + + CAST( - 16 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - + 96 / + col0 FROM tab0 AS cor0 WHERE NULL <> 0 AND NULL < 5 + + CAST ( - 16 AS INTEGER )
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT ALL + 88 + - col0 FROM tab2
----
13
24
42

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE NOT 3 BETWEEN + - col0 AND - 25 + + + ( - - col1 )
----
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + 62 + + MAX( - 22 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-4444
SELECT + 62 + + MAX ( - 22 ) FROM tab1
----
40

query I rowsort
SELECT 67 * + + col2 + 4 + + col0 * - + col2 FROM tab1
----
-1058
-1628
1540

query II rowsort
SELECT + - 76 - col2 AS col0, - 61 + - + col1 + 62 * - + col0 FROM tab0 WHERE - 7 + col0 IS NOT NULL
----
-123
-1072
-175
-6076
-86
-5476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4447
SELECT ALL CAST( + 0 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL CAST ( + 0 AS INTEGER ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * + 36 AS col2 FROM tab0
----
3
108

skipif mysql # not compatible
query II rowsort label-4448
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * + 36 AS col2 FROM tab0
----
3
108

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + + col0 + - 67 FROM tab0 AS cor0
----
-52
20
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT DISTINCT - COUNT( * ) * - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT - COUNT ( * ) * - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 - - col2 * + col0 FROM tab0
----
720
957
9700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT + CAST( NULL AS SIGNED ) / - + COUNT( * ) - - 13 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) - - 13 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 - - - col1 FROM tab2
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT - col0 DIV + - 43 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4456
SELECT - col0 / + - 43 FROM tab0
----
0
2
2

query I rowsort
SELECT + AVG ( - + col2 ) * 42 FROM tab0 AS cor0 WHERE NOT NULL >= col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + - MIN( 47 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4458
SELECT + - MIN ( 47 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4459
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col2, CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4459
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2, CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 <> col0
----

query I rowsort
SELECT + + col2 * - col0 + + 48 * - col0 FROM tab2 AS cor0
----
-3266
-5632
-7950

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 = - 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 48 AS col2, 74 + - col0 FROM tab1
----
-48
-11
-48
-17
-48
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT ALL CAST( NULL AS SIGNED ) - - col2 + col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL CAST ( NULL AS INTEGER ) - - col2 + col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT ALL COUNT( * ) DIV + MAX( + - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL COUNT ( * ) / + MAX ( + - col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + ( - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4466
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT + col1 AS col2, 39 * 50 FROM tab2
----
51
1950
67
1950
77
1950

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * - col2 + - col1 + + - col2 + + col2 * 65 NOT IN ( + 41 + ( + col2 ), - col1, + col0 )
----

query I rowsort
SELECT ALL ( - 36 ) + + 32 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT - 41 col0, MIN( ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-41
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4470
SELECT - 41 col0, MIN ( ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-41
59

onlyif mysql # DIV for integer division: 
query II rowsort label-4471
SELECT DISTINCT 7 DIV - col0, col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-4471
SELECT DISTINCT 7 / - col0, col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT ALL 46 FROM tab1, tab2 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT COUNT( * ) * MIN( DISTINCT - 70 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-630

skipif mysql # not compatible
query I rowsort label-4473
SELECT COUNT ( * ) * MIN ( DISTINCT - 70 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-630

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + ( - 6 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT SUM( 86 ) FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4476
SELECT SUM ( 86 ) FROM tab2 AS cor0
----
258

query I rowsort
SELECT ALL + col0 + + 14 AS col2 FROM tab0 AS cor0
----
101
111
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 15 ) + - - 45 - - - col1 col0 FROM tab2 AS cor0
----
-21
-37
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT ALL + col2 + - + CAST( col1 AS SIGNED ) + - 47 + - 8 - + 48 * - col0 * - col0 AS col1 FROM tab2 AS cor0
----
-101651
-196700
-270064

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + col2 + - + CAST ( col1 AS INTEGER ) + - 47 + - 8 - + 48 * - col0 * - col0 AS col1 FROM tab2 AS cor0
----
-101651
-196700
-270064

query I rowsort
SELECT col0 * + - 35 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-3045
-3395
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT CAST( - 32 AS SIGNED ) AS col2 FROM tab1
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-4481
SELECT CAST ( - 32 AS INTEGER ) AS col2 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT ALL - - 77 + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
124
82
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4483
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4484
SELECT ALL ( + 22 ) - CAST( NULL AS SIGNED ), col2 + + + col2 AS col2 FROM tab2
----
NULL
116
NULL
46
NULL
80

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL ( + 22 ) - CAST ( NULL AS INTEGER ), col2 + + + col2 AS col2 FROM tab2
----
NULL
116
NULL
46
NULL
80

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE + ( 27 ) IS NULL
----

query I rowsort
SELECT - - col1 + 23 * 96 FROM tab1 AS cor0
----
2213
2222
2255

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL MAX( col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL MAX ( col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - col1 + - 58 AS col0 FROM tab0 AS cor0
----
-139
-59
-79

query II rowsort
SELECT DISTINCT 85 + + 44, + 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
129
85

query II rowsort
SELECT DISTINCT + 2 AS col1, + 33 FROM tab1
----
2
33

query I rowsort
SELECT ALL - - 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT + + AVG ( ALL + col0 ) FROM tab0 WHERE NOT ( - 47 ) < + 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4493
SELECT DISTINCT 39 DIV + 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT 39 / + 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - MAX( - + 84 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4494
SELECT - MAX ( - + 84 ) AS col0 FROM tab0
----
84

query II rowsort
SELECT DISTINCT col2, 10 AS col1 FROM tab1 cor0
----
59
10
68
10
96
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 35 ) col1 FROM tab2 AS cor0
----
35
35
35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND + - 35 - - 2 * - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT DISTINCT ( - CAST( - + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 25 NOT IN ( - col1 )
----

query I rowsort
SELECT ALL - - ( + 91 ) AS col0 FROM tab0 AS cor0
----
91
91
91

query II rowsort
SELECT 93 AS col1, col2 AS col2 FROM tab1 AS cor0
----
93
59
93
68
93
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col1 * - ( + col2 ) - + 25 * - - col0
----

query I rowsort
SELECT + col2 * - ( - 97 ) FROM tab0 AS cor0
----
4559
9603
970

query I rowsort
SELECT - col0 + + 35 + - 28 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( + 60 ) / - col1 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT - 11 + - 96 + COUNT( * ) FROM tab2 WHERE NOT ( ( NULL IS NULL ) )
----
-107

skipif mysql # not compatible
query I rowsort label-4506
SELECT - 11 + - 96 + COUNT ( * ) FROM tab2 WHERE NOT ( ( NULL IS NULL ) )
----
-107

query I rowsort
SELECT + col1 + - 28 FROM tab0 AS cor0
----
-27
-7
53

query I rowsort
SELECT ALL col2 * + col0 + + - col0 + col1 AS col2 FROM tab0 AS cor0
----
771
804
9507

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL + COUNT( * ) + + 63 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL + COUNT ( * ) + + 63 FROM tab0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 16 AS col1, + col2 / col0 * + col2 * - + col1 col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 79 )
----

query II rowsort
SELECT + col0, col1 * - - 83 AS col2 FROM tab2 AS cor0
----
46
4233
64
6391
75
5561

query II rowsort
SELECT - ( - 32 ) * + 78 AS col1, col1 * + + 53 FROM tab1 AS cor0
----
2496
2491
2496
265
2496
742

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( + col2 + + col1 * - + col1 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT 9 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT 9 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL col1 * col1 * - col1 - - + 67 FROM tab0 AS cor0 WHERE ( + 38 * + + col1 * + col1 >= 74 / + - 15 + - ( 71 ) )
----
-531374
-9194
66

query I rowsort
SELECT + col0 * 47 + col0 FROM tab1
----
2448
4080
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT MAX( ALL - col1 ) + COUNT( * ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-4518
SELECT MAX ( ALL - col1 ) + COUNT ( * ) AS col2 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT 71 - - + 69 + - - SUM( col1 ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT 71 - - + 69 + - - SUM ( col1 ) AS col0 FROM tab0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT ALL - col0 DIV + - col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - col0 / + - col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - MAX( 64 ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - MAX ( 64 ) FROM tab0 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT SUM( - + col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT SUM ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4524
SELECT + 78 + - - ( + + COUNT( * ) ) AS col2, + MAX( DISTINCT 14 ) FROM tab0 WHERE NOT NULL <> NULL
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4524
SELECT + 78 + - - ( + + COUNT ( * ) ) AS col2, + MAX ( DISTINCT 14 ) FROM tab0 WHERE NOT NULL <> NULL
----
78
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4525
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT + 50 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( + 26, - CAST( + + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4526
SELECT + 50 FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( + 26, - CAST ( + + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT - SUM( - col2 ) AS col0 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - SUM ( - col2 ) AS col0 FROM tab1 cor0
----
223

query II rowsort
SELECT ALL 10, col2 FROM tab2 AS cor0
----
10
23
10
40
10
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT - 11 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 11 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 15 * - col0 FROM tab1 AS cor0
----
1275
1365
765

query II rowsort
SELECT + col2 AS col0, 50 AS col2 FROM tab2
----
23
50
40
50
58
50

query II rowsort
SELECT DISTINCT col2, - col1 AS col0 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT COUNT( * ) * COUNT( * ) * + + MAX( + col1 ) FROM tab2
----
693

skipif mysql # not compatible
query I rowsort label-4533
SELECT COUNT ( * ) * COUNT ( * ) * + + MAX ( + col1 ) FROM tab2
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT - COUNT( ALL - + 39 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4534
SELECT - COUNT ( ALL - + 39 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT + MIN( + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT + MIN ( + - col0 ) AS col2 FROM tab0
----
-97

query II rowsort
SELECT + 27 * - col1 AS col1, 57 FROM tab2
----
-1377
57
-1809
57
-2079
57

query II rowsort
SELECT ALL col2, ( - + 77 ) FROM tab0
----
10
-77
47
-77
99
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4538
SELECT ALL - + col0 + - CAST( col0 AS SIGNED ) col2 FROM tab1 cor0
----
-102
-170
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4538
SELECT ALL - + col0 + - CAST ( col0 AS INTEGER ) col2 FROM tab1 cor0
----
-102
-170
-182

query I rowsort
SELECT ALL ( - + col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 + + - col0 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL + col0 * - ( - col1 ) AS col1 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 * - + col2 col1 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT - - SUM( col2 ) + - - 40 AS col0 FROM tab2 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - - SUM ( col2 ) + - - 40 AS col0 FROM tab2 AS cor0
----
161

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 44 * - col0 IS NULL
----

query I rowsort
SELECT ALL + 83 * + + col1 FROM tab0 AS cor0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT 77 * 89 + + + COUNT( * ) FROM tab2 AS cor0
----
6856

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT 77 * 89 + + + COUNT ( * ) FROM tab2 AS cor0
----
6856

query I rowsort
SELECT + + ( col0 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL + + CAST( NULL AS SIGNED ) * + col2 + + ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col2 + + ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT + + MAX( + - col0 ) - - 93 AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + + MAX ( + - col0 ) - - 93 AS col1 FROM tab0 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT CAST( col0 AS SIGNED ) - - col0 * - + 24 AS col0 FROM tab2
----
-1058
-1472
-1725

skipif mysql # not compatible
query I rowsort label-4550
SELECT CAST ( col0 AS INTEGER ) - - col0 * - + 24 AS col0 FROM tab2
----
-1058
-1472
-1725

query I rowsort
SELECT ALL - col0 - - 84 AS col0 FROM tab2
----
20
38
9

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE + ( + col0 ) >= - 15
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab0 WHERE + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL col2, 14 FROM tab1 WHERE - col1 * col1 BETWEEN + - col1 / - col2 * + + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4557
SELECT ALL - COUNT( - ( - ( col1 ) ) ) DIV + 71 * + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - COUNT ( - ( - ( col1 ) ) ) / + 71 * + + COUNT ( * ) FROM tab0
----
0

query II rowsort
SELECT ALL + + 62, col1 FROM tab1 cor0
----
62
14
62
47
62
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col2 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT + COUNT( DISTINCT + 79 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT + COUNT ( DISTINCT + 79 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT - + MAX( - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4561
SELECT - + MAX ( - col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - ( + + 62 ) AS col0 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4563
SELECT * FROM tab2 cor0 WHERE NOT + ( + + CAST( - col0 AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4563
SELECT * FROM tab2 cor0 WHERE NOT + ( + + CAST ( - col0 AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 66 AS col2 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT ALL - - 42 * + - col2 * + col0 FROM tab1 AS cor0
----
-205632
-210630
-259896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT DISTINCT + + CAST( + CAST( - 98 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT + + CAST ( + CAST ( - 98 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-98

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL IN ( + 35 - + col1 * - 60 )
----

query I rowsort
SELECT 88 - + col1 * col1 AS col0 FROM tab0
----
-353
-6473
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab1 WHERE + col2 = 14 + col0
----

query I rowsort
SELECT - 73 * - 82 + ( + col2 ) AS col0 FROM tab2 WHERE NOT - 92 > NULL
----

query I rowsort
SELECT col2 - 96 AS col0 FROM tab2
----
-38
-56
-73

query I rowsort
SELECT col2 + 81 AS col0 FROM tab0
----
128
180
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4574
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 16 - COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4574
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 16 - COUNT ( * ) col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( col0 * 38 - - col1 * + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT ALL + MIN( + col0 ) DIV - 53 + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + MIN ( + col0 ) / - 53 + COUNT ( * ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( col0 ) NOT BETWEEN - col1 + - ( + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT DISTINCT - 53 * + SUM( col1 ) + - 51 AS col1 FROM tab0
----
-5510

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - 53 * + SUM ( col1 ) + - 51 AS col1 FROM tab0
----
-5510

query I rowsort
SELECT ALL col1 * col0 + + 52 * ( + col1 + col1 ) FROM tab0
----
201
4011
9639

query I rowsort
SELECT + col0 FROM tab0 WHERE - col2 BETWEEN - 95 AND col0
----
15
87

query I rowsort
SELECT - col1 + 54 AS col2 FROM tab1
----
40
49
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( - col0 ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 43 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT 86 * MIN( DISTINCT + col0 ) - COUNT( * ) AS col1 FROM tab2
----
3953

skipif mysql # not compatible
query I rowsort label-4585
SELECT 86 * MIN ( DISTINCT + col0 ) - COUNT ( * ) AS col1 FROM tab2
----
3953

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT + SUM( ALL - col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4587
SELECT + SUM ( ALL - col0 ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT DISTINCT + ( - SUM( 66 ) ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT + ( - SUM ( 66 ) ) FROM tab1
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT CAST( NULL AS SIGNED ) * 20 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT CAST ( NULL AS INTEGER ) * 20 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 60 AS col0 FROM tab2
----
-1380
-2400
-3480

query I rowsort
SELECT DISTINCT ( 27 ) AS col0 FROM tab0 WHERE ( col1 ) BETWEEN ( 86 ) AND ( NULL )
----

query I rowsort
SELECT ALL col2 + 3 FROM tab2
----
26
43
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT + COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL - SUM( col1 ) + COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - SUM ( col1 ) + COUNT ( * ) FROM tab1
----
-63

query I rowsort
SELECT - col1 * + 34 + col2 FROM tab1 AS cor0
----
-111
-1530
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT DISTINCT - SUM( - 12 ) + - 86 AS col1 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT - SUM ( - 12 ) + - 86 AS col1 FROM tab2 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL 90 + + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL 90 + + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT ALL MAX( ALL col2 ) + + 21 AS col0 FROM tab1 cor0
----
117

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL MAX ( ALL col2 ) + + 21 AS col0 FROM tab1 cor0
----
117

query I rowsort
SELECT ALL - 79 + col0 * - 90 AS col2 FROM tab0
----
-1429
-7909
-8809

query I rowsort
SELECT + 43 * + 24 FROM tab2
----
1032
1032
1032

query I rowsort
SELECT DISTINCT 0 + - col1 AS col2 FROM tab1 WHERE ( 97 ) NOT BETWEEN NULL AND col1 + - col2
----
-14
-47
-5

query I rowsort
SELECT - 10 - col1 FROM tab0
----
-11
-31
-91

query I rowsort
SELECT col2 * col2 - 88 FROM tab0 AS cor0
----
12
2121
9713

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4605
SELECT + + CAST( NULL AS DECIMAL ) * 55 - COUNT( * ) * + 91 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4605
SELECT + + CAST ( NULL AS REAL ) * 55 - COUNT ( * ) * + 91 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + col0 * 88 AS col1 FROM tab1 AS cor0
----
4392
7421
7940

query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 + col2 AND ( + 78 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT + + MAX( col2 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT + + MAX ( col2 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + - 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL - COUNT( * ) + + 72 + COUNT( * ) col0 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4610
SELECT ALL - COUNT ( * ) + + 72 + COUNT ( * ) col0 FROM tab1
----
72

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 * - 16 ) BETWEEN col1 + + 14 AND 48
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 12 * 79 col2 FROM tab0
----
19908
76788
948

query III rowsort
SELECT * FROM tab0 WHERE NOT 76 NOT BETWEEN 79 * + col1 AND NULL
----

query I rowsort
SELECT 25 * - col2 * 34 FROM tab2
----
-19550
-34000
-49300

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN - 76 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT - MAX( ALL + 20 ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - MAX ( ALL + 20 ) AS col2 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT ALL col2 DIV 78 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL col2 / 78 FROM tab1
----
0
0
1

query I rowsort
SELECT + 44 * + col1 * 43 AS col2 FROM tab0
----
153252
1892
39732

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT - - 12 * + ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4621
SELECT - - 12 * + ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
36

query I rowsort
SELECT col0 + - col0 FROM tab0 AS cor0 WHERE NOT ( - 37 ) / + 59 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT ( 52 ) DIV MAX( ( + col1 ) ) * + MAX( 59 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT ( 52 ) / MAX ( ( + col1 ) ) * + MAX ( 59 ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT ALL - col1 DIV - + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - col1 / - + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT col2 DIV ( - col1 ) FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4625
SELECT col2 / ( - col1 ) FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT 37 DIV col1 * + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT 37 / col1 * + col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 96 + col0 - + 84 FROM tab2 AS cor0
----
-105
-116
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 <= ( - + col0 / 95 )
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col2 <= ( - + col0 / 95 )
----
0

query I rowsort
SELECT ALL + - 21 * - + col0 FROM tab1 AS cor0
----
1071
1785
1911

query I rowsort
SELECT + + col1 * + col1 * + + 56 AS col1 FROM tab1 AS cor0
----
10976
123704
1400

query I rowsort
SELECT ALL - col2 + - + col2 - + + 43 - col0 AS col2 FROM tab1 AS cor0
----
-246
-270
-286

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= col0
----
15
81
47
97
1
99

query I rowsort
SELECT col1 * + 21 FROM tab0
----
1701
21
441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col1 FROM tab1 WHERE NULL NOT IN ( + ( - col0 ) * 50 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + ( + col0 ) IN ( - col0 / - 17 )
----

query I rowsort
SELECT + col1 FROM tab1 WHERE col0 * 3 + + col2 * - 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 99 - col1 col1, - col1 + + 42 FROM tab2 AS cor0
----
-150
-9
-166
-25
-176
-35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) IN ( + col0 / + col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4641
SELECT DISTINCT + - COUNT( * ) + - + COUNT( * ) col1, - SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
-6
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4641
SELECT DISTINCT + - COUNT ( * ) + - + COUNT ( * ) col1, - SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-6
-195

query III rowsort
SELECT * FROM tab0 WHERE col1 * + col2 BETWEEN - - 29 + col0 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + + ( COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + ( COUNT ( * ) ) FROM tab2 cor0
----
3

query II rowsort
SELECT col2 * + 26 * + 84 AS col1, col2 * + col1 * col1 + col0 FROM tab2 AS cor0
----
126672
260437
50232
59869
87360
237224

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT + 54 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4645
SELECT + 54 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
162

query I rowsort
SELECT - col2 * - - col2 * + 64 AS col1 FROM tab2 AS cor0
----
-102400
-215296
-33856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4647
SELECT + 46 DIV 91 * - + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4647
SELECT + 46 / 91 * - + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 5 * - + 89 FROM tab2
----
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + COUNT( + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4649
SELECT + COUNT ( + col2 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT ALL - - col2 * - col2 + - 41 * + col0 FROM tab1 WHERE NOT ( - + CAST( NULL AS SIGNED ) ) NOT BETWEEN - 3 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - - col2 * - col2 + - 41 * + col0 FROM tab1 WHERE NOT ( - + CAST ( NULL AS INTEGER ) ) NOT BETWEEN - 3 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL col0 * + - col1 * col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT DISTINCT ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) + - ( - - COUNT( + 70 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + - ( - - COUNT ( + 70 ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 35 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= - + 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 75 * col2 FROM tab2 AS cor0
----
-1725
-3000
-4350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NOT ( NULL ) BETWEEN 42 * + col1 AND NULL ) )
----

query I rowsort
SELECT DISTINCT - col1 * - - 90 * + - col1 FROM tab2 AS cor0
----
234090
404010
533610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4659
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) + + - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) + + - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + ( + MAX( ALL + 86 ) ) AS col0 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4660
SELECT + ( + MAX ( ALL + 86 ) ) AS col0 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT SUM( + col0 ) AS col0 FROM tab0 cor0 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT SUM ( + col0 ) AS col0 FROM tab0 cor0 WHERE NULL <> ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT DISTINCT - MIN( DISTINCT + col1 ) FROM tab1 WHERE NOT - 71 NOT IN ( + col2 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab1 WHERE NOT - 71 NOT IN ( + col2 + - col1 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 19, + col1 * - col2 AS col0 FROM tab0
----
19
-210
19
-3807
19
-99

query II rowsort
SELECT ALL - 37 AS col2, ( col0 ) + 58 AS col0 FROM tab1
----
-37
109
-37
143
-37
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + 38 * - + COUNT( * ) + - COUNT( * ) + + 99 AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4667
SELECT + 38 * - + COUNT ( * ) + - COUNT ( * ) + + 99 AS col2 FROM tab2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4668
SELECT DISTINCT CAST( + + MAX( DISTINCT - CAST( + 14 AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT CAST ( + + MAX ( DISTINCT - CAST ( + 14 AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE + - col1 >= - - 14
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE + - col1 >= - - 14
----
0

query I rowsort
SELECT + - 20 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
266
893
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4671
SELECT CAST( - + 92 AS SIGNED ) DIV + 6 + + 42 AS col0 FROM tab0 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-4671
SELECT CAST ( - + 92 AS INTEGER ) / + 6 + + 42 AS col0 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT - col0 - - 74 AS col0 FROM tab2 AS cor0
----
-1
10
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT ALL - ( + + COUNT( * ) ) DIV ( - 47 ) - - + 46 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - ( + + COUNT ( * ) ) / ( - 47 ) - - + 46 FROM tab1
----
46

query III rowsort
SELECT * FROM tab1 WHERE col1 * - 21 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 17 * col0 - + col2 + + - col2 FROM tab1
----
1327
1411
675

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL = ( 47 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 / col2 AND + + col1
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4679
SELECT ALL 49 DIV 64 + + + 46 AS col0 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL 49 / 64 + + + 46 AS col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - 97 * + 27 FROM tab0 AS cor0
----
-2619

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col2 * + 92, - 5 )
----

query II rowsort
SELECT DISTINCT col1 AS col2, - 83 FROM tab1 AS cor0 WHERE col0 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - MAX( + - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4683
SELECT - MAX ( + - col1 ) FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + ( - + col0 ) * + col0 IS NOT NULL
----

query II rowsort
SELECT - col0, + ( col2 ) AS col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL MAX( + 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL MAX ( + 71 ) FROM tab1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT 66 * + 99 * ( - COUNT( * ) ) FROM tab2
----
-19602

skipif mysql # not compatible
query I rowsort label-4687
SELECT 66 * + 99 * ( - COUNT ( * ) ) FROM tab2
----
-19602

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - ( COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4688
SELECT - ( COUNT ( * ) ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - MAX( DISTINCT 87 ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4689
SELECT - MAX ( DISTINCT 87 ) AS col0 FROM tab1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL SUM( + - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL SUM ( + - col1 ) AS col2 FROM tab0
----
-103

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 BETWEEN col1 AND - 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT DISTINCT ( + CAST( col0 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4692
SELECT DISTINCT ( + CAST ( col0 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT 77 * - ( MIN( DISTINCT + 39 ) ) AS col1 FROM tab0 AS cor0
----
-3003

skipif mysql # not compatible
query I rowsort label-4694
SELECT 77 * - ( MIN ( DISTINCT + 39 ) ) AS col1 FROM tab0 AS cor0
----
-3003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT ALL COUNT( * ) DIV - 76 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL COUNT ( * ) / - 76 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ( - ( + 68 ) ) * + col2 FROM tab2
----
-1564
-2720
-3944

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( - col0 )
----

query I rowsort
SELECT col2 + - 99 + - col0 FROM tab1 AS cor0
----
-122
-125
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT ( - 93 ) AS col1 FROM tab1 AS cor0
----
-93
-93
-93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 IS NULL
----

query I rowsort
SELECT + ( - 10 ) FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4703
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) * COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 14 ) col0 FROM tab1 WHERE NOT - + col1 + - col2 IS NULL
----
14
14
14

query I rowsort
SELECT DISTINCT col2 * + ( + + 86 ) * 70 AS col0 FROM tab0
----
282940
595980
60200

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + 27 = - + col0
----

query I rowsort
SELECT - 17 + col1 FROM tab2 WHERE ( NOT + col0 IS NULL )
----
34
50
60

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col0 + + col0 - - + 50 * - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 / 57 col2 FROM tab0 AS cor0 WHERE NOT ( - 27 ) IS NOT NULL
----

query I rowsort
SELECT + col1 + - - col1 * - col2 FROM tab1 AS cor0
----
-1330
-290
-3149

query I rowsort
SELECT + 23 * col0 * 59 + - col0 AS col0 FROM tab1 AS cor0
----
115260
123396
69156

query I rowsort
SELECT DISTINCT col0 * - + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT - MIN( ALL + + CAST( + col0 AS SIGNED ) ) * 2 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-4715
SELECT - MIN ( ALL + + CAST ( + col0 AS INTEGER ) ) * 2 FROM tab1
----
-102

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 50 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT DISTINCT 95 DIV col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT 95 / col2 FROM tab2
----
1
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT ALL col1 DIV 83 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-4718
SELECT ALL col1 / 83 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT MAX( col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-4719
SELECT MAX ( col0 ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
97

query II rowsort
SELECT col0 * + 77 - + + col2, - col0 AS col1 FROM tab1 AS cor0
----
3831
-51
6486
-85
6939
-91

query II rowsort
SELECT + col0, + 99 FROM tab0 AS cor0
----
15
99
87
99
97
99

query II rowsort
SELECT ALL - col0 AS col0, + col1 * col0 AS col1 FROM tab0 AS cor0
----
-15
1215
-87
1827
-97
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 IN ( - ( 35 ) * - 20 + col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4724
SELECT - CAST( NULL AS SIGNED ) * + col2 + col0 + + col1, + col0 + - 41 + + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
1063
NULL
2583
NULL
4384

skipif mysql # not compatible
query II rowsort label-4724
SELECT - CAST ( NULL AS INTEGER ) * + col2 + col0 + + col1, + col0 + - 41 + + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
1063
NULL
2583
NULL
4384

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT - - col1 < 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ( - 87 ) AS col1, + 8 AS col0 FROM tab1
----
-87
8
-87
8
-87
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL - CAST( + - ( - - 34 ) AS SIGNED ) * + col0 FROM tab0 WHERE + 4 + + col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - CAST ( + - ( - - 34 ) AS INTEGER ) * + col0 FROM tab0 WHERE + 4 + + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT - col0 NOT IN ( col2 + - + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT SUM( ALL + - ( + + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT SUM ( ALL + - ( + + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + SUM( DISTINCT - - col2 ) * - 88 + - COUNT( * ) col1 FROM tab1 AS cor0
----
-19627

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4731
SELECT + SUM ( DISTINCT - - col2 ) * - 88 + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-19627

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE col0 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4733
SELECT + 89 * + - 4 * 5 * + col1, + ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4733
SELECT + 89 * + - 4 * 5 * + col1, + ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 24 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL - CAST( 44 AS SIGNED ) * - col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST( 96 AS SIGNED ) IS NULL
----
31020
38280
422532

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - CAST ( 44 AS INTEGER ) * - col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + CAST ( 96 AS INTEGER ) IS NULL
----
31020
38280
422532

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4736
SELECT DISTINCT + - col2 * CAST( - 43 AS SIGNED ) DIV col2 AS col2 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT + - col2 * CAST ( - 43 AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 AS cor0 WHERE + 57 + + - 43 + - col1 >= NULL
----

query I rowsort
SELECT + col2 * + col0 * - 97 AS col2 FROM tab1 AS cor0
----
-474912
-486455
-600236

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT - COUNT( ALL 91 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4739
SELECT - COUNT ( ALL 91 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + - 86 + - ( col1 ) AS col0, col2 AS col2 FROM tab2 AS cor0
----
-137
23
-153
58
-163
40

query I rowsort
SELECT DISTINCT + 47 + + 46 AS col2 FROM tab2 AS cor0
----
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4743
SELECT ALL - + COUNT( * ) DIV COUNT( * ) + + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - + COUNT ( * ) / COUNT ( * ) + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL 71 + - - col1 AS col0 FROM tab1
----
118
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT MAX( + + 23 ) + COUNT( * ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-4745
SELECT MAX ( + + 23 ) + COUNT ( * ) FROM tab0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL - col1 DIV - + col1 - + col0 AS col2 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL - col1 / - + col1 - + col0 AS col2 FROM tab2
----
-45
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 - - col2 * - - 73 col2 FROM tab0
----
3461
7421
904

query I rowsort
SELECT DISTINCT - 79 * - - 12 AS col1 FROM tab2
----
-948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT - CAST( + COUNT( * ) AS SIGNED ) + + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4750
SELECT MAX( - + ( + - col2 ) ) + + COUNT( * ) AS col0, 39 FROM tab0
----
102
39

skipif mysql # not compatible
query II rowsort label-4750
SELECT MAX ( - + ( + - col2 ) ) + + COUNT ( * ) AS col0, 39 FROM tab0
----
102
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT DISTINCT 60 * + - col2 * - + CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT 60 * + - col2 * - + CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col1 * - + col2 AS col1 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 <= + col0
----

query I rowsort
SELECT ALL 19 * + - col0 FROM tab0
----
-1653
-1843
-285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT DISTINCT - CAST( + MAX( DISTINCT + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - CAST ( + MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + 68 NOT BETWEEN + col0 + - + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4758
SELECT * FROM tab0 AS cor0 WHERE 48 * + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4758
SELECT * FROM tab0 AS cor0 WHERE 48 * + CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - 96 BETWEEN + col2 * + ( + col1 ) - + 43 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT col0 DIV - + col0 DIV 19 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4760
SELECT col0 / - + col0 / 19 * - col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT DISTINCT + col0 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT + col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT SUM( col0 ) * - + COUNT( * ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT SUM ( col0 ) * - + COUNT ( * ) FROM tab2
----
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-4763
SELECT ALL + - col1 DIV - + col1 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + - col1 / - + col1 AS col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4764
SELECT ALL + CAST( - 13 AS SIGNED ), col2 + ( - + col1 ) + - col1 col1 FROM tab2 AS cor0
----
-13
-114
-13
-76
-13
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4764
SELECT ALL + CAST ( - 13 AS INTEGER ), col2 + ( - + col1 ) + - col1 col1 FROM tab2 AS cor0
----
-13
-114
-13
-76
-13
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT + + COUNT( * ) * - + 23 AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + + COUNT ( * ) * - + 23 AS col2 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL 62 * col0 FROM tab0
----
5394
6014
930

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT 25 DIV + 76 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT 25 / + 76 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * + 67 * + col2 col0 FROM tab1
----
-249039
-287028
-405216

onlyif mysql # aggregate syntax: 
query II rowsort label-4770
SELECT DISTINCT - 66, - COUNT( * ) AS col2 FROM tab0
----
-66
-3

skipif mysql # not compatible
query II rowsort label-4770
SELECT DISTINCT - 66, - COUNT ( * ) AS col2 FROM tab0
----
-66
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT ALL - COUNT( ALL ( + ( col0 ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL - COUNT ( ALL ( + ( col0 ) ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 - - 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL < - + col1
----

skipif mysql # not compatible
query I rowsort label-4773
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT - 73 * + - 18 + - COUNT( + col1 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
1308

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT - 73 * + - 18 + - COUNT ( + col1 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col2 FROM tab0 cor0
----
-87

query I rowsort
SELECT DISTINCT + + 49 * + col2 - + col0 - + col0 AS col0 FROM tab2 AS cor0 WHERE - 64 + + col2 * + col1 IN ( - col1, 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT - col1 DIV + col2 + - 43 FROM tab0 AS cor0
----
-43
-44
-45

skipif mysql # not compatible
query I rowsort label-4777
SELECT - col1 / + col2 + - 43 FROM tab0 AS cor0
----
-43
-44
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-4778
SELECT + + 54 DIV + + col2 AS col1, - col2 FROM tab0 AS cor0
----
0
-99
1
-47
5
-10

skipif mysql # not compatible
query II rowsort label-4778
SELECT + + 54 / + + col2 AS col1, - col2 FROM tab0 AS cor0
----
0
-99
1
-47
5
-10

query I rowsort
SELECT - ( - 59 ) AS col2 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT ( + 19 ) FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT ALL - - col0 * - + 58 + col2 FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + 95 - + col0 + - + col2 * col2 * + col0 FROM tab2
----
-102369
-24285
-252280

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT MAX( - 12 ) AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4783
SELECT MAX ( - 12 ) AS col2 FROM tab2
----
-12

query I rowsort
SELECT DISTINCT - col1 * 83 * + + col1 + col0 FROM tab2
----
-215837
-372512
-492043

query I rowsort
SELECT ( - 24 ) - col0 FROM tab1
----
-109
-115
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT - col0 + - 72 + + 98 * - CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT - col0 + - 72 + + 98 * - CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - - 23, col0 FROM tab1 AS cor0
----
23
51
23
85
23
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT + 86 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT + 86 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
258

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE ( - col0 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT DISTINCT + 58 DIV + col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + 58 / + col1 FROM tab2
----
0
1

query I rowsort
SELECT ALL - 12 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT + 79 * + + col0 - col0 AS col2 FROM tab1 AS cor0
----
3978
6630
7098

query II rowsort
SELECT 27, 48 AS col2 FROM tab2 cor0
----
27
48
27
48
27
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - SUM( DISTINCT - 46 ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - SUM ( DISTINCT - 46 ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 96 * - col0 col0 FROM tab0 cor0
----
-1440
-8352
-9312

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 89 IS NOT NULL
----

query I rowsort
SELECT 54 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + + col0 + + col2 col0 FROM tab1 AS cor0
----
2697
7284
8349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT ALL + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4801
SELECT * FROM tab0 WHERE NOT + 28 NOT BETWEEN NULL AND - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4801
SELECT * FROM tab0 WHERE NOT + 28 NOT BETWEEN NULL AND - col1 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4802
SELECT ALL - COUNT( * ) DIV 12 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - COUNT ( * ) / 12 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 * - col1 IS NOT NULL
----

query I rowsort
SELECT - 7 + + ( - + col1 ) * - col0 * col0 * + - col0 AS col2 FROM tab0
----
-13828570
-273382
-912680

query I rowsort
SELECT ALL - 23 FROM tab1 AS cor0 WHERE ( NULL ) <> + ( + - 33 ) * + ( ( - col0 ) ) + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4806
SELECT ALL - 39 DIV + - col0 * - col0 * + + 8 * - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - 39 / + - col0 * - col0 * + + 8 * - - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * - + 45 FROM tab0
----
-2115
-4455
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT MAX( DISTINCT + col1 ) - ( - + COUNT( * ) ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4808
SELECT MAX ( DISTINCT + col1 ) - ( - + COUNT ( * ) ) FROM tab0
----
84

query I rowsort
SELECT col0 - - + ( 5 ) AS col2 FROM tab2
----
51
69
80

query I rowsort
SELECT + - col0 * + 79 + - col0 FROM tab0 cor0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT ALL - COUNT( - ( + - col1 ) ) + - SUM( 32 ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - COUNT ( - ( + - col1 ) ) + - SUM ( 32 ) FROM tab2 AS cor0
----
-99

query I rowsort
SELECT col0 + + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT + 50 + - col2 FROM tab0 AS cor0
----
-49
3
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT ALL 77 + + 26 + + + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL 77 + + 26 + + + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL - COUNT( * ) - - 21 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - COUNT ( * ) - - 21 FROM tab1
----
18

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT + ( SUM( ALL col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4817
SELECT + ( SUM ( ALL col2 ) ) FROM tab0
----
156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4818
SELECT ALL - 79 * + + 12 - CAST( NULL AS DECIMAL ) - + col1 + - col2 * - - 98 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL - 79 * + + 12 - CAST ( NULL AS REAL ) - + col1 + - col2 * - - 98 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT + ( + - col1 ) AS col1 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 66 * - 83 col1, - col2 + col2 + - + col1 + col2 * + col2 FROM tab0 AS cor0
----
-5478
2128
-5478
79
-5478
9800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4822
SELECT - col2 AS col2 FROM tab2 WHERE NOT + col1 / + 59 + + CAST( 67 AS DECIMAL ) / + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4822
SELECT - col2 AS col2 FROM tab2 WHERE NOT + col1 / + 59 + + CAST ( 67 AS REAL ) / + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <> + 26 + + 6 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab0 WHERE - + 48 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + + col2 * col1 * + + ( col1 ) AS col1 FROM tab0 AS cor0
----
308367
4410
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 BETWEEN - col0 / 8 * + - col0 + + col0 + + 79 * - col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 * + - col2 + - + col2
----
0

skipif mysql # not compatible
query I rowsort label-4827
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1 * + - col2 + - + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 6 * - COUNT( - + 92 ) AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4828
SELECT 6 * - COUNT ( - + 92 ) AS col0 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT + col1 * + col2 + + col2 AS col2 FROM tab0 cor0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + COUNT( * ) * + 75 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4830
SELECT + COUNT ( * ) * + 75 FROM tab0 AS cor0
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col1 col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4832
SELECT ALL + CAST( - COUNT( - col0 ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col0 + col1 * 13 + 98 * + CAST( + 63 AS SIGNED ) + + col1 + - 48 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + CAST ( - COUNT ( - col0 ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col0 + col1 * 13 + 98 * + CAST ( + 63 AS INTEGER ) + + col1 + - 48 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4833
SELECT - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) * + 33 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) * + 33 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - COUNT( * ) * + 77 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-4835
SELECT - COUNT ( * ) * + 77 FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT - 68 + + SUM( - col1 ) FROM tab1
----
-134

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT - 68 + + SUM ( - col1 ) FROM tab1
----
-134

query I rowsort
SELECT DISTINCT - col0 * + + col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT + 23 - - col0 * col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + col0 * 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT 10 + COUNT( * ) FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-4840
SELECT 10 + COUNT ( * ) FROM tab1 cor0
----
13

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 WHERE + 93 < NULL
----

query I rowsort
SELECT 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE 49 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 + - col1 + + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 + - col1 + + col1 FROM tab1 cor0
----
NULL

query II rowsort
SELECT ALL - 40 * - col0, - 49 AS col2 FROM tab1 cor0
----
2040
-49
3400
-49
3640
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-4848
SELECT + 57 DIV col1, 75 * - + col0 AS col2 FROM tab0 AS cor0
----
0
-1125
2
-6525
57
-7275

skipif mysql # not compatible
query II rowsort label-4848
SELECT + 57 / col1, 75 * - + col0 AS col2 FROM tab0 AS cor0
----
0
-1125
2
-6525
57
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT MIN( + 82 ) + ( + 4 ) AS col1 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT MIN ( + 82 ) + ( + 4 ) AS col1 FROM tab2 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT + + SUM( ALL + col2 ) AS col2, - 69 FROM tab0 AS cor0
----
156
-69

skipif mysql # not compatible
query II rowsort label-4850
SELECT + + SUM ( ALL + col2 ) AS col2, - 69 FROM tab0 AS cor0
----
156
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 + + - ( + - col1 ) col0, col2 col0 FROM tab2 AS cor0
----
141
40
142
58
97
23

query I rowsort
SELECT DISTINCT col1 - - + 13 FROM tab1 AS cor0
----
18
27
60

query II rowsort
SELECT - col0 * + 58 - + col2 AS col0, col2 AS col0 FROM tab0 AS cor0
----
-5056
10
-5725
99
-917
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL col2 DIV + + 71 - - + 58 + - ( - + col1 ) * + 97 FROM tab0
----
156
2095
7915

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL col2 / + + 71 - - + 58 + - ( - + col1 ) * + 97 FROM tab0
----
156
2095
7915

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT - COUNT( * ) - 79 AS col0 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-4855
SELECT - COUNT ( * ) - 79 AS col0 FROM tab1
----
-82

query I rowsort
SELECT 6 - + col2 * col0 * 32 FROM tab2
----
-139194
-33850
-81914

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - ( + + COUNT( DISTINCT + ( - 56 ) ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4857
SELECT - ( + + COUNT ( DISTINCT + ( - 56 ) ) ) FROM tab0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + 51 * 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT DISTINCT - MAX( + - col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT - MAX ( + - col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT - + 79 + - + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
-79

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT - + 79 + - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
-79

query II rowsort
SELECT DISTINCT col2 AS col1, + 67 AS col1 FROM tab2
----
23
67
40
67
58
67

query II rowsort
SELECT DISTINCT + 21, col0 AS col0 FROM tab0
----
21
15
21
87
21
97

query II rowsort
SELECT ALL - - 68 AS col2, col2 AS col0 FROM tab2 AS cor0
----
68
23
68
40
68
58

query I rowsort
SELECT - 74 * 65 AS col1 FROM tab1 AS cor0
----
-4810
-4810
-4810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 IN ( col1, 22, + 27 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4866
SELECT + MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab0 WHERE col0 < - + col0
----

query I rowsort
SELECT + 17 * + + 52 + + + 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba9556e4eca688d662fa154c6add1bf1

query I rowsort
SELECT ALL - ( + ( + 74 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 16 * - 87
----

query II rowsort
SELECT col0, col1 + + - col1 FROM tab0 AS cor0 WHERE ( - ( - - col2 ) ) IS NOT NULL
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT ALL SUM( ALL - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL SUM ( ALL - col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT ALL 12 + - ( + + 25 ) - + col2 AS col0 FROM tab0
----
-112
-23
-60

query I rowsort
SELECT 68 + - 6 FROM tab2
----
62
62
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT + CAST( NULL AS SIGNED ) + MIN( ALL + ( + col1 ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT + CAST ( NULL AS INTEGER ) + MIN ( ALL + ( + col1 ) ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT + 15 + ( col2 ) AS col2, col2 FROM tab2
----
38
23
55
40
73
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT SUM( - col1 ) * + 6 FROM tab0
----
-618

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT SUM ( - col1 ) * + 6 FROM tab0
----
-618

query I rowsort
SELECT - col2 + - - 24 FROM tab0
----
-23
-75
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT MAX( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4879
SELECT MAX ( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL + 46 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 - col1 col0 FROM tab2
----
-37
-53
-63

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= - col0
----

query I rowsort
SELECT - col0 * + col1 + - 87 + + col0 + - + col2 * 33 * col2 AS col2 FROM tab2 AS cor0
----
-116049
-19844
-57751

query I rowsort
SELECT ALL col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - 1 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - 1 ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT SUM( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
223

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT SUM ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - 89 col1 FROM tab1
----
-1246
-4183
-445

query I rowsort
SELECT ( 64 ) AS col0 FROM tab2
----
64
64
64

query I rowsort
SELECT - ( + col1 ) * + + col1 * 82 FROM tab1
----
-16072
-181138
-2050

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT COUNT( DISTINCT - - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4891
SELECT COUNT ( DISTINCT - - col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - col2 * 55 AS col2 FROM tab0
----
-2585
-5445
-550

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 30 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT DISTINCT + + col2 * CAST( NULL AS SIGNED ) * + 77 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + + col2 * CAST ( NULL AS INTEGER ) * + 77 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + 88 * - 7 NOT BETWEEN + 6 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT - COUNT( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT - COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT - + 91 * + MIN( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
-4641

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - + 91 * + MIN ( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
-4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT + col2 * + + ( + CAST( NULL AS SIGNED ) ) + + 4 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT + col2 * + + ( + CAST ( NULL AS INTEGER ) ) + + 4 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + + MAX( - + 27 ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4900
SELECT + + MAX ( - + 27 ) AS col0 FROM tab1 AS cor0
----
-27

query II rowsort
SELECT DISTINCT col2, col1 * ( + 59 ) * ( 89 ) FROM tab1 AS cor0
----
59
26255
68
246797
96
73514

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT - COUNT( DISTINCT col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4902
SELECT - COUNT ( DISTINCT col1 ) FROM tab1
----
-3

query II rowsort
SELECT 58 * - col1, col0 AS col2 FROM tab0
----
-1218
87
-4698
15
-58
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL ( + 16 ) + - - 5 + COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL ( + 16 ) + - - 5 + COUNT ( * ) FROM tab0
----
24

query I rowsort
SELECT - 64 FROM tab2 WHERE - + col1 <> + 5 - + col1
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT DISTINCT 24 * + - COUNT( * ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT 24 * + - COUNT ( * ) FROM tab1
----
-72

query I rowsort
SELECT DISTINCT - + col1 + + + ( + 91 ) AS col0 FROM tab1 AS cor0
----
44
77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT ALL 48 * + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1104
-1920
-2784

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL 48 * + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1104
-1920
-2784

query I rowsort
SELECT - 62 * 40 + - col0 FROM tab1 AS cor0
----
-2531
-2565
-2571

query I rowsort
SELECT ALL + col2 + + col0 * - - col1 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT DISTINCT + col0 DIV 27 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + col0 / 27 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT ALL - col1 * + + col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - - col1 * + 45 AS col1 FROM tab1 AS cor0
----
2115
225
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - - col0 + + 57 col2, ( - 55 ) * - 19 FROM tab2 AS cor0
----
-2289
1045
-4871
1045
-4968
1045

query I rowsort
SELECT + + 72 * col2 AS col1 FROM tab2 cor0
----
1656
2880
4176

query II rowsort
SELECT - 31 AS col2, col2 AS col1 FROM tab1
----
-31
59
-31
68
-31
96

query II rowsort
SELECT - + col2 AS col1, col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT + col0 AS col0, + 1 FROM tab1 AS cor0
----
51
1
85
1
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT - SUM( + col1 ) col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4919
SELECT DISTINCT - SUM ( + col1 ) col1 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL - COUNT( * ) * + MIN( ALL col1 ) col1 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4920
SELECT ALL - COUNT ( * ) * + MIN ( ALL col1 ) col1 FROM tab1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4921
SELECT ALL * FROM tab1 WHERE - - col0 + col1 + - - CAST( NULL AS SIGNED ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4921
SELECT ALL * FROM tab1 WHERE - - col0 + col1 + - - CAST ( NULL AS INTEGER ) * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4922
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE - 2 * + + col1 - - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE - 2 * + + col1 - - col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT DISTINCT - CAST( - CAST( - col1 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - CAST ( - CAST ( - col1 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT DISTINCT + - col0 * + CAST( + 27 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0 WHERE - ( 88 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + - col0 * + CAST ( + 27 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0 WHERE - ( 88 ) > NULL
----

query I rowsort
SELECT ALL 16 * - 31 + - col0 AS col0 FROM tab2 AS cor0
----
-542
-560
-571

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT DISTINCT + - col1 DIV + 44 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
90

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + - col1 / + 44 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
90

query I rowsort
SELECT - + col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * ( col1 ) col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4928
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * ( col1 ) col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----
0

query I rowsort
SELECT 20 + + 3 AS col2 FROM tab0
----
23
23
23

query II rowsort
SELECT ALL - col2, - col0 AS col1 FROM tab0
----
-10
-87
-47
-15
-99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col1 FROM tab0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-4933
SELECT - col1 DIV - 2 + + 42 AS col1, + col2 col2 FROM tab0
----
42
99
52
10
82
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4933
SELECT - col1 / - 2 + + 42 AS col1, + col2 col2 FROM tab0
----
42
99
52
10
82
47

query II rowsort
SELECT ALL 4, 34 + - col2 * - - 84 AS col1 FROM tab2
----
4
-1898
4
-3326
4
-4838

query I rowsort
SELECT + ( col2 ) * col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT + col2 * + 0 * - + ( - 8 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 11 * - col0 + - - ( 18 ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 11 * - col0 + - - ( 18 ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + - 76 AS col1 FROM tab1 AS cor0
----
-25
15
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4939
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4940
SELECT DISTINCT - MIN( - - col2 ) + + MIN( DISTINCT 41 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + CAST( - col2 AS SIGNED ) + + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT - MIN ( - - col2 ) + + MIN ( DISTINCT 41 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + CAST ( - col2 AS INTEGER ) + + + 16
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab0 cor0
----
-47

query I rowsort
SELECT + - ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < col0
----
15
81
47

query I rowsort
SELECT ALL col2 * - + col2 + - - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 28 )
----

query I rowsort
SELECT DISTINCT - col1 * col0 * col0 AS col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT + col0 DIV + col1 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4946
SELECT + col0 / + col1 AS col1 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 22 - - 23 + 2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT - 24 DIV + 11 col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4948
SELECT - 24 / + 11 col0 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT col0 * - ( col0 ) FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4950
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN - CAST( NULL AS SIGNED ) + - - col0 * 47 - + col0 AND - 84 * - + col2 + col0 * col1 + - col1 + + col1
----

skipif mysql # not compatible
query III rowsort label-4950
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) + - - col0 * 47 - + col0 AND - 84 * - + col2 + col0 * col1 + - col1 + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL - MIN( - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL - MIN ( - col2 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4953
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST( + col2 AS SIGNED ) <= + 25 + - col1 + - 62 * + + 26 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4953
SELECT DISTINCT * FROM tab1 WHERE NOT + + CAST ( + col2 AS INTEGER ) <= + 25 + - col1 + - 62 * + + 26 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 60 * + 3 + + col2 FROM tab0
----
17919
1810
8507

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE - col2 <> 2
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT + + ( 76 ) + CAST( col1 AS SIGNED ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
123
81
90

skipif mysql # not compatible
query I rowsort label-4957
SELECT + + ( 76 ) + CAST ( col1 AS INTEGER ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
123
81
90

query II rowsort
SELECT - col2 AS col0, 4 * + col2 AS col0 FROM tab2 AS cor0
----
-23
92
-40
160
-58
232

query I rowsort
SELECT + + col0 FROM tab2 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 9 + + 5 + - col0 BETWEEN col0 AND - col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, 46 + col2 FROM tab2 WHERE col0 < - - col1
----
23
69
40
86

query II rowsort
SELECT col2 + + + 94 AS col2, + 92 FROM tab0 AS cor0
----
104
92
141
92
193
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4963
SELECT DISTINCT * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-4963
SELECT DISTINCT * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col1 FROM tab2 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL MAX( DISTINCT + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
97

query I rowsort
SELECT 3 * - - 31 AS col0 FROM tab1 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - COUNT( * ) * - MAX( - - 45 ) AS col1 FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4967
SELECT - COUNT ( * ) * - MAX ( - - 45 ) AS col1 FROM tab2 AS cor0
----
135

query I rowsort
SELECT DISTINCT col2 * + col2 * col1 * + - 69 FROM tab1 AS cor0
----
-1200945
-14995632
-8902656

query II rowsort
SELECT + 67, - col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4970
SELECT ALL - + COUNT( * ) AS col2, + 56 DIV + 90 * - 66 AS col0 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL - + COUNT ( * ) AS col2, + 56 / + 90 * - 66 AS col0 FROM tab1 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - 5 + - - col1 col0, - col0 FROM tab2 AS cor0
----
-204
-46
-268
-75
-308
-64

query I rowsort
SELECT DISTINCT - col2 * - 58 AS col1 FROM tab1 AS cor0
----
3422
3944
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT ALL - - col2 * + CAST( - + col0 AS SIGNED ) + col0 AS col1 FROM tab0 cor0
----
-690
-783
-9506

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - - col2 * + CAST ( - + col0 AS INTEGER ) + col0 AS col1 FROM tab0 cor0
----
-690
-783
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT 28 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT 28 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4976
SELECT - SUM( + CAST( NULL AS SIGNED ) ), + 29 AS col2 FROM tab0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-4976
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ), + 29 AS col2 FROM tab0
----
NULL
29

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col2 FROM tab0 WHERE NOT - + col0 * - + col0 IS NULL
----
100
128
31

onlyif mysql # DIV for integer division: 
query II rowsort label-4978
SELECT - col1 * 62 DIV col1 + - col2 AS col2, 27 DIV - col2 FROM tab0
----
-109
0
-161
0
-72
-2

skipif mysql # not compatible
query II rowsort label-4978
SELECT - col1 * 62 / col1 + - col2 AS col2, 27 / - col2 FROM tab0
----
-109
0
-161
0
-72
-2

query II rowsort
SELECT col2, - col0 FROM tab1 WHERE NOT + - col1 > NULL
----

query I rowsort
SELECT ALL + - 54 + 19 + + col2 FROM tab0 AS cor0
----
-25
12
64

query I rowsort
SELECT + 65 + col0 FROM tab1 cor0
----
116
150
156

query I rowsort
SELECT DISTINCT - col2 * + + 8 FROM tab1 AS cor0
----
-472
-544
-768

query I rowsort
SELECT ALL - col1 + - 82 FROM tab0 AS cor0
----
-103
-163
-83

query II rowsort
SELECT DISTINCT col0 AS col2, 67 AS col1 FROM tab2
----
46
67
64
67
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL col2 * - 27 * - - 34 FROM tab1
----
-54162
-62424
-88128

query I rowsort
SELECT - - 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + + col0 + - + col1 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 80 AND + col1
----

query I rowsort
SELECT col2 - + - ( + col1 ) FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4991
SELECT ALL + 66 DIV COUNT( * ) + + - MIN( + col1 ) AS col1 FROM tab2 AS cor0 WHERE - col1 - + + 29 < + col1
----
-29

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + 66 / COUNT ( * ) + + - MIN ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE - col1 - + + 29 < + col1
----
-29

query I rowsort
SELECT DISTINCT - 1 * + + col0 * col0 - - col1 FROM tab2 AS cor0
----
-2065
-4019
-5558

query I rowsort
SELECT DISTINCT - + col0 + + + col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4994
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * - 96 < + + CAST( - col1 AS SIGNED ) + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4994
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * - 96 < + + CAST ( - col1 AS INTEGER ) + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4995
SELECT * FROM tab1 WHERE + CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4995
SELECT * FROM tab1 WHERE + CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + 60 * + col0 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT DISTINCT + col1 + + 87 * + col2 FROM tab1
----
5138
5963
8366

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE + 34 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT 91 * - - MAX( 8 ) FROM tab2
----
728

skipif mysql # not compatible
query I rowsort label-4999
SELECT 91 * - - MAX ( 8 ) FROM tab2
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-5000
SELECT + col0 DIV col1 DIV 36 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT + col0 / col1 / 36 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL + MIN( ALL + col2 ) - + ( - ( 38 ) ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL + MIN ( ALL + col2 ) - + ( - ( 38 ) ) AS col0 FROM tab2
----
61

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE + col1 < + col2 - - col1 - - col0
----
51
67
77

query I rowsort
SELECT - - ( + 71 ) * + 69 FROM tab0 AS cor0
----
4899
4899
4899

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 60 * col0 NOT BETWEEN + + 10 AND + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= ( ( 73 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT ALL + 29 DIV + + 12 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + 29 / + + 12 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5008
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col1 IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT 92 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + col2
----

query II rowsort
SELECT DISTINCT - ( col2 ) AS col0, - col1 AS col0 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5012
SELECT DISTINCT + col0 * - col0 + + + col2 / + col2 * - CAST( NULL AS DECIMAL ), - 5 * - + col1 * + 1 * + col0 + - col2 * + 88 * - - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5012
SELECT DISTINCT + col0 * - col0 + + + col2 / + col2 * - CAST ( NULL AS REAL ), - 5 * - + col1 * + 1 * + col0 + - col2 * + 88 * - - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - - ( - COUNT( * ) ) * 1 AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5013
SELECT - - ( - COUNT ( * ) ) * 1 AS col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT - 11 * + + col2 * - - 89 FROM tab0 AS cor0
----
-46013
-96921
-9790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 - - col0 col1 FROM tab2 AS cor0
----
115
168
208

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT + ( + - COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, + col2 AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT - COUNT( * ) AS col1, + MAX( + - col2 ) AS col0 FROM tab1
----
-3
-59

skipif mysql # not compatible
query II rowsort label-5018
SELECT - COUNT ( * ) AS col1, + MAX ( + - col2 ) AS col0 FROM tab1
----
-3
-59

query II rowsort
SELECT - col2 AS col0, col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT col0 * - col2 * + + col0 + col1 AS col1 FROM tab2 WHERE NOT - - col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 / + 41 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL MAX( DISTINCT - 98 ) AS col0 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL MAX ( DISTINCT - 98 ) AS col0 FROM tab1
----
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 21 * 40 * - + col0 + + 98 NOT BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - COUNT( * ) * - ( + COUNT( * ) ) + - + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5024
SELECT - COUNT ( * ) * - ( + COUNT ( * ) ) + - + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT + col1 + 0 FROM tab2
----
51
67
77

query I rowsort
SELECT ( + col0 ) * + col0 FROM tab0 WHERE NOT - col1 - - col0 * col0 NOT IN ( col0 - 67 )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * 76 FROM tab0
----
3572
7524
760

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT SUM( - col2 ) * + COUNT( * ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-5030
SELECT SUM ( - col2 ) * + COUNT ( * ) FROM tab1
----
-669

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 94 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT COUNT( * ) + MIN( - 99 - col0 * - col2 ) AS col0 FROM tab1
----
4800

skipif mysql # not compatible
query I rowsort label-5032
SELECT COUNT ( * ) + MIN ( - 99 - col0 * - col2 ) AS col0 FROM tab1
----
4800

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = 41
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 83 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 - - 20 col2 FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL COUNT( * ) * + 26 col2 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5036
SELECT ALL COUNT ( * ) * + 26 col2 FROM tab2
----
78

query I rowsort
SELECT 89 - AVG ( - col0 ) FROM tab0 WHERE NOT - col2 * col1 + - 5 < col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT DISTINCT - COUNT( ALL col0 ) * MAX( DISTINCT CAST( NULL AS SIGNED ) * col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT - COUNT ( ALL col0 ) * MAX ( DISTINCT CAST ( NULL AS INTEGER ) * col1 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 - 18 * col2 AS col1 FROM tab2 WHERE 79 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT COUNT( * ) DIV - 94 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5040
SELECT COUNT ( * ) / - 94 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT + col1 DIV - ( col2 ) col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5041
SELECT + col1 / - ( col2 ) col1 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5042
SELECT - COUNT( * ) DIV 2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5042
SELECT - COUNT ( * ) / 2 FROM tab2
----
-1

query I rowsort
SELECT ALL - 71 * + ( - ( + col0 ) ) AS col2 FROM tab2
----
3266
4544
5325

query I rowsort
SELECT + col1 - - 71 FROM tab0
----
152
72
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT - 67 DIV 85 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5045
SELECT - 67 / 85 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT ALL col0 DIV 5 AS col2 FROM tab0
----
17
19
3

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL col0 / 5 AS col2 FROM tab0
----
17
19
3

query I rowsort
SELECT ALL ( + 28 ) FROM tab0 WHERE NULL <= - 2 / + 13 + col1
----

query I rowsort
SELECT ALL 91 + 56 FROM tab1
----
147
147
147

query I rowsort
SELECT DISTINCT - 27 + + col2 FROM tab2
----
-4
13
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 14 + - 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - SUM( col0 ) * 13 AS col0 FROM tab0 cor0
----
-2587

skipif mysql # not compatible
query I rowsort label-5051
SELECT - SUM ( col0 ) * 13 AS col0 FROM tab0 cor0
----
-2587

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 28 + - col0 / col0 ) BETWEEN NULL AND ( - 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col2 * - col0 AND ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT - CAST( - ( - COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5054
SELECT - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT - 10 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
590
680
960

skipif mysql # not compatible
query I rowsort label-5055
SELECT - 10 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
590
680
960

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 * col2 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT - col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND ( + col2 * col0 )
----

skipif mysql # not compatible
query I rowsort label-5057
SELECT - col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND ( + col2 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> ( 63 * col2 + - 17 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col2 * + col1 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + - MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5060
SELECT + - MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 * - col2 col2 FROM tab1 AS cor0
----
-1062
-1224
-1728

query I rowsort
SELECT - col1 * + ( col1 + - col0 ) AS col0 FROM tab0 cor0
----
-5346
1386
96

query I rowsort
SELECT DISTINCT - - 72 + + col2 AS col0 FROM tab2 AS cor0
----
112
130
95

query III rowsort
SELECT * FROM tab0 WHERE NOT - 33 * col0 - col2 * col2 >= ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col1 * ( - 73 ) )
----

query I rowsort
SELECT - col2 + - + col1 + col2 AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL 96 * + + MAX( col2 ) FROM tab2
----
5568

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 96 * + + MAX ( col2 ) FROM tab2
----
5568

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 10 = NULL OR NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * - + ( col1 ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - col2 + 92 FROM tab2
----
34
52
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT - SUM( - ( col2 ) ) + 89 AS col1 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-5072
SELECT - SUM ( - ( col2 ) ) + 89 AS col1 FROM tab2
----
210

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5073
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( CAST( col0 AS DECIMAL ) ) NOT BETWEEN ( CAST( NULL AS DECIMAL ) ) AND CAST( + 9 AS SIGNED ) * 38
----

skipif mysql # not compatible
query III rowsort label-5073
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( CAST ( col0 AS REAL ) ) NOT BETWEEN ( CAST ( NULL AS REAL ) ) AND CAST ( + 9 AS INTEGER ) * 38
----

query II rowsort
SELECT ALL 58, 28 AS col1 FROM tab0
----
58
28
58
28
58
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5075
SELECT DISTINCT - col2 AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5075
SELECT DISTINCT - col2 AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT COUNT( * ) - + MAX( col2 + col0 ) AS col1 FROM tab0 WHERE - col0 + 11 BETWEEN ( NULL ) AND ( CAST( 82 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT COUNT ( * ) - + MAX ( col2 + col0 ) AS col1 FROM tab0 WHERE - col0 + 11 BETWEEN ( NULL ) AND ( CAST ( 82 AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 0 + 5 - + col0 FROM tab0
----
-10
-82
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IN ( + CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IN ( + CAST ( NULL AS INTEGER ) * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5079
SELECT DISTINCT col1 DIV CAST( + ( col1 ) AS SIGNED ) DIV ( - 46 * + 88 ) + 17 AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT col1 / CAST ( + ( col1 ) AS INTEGER ) / ( - 46 * + 88 ) + 17 AS col0 FROM tab1 AS cor0
----
17

query I rowsort
SELECT - col0 * + + 9 + + col2 FROM tab1 cor0
----
-363
-706
-751

query I rowsort
SELECT ALL col2 * + 62 FROM tab1 AS cor0 WHERE NOT col2 * col2 * - col2 < - col2 * - col0
----

query I rowsort
SELECT + 89 + + 38 AS col2 FROM tab0 AS cor0
----
127
127
127

query I rowsort
SELECT - - col1 + - - col2 AS col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT ALL + + col1 DIV - col0 + col1 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + + col1 / - col0 + col1 FROM tab2 AS cor0
----
50
67
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5085
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT DISTINCT + col1 * + 58 * - - CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT + col1 * + 58 * - - CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5087
SELECT DISTINCT col0 DIV + 43 + + col0 + 37 AS col1 FROM tab1 AS cor0
----
123
130
89

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT col0 / + 43 + + col0 + 37 AS col1 FROM tab1 AS cor0
----
123
130
89

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 4 + - - col0 / + col0 >= 40
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT MAX( ALL + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5090
SELECT MAX ( ALL + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL COUNT( ALL + col1 ) * + - 36 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL COUNT ( ALL + col1 ) * + - 36 FROM tab0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5092
SELECT CAST( + + col0 AS SIGNED ), - ( - + col0 ) FROM tab2
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-5092
SELECT CAST ( + + col0 AS INTEGER ), - ( - + col0 ) FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT ALL - 31 * - 85 * + - CAST( NULL AS SIGNED ) * + MIN( DISTINCT 38 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - 31 * - 85 * + - CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT 38 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ( + MAX( ALL - col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5094
SELECT ( + MAX ( ALL - col0 ) ) FROM tab2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT ALL 87 DIV + + ( - - col1 ) FROM tab1
----
1
17
6

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL 87 / + + ( - - col1 ) FROM tab1
----
1
17
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5096
SELECT CAST( + MIN( ALL + col0 ) AS SIGNED ) * - 94 col2 FROM tab1
----
-4794

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5096
SELECT CAST ( + MIN ( ALL + col0 ) AS INTEGER ) * - 94 col2 FROM tab1
----
-4794

query I rowsort
SELECT ALL 84 AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col1 FROM tab1 AS cor0 WHERE - 86 * col1 IS NOT NULL
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT ALL + + CAST( NULL AS SIGNED ) * - 59 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 59 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT ALL col2 DIV col0 * 70 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL col2 / col0 * 70 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT - 25 DIV - col2 + + + col2 FROM tab0 AS cor0
----
12
47
99

skipif mysql # not compatible
query I rowsort label-5101
SELECT - 25 / - col2 + + + col2 FROM tab0 AS cor0
----
12
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) + - col0 > - 52
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 + + - col2 )
----

query I rowsort
SELECT + - col1 * - + ( - + 27 ) FROM tab1 cor0
----
-1269
-135
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT DISTINCT col2 * col2 + col1 * col0 FROM tab1 AS cor0 WHERE ( + CAST( - + col0 AS SIGNED ) ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT col2 * col2 + col1 * col0 FROM tab1 AS cor0 WHERE ( + CAST ( - + col0 AS INTEGER ) ) IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - COUNT( * ) * 89 AS col0 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-5106
SELECT - COUNT ( * ) * 89 AS col0 FROM tab0 AS cor0
----
-267

query II rowsort
SELECT 40, col0 / + col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 6 + col2 - + col2 + 41 * - ( 4 ) + ( + col1 ) AS col1 FROM tab0
----
-137
-157
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT + SUM( DISTINCT + ( - col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT + SUM ( DISTINCT + ( - col1 ) ) AS col2 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT COUNT( - + 75 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5110
SELECT COUNT ( - + 75 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + 38 FROM tab0 WHERE - 90 * - ( - col0 ) - - col1 IS NOT NULL
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col1 FROM tab0
----
23

query III rowsort
SELECT ALL * FROM tab2 WHERE 24 - + col0 + + - 68 * 95 * + 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT ( SUM( - 5 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT ( SUM ( - 5 ) ) FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 99 ) = 95
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT ALL + col2 + col0 DIV col0 * col0 FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL + col2 + col0 / col0 * col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL + col2 - - 1 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT ( - ( - col0 ) ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - + 71 * - + SUM( ALL + + col1 ) FROM tab0 AS cor0
----
7313

skipif mysql # not compatible
query I rowsort label-5120
SELECT - + 71 * - + SUM ( ALL + + col1 ) FROM tab0 AS cor0
----
7313

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 54 * + col2 + + - ( - col0 ) FROM tab0 AS cor0
----
-2523
-453
-5249

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT + MAX( ALL - 64 ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + MAX ( ALL - 64 ) FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT + COUNT( * ) DIV + COUNT( * ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5124
SELECT + COUNT ( * ) / + COUNT ( * ) FROM tab1 cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT DISTINCT 97 * COUNT( * ) FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT 97 * COUNT ( * ) FROM tab2
----
291

query I rowsort
SELECT ALL - col2 * + 17 FROM tab1
----
-1003
-1156
-1632

query III rowsort
SELECT * FROM tab2 WHERE NOT + 38 + - ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5131
SELECT ALL CAST( NULL AS SIGNED ) AS col0, col0 * - 44 col1 FROM tab2
----
NULL
-2024
NULL
-2816
NULL
-3300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5131
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, col0 * - 44 col1 FROM tab2
----
NULL
-2024
NULL
-2816
NULL
-3300

query I rowsort
SELECT - + 42 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL 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-5133
SELECT ALL MIN ( DISTINCT ( - col0 ) ) col2 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT 32 * + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
320

skipif mysql # not compatible
query I rowsort label-5134
SELECT 32 * + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
320

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5135
SELECT CAST( NULL AS SIGNED ) * + - CAST( NULL AS DECIMAL ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS REAL ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( 8 ) NOT BETWEEN NULL AND 30
----

query I rowsort
SELECT col2 * + - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL - COUNT( * ) * + 30 FROM tab0 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - COUNT ( * ) * + 30 FROM tab0 cor0
----
-90

query I rowsort
SELECT DISTINCT - col0 / - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5140
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-5140
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-62

query I rowsort
SELECT + ( - + ( 3 ) ) FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT CAST( + + ( - + 96 ) AS SIGNED ) FROM tab0 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-5143
SELECT CAST ( + + ( - + 96 ) AS INTEGER ) FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + + ( - col1 ) FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + + ( - col1 ) FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT DISTINCT - col1 DIV - 47 + + ( col1 ) + 93 AS col2 FROM tab0 AS cor0
----
114
175
94

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - col1 / - 47 + + ( col1 ) + 93 AS col2 FROM tab0 AS cor0
----
114
175
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT ALL - - col0 DIV col2 DIV - 24 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL - - col0 / col2 / - 24 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT 6 + + - COUNT( * ) * - 42 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5147
SELECT 6 + + - COUNT ( * ) * - 42 FROM tab1 AS cor0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 92 + - + col2 AS col2 FROM tab0
----
-7
45
82

query I rowsort
SELECT ALL + 38 + col1 AS col0 FROM tab1
----
43
52
85

query II rowsort
SELECT ALL 90 AS col2, col1 FROM tab0
----
90
1
90
21
90
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5152
SELECT ALL COUNT( * ) DIV - 11 AS col2 FROM tab0 WHERE + - CAST( NULL AS SIGNED ) DIV - col1 * - 41 + - + col1 - col0 DIV + - col1 > + 5
----
0

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL COUNT ( * ) / - 11 AS col2 FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) / - col1 * - 41 + - + col1 - col0 / + - col1 > + 5
----
0

query I rowsort
SELECT - col0 + + col1 AS col0 FROM tab1 WHERE NULL IN ( - ( + col0 ), col2 / + + 38, - ( + 77 ) + col1 + + col0 / - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT + CAST( + 3 AS SIGNED ) + - ( + 31 ) AS col0 FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-5154
SELECT + CAST ( + 3 AS INTEGER ) + - ( + 31 ) AS col0 FROM tab0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 AS cor0 WHERE ( ( NULL <= + col0 ) )
----

query I rowsort
SELECT ALL - - col0 FROM tab0 AS cor0 WHERE - 10 / + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT 15 * + CAST( - 66 AS SIGNED ) - + col2 * - col0 FROM tab2
----
1570
3360
68

skipif mysql # not compatible
query I rowsort label-5157
SELECT 15 * + CAST ( - 66 AS INTEGER ) - + col2 * - col0 FROM tab2
----
1570
3360
68

query I rowsort
SELECT - 94 + - col1 * col1 FROM tab2
----
-2695
-4583
-6023

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5159
SELECT + COUNT( * ) AS col2, - CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5159
SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2
----
3
NULL

query II rowsort
SELECT + col1 AS col0, ( - col2 ) FROM tab0 cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - + col0 * 64 AS col0 FROM tab2 AS cor0
----
-2944
-4096
-4800

query I rowsort
SELECT - ( - 3 ) FROM tab2 AS cor0 WHERE NOT + col0 + - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT MIN( ALL - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT MIN ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT MAX( ALL 90 ) FROM tab2 cor0
----
90

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT MAX ( ALL 90 ) FROM tab2 cor0
----
90

query I rowsort
SELECT 37 AS col0 FROM tab0 AS cor0 WHERE NOT 34 * - - 72 * - col0 IS NULL
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT 99 DIV + + col0 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5166
SELECT 99 / + + col0 AS col0 FROM tab1 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5167
SELECT * FROM tab2 cor0 WHERE NOT + 8 IN ( - col0 * - col2 + + col2 * + CAST( + + 2 AS SIGNED ) + + col2 + - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5167
SELECT * FROM tab2 cor0 WHERE NOT + 8 IN ( - col0 * - col2 + + col2 * + CAST ( + + 2 AS INTEGER ) + + col2 + - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL SUM( col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5168
SELECT ALL SUM ( col2 ) col0 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT + CAST( NULL AS SIGNED ) * - - CAST( col2 AS SIGNED ) * - col1 / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT + CAST ( NULL AS INTEGER ) * - - CAST ( col2 AS INTEGER ) * - col1 / col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5170
SELECT SUM( - col2 ) DIV 59 * 57 col2 FROM tab2
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5170
SELECT SUM ( - col2 ) / 59 * 57 col2 FROM tab2
----
-114

query I rowsort
SELECT 86 + + 96 FROM tab1, tab1 AS cor0
----
9 values hashing to d9a63473249310eee3104d48de5e5a07

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT DISTINCT + + 66 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + + 66 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT DISTINCT + SUM( + - 82 ) AS col2 FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT + SUM ( + - 82 ) AS col2 FROM tab2 AS cor0
----
-246

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 83 BETWEEN col1 * + ( - col2 ) AND ( + ( + col0 ) )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + col1 + - col0 FROM tab0 AS cor0 WHERE - col2 + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0 * + - col0 * col0, col1 * + col2 AS col1 FROM tab1
----
132651
1344
614125
295
753571
3196

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT + col0 * 33 DIV - col1 FROM tab0 AS cor0
----
-136
-3201
-6

skipif mysql # not compatible
query I rowsort label-5179
SELECT + col0 * 33 / - col1 FROM tab0 AS cor0
----
-136
-3201
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 29 BETWEEN col0 * - + 33 * - col1 + + col2 AND - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT ALL - + 32 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - + 32 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 8 + - - col1 FROM tab1 AS cor0
----
13
22
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5184
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + - 96 * 48 * 83 FROM tab0 AS cor0
----
-382383
-382443
-382463

onlyif mysql # aggregate syntax: 
query II rowsort label-5186
SELECT + 56 col1, COUNT( * ) * - ( 89 ) AS col1 FROM tab0 AS cor0
----
56
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5186
SELECT + 56 col1, COUNT ( * ) * - ( 89 ) AS col1 FROM tab0 AS cor0
----
56
-267

query I rowsort
SELECT - + 49 AS col1 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT + col2 * + 85 AS col1 FROM tab0
----
3995
8415
850

query I rowsort
SELECT ALL - col2 - - ( - + 59 ) AS col1 FROM tab2
----
-117
-82
-99

query I rowsort
SELECT ALL - 36 + - col2 AS col2 FROM tab1
----
-104
-132
-95

query I rowsort
SELECT ( - + 92 ) * - col1 + - col1 * + 64 + + - col2 FROM tab0
----
-71
2221
578

query I rowsort
SELECT DISTINCT - 3 - - col2 * col1 + - col1 AS col1 FROM tab1
----
1327
287
3146

query I rowsort
SELECT ALL 13 * + ( col0 ) FROM tab2
----
598
832
975

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL MAX( DISTINCT - + col0 ) * + + 55 FROM tab2
----
-2530

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL MAX ( DISTINCT - + col0 ) * + + 55 FROM tab2
----
-2530

query I rowsort
SELECT ALL + 76 * - 53 AS col2 FROM tab2
----
-4028
-4028
-4028

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 26 + col2 AS col1 FROM tab0 cor0
----
125
36
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5199
SELECT + col2 + + CAST( NULL AS SIGNED ) / + - col1 * + col1 AS col0, - ( - CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5199
SELECT + col2 + + CAST ( NULL AS INTEGER ) / + - col1 * + col1 AS col0, - ( - CAST ( + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + 2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + 2 IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - + 86 col0 FROM tab2
----
-4988
-4988
-4988

onlyif mysql # aggregate syntax: 
query II rowsort label-5202
SELECT - 78 AS col2, - 51 * COUNT( DISTINCT + ( - - col1 ) ) - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 65 = NULL
----
-78
0

skipif mysql # not compatible
query II rowsort label-5202
SELECT - 78 AS col2, - 51 * COUNT ( DISTINCT + ( - - col1 ) ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 65 = NULL
----
-78
0

query I rowsort
SELECT col1 * - 55 AS col1 FROM tab0 AS cor0
----
-1155
-4455
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col0, 47 FROM tab0 AS cor0
----
-15
47
-87
47
-97
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ( COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5205
SELECT ( COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT ALL CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5207
SELECT - + COUNT( * ) DIV - COUNT( * ) + + - MIN( + 23 ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5207
SELECT - + COUNT ( * ) / - COUNT ( * ) + + - MIN ( + 23 ) FROM tab0 AS cor0
----
-22

query I rowsort
SELECT DISTINCT + - 85 AS col0 FROM tab1 cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5209
SELECT ALL col2, + CAST( ( - 54 ) AS SIGNED ) FROM tab1
----
59
-54
68
-54
96
-54

skipif mysql # not compatible
query II rowsort label-5209
SELECT ALL col2, + CAST ( ( - 54 ) AS INTEGER ) FROM tab1
----
59
-54
68
-54
96
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5210
SELECT DISTINCT * FROM tab2 WHERE col0 = CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5210
SELECT DISTINCT * FROM tab2 WHERE col0 = CAST ( - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5211
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5211
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5212
SELECT + + col1 + - col1, col1 + col0 - - ( + col0 ) AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * col1 <> + col2
----

skipif mysql # not compatible
query II rowsort label-5212
SELECT + + col1 + - col1, col1 + col0 - - ( + col0 ) AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * col1 <> + col2
----

query I rowsort
SELECT DISTINCT 42 FROM tab1 WHERE + + col1 NOT IN ( ( + col0 ) * col1 + - + col2 * col1 + - col0 * - 41 - ( + col0 ) )
----
42

query I rowsort
SELECT DISTINCT + + 50 AS col0 FROM tab2 cor0 WHERE ( col1 IS NOT NULL )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5215
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT ALL - ( - 14 ) AS col2 FROM tab1
----
14
14
14

query I rowsort
SELECT DISTINCT - 64 * col1 FROM tab2
----
-3264
-4288
-4928

onlyif mysql # aggregate syntax: 
query II rowsort label-5219
SELECT - 23 * 69, + 5 * + SUM( col2 ) * + 73 col2 FROM tab0
----
-1587
56940

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5219
SELECT - 23 * 69, + 5 * + SUM ( col2 ) * + 73 col2 FROM tab0
----
-1587
56940

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT DISTINCT + + 64 DIV + + ( 10 ) + 47 AS col2 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5220
SELECT DISTINCT + + 64 / + + ( 10 ) + 47 AS col2 FROM tab0 AS cor0
----
53

query I rowsort
SELECT ALL - + col1 * + - col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5222
SELECT col2 + col0 * - - CAST( + col1 AS SIGNED ) * - - 95 + + col1 DIV 78 + + + col2 FROM tab2 AS cor0
----
222916
468240
477491

skipif mysql # not compatible
query I rowsort label-5222
SELECT col2 + col0 * - - CAST ( + col1 AS INTEGER ) * - - 95 + + col1 / 78 + + + col2 FROM tab2 AS cor0
----
222916
468240
477491

query I rowsort
SELECT ALL - col1 - ( + col2 ) FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT ALL col2 + - 38 + col2 + col2 FROM tab0 AS cor0
----
-8
103
259

query I rowsort
SELECT - 35 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ( + + COUNT( * ) ) AS col0 FROM tab1 WHERE - 54 * - 18 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab1 WHERE - 54 * - 18 > NULL
----
0

query I rowsort
SELECT + 64 + + col0 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT DISTINCT + 54 * - COUNT( * ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT + 54 * - COUNT ( * ) FROM tab0
----
-162

query I rowsort
SELECT ALL col0 - ( col1 ) AS col0 FROM tab1
----
37
44
80

query II rowsort
SELECT + 37 AS col0, - col0 FROM tab2
----
37
-46
37
-64
37
-75

query I rowsort
SELECT AVG ( - + ( col1 ) ) FROM tab1 WHERE NULL BETWEEN NULL AND - col0 + - 5
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * + 46 + ( - 70 ) + - - 2 FROM tab1 AS cor0
----
2646
3060
4348

query I rowsort
SELECT DISTINCT + - 2 * 19 FROM tab2 cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT 16 + - COUNT( + col0 ) FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT 16 + - COUNT ( + col0 ) FROM tab0 cor0
----
13

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * col1 - + col1 * 96 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5236
SELECT CAST( + COUNT( * ) AS SIGNED ), COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5236
SELECT CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * ) AS col0 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + 64 * - COUNT( * ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + 64 * - COUNT ( * ) FROM tab1
----
-192

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col2 * - - col2 * 94 * + 86 - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT + SUM( DISTINCT 91 ), - 44 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-5239
SELECT + SUM ( DISTINCT 91 ), - 44 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL ( - col0 ) * + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5240
SELECT ALL ( - col0 ) * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT - + col0 DIV - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * + 21 IS NULL
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5241
SELECT - + col0 / - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 * + 21 IS NULL
----
0
0
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 BETWEEN - - col2 * - 4 AND col1
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 * - + col1 * + 58 AND - 6
----

query I rowsort
SELECT DISTINCT - col2 * + 75 FROM tab2 AS cor0
----
-1725
-3000
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 34 col1 FROM tab2
----
1734
2278
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT DISTINCT - MAX( - 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT - MAX ( - 14 ) FROM tab2
----
14

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT SUM( DISTINCT - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-5248
SELECT SUM ( DISTINCT - col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + 67 * SUM( DISTINCT - - 52 ) FROM tab0
----
3484

skipif mysql # not compatible
query I rowsort label-5249
SELECT + 67 * SUM ( DISTINCT - - 52 ) FROM tab0
----
3484

query III rowsort
SELECT * FROM tab2 WHERE NOT + 32 + - - ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5251
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT DISTINCT + MAX( ALL + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + MAX ( ALL + col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT + COUNT( DISTINCT - + 41 ) col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5253
SELECT DISTINCT + COUNT ( DISTINCT - + 41 ) col0 FROM tab1 AS cor0
----
1

query II rowsort
SELECT + col0, ( + col2 ) FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT + col2 + + + col0 + - col0 * - col2 FROM tab1 AS cor0
----
5043
5159
6347

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT ALL - COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT COUNT( ALL - + 96 ), + 49 AS col1 FROM tab1 AS cor0
----
3
49

skipif mysql # not compatible
query II rowsort label-5258
SELECT COUNT ( ALL - + 96 ), + 49 AS col1 FROM tab1 AS cor0
----
3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + 77 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5259
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 77 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT - - SUM( DISTINCT col2 ) FROM tab2 AS cor0 WHERE col1 < + col2 + - + CAST( + col1 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - - SUM ( DISTINCT col2 ) FROM tab2 AS cor0 WHERE col1 < + col2 + - + CAST ( + col1 AS INTEGER )
----
NULL

query II rowsort
SELECT - col2 AS col1, col1 + - col2 FROM tab0 AS cor0
----
-10
11
-47
34
-99
-98

query I rowsort
SELECT DISTINCT - 29 + - - 32 AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - ( SUM( DISTINCT - col1 ) ) - - MIN( - col2 ) + - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-5263
SELECT - ( SUM ( DISTINCT - col1 ) ) - - MIN ( - col2 ) + - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0
----
-5

query I rowsort
SELECT + 40 - - + 36 FROM tab2
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5265
SELECT DISTINCT col1 - - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT col1 - - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT col2 + - + 31 FROM tab0
----
-21
16
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5267
SELECT ALL SUM( ( CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) + + COUNT( * ) * - 8 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL SUM ( ( CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) + + COUNT ( * ) * - 8 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + COUNT( * ) * COUNT( DISTINCT - 36 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5268
SELECT + COUNT ( * ) * COUNT ( DISTINCT - 36 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT - col1 * col0 * col0 * + ( + + 92 ) AS col0, + ( - - col2 ) - + 82 FROM tab1 AS cor0
----
-3323500
-23
-3350088
14
-35807044
-14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT - + CAST( NULL AS SIGNED ) * - 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT - + CAST ( NULL AS INTEGER ) * - 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5272
SELECT - 43, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-43
-3

skipif mysql # not compatible
query II rowsort label-5272
SELECT - 43, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-43
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col1 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT ALL 68 * + + col2 AS col2 FROM tab2 AS cor0
----
1564
2720
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT - + 4 * - COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5275
SELECT - + 4 * - COUNT ( * ) FROM tab0 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 87 = col2 * - - col1 * - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 20 AS col1, col1 FROM tab2 AS cor0
----
-20
51
-20
67
-20
77

query II rowsort
SELECT 85 + - col0, col2 AS col0 FROM tab0
----
-12
99
-2
10
70
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5279
SELECT ( - - MAX( + CAST( NULL AS SIGNED ) ) ) + - + COUNT( + - col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5279
SELECT ( - - MAX ( + CAST ( NULL AS INTEGER ) ) ) + - + COUNT ( + - col0 ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * - col1 col2 FROM tab1
----
-100
-2141
34

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 33 BETWEEN NULL AND - col0
----

query I rowsort
SELECT 84 + - col0 * - 37 * - col0 FROM tab2 cor0
----
-151468
-208041
-78208

query I rowsort
SELECT ALL + col2 + col1 * ( ( + + col0 ) ) + - col2 AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT + 89 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5285
SELECT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT + - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT + - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col1 * - + col2 + col2 AS col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 69 ) >= NULL
----

query I rowsort
SELECT - - 65 + - col0 FROM tab1 AS cor0
----
-20
-26
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5290
SELECT DISTINCT CAST( + - MAX( - col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT CAST ( + - MAX ( - col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND - col1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL >= ( NULL ) ) )
----

query I rowsort
SELECT DISTINCT 57 - + col0 - - + col0 FROM tab1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT COUNT( * ) - + - 56 AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT COUNT ( * ) - + - 56 AS col2 FROM tab2
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-5294
SELECT + col1 AS col0, - 28 DIV + + col0 - - col1 FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-5294
SELECT + col1 AS col0, - 28 / + + col0 - - col1 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT DISTINCT col1 AS col1, col2 FROM tab0
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col2 FROM tab0 WHERE NULL IS NULL
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT + SUM( ALL col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5297
SELECT + SUM ( ALL col2 ) AS col0 FROM tab0
----
156

query II rowsort
SELECT ALL - col0, + col0 FROM tab2
----
-46
46
-64
64
-75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + 19 AS col0 FROM tab1
----
14
19
47
19
5
19

query II rowsort
SELECT + col1, + 38 AS col2 FROM tab2
----
51
38
67
38
77
38

query I rowsort
SELECT ALL - col1 * + + col0 + + 77 FROM tab0 AS cor0
----
-1138
-1750
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT DISTINCT + + MAX( - - CAST( col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT + + MAX ( - - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-5304
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT ALL ( + COUNT( * ) ), 54 + ( - ( MIN( DISTINCT + 58 ) ) ) * - + 22 * - COUNT( * ) AS col0 FROM tab1
----
3
-3774

skipif mysql # not compatible
query II rowsort label-5305
SELECT ALL ( + COUNT ( * ) ), 54 + ( - ( MIN ( DISTINCT + 58 ) ) ) * - + 22 * - COUNT ( * ) AS col0 FROM tab1
----
3
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT + SUM( ALL col0 ) * + COUNT( * ) AS col2 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-5306
SELECT + SUM ( ALL col0 ) * + COUNT ( * ) AS col2 FROM tab1
----
681

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 <= NULL
----

query I rowsort
SELECT DISTINCT - 56 * - 12 AS col2 FROM tab1 AS cor0
----
672

query II rowsort
SELECT DISTINCT 37 * 69, + col2 * + col0 AS col2 FROM tab0 AS cor0
----
2553
705
2553
870
2553
9603

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 cor0 WHERE NOT col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 col2, col0 AS col1 FROM tab2
----
73
46
73
64
73
75

query I rowsort
SELECT DISTINCT + 64 * + + col2 FROM tab0
----
3008
6336
640

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT + - MIN( DISTINCT + - col2 ) col2 FROM tab0 WHERE NOT col1 * 97 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5314
SELECT DISTINCT + - MIN ( DISTINCT + - col2 ) col2 FROM tab0 WHERE NOT col1 * 97 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - - AVG ( ALL + 90 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT col0 DIV + 52 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5316
SELECT col0 / + 52 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, col2 * 72 * + + col0 FROM tab2
----
46
76176
64
184320
75
313200

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT 3 DIV - - 34 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5318
SELECT 3 / - - 34 col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT + 32 * - COUNT( * ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + 32 * - COUNT ( * ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT + - col0 + - col1 * + 21 * 93 AS col1 FROM tab0 AS cor0
----
-158208
-2050
-41100

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT - 49 + - - SUM( + - ( - 17 ) ) - 22 + 89 * SUM( ALL - 54 ) AS col0 FROM tab2 AS cor0
----
-14438

skipif mysql # not compatible
query I rowsort label-5321
SELECT - 49 + - - SUM ( + - ( - 17 ) ) - 22 + 89 * SUM ( ALL - 54 ) AS col0 FROM tab2 AS cor0
----
-14438

query I rowsort
SELECT ALL col0 + - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col0, col0 FROM tab2 AS cor0 WHERE 27 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT ALL + ( - 86 ) + - + CAST( NULL AS SIGNED ) + 41 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + ( - 86 ) + - + CAST ( NULL AS INTEGER ) + 41 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 13 + + 95 FROM tab0 AS cor0
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT DISTINCT COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5327
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 3 * - col2 AS col1 FROM tab0 WHERE NOT - + 81 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col1 * 7 AS col1 FROM tab1 WHERE NULL <= - 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 27 col1 FROM tab2 AS cor0
----
1080
1566
621

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN col0 + + - col0 + ( - 19 ) AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 - + col0 + col2 + + 28 FROM tab0 AS cor0
----
-19
60
90

query II rowsort
SELECT DISTINCT ( + - 69 ) AS col2, 69 FROM tab2 AS cor0
----
-69
69

query I rowsort
SELECT DISTINCT - col1 - + + col2 * + 92 FROM tab1 AS cor0
----
-5433
-6303
-8846

query I rowsort
SELECT col0 - - + col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 WHERE NOT NULL <> - + 84
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 30 ) IS NOT NULL
----

query I rowsort
SELECT ALL 95 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query II rowsort
SELECT + col2, 36 FROM tab2 WHERE NOT + + 85 / + - ( + + col2 ) * - 31 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, - 38 + - ( + + col0 ) FROM tab0
----
15
-53
87
-125
97
-135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5342
SELECT ( + SUM( ALL CAST( NULL AS DECIMAL ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT ( + SUM ( ALL CAST ( NULL AS REAL ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT 86 * 76 - + + CAST( + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
6546
6583
6635

skipif mysql # not compatible
query I rowsort label-5343
SELECT 86 * 76 - + + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
6546
6583
6635

query I rowsort
SELECT + col1 * + 3 FROM tab0 AS cor0
----
243
3
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 96 AS col1, col2 * col1 col0 FROM tab2
----
96
1173
96
3080
96
3886

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5346
SELECT MAX( ALL + - 20 ) AS col0, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-5346
SELECT MAX ( ALL + - 20 ) AS col0, CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
-20
NULL

query I rowsort
SELECT ALL - col2 + - - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 NOT IN ( + col0 * + col0, col2 * 65 )
----

query I rowsort
SELECT DISTINCT + 42 FROM tab2 AS cor0 WHERE + col1 BETWEEN col2 AND - + col1
----

query II rowsort
SELECT + col2 AS col1, 87 + + - col0 FROM tab2 AS cor0
----
23
41
40
23
58
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5351
SELECT ALL * FROM tab1 cor0 WHERE CAST( - 11 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5351
SELECT ALL * FROM tab1 cor0 WHERE CAST ( - 11 AS INTEGER ) IS NULL
----

query II rowsort
SELECT col1, + ( + col1 ) AS col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT - - MIN( + 75 ) AS col1, - 34 FROM tab1 cor0
----
75
-34

skipif mysql # not compatible
query II rowsort label-5353
SELECT - - MIN ( + 75 ) AS col1, - 34 FROM tab1 cor0
----
75
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT 66 + COUNT( * ) + - COUNT( * ) FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-5354
SELECT 66 + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5355
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 85 * col1 * + - 61 * + col1 FROM tab0
----
-2286585
-34018785
-5185

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-9

query II rowsort
SELECT + col1 * col0 AS col2, col1 + + 16 FROM tab2 AS cor0
----
2346
67
4928
93
5025
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + + COUNT( * ) * 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-5359
SELECT + + COUNT ( * ) * 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL + COUNT( * ) - + + ( - + 76 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + COUNT ( * ) - + + ( - + 76 ) FROM tab1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT ALL - 95 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL - 95 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, col2 AS col0 FROM tab2 cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL ( - 12 ) FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5364
SELECT ALL + ( 79 ) AS col1, CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
79
NULL
79
NULL
79
NULL

skipif mysql # not compatible
query II rowsort label-5364
SELECT ALL + ( 79 ) AS col1, CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
79
NULL
79
NULL
79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5365
SELECT + MAX( + - col2 ) AS col2, 77 + 69 AS col1 FROM tab0
----
-10
146

skipif mysql # not compatible
query II rowsort label-5365
SELECT + MAX ( + - col2 ) AS col2, 77 + 69 AS col1 FROM tab0
----
-10
146

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + col1 + + 36 >= + col0 * - + 88 + - + 84 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT MIN( DISTINCT - 31 ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT MIN ( DISTINCT - 31 ) AS col2 FROM tab2
----
-31

query II rowsort
SELECT DISTINCT + ( + col1 ), 67 AS col0 FROM tab2
----
51
67
67
67
77
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5369
SELECT ALL + 14 DIV + col2 * + - 34 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + 14 / + col2 * + - 34 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT + col0 * + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT + col0 * + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 65 * 55 + col2 AS col2, - 27 * - + 94 * - col0 + - - col2 AS col0 FROM tab0
----
3585
-220796
3622
-38023
3674
-246087

query I rowsort
SELECT DISTINCT - col1 * + + 71 + + - 20 FROM tab2 AS cor0
----
-3641
-4777
-5487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL CAST( NULL AS SIGNED ) + - col2 + 66 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 + 66 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5374
SELECT ALL + SUM( DISTINCT + 69 ) * + 80 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + SUM ( DISTINCT + 69 ) * + 80 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5375
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - CAST( NULL AS SIGNED ) / + col1
----

skipif mysql # not compatible
query III rowsort label-5375
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - CAST ( NULL AS INTEGER ) / + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 78 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 15 ) + + - 90 FROM tab1 AS cor0
----
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 34 * + col1 = NULL
----

query II rowsort
SELECT 14 AS col1, col0 + 67 FROM tab1
----
14
118
14
152
14
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT + ( SUM( + col1 ) ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5380
SELECT + ( SUM ( + col1 ) ) AS col0 FROM tab2
----
195

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT ALL + col2 * - - col1 AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT DISTINCT 82 * - col1 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
192372
404096
412050

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT 82 * - col1 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
192372
404096
412050

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + - col1 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT + CAST( NULL AS SIGNED ) * - col1 - + col0 + + + 36 * - col2 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT + CAST ( NULL AS INTEGER ) * - col1 - + col0 + + + 36 * - col2 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL - MAX( DISTINCT + - col2 ) + + 43 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - MAX ( DISTINCT + - col2 ) + + 43 FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + MAX( + ( 5 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + MAX ( + ( 5 ) ) FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 95 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT ( + + 41 ) >= NULL ) )
----

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab0 cor0
----
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + col1 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL + 35 * - COUNT( 54 ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 35 * - COUNT ( 54 ) FROM tab0 AS cor0
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT COUNT( * ) DIV - COUNT( + 49 ) + + - MIN( + - 76 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5394
SELECT COUNT ( * ) / - COUNT ( + 49 ) + + - MIN ( + - 76 ) AS col1 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col1 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL + MIN( DISTINCT - - col0 ) FROM tab0 AS cor0 WHERE col1 + - col0 * - - 21 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0 WHERE col1 + - col0 * - - 21 IS NOT NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT - COUNT( * ) * - 64 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-5397
SELECT - COUNT ( * ) * - 64 FROM tab2
----
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT col2 DIV + + col1 AS col2 FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT col2 / + + col1 AS col2 FROM tab0
----
0
99

query I rowsort
SELECT - - ( - 97 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT + 97 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
97

query I rowsort
SELECT 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL - MIN( + - 74 ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - MIN ( + - 74 ) AS col1 FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT COUNT( * ) * - 72 AS col1 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-5404
SELECT COUNT ( * ) * - 72 AS col1 FROM tab2 AS cor0
----
-216

query I rowsort
SELECT - 56 * + 11 * col2 AS col2 FROM tab1 AS cor0
----
-36344
-41888
-59136

query I rowsort
SELECT + col0 * - col2 + - col2 * + col2 / - + 32 - + + col1 FROM tab1 AS cor0 WHERE NULL < + col2
----

query I rowsort
SELECT DISTINCT - 90 + 14 + col1 FROM tab1 AS cor0
----
-29
-62
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL + 61 + + + MIN( ALL - - 11 ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL + 61 + + + MIN ( ALL - - 11 ) AS col2 FROM tab1
----
72

query I rowsort
SELECT - 37 FROM tab2 WHERE NULL <= - + 76
----

query I rowsort
SELECT - 13 - col2 AS col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
-109
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT MIN( + 45 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT MIN ( + 45 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT - CAST( + col0 AS SIGNED ) * + ( - 20 ) AS col1 FROM tab0
----
1740
1940
300

skipif mysql # not compatible
query I rowsort label-5412
SELECT - CAST ( + col0 AS INTEGER ) * + ( - 20 ) AS col1 FROM tab0
----
1740
1940
300

query II rowsort
SELECT col1 AS col1, + 97 AS col0 FROM tab1 WHERE col1 / col0 + - + col2 IS NOT NULL
----
14
97
47
97
5
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT DISTINCT + SUM( col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT + SUM ( col2 ) AS col1 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 * + - col2 + - 34 col2 FROM tab0 AS cor0
----
-4029
-8449
-884

query I rowsort
SELECT ALL - 7 AS col0 FROM tab2 AS cor0 WHERE NOT 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 87 - + 71 AS col2 FROM tab0 AS cor0
----
-158

query II rowsort
SELECT col1 AS col2, - col2 + col0 FROM tab2
----
51
23
67
17
77
24

query I rowsort
SELECT ( + 37 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT - ( + 97 ) DIV ( 92 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5420
SELECT - ( + 97 ) / ( 92 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 col2 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT + + COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5424
SELECT + + COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT + col0 + + - col0 + - col0 FROM tab2 WHERE NOT + 47 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5426
SELECT ALL ( - COUNT( * ) ) AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL ( - COUNT ( * ) ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL SUM( + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL SUM ( + - col0 ) FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query II rowsort label-5428
SELECT ALL + col1 DIV + 47, + 23 AS col0 FROM tab1 cor0
----
0
23
0
23
1
23

skipif mysql # not compatible
query II rowsort label-5428
SELECT ALL + col1 / + 47, + 23 AS col0 FROM tab1 cor0
----
0
23
0
23
1
23

query III rowsort
SELECT * FROM tab1 WHERE 52 + + + col0 = + - col1
----

query I rowsort
SELECT ALL + + ( + 51 ) + + ( + - col0 ) * 60 AS col1 FROM tab2 AS cor0
----
-2709
-3789
-4449

query I rowsort
SELECT DISTINCT + + 74 - + - col1 FROM tab0 AS cor0
----
155
75
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5432
SELECT ALL + ( - col2 ) * - ( - 34 ) * + 6 * + + CAST( + - 89 AS SIGNED ) + + + col2 + + col0 DIV col1 + - - col2 * + - col0 - - + col2 FROM tab1 AS cor0
----
1066324
1228557
1738275

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL + ( - col2 ) * - ( - 34 ) * + 6 * + + CAST ( + - 89 AS INTEGER ) + + + col2 + + col0 / col1 + - - col2 * + - col0 - - + col2 FROM tab1 AS cor0
----
1066324
1228557
1738275

query II rowsort
SELECT - col2 AS col2, + col2 + + - 96 AS col1 FROM tab0 AS cor0
----
-10
-86
-47
-49
-99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - SUM( - - col2 ) FROM tab0 AS cor0 WHERE + col2 / 85 BETWEEN NULL AND - - ( + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT - SUM ( - - col2 ) FROM tab0 AS cor0 WHERE + col2 / 85 BETWEEN NULL AND - - ( + + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT COUNT( 43 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT COUNT ( 43 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - col1 FROM tab0 WHERE + 84 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NOT - col1 <= - 96
----
-3

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NOT - col1 <= - 96
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 8 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 73 AS col1 FROM tab2
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5440
SELECT ALL 37 - + col2 / + ( + + col2 ) AS col2, + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND - 60 + - + 51
----

skipif mysql # not compatible
query II rowsort label-5440
SELECT ALL 37 - + col2 / + ( + + col2 ) AS col2, + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND - 60 + - + 51
----

query I rowsort
SELECT DISTINCT + + ( + - ( + - col1 ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT - COUNT( * ) * 85 AS col0 FROM tab1, tab0 AS cor0
----
-765

skipif mysql # not compatible
query I rowsort label-5442
SELECT - COUNT ( * ) * 85 AS col0 FROM tab1, tab0 AS cor0
----
-765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 56 * - col2 * + - col0 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT - + col1 DIV - + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT - + col1 / - + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 49 * 59 FROM tab1 AS cor0
----
2891

query II rowsort
SELECT ALL col0, col2 AS col1 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT ALL 30 * - 10 FROM tab1 AS cor0
----
-300
-300
-300

query I rowsort
SELECT DISTINCT - 10 * col1 AS col0 FROM tab0 AS cor0
----
-10
-210
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5451
SELECT - - col0 * col2 * - - CAST( - 8 AS SIGNED ) + - 80 + - col2 FROM tab2 AS cor0
----
-20600
-34938
-8567

skipif mysql # not compatible
query I rowsort label-5451
SELECT - - col0 * col2 * - - CAST ( - 8 AS INTEGER ) + - 80 + - col2 FROM tab2 AS cor0
----
-20600
-34938
-8567

query I rowsort
SELECT + 91 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
91
91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5453
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 45, + 40 - - col1 col1 FROM tab1
----
-45
45
-45
54
-45
87

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( col2 ) * + col0 * + + col1 + - col1 * 32 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 AS col1, + 69 AS col0 FROM tab1
----
-51
69
-85
69
-91
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT COUNT( * ) + + ( - 84 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-5458
SELECT COUNT ( * ) + + ( - 84 ) FROM tab2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT ALL CAST( + + col2 AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT DISTINCT col0 * - - col2 / - CAST( - + col1 AS SIGNED ) * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT col0 * - - col2 / - CAST ( - + col1 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL - MAX( - CAST( - 62 AS SIGNED ) ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - MAX ( - CAST ( - 62 AS INTEGER ) ) FROM tab1 AS cor0
----
-62

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = - col2 + - 81 / - + ( ( + + col2 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 37 = - col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col0 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT DISTINCT - - MIN( ALL + - 43 ) + - + ( + - COUNT( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5466
SELECT DISTINCT - - MIN ( ALL + - 43 ) + - + ( + - COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col0 FROM tab1
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT CAST( NULL AS SIGNED ) / - 15 + 87 / + col0 * - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT CAST ( NULL AS INTEGER ) / - 15 + 87 / + col0 * - - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + 12 + - SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-5469
SELECT + 12 + - SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-187

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + col2
----

query I rowsort
SELECT ALL + col2 * - + col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + 64 * - col0 + - + col1 * - + 41 + + col2 * 80 FROM tab1 AS cor0
----
-515
1543
4990

onlyif mysql # DIV for integer division: 
query II rowsort label-5473
SELECT 27 + - - ( 22 ) AS col2, + 82 + - 78 + + col2 DIV + col1 FROM tab0 AS cor0
----
49
103
49
4
49
4

skipif mysql # not compatible
query II rowsort label-5473
SELECT 27 + - - ( 22 ) AS col2, + 82 + - 78 + + col2 / + col1 FROM tab0 AS cor0
----
49
103
49
4
49
4

query I rowsort
SELECT ALL 25 + - 83 + - + 6 * + 58 AS col0 FROM tab1 AS cor0
----
-406
-406
-406

query II rowsort
SELECT DISTINCT + + col2 + - ( - 48 ), + col0 * col2 * - 42 AS col2 FROM tab0 AS cor0
----
147
-403326
58
-36540
95
-29610

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - + col2 ) * - col2 NOT BETWEEN NULL AND col0 / - 91 * - col2
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT 60 + - COUNT( * ) AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-5478
SELECT 60 + - COUNT ( * ) AS col1 FROM tab0
----
57

query III rowsort
SELECT * FROM tab0 WHERE - 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1 + 54 * ( col2 ) - + 81 + + col2 AS col0, - 3 * - 87 FROM tab0
----
2585
261
490
261
5365
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - + col0 col0 FROM tab0
----
174
194
30

query I rowsort
SELECT + ( 49 ) * 27 AS col2 FROM tab1
----
1323
1323
1323

query I rowsort
SELECT col0 * - 6 AS col0 FROM tab0
----
-522
-582
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col0 + 82
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( + ( 93 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 9 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col1 NOT BETWEEN 88 AND ( 1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( col0 ) + - 90 ) < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - ( col0 ) <= ( col0 + 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT ( + CAST( NULL AS SIGNED ) ) * 18 + SUM( DISTINCT - 88 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT ( + CAST ( NULL AS INTEGER ) ) * 18 + SUM ( DISTINCT - 88 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT SUM( 35 ) + - 59 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5496
SELECT SUM ( 35 ) + - 59 FROM tab2
----
46

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 * + 46 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 81 * - 65 NOT BETWEEN - ( col1 ) * col0 + 36 * col1 AND col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT - SUM( ( 0 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT - SUM ( ( 0 ) ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 = ( - col1 * + col2 + - col0 )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 34 * col1 + col0 AS col1 FROM tab1
----
1689
255
527

query I rowsort
SELECT - col2 FROM tab1 WHERE ( col1 + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( ( - 60 ) + 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5506
SELECT DISTINCT * FROM tab2 WHERE NOT col1 <= ( + CAST( - col1 AS SIGNED ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5506
SELECT DISTINCT * FROM tab2 WHERE NOT col1 <= ( + CAST ( - col1 AS INTEGER ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT - MIN( DISTINCT + 91 ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-5507
SELECT - MIN ( DISTINCT + 91 ) FROM tab2
----
-91

query I rowsort
SELECT col2 - 49 AS col2 FROM tab0 WHERE NULL > ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - 35 + + col1 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
-21
-30
12

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND col1 / - 44
----

query I rowsort
SELECT DISTINCT 44 / - col0 + col1 FROM tab0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 82 * col2
----

query I rowsort
SELECT ALL col0 + + col0 * ( + col2 ) FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT DISTINCT - col2 DIV + col2 + + 44 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - col2 / + col2 + + 44 FROM tab0 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT - col1 DIV + 65 + - col1 DIV 27 AS col2 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT - col1 / + 65 + - col1 / 27 AS col2 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT col0 - + 79 AS col1 FROM tab0 WHERE - col2 + 61 BETWEEN CAST( 38 AS SIGNED ) AND ( - 27 )
----

skipif mysql # not compatible
query I rowsort label-5520
SELECT col0 - + 79 AS col1 FROM tab0 WHERE - col2 + 61 BETWEEN CAST ( 38 AS INTEGER ) AND ( - 27 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 49 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE + 71 * 61 BETWEEN NULL AND + ( + col2 ) - col0
----

query I rowsort
SELECT ALL - 27 * + 27 AS col2 FROM tab1
----
-729
-729
-729

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT ALL - 88 DIV 9 FROM tab0 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL - 88 / 9 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT ALL + - 9 DIV col1 AS col0 FROM tab0 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL + - 9 / col1 AS col0 FROM tab0 AS cor0
----
-9
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5526
SELECT + ( col0 ) DIV 25 AS col1 FROM tab1 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-5526
SELECT + ( col0 ) / 25 AS col1 FROM tab1 AS cor0
----
2
3
3

query I rowsort
SELECT DISTINCT + - 94 AS col2 FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5528
SELECT * FROM tab0 AS cor0 WHERE ( + col2 - col0 * CAST( - col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5528
SELECT * FROM tab0 AS cor0 WHERE ( + col2 - col0 * CAST ( - col1 AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5529
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) ) + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) ) + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT 63 * 56 FROM tab0 cor0 WHERE - ( + CAST( NULL AS SIGNED ) ) + col1 NOT IN ( 33 )
----

skipif mysql # not compatible
query I rowsort label-5530
SELECT 63 * 56 FROM tab0 cor0 WHERE - ( + CAST ( NULL AS INTEGER ) ) + col1 NOT IN ( 33 )
----

query I rowsort
SELECT ( - col0 ) - col1 * col2 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT DISTINCT - col1 + ( col0 ) * - col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 41 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5534
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - CAST( NULL AS SIGNED ) <= ( - col0 / CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5534
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + - CAST ( NULL AS INTEGER ) <= ( - col0 / CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) )
----

query I rowsort
SELECT + col2 * - col0 - 81 FROM tab1
----
-4977
-5096
-6269

query I rowsort
SELECT col0 - 98 AS col0 FROM tab0
----
-1
-11
-83

query I rowsort
SELECT - col1 * - col2 + - col1 AS col2 FROM tab1
----
1330
290
3149

query I rowsort
SELECT + ( + col1 ) - ( - ( - col0 ) ) FROM tab2 WHERE NULL BETWEEN ( - 72 ) AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 FROM tab0 WHERE NULL = ( ( + ( - ( 84 ) ) ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 WHERE NULL = ( ( + ( - ( 84 ) ) ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT MAX( ALL col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5540
SELECT MAX ( ALL col0 ) FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5541
SELECT ALL + COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + + ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5542
SELECT + + ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL + CAST( CAST( - MIN( ALL + col1 ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL + CAST ( CAST ( - MIN ( ALL + col1 ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + MAX( ALL + 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-5544
SELECT + MAX ( ALL + 64 ) FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL + COUNT( * ) * 42 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
378

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + COUNT ( * ) * 42 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
378

query II rowsort
SELECT - + col1 AS col1, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 21 + - col2 IS NOT NULL
----

query I rowsort
SELECT - 89 * 2 AS col1 FROM tab2 AS cor0
----
-178
-178
-178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5549
SELECT ALL - - COUNT( * ) DIV - + COUNT( * ) - 62 AS col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - - COUNT ( * ) / - + COUNT ( * ) - 62 AS col1 FROM tab1 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5550
SELECT + CAST( col1 AS SIGNED ) * - - col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-5550
SELECT + CAST ( col1 AS INTEGER ) * - - col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) + - col2 + 0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) + - col2 + 0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + col1, - col2 - - col1 FROM tab1 AS cor0
----
14
-82
47
-21
5
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT - - MAX( col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5553
SELECT - - MAX ( col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT - 72 * - col0 + - - col0 FROM tab0 cor0
----
1095
6351
7081

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 50 * + 5 + col1 * col1 AS col0 FROM tab0 AS cor0
----
251
6811
691

query I rowsort
SELECT + col1 + + 7 AS col0 FROM tab1
----
12
21
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5558
SELECT * FROM tab0 WHERE ( + col0 + - - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5558
SELECT * FROM tab0 WHERE ( + col0 + - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query II rowsort
SELECT 66 + - + 17, - 24 AS col1 FROM tab0
----
49
-24
49
-24
49
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col0 FROM tab1
----
-58
-58
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT COUNT( * ) + + MIN( CAST( + + col0 AS SIGNED ) ) + COUNT( * ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-5561
SELECT COUNT ( * ) + + MIN ( CAST ( + + col0 AS INTEGER ) ) + COUNT ( * ) FROM tab1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL - 50 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL - 50 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT - + col1 / + - 73 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT - + col1 / + - 73 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5564
SELECT + + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT + + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 98 * + 56 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL SUM( + col0 ) + - SUM( ALL + 42 ) + MAX( - col2 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL SUM ( + col0 ) + - SUM ( ALL + 42 ) + MAX ( - col2 ) FROM tab2 AS cor0
----
36

query I rowsort
SELECT + - ( 20 ) FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT - col2 - + - 38 * 52 FROM tab2 AS cor0
----
1918
1936
1953

query I rowsort
SELECT + 11 - - col1 + - 98 * col2 FROM tab1
----
-5766
-6606
-9383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT - col2 + + col2 * + col2 - + - CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT - col2 + + col2 * + col2 - + - CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 96 + col0 FROM tab0 cor0
----
-81
-9
1

query I rowsort
SELECT DISTINCT - + 87 + + + col2 FROM tab2 AS cor0
----
-29
-47
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - COUNT( + + col1 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - COUNT ( + + col1 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT - MAX( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5574
SELECT - MAX ( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL + 89 * MIN( - col2 ) FROM tab0
----
-8811

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + 89 * MIN ( - col2 ) FROM tab0
----
-8811

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5576
SELECT ALL + col2 DIV col0 AS col2, - 82 * - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab2
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-5576
SELECT ALL + col2 / col0 AS col2, - 82 * - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab2
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT DISTINCT - 56 * - 18 AS col1 FROM tab2
----
1008

query II rowsort
SELECT - 47 AS col1, col1 FROM tab0
----
-47
1
-47
21
-47
81

query II rowsort
SELECT 75 AS col2, col0 + - col1 AS col0 FROM tab2
----
75
-13
75
-5
75
8

query I rowsort
SELECT DISTINCT 10 * col2 FROM tab0
----
100
470
990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT ALL - CAST( + + 99 AS SIGNED ) FROM tab1 WHERE ( NOT ( NULL ) <= NULL )
----

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - CAST ( + + 99 AS INTEGER ) FROM tab1 WHERE ( NOT ( NULL ) <= NULL )
----

query I rowsort
SELECT + 60 FROM tab0 WHERE NOT NULL IS NOT NULL
----
60
60
60

query I rowsort
SELECT - - 27 * + - col0 FROM tab1 AS cor0
----
-1377
-2295
-2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT ( + 42 ) * + CAST( NULL AS SIGNED ) + + col0 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5584
SELECT ( + 42 ) * + CAST ( NULL AS INTEGER ) + + col0 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT DISTINCT - + col1 AS col2, 91 + - col2 FROM tab0 cor0
----
-1
-8
-21
81
-81
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE NOT ( 7 / + ( + col1 ) + - + 10 - - - 36 ) BETWEEN col0 AND ( - 92 )
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( 55 * + - ( col0 ) + 43 * - col2 - + 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5588
SELECT col0 + + + col2, + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
144
5
147
14
159
47

skipif mysql # not compatible
query II rowsort label-5588
SELECT col0 + + + col2, + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
144
5
147
14
159
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT 92 + - col0 * + + CAST( + 62 AS SIGNED ) AS col0 FROM tab2
----
-2760
-3876
-4558

skipif mysql # not compatible
query I rowsort label-5589
SELECT 92 + - col0 * + + CAST ( + 62 AS INTEGER ) AS col0 FROM tab2
----
-2760
-3876
-4558

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT DISTINCT - + col1 DIV - 25 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT - + col1 / - 25 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 4 + + + 25 AS col1 FROM tab1 cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT ALL 40 DIV + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL 40 / + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5594
SELECT CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5594
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL + MAX( ALL - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + MAX ( ALL - col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5596
SELECT 42, - COUNT( * ) AS col2 FROM tab2
----
42
-3

skipif mysql # not compatible
query II rowsort label-5596
SELECT 42, - COUNT ( * ) AS col2 FROM tab2
----
42
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5597
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) FROM tab1
----
-1

query II rowsort
SELECT DISTINCT - col0, col1 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT - COUNT( DISTINCT col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5599
SELECT - COUNT ( DISTINCT col0 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL MAX( DISTINCT + 70 ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL MAX ( DISTINCT + 70 ) AS col1 FROM tab0
----
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 23 * - col1 - + col2 <> ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 83 * 20 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT SUM( 57 ) AS col1 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT SUM ( 57 ) AS col1 FROM tab2
----
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + - col2 col0 FROM tab0 AS cor0
----
-132
-184
-95

query I rowsort
SELECT + col2 + + + col0 FROM tab0 cor0
----
196
62
97

query II rowsort
SELECT + col2 + + 3 + + 42, col0 AS col2 FROM tab1 cor0
----
104
85
113
91
141
51

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5607
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) * - 79 ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-5607
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) * - 79 ) )
----

query I rowsort
SELECT - col2 * + col2 AS col1 FROM tab2 WHERE ( + col0 ) IN ( 20 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN ( + - col1 * + 12 ) AND ( - col1 * + col2 * + - col0 )
----

query I rowsort
SELECT ALL 49 + 13 AS col0 FROM tab1 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - COUNT( * ) - + 51 AS col0 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5611
SELECT - COUNT ( * ) - + 51 AS col0 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT 73 * - MIN( col1 ) FROM tab2 AS cor0
----
-3723

skipif mysql # not compatible
query I rowsort label-5613
SELECT 73 * - MIN ( col1 ) FROM tab2 AS cor0
----
-3723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT DISTINCT - 42 FROM tab1 AS cor0 WHERE NOT col1 * + ( - + col2 ) * 1 * CAST( - 62 AS SIGNED ) + - col1 BETWEEN 11 AND col1
----
-42

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT - 42 FROM tab1 AS cor0 WHERE NOT col1 * + ( - + col2 ) * 1 * CAST ( - 62 AS INTEGER ) + - col1 BETWEEN 11 AND col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5615
SELECT + - 14 DIV - 45 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5615
SELECT + - 14 / - 45 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL ( + 87 ) AS col2 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT col2 * - ( - col0 ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL + col1 + + - col1 FROM tab0 cor0 WHERE NOT ( NULL ) <= col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5619
SELECT + - ( - 60 ) AS col1, + COUNT( * ) * - 64 AS col1 FROM tab2 AS cor0
----
60
-192

skipif mysql # not compatible
query II rowsort label-5619
SELECT + - ( - 60 ) AS col1, + COUNT ( * ) * - 64 AS col1 FROM tab2 AS cor0
----
60
-192

query I rowsort
SELECT ALL + col0 * + col1 * col1 * + 36 FROM tab2 AS cor0
----
12120300
13660416
4307256

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 84 * 4 + + col0 - - - 22 NOT IN ( - col0 * - + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / - + 13 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5623
SELECT 31 + col0 AS col2, ( - + col2 ) AS col1 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5623
SELECT 31 + col0 AS col2, ( - + col2 ) AS col1 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 15 IS NOT NULL
----

query II rowsort
SELECT ALL col1, col2 * - col2 AS col2 FROM tab1
----
14
-9216
47
-4624
5
-3481

query I rowsort
SELECT ALL 74 * - col2 FROM tab2 AS cor0
----
-1702
-2960
-4292

query I rowsort
SELECT 76 * col1 FROM tab2 AS cor0
----
3876
5092
5852

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 > + 39 * - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT - MIN( DISTINCT + + col1 ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5629
SELECT - MIN ( DISTINCT + + col1 ) col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT 27 * - + 22 * - 31 + + + 35 AS col0 FROM tab0 cor0
----
18449
18449
18449

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT 15 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL SUM( - col2 ) col2 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5633
SELECT ALL SUM ( - col2 ) col2 FROM tab0
----
-156

query I rowsort
SELECT col0 FROM tab2 WHERE - col0 / + col2 + - 47 IS NULL
----

query II rowsort
SELECT 49 AS col0, col0 AS col0 FROM tab2 AS cor0
----
49
46
49
64
49
75

query I rowsort
SELECT - - 86 + - - 23 AS col0 FROM tab2 AS cor0
----
109
109
109

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT DISTINCT col0 + - - 74 + - 43 DIV 41 * - + col2 FROM tab2 AS cor0
----
143
178
207

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT col0 + - - 74 + - 43 / 41 * - + col2 FROM tab2 AS cor0
----
143
178
207

query I rowsort
SELECT DISTINCT + + col1 + - col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col2 * + col1 FROM tab2 WHERE + col0 NOT BETWEEN 7 AND col1 + - col0
----
-1173
-3080
-3886

query I rowsort
SELECT + col1 + - col1 * - 34 * + + col0 * - + col2 AS col2 FROM tab2
----
-1834521
-6702003
-9909233

query III rowsort
SELECT * FROM tab2 WHERE - - col2 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( - col0 * + - 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + COUNT( - ( - ( - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5643
SELECT + COUNT ( - ( - ( - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + col0 col1, 6 AS col0 FROM tab1 AS cor0
----
102
6
170
6
182
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT + 33 + - SUM( col1 ) AS col0 FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT + 33 + - SUM ( col1 ) AS col0 FROM tab0 cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT CAST( + 49 AS SIGNED ) - + col0 + - ( + col2 ) FROM tab1
----
-110
-95
-98

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT CAST ( + 49 AS INTEGER ) - + col0 + - ( + col2 ) FROM tab1
----
-110
-95
-98

query III rowsort
SELECT * FROM tab2 WHERE + col0 - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5648
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( - 35 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5648
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( - 35 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 90 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - 25 < + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NOT NULL >= - 23 ) ) )
----

query I rowsort
SELECT ALL + col0 * - col2 + + col1 AS col2 FROM tab1 cor0
----
-4882
-5010
-6141

query II rowsort
SELECT - - col1 AS col0, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT - CAST( + - 17 AS SIGNED ) AS col1 FROM tab2
----
17
17
17

skipif mysql # not compatible
query I rowsort label-5654
SELECT - CAST ( + - 17 AS INTEGER ) AS col1 FROM tab2
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT + CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5655
SELECT + CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - col0 * - 47 FROM tab1
----
2397
3995
4277

query I rowsort
SELECT DISTINCT - col0 * - + ( + col0 ) FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab0 cor0
----
21

query I rowsort
SELECT DISTINCT - - 98 * + 89 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
11282
13072
9780

onlyif mysql # aggregate syntax: 
query II rowsort label-5661
SELECT ALL + ( - COUNT( * ) ) + + - 50 + 94, COUNT( * ) + - 72 AS col2 FROM tab2 AS cor0
----
41
-69

skipif mysql # not compatible
query II rowsort label-5661
SELECT ALL + ( - COUNT ( * ) ) + + - 50 + 94, COUNT ( * ) + - 72 AS col2 FROM tab2 AS cor0
----
41
-69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT col0 DIV - CAST( - - col0 AS SIGNED ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT col0 / - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT col0 * - CAST( NULL AS SIGNED ) / - 72 + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT col0 * - CAST ( NULL AS INTEGER ) / - 72 + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL - + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL - + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1 + - col0 + + 48 AS col1, col1 * + 2 AS col1 FROM tab1 AS cor0
----
-32
10
11
28
4
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 35 ) NOT BETWEEN col2 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 79 + + col0 FROM tab1 AS cor0
----
130
164
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 22, - col0 * 56 AS col1, col2 col0 FROM tab2 AS cor0
----
9 values hashing to 823b3cc375382c64cb1bdb41a50e33b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 61 * + - col2 + - - ( - col1 ) FROM tab2 AS cor0
----
-1454
-2517
-3605

query I rowsort
SELECT DISTINCT - col0 * col0 AS col0 FROM tab2 AS cor0 WHERE - col1 <= - + col1
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT col0 + + col2 * + + 92 - - col1 - + - col2 AS col1 FROM tab0 AS cor0
----
1038
4467
9305

query II rowsort
SELECT DISTINCT + 37 AS col1, 46 AS col0 FROM tab1 AS cor0
----
37
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT ALL col0 + 44 + - + col0 DIV + ( - 89 ) FROM tab2
----
108
119
90

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL col0 + 44 + - + col0 / + ( - 89 ) FROM tab2
----
108
119
90

query I rowsort
SELECT DISTINCT + 61 + + col2 FROM tab1
----
120
129
157

query II rowsort
SELECT col0 - + col0 AS col0, col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT ALL - 78 * 0 * + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + - 61 + + 13 + col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT - col0 * - col1 + + col2 + + col1 * - ( col1 ) AS col2 FROM tab2 cor0
----
-232
-961
594

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT DISTINCT - MAX( ALL - col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5681
SELECT DISTINCT - MAX ( ALL - col1 ) col0 FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( + col2 )
----

query I rowsort
SELECT DISTINCT + - 14 AS col0 FROM tab2 AS cor0
----
-14

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - col2 AND + col2
----

query I rowsort
SELECT - 26 * + 84 - + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-2185
-2205
-2265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5686
SELECT + COUNT( col0 ) DIV - + COUNT( + col2 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5686
SELECT + COUNT ( col0 ) / - + COUNT ( + col2 ) FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5687
SELECT ALL - 21 DIV + 46, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-5687
SELECT ALL - 21 / + 46, col2 AS col0 FROM tab0 AS cor0
----
0
10
0
47
0
99

query I rowsort
SELECT ALL - ( - + 87 ) AS col1 FROM tab2 AS cor0
----
87
87
87

query II rowsort
SELECT - col0 AS col1, 61 AS col1 FROM tab2
----
-46
61
-64
61
-75
61

query I rowsort
SELECT + ( - - 4 ) AS col0 FROM tab1 WHERE NOT ( NOT ( NULL ) >= NULL )
----

query I rowsort
SELECT ALL 34 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 82 AS col2 FROM tab2 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) FROM tab0 cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) FROM tab0 cor0 WHERE - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab2
----
33
33
33

query I rowsort
SELECT 0 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + col0 + - - 31 + col2 FROM tab2 AS cor0
----
14
7
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5697
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 AS col1, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5697
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col1, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + col0 + + 21 * - col2 AS col2 FROM tab0 AS cor0
----
-123
-1982
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + 41 col1 FROM tab2 cor0
----
-10
-26
-36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5701
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + + MAX( - col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + + MAX ( - col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT DISTINCT COUNT( * ) + - + COUNT( * ), - MIN( + + col1 ) * - 37 AS col0 FROM tab1 AS cor0
----
0
185

skipif mysql # not compatible
query II rowsort label-5702
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ), - MIN ( + + col1 ) * - 37 AS col0 FROM tab1 AS cor0
----
0
185

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( + 47 )
----

query II rowsort
SELECT DISTINCT - + col2 - col1, + 79 + + col1 AS col1 FROM tab0 AS cor0
----
-100
80
-128
160
-31
100

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NULL > col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL COUN