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 COUNT( * ) + + COUNT( * ) - + - CAST( ( + COUNT( - col0 ) ) AS SIGNED ) FROM tab2 WHERE NOT NULL BETWEEN - - col0 * col2 + - 52 AND + 43 - col0
----
0

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL COUNT ( * ) + + COUNT ( * ) - + - CAST ( ( + COUNT ( - col0 ) ) AS INTEGER ) FROM tab2 WHERE NOT NULL BETWEEN - - col0 * col2 + - 52 AND + 43 - col0
----
0

query I rowsort
SELECT DISTINCT col2 - + 61 - col1 FROM tab2
----
-70
-89
-98

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

skipif mysql # not compatible
query III rowsort label-5708
SELECT DISTINCT * FROM tab2 WHERE ( - ( + - CAST ( NULL AS INTEGER ) ) * - - col1 + + col0 ) NOT IN ( 51 * col2, ( - - 6 ), + CAST ( col2 AS INTEGER ), CAST ( + - col2 AS INTEGER ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col0 + + col0 * 99 col2 FROM tab0
----
1
9506
21
8526
81
1470

query I rowsort
SELECT ALL col1 * - - col2 FROM tab0
----
210
3807
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL COUNT( * ) + + MAX( - col1 ) AS col0 FROM tab2 WHERE NOT - col0 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL COUNT ( * ) + + MAX ( - col1 ) AS col0 FROM tab2 WHERE NOT - col0 = ( NULL )
----
NULL

query I rowsort
SELECT ALL 0 - col2 AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col0 * + 23 AS col2 FROM tab2
----
-1058
-1472
-1725

query I rowsort
SELECT ALL 18 * - + 68 AS col1 FROM tab2
----
-1224
-1224
-1224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + ( - + 16 ) col0 FROM tab0 AS cor0
----
-115
-26
-63

query I rowsort
SELECT 87 * - + 66 - - 26 FROM tab0 AS cor0
----
-5716
-5716
-5716

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT - + 84 * COUNT( * ) FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - + 84 * COUNT ( * ) FROM tab2 AS cor0
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - 46 - + 15, col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - col0 AS col1, col2 FROM tab1 AS cor0 WHERE NOT + col2 >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT SUM( + 53 ) AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5723
SELECT SUM ( + 53 ) AS col2 FROM tab0
----
159

query I rowsort
SELECT + 39 * + col2 AS col1 FROM tab2
----
1560
2262
897

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5726
SELECT - COUNT( * ) DIV + 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5726
SELECT - COUNT ( * ) / + 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5728
SELECT - col0, 84 DIV 38 AS col1 FROM tab1 cor0
----
-51
2
-85
2
-91
2

skipif mysql # not compatible
query II rowsort label-5728
SELECT - col0, 84 / 38 AS col1 FROM tab1 cor0
----
-51
2
-85
2
-91
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL + MIN( + + 39 ) AS col2 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL + MIN ( + + 39 ) AS col2 FROM tab2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT CAST( + - CAST( + + col2 AS SIGNED ) AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5730
SELECT CAST ( + - CAST ( + + col2 AS INTEGER ) AS INTEGER ) FROM tab1
----
-59
-68
-96

query II rowsort
SELECT ALL col0 * - - 61 * - + col2 AS col1, + 10 AS col0 FROM tab0
----
-43005
10
-53070
10
-585783
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT 80 DIV + col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5732
SELECT 80 / + col2 FROM tab0
----
0
1
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5733
SELECT ALL + col1 * - - col0 AS col2, + col1 - - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
425
64
4277
115
714
110

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL + col1 * - - col0 AS col2, + col1 - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
425
64
4277
115
714
110

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT DISTINCT col0 DIV col0 * col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT col0 / col0 * col1 AS col2 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT col1 DIV - 33 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5735
SELECT col1 / - 33 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL - MIN( - 99 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL - MIN ( - 99 ) FROM tab2
----
99

query I rowsort
SELECT - 64 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5738
SELECT DISTINCT col1 AS col2, ( CAST( NULL AS DECIMAL ) ) * - 10 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5738
SELECT DISTINCT col1 AS col2, ( CAST ( NULL AS REAL ) ) * - 10 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 col1, - ( + 12 ) AS col0 FROM tab2 AS cor0
----
-65
-12
-65
-12
-65
-12

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

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

query I rowsort
SELECT ALL - col0 * + + col1 + - 51 AS col1 FROM tab2 AS cor0
----
-2397
-4979
-5076

query I rowsort
SELECT ALL + col2 - - + col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT + CAST( + col2 AS SIGNED ) - - col2 FROM tab2 cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-5744
SELECT + CAST ( + col2 AS INTEGER ) - - col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ALL - 1 + - - 99 AS col0 FROM tab1 AS cor0
----
98
98
98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT + - col2 DIV 84 + col2 col1 FROM tab0 AS cor0
----
10
47
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5747
SELECT + - col2 / 84 + col2 col1 FROM tab0 AS cor0
----
10
47
98

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT col1 * + 43 * - + col0 AS col1, - 75 AS col1 FROM tab0
----
-4171
-75
-52245
-75
-78561
-75

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

query I rowsort
SELECT ALL col1 * - ( - col1 ) FROM tab1
----
196
2209
25

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

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

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

query I rowsort
SELECT ALL 26 * + - col0 + - ( - - 62 ) AS col2 FROM tab2 AS cor0
----
-1258
-1726
-2012

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 * - 46 col0 FROM tab2
----
-2065
-2867
-3383

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col0 col2 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 90 col0 FROM tab0 AS cor0
----
100
137
189

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 AS cor0 WHERE NULL <> col1
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT + col2 + + - ( - 81 ) AS col1 FROM tab2 AS cor0
----
104
121
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT 66 * + col1 - - CAST( + - col0 AS SIGNED ) FROM tab2
----
3320
4347
5018

skipif mysql # not compatible
query I rowsort label-5764
SELECT 66 * + col1 - - CAST ( + - col0 AS INTEGER ) FROM tab2
----
3320
4347
5018

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

query I rowsort
SELECT 49 + col0 + + col0 AS col0 FROM tab1 AS cor0
----
151
219
231

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL >= + col2 ) OR - 27 * 40 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT + 84 / + + ( - 93 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT 6 * + col0 AS col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) + - 40 + ( + 5 ) IS NULL
----
306
510
546

skipif mysql # not compatible
query I rowsort label-5770
SELECT 6 * + col0 AS col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - 40 + ( + 5 ) IS NULL
----
306
510
546

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

query II rowsort
SELECT ALL col0, - 2 AS col1 FROM tab2
----
46
-2
64
-2
75
-2

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

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

query II rowsort
SELECT - 79 * + col1 * - - col0 AS col1, - col0 FROM tab0
----
-144333
-87
-7663
-97
-95985
-15

query II rowsort
SELECT ALL col1 AS col0, - col2 FROM tab1
----
14
-96
47
-68
5
-59

query II rowsort
SELECT 21 AS col1, 17 AS col0 FROM tab1 AS cor0
----
21
17
21
17
21
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT - - MAX( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 41 + - 91 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT - - MAX ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 41 + - 91 AND + col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - AVG ( col2 ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - AVG ( col2 ) FROM tab2 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - ( + 52 ) FROM tab0 WHERE NOT 82 - + 88 IS NULL
----
-52
-52
-52

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

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

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

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

query I rowsort
SELECT + col0 * + ( - + 81 ) * + col1 FROM tab0
----
-147987
-7857
-98415

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT + 99 * - 92 - 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT - 98 * + + COUNT( * ) FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-5787
SELECT - 98 * + + COUNT ( * ) FROM tab1
----
-294

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5789
SELECT - COUNT( * ) DIV - - 86 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5789
SELECT - COUNT ( * ) / - - 86 FROM tab0
----
0

query I rowsort
SELECT 72 + - col2 + + + 44 AS col1 FROM tab0 AS cor0
----
106
17
69

query I rowsort
SELECT col1 + col1 * - + col1 FROM tab1 cor0
----
-182
-20
-2162

query I rowsort
SELECT - - 76 + - col0 AS col2 FROM tab2 AS cor0
----
1
12
30

query II rowsort
SELECT DISTINCT - col0 AS col2, ( 40 ) FROM tab1
----
-51
40
-85
40
-91
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT + MAX( - - col2 ) AS col0 FROM tab0 AS cor0 WHERE - col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT + MAX ( - - col2 ) AS col0 FROM tab0 AS cor0 WHERE - col1 > NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT - col1 * 72 + col1 + + col2 FROM tab2 AS cor0
----
-3598
-4699
-5427

query I rowsort
SELECT DISTINCT 67 FROM tab2 WHERE NULL = NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5800
SELECT ALL CAST( - CAST( + SUM( DISTINCT col0 ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL CAST ( - CAST ( + SUM ( DISTINCT col0 ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-185

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

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

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

query I rowsort
SELECT + + col1 * - 59 FROM tab1 AS cor0
----
-2773
-295
-826

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

skipif mysql # not compatible
query I rowsort label-5805
SELECT MIN ( ALL - 13 ) FROM tab2 AS cor0
----
-13

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

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

query I rowsort
SELECT ALL ( + + ( 13 ) ) + - col0 * + col0 - - col0 AS col2 FROM tab2
----
-2057
-4019
-5537

query I rowsort
SELECT - col2 + + ( - ( col0 ) ) FROM tab1
----
-144
-147
-159

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT DISTINCT ( + COUNT( * ) ) + - - MIN( + col0 ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT ( + COUNT ( * ) ) + - - MIN ( + col0 ) AS col1 FROM tab1
----
54

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT - col1 IS NULL )
----

query II rowsort
SELECT DISTINCT - + 69 + - col1 * + 85 + col0 AS col2, col2 * - 59 FROM tab2 AS cor0
----
-4358
-1357
-5689
-3422
-6550
-2360

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT ALL - col1 + + - col0 DIV + col0 FROM tab1 cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - col1 + + - col0 / + col0 FROM tab1 cor0
----
-15
-48
-6

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

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

query I rowsort
SELECT ALL - 83 + - + ( + - 89 ) FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + SUM( + col0 ) + - 99 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-5817
SELECT + SUM ( + col0 ) + - 99 FROM tab2
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + + 76 + - col1 col1 FROM tab0
----
700
925
9678

query I rowsort
SELECT + col2 + - - 13 FROM tab2 AS cor0
----
36
53
71

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + 35 BETWEEN col0 AND ( + col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - - col0 * + - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT DISTINCT - ( + ( + SUM( ALL - col0 ) ) ) DIV 53 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - ( + ( + SUM ( ALL - col0 ) ) ) / 53 AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 73 * - + 0 * - 84 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT ALL col2 AS col1, - col2 * + 73 FROM tab0
----
10
-730
47
-3431
99
-7227

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 14 col0, col1 FROM tab0
----
14
1
14
21
14
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT COUNT( * ) * 93 + - COUNT( * ) * - ( + COUNT( * ) ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-5829
SELECT COUNT ( * ) * 93 + - COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab2
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 + - 24 col0 FROM tab1 cor0
----
73

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5833
SELECT ( col1 ) * + col0, CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
425
5
4277
47
714
14

skipif mysql # not compatible
query II rowsort label-5833
SELECT ( col1 ) * + col0, CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
425
5
4277
47
714
14

query III rowsort
SELECT ALL * FROM tab2 WHERE 66 + - col0 - - 95 * col2 / col1 + + 41 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5835
SELECT ALL - MIN( - + CAST( col1 AS SIGNED ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - MIN ( - + CAST ( col1 AS INTEGER ) ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT - + col2 <= - col0
----
-1

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT - + col2 <= - col0
----
-1

query I rowsort
SELECT ALL col2 * + 45 FROM tab0
----
2115
4455
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT col0 + - + 83 - - CAST( - - 43 AS SIGNED ) + + 73 + col0 FROM tab0 AS cor0
----
207
227
63

skipif mysql # not compatible
query I rowsort label-5838
SELECT col0 + - + 83 - - CAST ( - - 43 AS INTEGER ) + + 73 + col0 FROM tab0 AS cor0
----
207
227
63

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 < 93
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 56 < NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT DISTINCT + 26 DIV - col2 - + ( ( + + col1 ) ) FROM tab2 AS cor0
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT + 26 / - col2 - + ( ( + + col1 ) ) FROM tab2 AS cor0
----
-52
-67
-77

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

skipif mysql # not compatible
query I rowsort label-5845
SELECT + col2 / + - col2 AS col1 FROM tab0 cor0
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 51 col0 FROM tab0 AS cor0
----
4437
4947
765

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT - 16 * - + MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-1584

skipif mysql # not compatible
query I rowsort label-5850
SELECT - 16 * - + MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-1584

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 1 + - 13 < + - col2 * + 78
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col0 col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT DISTINCT - 11 * - col2 AS col0 FROM tab1
----
1056
649
748

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT ALL - COUNT( * ) DIV + - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - COUNT ( * ) / + - COUNT ( * ) FROM tab0
----
1

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

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

skipif mysql # not compatible
query I rowsort label-5859
SELECT - - col0 / 72 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT COUNT( 28 ) + - - 72 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT COUNT ( 28 ) + - - 72 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - col2 AS col1 FROM tab1 cor0 WHERE NOT col2 / - 21 < NULL
----

query I rowsort
SELECT - col2 * - 1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL 31 + + ( - + col0 ) AS col2 FROM tab0
----
-56
-66
16

query I rowsort
SELECT col2 * + 62 FROM tab0 WHERE + col0 IS NOT NULL
----
2914
6138
620

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * + + col1 - col1 + + + 91 = + 33 AND - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - ( + col2 ) * + + 58
----

query I rowsort
SELECT DISTINCT - + col0 - + col0 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT ALL + 53 * - col1 * 65 * + - 39 + + 26 AS col2 FROM tab2 AS cor0
----
10345361
6852131
9001811

query I rowsort
SELECT ALL 18 * - 3 FROM tab1 cor0
----
-54
-54
-54

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5871
SELECT - + 90 * 12 AS col2, COUNT( * ) AS col1 FROM tab2 WHERE - + col0 NOT BETWEEN - - col1 AND + 0
----
-1080
3

skipif mysql # not compatible
query II rowsort label-5871
SELECT - + 90 * 12 AS col2, COUNT ( * ) AS col1 FROM tab2 WHERE - + col0 NOT BETWEEN - - col1 AND + 0
----
-1080
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5872
SELECT - col2 * + - 26 * CAST( - + 64 AS SIGNED ) * - ( + col1 ) + col2 * + 35 * - col0 AS col1 FROM tab2
----
1914842
5035520
6314054

skipif mysql # not compatible
query I rowsort label-5872
SELECT - col2 * + - 26 * CAST ( - + 64 AS INTEGER ) * - ( + col1 ) + col2 * + 35 * - col0 AS col1 FROM tab2
----
1914842
5035520
6314054

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL - SUM( ALL - col1 ) * + - 68 FROM tab2
----
-13260

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL - SUM ( ALL - col1 ) * + - 68 FROM tab2
----
-13260

query I rowsort
SELECT DISTINCT - col1 + col1 + + 70 + - ( col2 ) * - col1 FROM tab0 AS cor0
----
169
280
3877

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5877
SELECT ALL + col2, + 27 DIV + col0 FROM tab0 AS cor0
----
10
0
47
1
99
0

skipif mysql # not compatible
query II rowsort label-5877
SELECT ALL + col2, + 27 / + col0 FROM tab0 AS cor0
----
10
0
47
1
99
0

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

query I rowsort
SELECT DISTINCT + 90 * + col1 FROM tab2 AS cor0
----
4590
6030
6930

query I rowsort
SELECT DISTINCT - col1 * + 85 * + 53 * - col0 + + col0 AS col1 FROM tab2 AS cor0
----
10568776
22200704
22637700

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

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

query I rowsort
SELECT DISTINCT + col0 * 1 AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 20 NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5885
SELECT + col0 DIV - 39 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5885
SELECT + col0 / - 39 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT SUM( - 78 ) FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-5886
SELECT SUM ( - 78 ) FROM tab0
----
-234

query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab1
----
-24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT + COUNT( * ) + SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-5891
SELECT + COUNT ( * ) + SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT + col1 * - + 93 + + col0 + + + col2 + col0 * - - 83 * - - col1 + - col2 DIV col1 col0 FROM tab1 AS cor0
----
34943
350778
58101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5892
SELECT + col1 * - + 93 + + col0 + + + col2 + col0 * - - 83 * - - col1 + - col2 / col1 col0 FROM tab1 AS cor0
----
34943
350778
58101

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT COUNT( * ) + - COUNT( DISTINCT + col2 ) FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

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

query II rowsort
SELECT DISTINCT + 4, col1 FROM tab0 WHERE - - 49 * - col1 + - + ( + col1 ) / + 83 IS NULL
----

query I rowsort
SELECT DISTINCT + 46 + - col2 FROM tab1 AS cor0
----
-13
-22
-50

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5899
SELECT - col2 AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-5899
SELECT - col2 AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT - SUM( ALL - 32 ) - + - 2 * - 94 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5900
SELECT - SUM ( ALL - 32 ) - + - 2 * - 94 FROM tab2 AS cor0
----
-92

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

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

query I rowsort
SELECT col1 * - + col1 - - 86 FROM tab0
----
-355
-6475
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT + 79 - ( + COUNT( * ) ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-5903
SELECT + 79 - ( + COUNT ( * ) ) FROM tab0
----
76

query II rowsort
SELECT col1 * col0 - + + 17 + + 10 + - - 87 * col0, col0 FROM tab2
----
10489
64
11543
75
6341
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - MAX( ALL col2 ) + - ( - - COUNT( * ) ) AS col1 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-5905
SELECT - MAX ( ALL col2 ) + - ( - - COUNT ( * ) ) AS col1 FROM tab0
----
-102

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5907
SELECT - + 86 + CAST( col1 AS SIGNED ) + col0 col2 FROM tab0 cor0
----
10
12
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5907
SELECT - + 86 + CAST ( col1 AS INTEGER ) + col0 col2 FROM tab0 cor0
----
10
12
22

onlyif mysql # aggregate syntax: 
query II rowsort label-5908
SELECT + 53, SUM( col2 ) AS col1 FROM tab2 AS cor0
----
53
121

skipif mysql # not compatible
query II rowsort label-5908
SELECT + 53, SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
53
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 - + - 82 col0 FROM tab1 AS cor0
----
4978
5097
6270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT MAX( + 28 ) AS col1 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT MAX ( + 28 ) AS col1 FROM tab2
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + SUM( DISTINCT + + 71 ) * COUNT( ALL - - col1 ) + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-5913
SELECT + SUM ( DISTINCT + + 71 ) * COUNT ( ALL - - col1 ) + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
210

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

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

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

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

query II rowsort
SELECT DISTINCT ( - col1 ) AS col0, 25 + - col1 FROM tab0 AS cor0
----
-1
24
-21
4
-81
-56

query I rowsort
SELECT DISTINCT - 18 * + 12 + - col0 AS col0 FROM tab2 AS cor0
----
-262
-280
-291

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 < NULL
----

query I rowsort
SELECT + col1 * - + ( + 4 ) FROM tab0
----
-324
-4
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5923
SELECT DISTINCT col1 DIV + + col1 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT col1 / + + col1 AS col1 FROM tab0
----
1

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

query I rowsort
SELECT - col1 + 76 * - col2 FROM tab2
----
-1799
-3117
-4475

query I rowsort
SELECT ALL 44 + - col2 FROM tab0
----
-3
-55
34

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

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

query I rowsort
SELECT DISTINCT - - col1 + - + col2 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5929
SELECT + - 82 AS col0, - COUNT( * ) * + - COUNT( * ) FROM tab0 AS cor0
----
-82
9

skipif mysql # not compatible
query II rowsort label-5929
SELECT + - 82 AS col0, - COUNT ( * ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-82
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5931
SELECT COUNT( * ) FROM tab2 WHERE NOT 70 * col2 NOT IN ( + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-5931
SELECT COUNT ( * ) FROM tab2 WHERE NOT 70 * col2 NOT IN ( + 3 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 + + 7 col1 FROM tab0
----
29
29
29

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

query I rowsort
SELECT DISTINCT 23 * col2 AS col1 FROM tab2
----
1334
529
920

query I rowsort
SELECT ALL col1 + - col1 FROM tab0 WHERE col2 NOT BETWEEN col2 * col1 AND col0
----
0
0
0

query I rowsort
SELECT ALL - col1 - 90 * col0 FROM tab0
----
-1431
-7851
-8731

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

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

query I rowsort
SELECT ALL col2 + + 83 AS col2 FROM tab1
----
142
151
179

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

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

query I rowsort
SELECT 19 - - col0 FROM tab0
----
106
116
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT SUM( - col2 ) * + COUNT( * ) AS col1 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-5942
SELECT SUM ( - col2 ) * + COUNT ( * ) AS col1 FROM tab1
----
-669

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

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

query I rowsort
SELECT ( col2 ) * 56 AS col0 FROM tab0
----
2632
5544
560

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT 25 * + ( - COUNT( * ) ) col2 FROM tab1
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5945
SELECT 25 * + ( - COUNT ( * ) ) col2 FROM tab1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT ALL col0 DIV col0 AS col2 FROM tab1 WHERE NOT col1 * col0 IN ( col0 DIV col0 )
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL col0 / col0 AS col2 FROM tab1 WHERE NOT col1 * col0 IN ( col0 / col0 )
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT DISTINCT col1 DIV col2 + col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT col1 / col2 + col1 AS col1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT DISTINCT 6 DIV + 46 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT 6 / + 46 AS col0 FROM tab0
----
0

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

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

query I rowsort
SELECT ALL 51 AS col2 FROM tab0 WHERE NOT - 80 IS NOT NULL
----

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

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

query I rowsort
SELECT 85 * - 14 AS col0 FROM tab2 WHERE NOT NULL >= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT ALL + 48 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL + 48 / + col2 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL 19 + col2 AS col1 FROM tab1
----
115
78
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 15 + - col2 ) AND ( 93 * 92 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 WHERE + 70 * + 73 + + col1 IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 70 * + 73 + + col1 IN ( col0 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT 1 * COUNT( * ) col0 FROM tab1 WHERE NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5959
SELECT DISTINCT 1 * COUNT ( * ) col0 FROM tab1 WHERE NULL NOT IN ( col0 )
----
0

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 54 + - 30 AND + 50
----

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

query I rowsort
SELECT DISTINCT + 23 FROM tab1 AS cor0 WHERE NOT 83 IS NULL
----
23

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

query I rowsort
SELECT - 84 * - col2 FROM tab1 AS cor0
----
4956
5712
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT DISTINCT 94 + MAX( DISTINCT 66 ) col1 FROM tab0 AS cor0 WHERE NOT col0 + - 0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5966
SELECT DISTINCT 94 + MAX ( DISTINCT 66 ) col1 FROM tab0 AS cor0 WHERE NOT col0 + - 0 IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 * + 72 AS col0 FROM tab0 AS cor0
----
3384
7128
720

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

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

query I rowsort
SELECT - 1 * + col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 73 * - ( col2 ) FROM tab2
----
-1679
-2920
-4234

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

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

query I rowsort
SELECT ALL col0 - 38 FROM tab1 WHERE NOT ( NULL ) <> col0
----

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

query I rowsort
SELECT ALL - col1 / + 46 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL - 30 * - COUNT( * ) FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - 30 * - COUNT ( * ) FROM tab1 cor0
----
90

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

query I rowsort
SELECT ALL - 67 + col1 AS col0 FROM tab1 AS cor0
----
-20
-53
-62

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

skipif mysql # not compatible
query I rowsort label-5978
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL 58 * 23 AS col1 FROM tab0
----
1334
1334
1334

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT + 77 * + + COUNT( * ) + + 63 AS col2 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT + 77 * + + COUNT ( * ) + + 63 AS col2 FROM tab1 AS cor0
----
294

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT - 44 DIV + + col2 + - 58 - - 9 DIV - col1 AS col0 FROM tab0 AS cor0
----
-58
-62
-67

skipif mysql # not compatible
query I rowsort label-5984
SELECT - 44 / + + col2 + - 58 - - 9 / - col1 AS col0 FROM tab0 AS cor0
----
-58
-62
-67

query I rowsort
SELECT + col2 - - col2 * + + col2 FROM tab1 AS cor0
----
3540
4692
9312

query I rowsort
SELECT - 51 - + 0 AS col2 FROM tab2 AS cor0
----
-51
-51
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT MIN( + + col1 ) + COUNT( ALL col0 ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5988
SELECT MIN ( + + col1 ) + COUNT ( ALL col0 ) AS col1 FROM tab0
----
4

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + - 87 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE - CAST( 15 AS SIGNED ) * col1 IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE - CAST ( 15 AS INTEGER ) * col1 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL + 6 * - SUM( DISTINCT + + 79 ) FROM tab2
----
-474

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + 6 * - SUM ( DISTINCT + + 79 ) FROM tab2
----
-474

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 35 )
----

query I rowsort
SELECT ALL + 46 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
104
69
86

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

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

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

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

query I rowsort
SELECT DISTINCT + 69 * col0 FROM tab2
----
3174
4416
5175

query I rowsort
SELECT - - 49 AS col2 FROM tab0 AS cor0
----
49
49
49

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

query II rowsort
SELECT + 28, + col1 * - - col1 AS col1 FROM tab0 cor0
----
28
1
28
441
28
6561

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL - MAX( - 43 ) AS col2 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - MAX ( - 43 ) AS col2 FROM tab2 AS cor0
----
43

query I rowsort
SELECT - - ( 6 ) AS col1 FROM tab2 AS cor0
----
6
6
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 >= ( - 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT ALL - COUNT( * ) + - + 32 col0 FROM tab2 AS cor0
----
-35

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col2 ) col0 FROM tab0 AS cor0
----
10
47
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6012
SELECT ALL COUNT( * ), 21 col1 FROM tab1
----
3
21

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6013
SELECT ALL * FROM tab0 WHERE NOT + col2 + - 50 + - + col0 / + 86 - + col0 * + col2 < - CAST( NULL AS DECIMAL ) - col1
----

skipif mysql # not compatible
query III rowsort label-6013
SELECT ALL * FROM tab0 WHERE NOT + col2 + - 50 + - + col0 / + 86 - + col0 * + col2 < - CAST ( NULL AS REAL ) - col1
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + 17 + - 67 AS col1 FROM tab2
----
-50
-50
-50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6018
SELECT col1 col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT - col2 * + - 5 AS col0 FROM tab0 AS cor0
----
235
495
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL COUNT( DISTINCT 79 ) - + + MIN( - col2 ) AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL COUNT ( DISTINCT 79 ) - + + MIN ( - col2 ) AS col1 FROM tab1
----
97

query I rowsort
SELECT DISTINCT col2 * - - 54 FROM tab0
----
2538
5346
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6023
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT - 47 + - col0 AS col2 FROM tab0 cor0
----
-134
-144
-62

query I rowsort
SELECT ALL - 59 * - 98 AS col0 FROM tab1 AS cor0
----
5782
5782
5782

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE NOT col0 / + col2 * - - col2 * - 37 * + col0 + - + 4 IS NOT NULL
----

query II rowsort
SELECT - col1 + + col2, - ( col1 ) AS col2 FROM tab1 AS cor0
----
21
-47
54
-5
82
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6028
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) NOT IN ( 42, col1 )
----

skipif mysql # not compatible
query III rowsort label-6028
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) NOT IN ( 42, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * - 45 col0 FROM tab1
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT SUM( DISTINCT + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6030
SELECT SUM ( DISTINCT + + col1 ) FROM tab1
----
66

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

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

query I rowsort
SELECT 74 * + 82 AS col1 FROM tab1
----
6068
6068
6068

query I rowsort
SELECT ALL ( + + 57 ) AS col2 FROM tab2
----
57
57
57

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT DISTINCT - MAX( DISTINCT + + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT - MAX ( DISTINCT + + col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT + - 10 + 26 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + - 10 + 26 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
19

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

query I rowsort
SELECT DISTINCT + - col1 * - col2 + - col2 FROM tab2 AS cor0
----
1150
3040
3828

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

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

query II rowsort
SELECT ALL + 90 * - ( - - 9 ) + - col2, + col1 AS col0 FROM tab1 cor0
----
-869
5
-878
47
-906
14

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT ALL - MIN( ALL col1 ) AS col2, COUNT( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-6045
SELECT ALL - MIN ( ALL col1 ) AS col2, COUNT ( DISTINCT - ( - col0 ) ) FROM tab2 AS cor0
----
-51
3

query I rowsort
SELECT ALL + + 84 * + col1 FROM tab2 AS cor0
----
4284
5628
6468

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT MIN( DISTINCT - col0 ) * 84 FROM tab0
----
-8148

skipif mysql # not compatible
query I rowsort label-6049
SELECT MIN ( DISTINCT - col0 ) * 84 FROM tab0
----
-8148

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

query I rowsort
SELECT col0 - ( 1 ) AS col2 FROM tab1
----
50
84
90

query I rowsort
SELECT ALL + 86 * col1 AS col0 FROM tab2
----
4386
5762
6622

query I rowsort
SELECT 93 * + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1395
8091
9021

query I rowsort
SELECT + - col2 * + + col2 + + + col0 * + 77 AS col0 FROM tab2 AS cor0
----
2411
3013
3328

query I rowsort
SELECT + 55 + + - col2 FROM tab1 AS cor0
----
-13
-4
-41

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE ( col0 + + 54 - ( + - 37 ) ) IN ( col2, ( + col1 ) )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE NOT 22 IS NULL
----
10
47
99

query I rowsort
SELECT - col0 * + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, 26 AS col2 FROM tab1 AS cor0
----
14
26
47
26
5
26

query I rowsort
SELECT DISTINCT - + col2 * - + ( 70 ) AS col2 FROM tab2 AS cor0
----
1610
2800
4060

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT + col1 DIV 16 AS col0 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6062
SELECT + col1 / 16 AS col0 FROM tab1 AS cor0
----
0
0
2

query I rowsort
SELECT - - 83 * - col2 AS col2 FROM tab0 AS cor0
----
-3901
-8217
-830

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

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT 6 * CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6065
SELECT + MIN( DISTINCT 32 ) DIV - COUNT( DISTINCT + 4 ) + + 3 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6065
SELECT + MIN ( DISTINCT 32 ) / - COUNT ( DISTINCT + 4 ) + + 3 FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 col1, 31 * + col2 AS col0 FROM tab2 AS cor0
----
35
1240
35
1798
35
713

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL <= + 57
----
0

skipif mysql # not compatible
query I rowsort label-6067
SELECT - ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL <= + 57
----
0

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

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

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

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

query I rowsort
SELECT ALL - 80 * - col2 * - + col2 * - col1 AS col2 FROM tab2
----
18031040
2158320
9856000

onlyif mysql # aggregate syntax: 
query II rowsort label-6072
SELECT ALL 99 * COUNT( * ), - COUNT( * ) AS col0 FROM tab2
----
297
-3

skipif mysql # not compatible
query II rowsort label-6072
SELECT ALL 99 * COUNT ( * ), - COUNT ( * ) AS col0 FROM tab2
----
297
-3

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

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

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

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

query I rowsort
SELECT - ( col1 ) * - ( - ( + - col2 ) ) * col0 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT + COUNT( * ) * 9 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT + COUNT ( * ) * 9 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 15 * 94 IS NULL
----

query II rowsort
SELECT ALL col1 AS col2, col2 * - ( - 45 ) AS col0 FROM tab0
----
1
4455
21
450
81
2115

query II rowsort
SELECT DISTINCT - col1 AS col1, - 68 FROM tab1 AS cor0
----
-14
-68
-47
-68
-5
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT COUNT( ALL + - col1 ) + + 68 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6082
SELECT COUNT ( ALL + - col1 ) + + 68 FROM tab2 AS cor0
----
71

query I rowsort
SELECT + col1 + 62 - + 37 AS col2 FROM tab0 AS cor0
----
106
26
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT ALL - - col1 + CAST( - + col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-18
-27
-66

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - - col1 + CAST ( - + col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-18
-27
-66

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

query I rowsort
SELECT - col2 * - - 11 FROM tab0 AS cor0 WHERE 11 + 88 >= col1 * + col2 * + + 23 + - col1
----

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab0 cor0 WHERE + 67 - + - ( - ( + + col2 ) ) > - - col0
----
99

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

query I rowsort
SELECT ALL + col2 * col1 - + col2 FROM tab2
----
1150
3040
3828

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

query I rowsort
SELECT DISTINCT - - 93 FROM tab2 WHERE - 55 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6092
SELECT + COUNT( * ) DIV - + 34 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6092
SELECT + COUNT ( * ) / - + 34 FROM tab1
----
0

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

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

query I rowsort
SELECT DISTINCT - - col2 + - col1 - col1 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT - col1 - - 49 + + col0 FROM tab2
----
36
44
57

onlyif mysql # aggregate syntax: 
query II rowsort label-6096
SELECT ALL - 61 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-61
9

skipif mysql # not compatible
query II rowsort label-6096
SELECT ALL - 61 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-61
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT DISTINCT + + COUNT( * ), 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
84

skipif mysql # not compatible
query II rowsort label-6097
SELECT DISTINCT + + COUNT ( * ), 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT MIN( - - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6100
SELECT MIN ( - - col1 ) FROM tab1 AS cor0
----
5

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

query I rowsort
SELECT 92 * - + col2 FROM tab0 cor0 WHERE NOT + 77 + col1 NOT IN ( + col0, col1 )
----

query I rowsort
SELECT + 69 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + 34 * + - 11
----

query I rowsort
SELECT ALL - + 73 * + col0 AS col2 FROM tab2 AS cor0
----
-3358
-4672
-5475

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6108
SELECT DISTINCT col2 AS col2, + col2 * col1 * + col1 FROM tab1 WHERE - CAST( + col2 AS SIGNED ) + 47 <= - + 57 * col0 + col2
----

skipif mysql # not compatible
query II rowsort label-6108
SELECT DISTINCT col2 AS col2, + col2 * col1 * + col1 FROM tab1 WHERE - CAST ( + col2 AS INTEGER ) + 47 <= - + 57 * col0 + col2
----

query I rowsort
SELECT + 42 * - - col0 AS col2 FROM tab0
----
3654
4074
630

query II rowsort
SELECT 51, ( - col0 ) AS col1 FROM tab1
----
51
-51
51
-85
51
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL COUNT( ALL - - 68 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL COUNT ( ALL - - 68 ) FROM tab0
----
3

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + col0 = col2
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 >= 92
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT - AVG ( ALL col1 ) * COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

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

query I rowsort
SELECT DISTINCT + col1 * - - ( + 4 ) FROM tab0
----
324
4
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL - ( MIN( col0 ) ) + + 64 AS col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - ( MIN ( col0 ) ) + + 64 AS col1 FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL - col0 * + col2 + - 38 * - - 80 AS col0 FROM tab0 cor0
----
-12643
-3745
-3910

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

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

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + col2 + - col1 FROM tab0 AS cor0
----
-1
13
197

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT ALL - col2 * + col1 * + - col2 - col2 DIV + - 25 FROM tab1
----
129027
17407
217330

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - col2 * + col1 * + - col2 - col2 / + - 25 FROM tab1
----
129027
17407
217330

query I rowsort
SELECT 84 * + ( - 94 ) - 5 * + ( col2 ) FROM tab0
----
-7946
-8131
-8391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT ALL - col0 + - CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL - col0 + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
-144
-147
-159

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

query I rowsort
SELECT DISTINCT 13 * + 83 AS col1 FROM tab1
----
1079

query I rowsort
SELECT DISTINCT - col1 * - 76 AS col2 FROM tab1
----
1064
3572
380

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

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

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

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

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

query I rowsort
SELECT - 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT + COUNT( ALL 86 ) * + - 79 AS col0 FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-6138
SELECT + COUNT ( ALL 86 ) * + - 79 AS col0 FROM tab0 AS cor0
----
-237

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

query I rowsort
SELECT - 74 * - 97 FROM tab1 AS cor0
----
7178
7178
7178

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

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

query I rowsort
SELECT - 92 + - - col0 AS col1 FROM tab1
----
-1
-41
-7

query I rowsort
SELECT 20 FROM tab1 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT - 58 + col0 AS col0 FROM tab1
----
-7
27
33

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

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE 51 IS NOT NULL
----
3

query I rowsort
SELECT ALL 7 + col2 AS col2 FROM tab2
----
30
47
65

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

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

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

skipif mysql # not compatible
query I rowsort label-6148
SELECT MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + col1 + - col0 + - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-4933
-5095
-6232

query I rowsort
SELECT DISTINCT - col0 + ( - col2 ) + col1 FROM tab2 AS cor0 WHERE 83 + col1 * - - 37 + - col1 IS NOT NULL
----
-18
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT COUNT( * ) * - ( 74 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-666

skipif mysql # not compatible
query I rowsort label-6151
SELECT COUNT ( * ) * - ( 74 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col0, 18 * - col2 + col0 col2 FROM tab2
----
23
-368
40
-656
58
-969

query I rowsort
SELECT col1 * + col1 + + col2 FROM tab2
----
2624
4547
5969

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT + + col0 + - + col0 * - 21 / + 67 * 3 * + 9 * ( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT + + col0 + - + col0 * - 21 / + 67 * 3 * + 9 * ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT + + COUNT( * ) * 89 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT + + COUNT ( * ) * 89 FROM tab0 AS cor0
----
267

query I rowsort
SELECT - col2 + - 39 + - + col1 + ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-164
-231
-233

query I rowsort
SELECT ALL col1 * + col2 + + - col0 FROM tab1 AS cor0
----
1293
210
3105

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

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

query II rowsort
SELECT ALL - col0 AS col2, - col0 FROM tab0 cor0 WHERE NULL BETWEEN + col1 * + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + + 58 - + col0 AS col0 FROM tab1
----
205
2635
761

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT DISTINCT COUNT( * ) * 47 AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT COUNT ( * ) * 47 AS col2 FROM tab0
----
141

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL OR + + 29 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT ALL 83 * ( - col2 ) AS col0, 33 FROM tab0
----
-3901
33
-8217
33
-830
33

query I rowsort
SELECT + col2 * + ( 6 ) FROM tab1 AS cor0
----
354
408
576

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6168
SELECT DISTINCT + 15 DIV - CAST( + 25 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT + 15 / - CAST ( + 25 AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6169
SELECT + - col1 * - - ( + col2 ) * + 94 + col2 + - col2 * + - col0 * - col2 * CAST( NULL AS DECIMAL ) / 49 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST( + 97 AS SIGNED ) / 53 * + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT + - col1 * - - ( + col2 ) * + 94 + col2 + - col2 * + - col0 * - col2 * CAST ( NULL AS REAL ) / 49 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( + 97 AS INTEGER ) / 53 * + col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6170
SELECT - 20, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-20
-3

skipif mysql # not compatible
query II rowsort label-6170
SELECT - 20, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-20
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT COUNT( * ) * + - COUNT( * ) * - 33 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-6171
SELECT COUNT ( * ) * + - COUNT ( * ) * - 33 FROM tab2
----
297

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6175
SELECT CAST( NULL AS SIGNED ) * + + 50 AS col2, SUM( DISTINCT + 51 ) AS col1 FROM tab1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-6175
SELECT CAST ( NULL AS INTEGER ) * + + 50 AS col2, SUM ( DISTINCT + 51 ) AS col1 FROM tab1
----
NULL
51

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT - col2 DIV col2 col2 FROM tab2
----
-1
-1
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6178
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - 74 * + 29 AND + CAST( - 82 AS SIGNED ) * - - col2
----

skipif mysql # not compatible
query III rowsort label-6178
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - 74 * + 29 AND + CAST ( - 82 AS INTEGER ) * - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT ALL - 82 * 67 DIV - + 38 + col1 FROM tab0
----
145
165
225

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL - 82 * 67 / - + 38 + col1 FROM tab0
----
145
165
225

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT 84 + - 6 * - ( COUNT( * ) ) * + + 75 FROM tab2 AS cor0
----
1434

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT 84 + - 6 * - ( COUNT ( * ) ) * + + 75 FROM tab2 AS cor0
----
1434

query I rowsort
SELECT - col0 * - col2 + - col2 * + 81 FROM tab1 AS cor0
----
-2880
236
680

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT + MIN( DISTINCT + 94 ) * + - COUNT( * ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6184
SELECT + MIN ( DISTINCT + 94 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
-282

query I rowsort
SELECT ALL ( + 43 ) + - 35 AS col2 FROM tab0 cor0
----
8
8
8

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

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

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

query I rowsort
SELECT 61 - + col0 FROM tab0 AS cor0
----
-26
-36
46

query I rowsort
SELECT - - col2 - + - col0 - - col1 FROM tab0 cor0
----
118
143
197

query I rowsort
SELECT ALL 16 + + col2 FROM tab1 AS cor0
----
112
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL 20 + - - 93 FROM tab0
----
113
113
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6193
SELECT - 8 + + ( col2 ) + - + CAST( - col0 AS SIGNED ) * + + col0 * - col1 * col1 AS col2 FROM tab1
----
-180574
-18292669
-509708

skipif mysql # not compatible
query I rowsort label-6193
SELECT - 8 + + ( col2 ) + - + CAST ( - col0 AS INTEGER ) * + + col0 * - col1 * col1 AS col2 FROM tab1
----
-180574
-18292669
-509708

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE - - col0 + + 40 / - 82 * + col2 + - col1 / - 35 NOT BETWEEN col2 AND NULL
----
-2

skipif mysql # not compatible
query I rowsort label-6194
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE - - col0 + + 40 / - 82 * + col2 + - col1 / - 35 NOT BETWEEN col2 AND NULL
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT 94 DIV + COUNT( * ) + + 27 - + MAX( ALL - + col0 ) * + COUNT( ALL + col0 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6195
SELECT 94 / + COUNT ( * ) + + 27 - + MAX ( ALL - + col0 ) * + COUNT ( ALL + col0 ) AS col1 FROM tab0
----
103

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

skipif mysql # not compatible
query I rowsort label-6196
SELECT + COUNT ( * ) + + 29 * + COUNT ( * ) FROM tab2
----
90

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

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

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

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

query I rowsort
SELECT + col2 * - 79 FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab1 WHERE NULL >= NULL
----

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

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

query I rowsort
SELECT ALL + col2 * - col2 + - col1 * - col2 + - col0 FROM tab2 AS cor0
----
1416
447
598

query II rowsort
SELECT ALL + + 90 * col1, ( + col2 ) FROM tab0 AS cor0
----
1890
10
7290
47
90
99

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

query II rowsort
SELECT DISTINCT - - 93 * + - col0, col2 FROM tab2 AS cor0
----
-4278
23
-5952
40
-6975
58

query I rowsort
SELECT col0 + 89 AS col1 FROM tab0 AS cor0
----
104
176
186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6207
SELECT - 54 AS col1 FROM tab1 WHERE NOT 3 + - - col2 NOT IN ( - CAST( col1 AS DECIMAL ) * - col0 + - col0, + 58 + + 12 - 88 )
----

skipif mysql # not compatible
query I rowsort label-6207
SELECT - 54 AS col1 FROM tab1 WHERE NOT 3 + - - col2 NOT IN ( - CAST ( col1 AS REAL ) * - col0 + - col0, + 58 + + 12 - 88 )
----

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 52 col1, col0 * + ( - 11 ) AS col1 FROM tab2
----
52
-506
52
-704
52
-825

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

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

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

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

query I rowsort
SELECT ALL - col2 * - col0 + - 79 FROM tab2
----
2481
4271
979

query I rowsort
SELECT 34 * - col1 + - - col1 FROM tab2 AS cor0
----
-1683
-2211
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL COUNT( ALL - col1 ) + - 52 AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL COUNT ( ALL - col1 ) + - 52 AS col2 FROM tab1 AS cor0
----
-49

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

query I rowsort
SELECT ALL + col0 * col1 - - 85 FROM tab1 cor0
----
4362
510
799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT ALL ( + 4 ) * + CAST( ( + MAX( col2 ) ) AS SIGNED ) AS col0 FROM tab1
----
384

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL ( + 4 ) * + CAST ( ( + MAX ( col2 ) ) AS INTEGER ) AS col0 FROM tab1
----
384

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6221
SELECT ALL col2 * CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 * col1 * col2 FROM tab0 WHERE NOT - 78 IS NULL
----
-1589490
-856575
-931491

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

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

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

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

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

query I rowsort
SELECT 80 * + + col1 FROM tab1
----
1120
3760
400

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT ALL + col0 DIV + - 48 + - col2 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-100
10
34

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + col0 / + - 48 + - col2 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-100
10
34

query I rowsort
SELECT 90 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - 90 * col2 * - - col0 AS col0 FROM tab2
----
-230400
-391500
-95220

query I rowsort
SELECT DISTINCT ( 13 ) AS col0 FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT - 48 * - 24 * 32 AS col2 FROM tab2 AS cor0 WHERE NOT + 62 > - 70 * + col1 / - CAST( + col1 AS SIGNED ) - - 90
----
36864
36864
36864

skipif mysql # not compatible
query I rowsort label-6233
SELECT - 48 * - 24 * 32 AS col2 FROM tab2 AS cor0 WHERE NOT + 62 > - 70 * + col1 / - CAST ( + col1 AS INTEGER ) - - 90
----
36864
36864
36864

query I rowsort
SELECT DISTINCT - col0 * + 68 FROM tab0 cor0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT MIN( col2 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT MIN ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT DISTINCT MIN( - col1 ) DIV + 4 AS col2 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT MIN ( - col1 ) / + 4 AS col2 FROM tab1
----
-11

query II rowsort
SELECT + col1 * - col0 AS col0, col0 + + - col2 + 98 FROM tab2
----
-2346
121
-4928
122
-5025
115

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT 30 DIV + 41 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6239
SELECT 30 / + 41 FROM tab1
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - ( - col2 ) ) col0 FROM tab0
----
10
47
99

query I rowsort
SELECT 91 * + col0 + - col0 AS col1 FROM tab0
----
1350
7830
8730

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT + 19 + MAX( DISTINCT + - col0 ) + + - SUM( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
158

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6244
SELECT DISTINCT + 19 + MAX ( DISTINCT + - col0 ) + + - SUM ( DISTINCT - col0 ) col2 FROM tab2 AS cor0
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6245
SELECT + COUNT( * ) + 18 + + - CAST( + + 76 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-6245
SELECT + COUNT ( * ) + 18 + + - CAST ( + + 76 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6247
SELECT col1 + + col0 + - CAST( + col1 AS SIGNED ) + - + col0 DIV - col1 FROM tab1
----
102
54
92

skipif mysql # not compatible
query I rowsort label-6247
SELECT col1 + + col0 + - CAST ( + col1 AS INTEGER ) + - + col0 / - col1 FROM tab1
----
102
54
92

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + col1 + + 56 + - 48 IS NOT NULL
----

query I rowsort
SELECT ALL - + 13 + 80 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 - - - col0 col0 FROM tab2 AS cor0
----
-27
-38
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT + COUNT( * ) - - + 58 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-6254
SELECT + COUNT ( * ) - - + 58 FROM tab2 AS cor0
----
61

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - - ( + - 71 ) + col1 AS col2 FROM tab1 AS cor0
----
-24
-57
-66

query II rowsort
SELECT - 20, + 86 AS col2 FROM tab2 AS cor0
----
-20
86
-20
86
-20
86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6258
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6258
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 > + col2 - - + 15 - - - col1
----

query II rowsort
SELECT - col2 AS col2, + col2 + - - 68 FROM tab2 cor0
----
-23
91
-40
108
-58
126

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 81 * + col2 > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL COUNT( ALL - + 58 ) col1 FROM tab2
----
3

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6266
SELECT CAST ( NULL AS INTEGER ) AS col2, col1 col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT + - 66 AS col1 FROM tab2 cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL 63 + ( - + col0 ) - col0 * + col0 FROM tab2 AS cor0
----
-2099
-4097
-5637

query I rowsort
SELECT ALL - col1 * - 93 AS col0 FROM tab0 AS cor0
----
1953
7533
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT DISTINCT - COUNT( * ) + MAX( - + col0 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT - COUNT ( * ) + MAX ( - + col0 ) FROM tab1 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL + - ( + 2 ) + + 31 FROM tab0 AS cor0
----
29
29
29

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

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

query II rowsort
SELECT ALL 11 AS col1, - 50 * + + col2 FROM tab1
----
11
-2950
11
-3400
11
-4800

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

query II rowsort
SELECT ALL 95, + 84 AS col0 FROM tab0
----
95
84
95
84
95
84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT - 73 * - COUNT( * ) FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-6280
SELECT - 73 * - COUNT ( * ) FROM tab0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT col2 DIV + - col1 AS col0 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6281
SELECT col2 / + - col1 AS col0 FROM tab0
----
-99
0
0

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

query I rowsort
SELECT DISTINCT - - col0 * - 65 FROM tab1 AS cor0
----
-3315
-5525
-5915

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

query I rowsort
SELECT DISTINCT 2 + - col1 FROM tab0 AS cor0
----
-19
-79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT ALL + - COUNT( * ) - 65 * 82 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-5339

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL + - COUNT ( * ) - 65 * 82 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-5339

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT ALL col2 DIV col0 * - - col0 FROM tab1 cor0
----
0
0
51

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL col2 / col0 * - - col0 FROM tab1 cor0
----
0
0
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6289
SELECT ALL + - ( + 91 ) AS col2, + CAST( NULL AS SIGNED ) + - + col0 AS col0 FROM tab0 AS cor0
----
-91
NULL
-91
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-6289
SELECT ALL + - ( + 91 ) AS col2, + CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab0 AS cor0
----
-91
NULL
-91
NULL
-91
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6290
SELECT ALL COUNT( * ) DIV + 84 * - 38 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL COUNT ( * ) / + 84 * - 38 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col2 * + 18 * - + col0 AS col2 FROM tab1 cor0
----
-111384
-88128
-90270

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND col0 * - 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6296
SELECT ALL ( - CAST( - col0 AS SIGNED ) ), col2 FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL ( - CAST ( - col0 AS INTEGER ) ), col2 FROM tab1
----
51
96
85
59
91
68

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

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

query I rowsort
SELECT - 25 FROM tab0 WHERE NOT NULL <> + col1 / + col2
----

query II rowsort
SELECT ALL + col2, - 79 FROM tab0
----
10
-79
47
-79
99
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 36 col1, 73 AS col0 FROM tab2
----
-36
73

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT DISTINCT 80 DIV - 72 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT 80 / - 72 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT - col1 + - 51 * - col0 FROM tab1
----
2587
4330
4594

query I rowsort
SELECT 75 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - + 55 + - - 91 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL col1 * col1 * + - col2 + + - col0 AS col0 FROM tab1 AS cor0
----
-150303
-1560
-18867

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

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

query II rowsort
SELECT DISTINCT - 33 + + + col0, + col1 AS col0 FROM tab2 AS cor0
----
13
51
31
77
42
67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT 68 * - + SUM( DISTINCT col1 ) * 58 FROM tab2 AS cor0
----
-769080

skipif mysql # not compatible
query I rowsort label-6312
SELECT 68 * - + SUM ( DISTINCT col1 ) * 58 FROM tab2 AS cor0
----
-769080

query I rowsort
SELECT 53 * + + col2 AS col2 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT + 8 AS col0 FROM tab2 WHERE - 86 >= col1 * - + col2
----
8
8
8

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

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

query I rowsort
SELECT + ( - 73 ) - col2 + - - 29 * - col1 AS col0 FROM tab1
----
-1504
-277
-575

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

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

query I rowsort
SELECT DISTINCT + ( + + 44 ) + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
129
135
95

query I rowsort
SELECT ALL 68 + 34 * col1 * + 69 AS col0 FROM tab1 AS cor0 WHERE NOT NULL < ( col1 )
----

query I rowsort
SELECT DISTINCT 81 + + + col1 FROM tab2 AS cor0
----
132
148
158

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT + + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6322
SELECT + + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ( - 45 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT - COUNT( * ) * + SUM( + + col0 ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT - COUNT ( * ) * + SUM ( + + col0 ) FROM tab0
----
-597

onlyif mysql # aggregate syntax: 
query II rowsort label-6325
SELECT DISTINCT MIN( - + col0 ) * + 3 * - COUNT( * ) col1, 91 - + 15 AS col2 FROM tab0 AS cor0
----
873
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6325
SELECT DISTINCT MIN ( - + col0 ) * + 3 * - COUNT ( * ) col1, 91 - + 15 AS col2 FROM tab0 AS cor0
----
873
76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT ALL - 38 DIV - col2 + + 11 FROM tab2 AS cor0
----
11
11
12

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - 38 / - col2 + + 11 FROM tab2 AS cor0
----
11
11
12

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT + - 74 * + - COUNT( * ) FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-6330
SELECT + - 74 * + - COUNT ( * ) FROM tab0 AS cor0
----
222

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT - + COUNT( * ) * - + 59 * - 95 AS col2 FROM tab1 cor0
----
-16815

skipif mysql # not compatible
query I rowsort label-6333
SELECT - + COUNT ( * ) * - + 59 * - 95 AS col2 FROM tab1 cor0
----
-16815

query II rowsort
SELECT + - 46, col0 + col1 + - 84 AS col2 FROM tab2 AS cor0
----
-46
13
-46
57
-46
58

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
46
64
75

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

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

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

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

query II rowsort
SELECT - col1 * + col0, col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL + SUM( - 69 ) FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL + SUM ( - 69 ) FROM tab1 AS cor0
----
-207

query I rowsort
SELECT ALL 14 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 + - col0 + - + 60 / - - col2
----

query I rowsort
SELECT - + col0 * ( + 50 ) * col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-4850
-60750
-91350

onlyif mysql # aggregate syntax: 
query II rowsort label-6342
SELECT DISTINCT + MAX( DISTINCT col1 ) AS col1, 49 AS col0 FROM tab0 AS cor0
----
81
49

skipif mysql # not compatible
query II rowsort label-6342
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col1, 49 AS col0 FROM tab0 AS cor0
----
81
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT DISTINCT + - 52 * ( + + col1 ) + - - col1 * + - 11 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + + ( + - 51 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT + - 52 * ( + + col1 ) + - - col1 * + - 11 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + + ( + - 51 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + MAX( + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6344
SELECT + MAX ( + col2 ) AS col1 FROM tab1
----
96

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

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

query I rowsort
SELECT ALL - col2 + + + col2 * 68 + + col2 AS col1 FROM tab0 AS cor0
----
3196
6732
680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab1 AS cor0 WHERE col1 < + col2 * + + col0 + - 45 + - col2
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT + + ( - 16 ) * - 12 + - + col1 DIV + col0 FROM tab2 AS cor0
----
191
191
192

skipif mysql # not compatible
query I rowsort label-6348
SELECT + + ( - 16 ) * - 12 + - + col1 / + col0 FROM tab2 AS cor0
----
191
191
192

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

query III rowsort
SELECT * FROM tab1 WHERE + - 6 < NULL
----

query II rowsort
SELECT ALL + 49 AS col2, + col0 AS col1 FROM tab2
----
49
46
49
64
49
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6352
SELECT - + COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-6352
SELECT - + COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6354
SELECT DISTINCT 25 AS col1, CAST( NULL AS SIGNED ) / col2 * col0 AS col2 FROM tab0 AS cor0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-6354
SELECT DISTINCT 25 AS col1, CAST ( NULL AS INTEGER ) / col2 * col0 AS col2 FROM tab0 AS cor0
----
25
NULL

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( col0 - - - col0 + - 61, col2, - 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col1, + col1 + + 1 FROM tab1
----
59
6
68
48
96
15

query I rowsort
SELECT DISTINCT 85 * + col2 AS col1 FROM tab2
----
1955
3400
4930

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

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

query I rowsort
SELECT DISTINCT - col2 * + 49 FROM tab2 WHERE - + col2 <> - col0 * 40 * 63
----
-1127
-1960
-2842

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6364
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( col0 ) * + + ( + 77 ) * + col0 + + CAST( + + col1 AS SIGNED ) * + col0 + col1
----

skipif mysql # not compatible
query III rowsort label-6364
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= ( col0 ) * + + ( + 77 ) * + col0 + + CAST ( + + col1 AS INTEGER ) * + col0 + col1
----

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

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

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

query I rowsort
SELECT + 31 + - col1 FROM tab0 AS cor0
----
-50
10
30

query I rowsort
SELECT + 50 * - 85 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 54056795cc79534f744f0b6d9e58c7a5

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT - 18 + + 11 DIV - 17 * + col2 AS col0 FROM tab0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-6369
SELECT - 18 + + 11 / - 17 * + col2 AS col0 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT ALL - - col2 + - + col2 + + col0 * - col1 + + + 62 FROM tab2 cor0
----
-2284
-4866
-4963

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab2 AS cor0 WHERE col2 - 83 IS NOT NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT DISTINCT - 94 + MAX( ALL 68 ) col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6372
SELECT DISTINCT - 94 + MAX ( ALL 68 ) col2 FROM tab1 AS cor0
----
-26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 < - + 90 + - col1
----

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

query II rowsort
SELECT DISTINCT - - 61 + + col1 AS col1, col1 FROM tab1 cor0
----
108
47
66
5
75
14

query I rowsort
SELECT DISTINCT - col1 - + + col2 * - - 49 + - 72 FROM tab0 AS cor0
----
-2456
-4924
-583

query I rowsort
SELECT DISTINCT 4 - + - col0 AS col2 FROM tab0
----
101
19
91

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND - col2
----

query II rowsort
SELECT DISTINCT 19 AS col1, + ( - 66 ) AS col0 FROM tab2 AS cor0
----
19
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT - 25 * + + ( + 41 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-1028

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT - 25 * + + ( + 41 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-1028

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL COUNT( ALL 5 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL COUNT ( ALL 5 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT DISTINCT - CAST( 37 AS SIGNED ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - CAST ( 37 AS INTEGER ) FROM tab1
----
-37

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE 12 IS NULL
----

query I rowsort
SELECT col0 + 34 AS col2 FROM tab1 WHERE ( + col0 ) BETWEEN NULL AND - col1 * + col1
----

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

skipif mysql # not compatible
query I rowsort label-6385
SELECT SUM ( col0 ) + + COUNT ( * ) / + 6 FROM tab1
----
227

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT CAST( - CAST( 66 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( + col2 - CAST( - col1 + + col0 AS SIGNED ) * + col1 ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-6387
SELECT CAST ( - CAST ( 66 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( + col2 - CAST ( - col1 + + col0 AS INTEGER ) * + col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT + 53 + - 30 FROM tab2 WHERE 63 NOT IN ( - col1 )
----
23
23
23

query I rowsort
SELECT + col1 * 32 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1504
160
448

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT DISTINCT COUNT( * ) - 23 col1 FROM tab0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6391
SELECT DISTINCT COUNT ( * ) - 23 col1 FROM tab0
----
-20

query I rowsort
SELECT DISTINCT 94 + + 65 AS col2 FROM tab2
----
159

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

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

query I rowsort
SELECT + 72 - col2 FROM tab1
----
-24
13
4

query I rowsort
SELECT + col0 * 24 FROM tab0
----
2088
2328
360

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

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

query I rowsort
SELECT - col0 * + 69 AS col1 FROM tab2
----
-3174
-4416
-5175

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

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

query I rowsort
SELECT DISTINCT - ( col2 ) - - col1 FROM tab1 WHERE col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT + 62 * SUM( DISTINCT 90 ) FROM tab1
----
5580

skipif mysql # not compatible
query I rowsort label-6401
SELECT + 62 * SUM ( DISTINCT 90 ) FROM tab1
----
5580

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT ALL col2 DIV 62 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL col2 / 62 AS col0 FROM tab0 AS cor0
----
0
0
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT DISTINCT + 5 + - col2 DIV 60 AS col1 FROM tab1 AS cor0
----
4
5

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT + 5 + - col2 / 60 AS col1 FROM tab1 AS cor0
----
4
5

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

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

query I rowsort
SELECT ALL - 72 + col0 AS col0 FROM tab0 AS cor0
----
-57
15
25

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

query I rowsort
SELECT ALL col0 + 47 AS col1 FROM tab2
----
111
122
93

query I rowsort
SELECT ( 72 ) + - col2 AS col2 FROM tab0 AS cor0
----
-27
25
62

query I rowsort
SELECT DISTINCT - - 72 + 39 FROM tab0 AS cor0
----
111

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

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

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

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

query I rowsort
SELECT DISTINCT - 7 * + 68 FROM tab2 AS cor0 WHERE ( + ( + col0 ) ) IS NOT NULL
----
-476

query I rowsort
SELECT DISTINCT - + col1 * col1 + 87 FROM tab0 AS cor0
----
-354
-6474
86

query I rowsort
SELECT + + 6 + - 51 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT + 72 + - 82 * + 38 AS col0 FROM tab1 AS cor0
----
-3044
-3044
-3044

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL MAX( ALL - col0 ) * COUNT( * ) + COUNT( * ) * - 64 FROM tab2 AS cor0
----
-330

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL MAX ( ALL - col0 ) * COUNT ( * ) + COUNT ( * ) * - 64 FROM tab2 AS cor0
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL COUNT( * ) - COUNT( * ) * 78 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL COUNT ( * ) - COUNT ( * ) * 78 FROM tab0 AS cor0
----
-231

query I rowsort
SELECT ALL + - 94 + - col0 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-799
-964
-9697

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6425
SELECT 15 DIV 94 AS col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) * ( col2 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6425
SELECT 15 / 94 AS col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * ( col2 ) IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col2 col2 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT - SUM( - 86 ) FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-6427
SELECT - SUM ( - 86 ) FROM tab2
----
258

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

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

query I rowsort
SELECT DISTINCT - col2 - 97 AS col2 FROM tab2
----
-120
-137
-155

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * - col1 * col0 col0 FROM tab1
----
-42075
-423423
-70686

query I rowsort
SELECT + ( col2 ) * col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - col1 - - - col0 AS col1 FROM tab1
----
-138
-65
-90

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE 97 IS NOT NULL OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + ( - 38 ) ) * - col1 - 21 NOT BETWEEN ( NULL ) AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + 7 * + + col1 * + 30 AS col2 FROM tab0 AS cor0
----
17010
210
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT + - 87 * + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-783

skipif mysql # not compatible
query I rowsort label-6444
SELECT + - 87 * + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-783

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= 29
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 + 10 FROM tab0 AS cor0 WHERE - col1 - ( 30 ) + - col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT COUNT( * ) + COUNT( * ) * MIN( DISTINCT - col0 + col1 ) FROM tab1 cor0 WHERE NOT ( + 92 ) IS NULL
----
-237

skipif mysql # not compatible
query I rowsort label-6452
SELECT COUNT ( * ) + COUNT ( * ) * MIN ( DISTINCT - col0 + col1 ) FROM tab1 cor0 WHERE NOT ( + 92 ) IS NULL
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT - MIN( DISTINCT - 71 ) * + + 17 AS col1 FROM tab1 AS cor0
----
1207

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - MIN ( DISTINCT - 71 ) * + + 17 AS col1 FROM tab1 AS cor0
----
1207

query I rowsort
SELECT DISTINCT col1 * - 52 AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT - MIN( 52 ) * - + COUNT( * ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT - MIN ( 52 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
156

query I rowsort
SELECT + ( - ( - - 4 ) ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
-184
-256
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6457
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6459
SELECT + SUM( DISTINCT 41 ) DIV + + 45 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6459
SELECT + SUM ( DISTINCT 41 ) / + + 45 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT SUM( 13 ) * 65 FROM tab2
----
2535

skipif mysql # not compatible
query I rowsort label-6460
SELECT SUM ( 13 ) * 65 FROM tab2
----
2535

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT DISTINCT MAX( - ( + 33 ) ) AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT MAX ( - ( + 33 ) ) AS col0 FROM tab0
----
-33

query I rowsort
SELECT col0 * 77 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE col1 * + 3 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 71 * 26 FROM tab2
----
1846
1846
1846

query II rowsort
SELECT ALL + col1 + + col0, 52 AS col0 FROM tab0
----
108
52
96
52
98
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT 27 + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 + 26 ) <> ( NULL )
----
27

skipif mysql # not compatible
query I rowsort label-6466
SELECT 27 + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 + 26 ) <> ( NULL )
----
27

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

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 16 + - + col1 BETWEEN - col2 AND 16
----
75
67
58

query I rowsort
SELECT ALL - - 47 + col0 FROM tab0 cor0
----
134
144
62

query II rowsort
SELECT ALL - 49 + + col1, col1 FROM tab1 AS cor0
----
-2
47
-35
14
-44
5

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( col1 / col1 + + 36 ) NOT BETWEEN - 48 AND + col0
----

query I rowsort
SELECT ALL col2 + - col1 + - col1 FROM tab1 AS cor0
----
-26
49
68

query II rowsort
SELECT + 48, - col1 * 3 AS col2 FROM tab0
----
48
-243
48
-3
48
-63

query I rowsort
SELECT ALL 98 - 75 AS col0 FROM tab1
----
23
23
23

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

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

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

query II rowsort
SELECT ALL - col0 * + ( + col0 ) AS col1, - ( + + col0 ) FROM tab2
----
-2116
-46
-4096
-64
-5625
-75

query I rowsort
SELECT DISTINCT + col2 + - col1 FROM tab2 AS cor0 WHERE NOT 22 + - col2 + - - 97 + - - col1 * 70 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 * + - 83 FROM tab1 AS cor0
----
-4233
-7055
-7553

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT ALL - 99 DIV + 7 AS col1 FROM tab1 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - 99 / + 7 AS col1 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col0 / - 87 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6481
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 / - 87 IS NULL
----
0

query I rowsort
SELECT ALL + + col1 * - col1 + - + 71 FROM tab0 cor0
----
-512
-6632
-72

query I rowsort
SELECT - 85 AS col0 FROM tab0 AS cor0 WHERE - 54 * - col2 NOT IN ( - col0 )
----
-85
-85
-85

query II rowsort
SELECT DISTINCT - 28 * + - 79 + - - col2, col0 AS col2 FROM tab2 AS cor0
----
2235
46
2252
64
2270
75

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6486
SELECT + 3 AS col0, COUNT( DISTINCT + 16 ) col0 FROM tab0
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6486
SELECT + 3 AS col0, COUNT ( DISTINCT + 16 ) col0 FROM tab0
----
3
1

query I rowsort
SELECT DISTINCT col0 * + - 53 AS col1 FROM tab0
----
-4611
-5141
-795

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT IN ( - 59, 37 + col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + 48 / + col2 )
----

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT - MAX( + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT - MAX ( + col0 ) FROM tab2
----
-75

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

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

query I rowsort
SELECT + + 27 AS col0 FROM tab1 cor0
----
27
27
27

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6503
SELECT + CAST( - ( + 63 ) AS SIGNED ) + 7 + - 89 DIV - COUNT( * ) * COUNT( DISTINCT - 30 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-6503
SELECT + CAST ( - ( + 63 ) AS INTEGER ) + 7 + - 89 / - COUNT ( * ) * COUNT ( DISTINCT - 30 ) FROM tab1
----
-27

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 15 FROM tab1
----
14
-15
47
-15
5
-15

query I rowsort
SELECT ALL col0 * col2 * - 37 * - col1 FROM tab0
----
2112885
355311
675990

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT - 75 * MAX( - 72 ) AS col1 FROM tab0
----
5400

skipif mysql # not compatible
query I rowsort label-6508
SELECT - 75 * MAX ( - 72 ) AS col1 FROM tab0
----
5400

query I rowsort
SELECT DISTINCT + 5 * + 45 FROM tab0
----
225

query I rowsort
SELECT ALL col2 * + + 90 AS col2 FROM tab0
----
4230
8910
900

onlyif mysql # DIV for integer division: 
query I rowsort label-6511
SELECT ALL - col0 * - col1 + col0 DIV + - col2 + + + 10 AS col1 FROM tab1 AS cor0
----
4286
434
724

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - col0 * - col1 + col0 / + - col2 + + + 10 AS col1 FROM tab1 AS cor0
----
4286
434
724

query I rowsort
SELECT ALL + + 29 - - col0 AS col1 FROM tab2 AS cor0
----
104
75
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT + COUNT( * ) - + 88 AS col1 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6513
SELECT + COUNT ( * ) - + 88 AS col1 FROM tab2 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6514
SELECT ALL + 45 AS col0, - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
45
0

skipif mysql # not compatible
query II rowsort label-6514
SELECT ALL + 45 AS col0, - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
45
0

query I rowsort
SELECT + 73 + 10 * + - col1 + 12 - col1 * - 28 FROM tab2
----
1003
1291
1471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - - col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - - col0 FROM tab1
----
425
4277
714

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

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

query I rowsort
SELECT - col1 + ( + ( + 45 ) ) AS col0 FROM tab1 cor0
----
-2
31
40

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

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

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 cor0 WHERE NOT col0 * + - ( - col0 ) <= ( NULL )
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * 86 FROM tab0 AS cor0
----
-1806
-6966
-86

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT - col0 FROM tab2 WHERE NOT - ( - col1 ) + + 66 = + CAST( + + col1 AS SIGNED ) - col2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6527
SELECT - col0 FROM tab2 WHERE NOT - ( - col1 ) + + 66 = + CAST ( + + col1 AS INTEGER ) - col2
----
-46
-64
-75

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

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

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

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

query I rowsort
SELECT col1 * col2 * + 74 FROM tab0
----
15540
281718
7326

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL + 10 * - MIN( - col1 ) AS col2 FROM tab1
----
470

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL + 10 * - MIN ( - col1 ) AS col2 FROM tab1
----
470

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

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + 5 IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT ( CAST( COUNT( col0 ) AS SIGNED ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6535
SELECT ( CAST ( COUNT ( col0 ) AS INTEGER ) ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT DISTINCT - ( - 29 ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT - ( - 29 ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT - ( + - SUM( ALL 41 ) ) + + + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-6537
SELECT - ( + - SUM ( ALL 41 ) ) + + + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2
----
114

query I rowsort
SELECT col0 + - 3 FROM tab0
----
12
84
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL + SUM( col2 ) + - + MIN( col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL + SUM ( col2 ) + - + MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 41 + col2 * - col0 * 90 * + col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT 96 + + + col1 AS col0 FROM tab1 AS cor0
----
101
110
143

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT DISTINCT COUNT( DISTINCT - - col0 ) + + + 12 AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT COUNT ( DISTINCT - - col0 ) + + + 12 AS col2 FROM tab2 AS cor0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6549
SELECT DISTINCT * FROM tab2 WHERE NOT 54 / - - col2 + - + col1 IN ( - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ), + col2, + 62 )
----

skipif mysql # not compatible
query III rowsort label-6549
SELECT DISTINCT * FROM tab2 WHERE NOT 54 / - - col2 + - + col1 IN ( - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ), + col2, + 62 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT + col2 + + CAST( + 38 AS SIGNED ) FROM tab2
----
61
78
96

skipif mysql # not compatible
query I rowsort label-6551
SELECT + col2 + + CAST ( + 38 AS INTEGER ) FROM tab2
----
61
78
96

query I rowsort
SELECT - col0 + - col2 + + col1 FROM tab0
----
-195
-76
19

query II rowsort
SELECT DISTINCT 85 + col1 AS col0, - 80 FROM tab0
----
106
-80
166
-80
86
-80

query I rowsort
SELECT ALL 84 FROM tab0 WHERE NULL NOT IN ( 91 )
----

query I rowsort
SELECT ALL + ( + col0 ) + - + col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL + 25 - col0 FROM tab0 cor0
----
-62
-72
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT + COUNT( * ) * - + ( + COUNT( * ) ) + 19 * + - COUNT( * ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + COUNT ( * ) * - + ( + COUNT ( * ) ) + 19 * + - COUNT ( * ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE - col2 >= 43
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT DISTINCT - + col1 - col1 - + + col0 DIV - - col1 FROM tab2 AS cor0
----
-102
-135
-154

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - + col1 - col1 - + + col0 / - - col1 FROM tab2 AS cor0
----
-102
-135
-154

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

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

query II rowsort
SELECT col1, - col1 * - col2 FROM tab2
----
51
1173
67
3886
77
3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT ALL - + col2 FROM tab0 WHERE + 70 BETWEEN + 42 AND + col1 + + + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - + col2 FROM tab0 WHERE + 70 BETWEEN + 42 AND + col1 + + + CAST ( - col0 AS INTEGER )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - ( + + ( + 35 ) ) col0 FROM tab2 AS cor0
----
-172480
-175875
-82110

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6568
SELECT - - col1 / - 71 col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT + 5 DIV + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + 5 / + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT - MIN ( - - ( col2 ) ) FROM tab0
----
-10

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 83 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT DISTINCT + 81 DIV col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT + 81 / col0 FROM tab2 AS cor0
----
1

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

query I rowsort
SELECT col1 * + col2 + + col1 + + col0 AS col2 FROM tab2 AS cor0
----
1270
3221
4028

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT 16 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT - 1 + - 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

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

query I rowsort
SELECT - col1 + - + 6 AS col0 FROM tab0 AS cor0
----
-27
-7
-87

query I rowsort
SELECT ALL col0 + + 69 FROM tab2 AS cor0
----
115
133
144

query I rowsort
SELECT - + col2 * - 25 * - col1 + - + col0 - + - col1 * col1 FROM tab1 AS cor0
----
-33455
-7435
-77782

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT DISTINCT COUNT( * ) + - - 92 * - SUM( DISTINCT + col2 ) + SUM( DISTINCT - col1 ) AS col2, + 15 * + 85 col0 FROM tab1 AS cor0
----
-20579
1275

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6584
SELECT DISTINCT COUNT ( * ) + - - 92 * - SUM ( DISTINCT + col2 ) + SUM ( DISTINCT - col1 ) AS col2, + 15 * + 85 col0 FROM tab1 AS cor0
----
-20579
1275

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 + - 4 FROM tab1 AS cor0
----
-100
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT + COUNT( * ) + + MIN( - 88 ) FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6588
SELECT + COUNT ( * ) + + MIN ( - 88 ) FROM tab0 AS cor0
----
-85

query I rowsort
SELECT + 49 + + col0 FROM tab0 AS cor0
----
136
146
64

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

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

query I rowsort
SELECT + col0 * 76 + col2 FROM tab2 WHERE col2 IS NOT NULL
----
3519
4904
5758

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

query I rowsort
SELECT - col2 * + + 78 * col0 FROM tab1
----
-381888
-391170
-482664

query I rowsort
SELECT ALL 70 FROM tab1 cor0
----
70
70
70

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

query I rowsort
SELECT + 62 * + 58 + - col1 FROM tab0 AS cor0 WHERE NULL <> col0
----

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

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

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

skipif mysql # not compatible
query II rowsort label-6600
SELECT - 26 AS col0, COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----
-26
0

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

query I rowsort
SELECT ALL + 78 AS col1 FROM tab2
----
78
78
78

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

query I rowsort
SELECT ( + - col2 ) * col0 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT + 19 AS col2, col1 * + col0 + + - ( + col1 ) FROM tab2
----
19
2295
19
4851
19
4958

query II rowsort
SELECT DISTINCT col1 + 7 + - col0 AS col1, + 12 FROM tab2 cor0
----
-1
12
12
12
20
12

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 8 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT ALL + + ( + + col1 ) + - CAST( + 50 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
2955
3447
4814

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL + + ( + + col1 ) + - CAST ( + 50 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
2955
3447
4814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6609
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 84 / - + ( - - 16 ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 84 / - + ( - - 16 ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 NOT IN ( + col1 * + 24, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-16
-41
0

query I rowsort
SELECT ALL + ( + - ( - col1 ) ) FROM tab1 AS cor0 WHERE - col0 NOT IN ( 22 )
----
14
47
5

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

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

query I rowsort
SELECT + - 41 - - 73 FROM tab0 cor0
----
32
32
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT MAX( + + 12 ) - + + COUNT( * ) - 47 DIV + 93 * - 35 * + - 6 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6615
SELECT MAX ( + + 12 ) - + + COUNT ( * ) - 47 / + 93 * - 35 * + - 6 FROM tab2
----
9

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

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

query I rowsort
SELECT 81 * + col1 - 99 FROM tab1
----
1035
306
3708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col0 col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6621
SELECT + ( - - col1 ) DIV + 64 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT + ( - - col1 ) / + 64 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + 79 * col1 < + - 79
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6625
SELECT + CAST( + 58 AS SIGNED ) AS col0, + col2 AS col0 FROM tab1
----
58
59
58
68
58
96

skipif mysql # not compatible
query II rowsort label-6625
SELECT + CAST ( + 58 AS INTEGER ) AS col0, + col2 AS col0 FROM tab1
----
58
59
58
68
58
96

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

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

query I rowsort
SELECT DISTINCT + + 4 + - 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

query I rowsort
SELECT - 90 * - 70 AS col0 FROM tab1
----
6300
6300
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - 25 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6629
SELECT - 25 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT + 42 DIV - + 84 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6631
SELECT + 42 / - + 84 FROM tab1 cor0
----
0
0
0

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

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

query II rowsort
SELECT - col2 AS col0, 93 - + - col0 + + col0 FROM tab1 AS cor0
----
-59
263
-68
275
-96
195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT MAX( - col0 ) AS col2 FROM tab1 WHERE NOT - 55 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-6635
SELECT MAX ( - col0 ) AS col2 FROM tab1 WHERE NOT - 55 IS NULL
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - - 27
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - - 41
----

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

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + MIN ( DISTINCT + ( + 68 ) ) AS col1 FROM tab0
----
68

query I rowsort
SELECT ( + - col1 ) * + 70 FROM tab0
----
-1470
-5670
-70

query II rowsort
SELECT DISTINCT - col0 + + - col0, 49 + - + 6 AS col1 FROM tab1 AS cor0
----
-102
43
-170
43
-182
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1, - 83, - col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT 89 / + - col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 75 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6645
SELECT ALL CAST( NULL AS SIGNED ), col0 DIV 34 col1 FROM tab0
----
NULL
0
NULL
2
NULL
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6645
SELECT ALL CAST ( NULL AS INTEGER ), col0 / 34 col1 FROM tab0
----
NULL
0
NULL
2
NULL
2

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 98 NOT BETWEEN + + col0 * 36 + + - 72 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL COUNT( - + 21 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL COUNT ( - + 21 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + ( - col1 ) + - col2 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT DISTINCT - - 3 * + col0 FROM tab0 AS cor0
----
261
291
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT - ( 78 ) + - col1 DIV - 23 AS col2 FROM tab0 AS cor0
----
-75
-78
-78

skipif mysql # not compatible
query I rowsort label-6651
SELECT - ( 78 ) + - col1 / - 23 AS col2 FROM tab0 AS cor0
----
-75
-78
-78

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

skipif mysql # not compatible
query I rowsort label-6652
SELECT + CAST ( NULL AS REAL ) * col2 + + CAST ( - col1 AS INTEGER ) * + 52 + + - col2 + col2 * - col1 * + col1 * - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 29 + - col1 AS col2 FROM tab0 AS cor0
----
-52
28
8

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

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

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

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

query I rowsort
SELECT ALL col1 + + 98 + 43 AS col0 FROM tab2
----
192
208
218

query I rowsort
SELECT ALL + 27 * + 30 AS col0 FROM tab0
----
810
810
810

query II rowsort
SELECT ALL + col1 * + 49, col1 FROM tab2
----
2499
51
3283
67
3773
77

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6660
SELECT + + col0 DIV + + col1, + 22 AS col1 FROM tab0 WHERE ( NOT 53 < - col1 )
----
0
22
4
22
97
22

skipif mysql # not compatible
query II rowsort label-6660
SELECT + + col0 / + + col1, + 22 AS col1 FROM tab0 WHERE ( NOT 53 < - col1 )
----
0
22
4
22
97
22

query I rowsort
SELECT ALL col1 * - 55 - + col2 * - - col1 AS col2 FROM tab2
----
-3978
-7315
-7571

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT ALL 56 DIV - COUNT( 86 ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL 56 / - COUNT ( 86 ) FROM tab1
----
-18

query II rowsort
SELECT + - col2 - + col0 AS col1, - 23 AS col2 FROM tab2 AS cor0
----
-104
-23
-133
-23
-69
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT + col0 * + CAST( - - col2 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-6664
SELECT + col0 * + CAST ( - - col2 AS INTEGER ) FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT 59 * + COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-6665
SELECT 59 * + COUNT ( * ) FROM tab1 AS cor0
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6666
SELECT - CAST( - AVG ( DISTINCT - col1 ) AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-6666
SELECT - CAST ( - AVG ( DISTINCT - col1 ) AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-102

query I rowsort
SELECT - ( + 32 ) FROM tab1 cor0
----
-32
-32
-32

query I rowsort
SELECT ALL - col0 * + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2346
4928
5025

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

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

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

query I rowsort
SELECT ALL - - 38 + col2 AS col1 FROM tab2 AS cor0
----
61
78
96

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

query I rowsort
SELECT ALL - col1 * + + 66 + 26 AS col0 FROM tab0 WHERE NOT + 12 NOT BETWEEN NULL AND - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL MAX( DISTINCT col1 ) col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6674
SELECT ALL MAX ( DISTINCT col1 ) col0 FROM tab0
----
81

query II rowsort
SELECT col0 AS col2, 69 AS col0 FROM tab1 WHERE NOT col0 > NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 73 FROM tab1
----
3723
6205
6643

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 69 * col0 NOT IN ( + 77 * col1 + col2, - col1 * - - col1 * + 91, - 78, 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL - MIN( DISTINCT 27 ) + - + 54 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - MIN ( DISTINCT 27 ) + - + 54 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-78

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

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

query II rowsort
SELECT DISTINCT - 8 * + 65 + col0 + - col0 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-520
51
-520
67
-520
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6682
SELECT - - col0 * CAST( NULL AS SIGNED ) + col1 + - - ( + - 36 ) FROM tab2 WHERE NULL > - + col1
----

skipif mysql # not compatible
query I rowsort label-6682
SELECT - - col0 * CAST ( NULL AS INTEGER ) + col1 + - - ( + - 36 ) FROM tab2 WHERE NULL > - + col1
----

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

query I rowsort
SELECT DISTINCT + 22 - - 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
85

query I rowsort
SELECT + 6 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
58

query I rowsort
SELECT - col2 * + - col0 * - 81 - + 57 - col1 FROM tab2 AS cor0
----
-207494
-352474
-85806

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6689
SELECT ALL + 91 - + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + 91 - + col0 / - col0 AS col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT + 12 - col2 AS col0 FROM tab2 cor0
----
-11
-28
-46

query I rowsort
SELECT + 78 + + + 63 FROM tab2
----
141
141
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT DISTINCT 66 - + col0 * + CAST( + + col0 AS SIGNED ) + 37 FROM tab2
----
-2013
-3993
-5522

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT 66 - + col0 * + CAST ( + + col0 AS INTEGER ) + 37 FROM tab2
----
-2013
-3993
-5522

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT DISTINCT + col0 DIV - 49 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT + col0 / - 49 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT DISTINCT col2 DIV - 30 col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6694
SELECT DISTINCT col2 / - 30 col2 FROM tab0
----
-1
-3
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 7 ) * - + col0 * col0 + + + ( - col0 ) col1 FROM tab2 cor0
----
14766
28608
39300

query II rowsort
SELECT - - 25 AS col1, + ( + + 95 ) FROM tab0 cor0
----
25
95
25
95
25
95

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6699
SELECT - col1 col1, - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT - 37 * + 37 AS col0 FROM tab0 AS cor0
----
-1369
-1369
-1369

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL + MAX( + 30 ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - 3 AND - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + MAX ( + 30 ) AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - 3 AND - 26
----
NULL

query I rowsort
SELECT ALL - col2 * + - 43 FROM tab2
----
1720
2494
989

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT ALL - 76 * + - col2 DIV - + col2 AS col0 FROM tab0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - 76 * + - col2 / - + col2 AS col0 FROM tab0
----
-76
-76
-76

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE - 44 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT - col0 DIV + col1 + - - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
74

skipif mysql # not compatible
query I rowsort label-6705
SELECT - col0 / + col1 + - - col0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6707
SELECT SUM( + col0 ) * - ( - COUNT( + 51 ) ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT - 78 * + col0 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

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

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

query I rowsort
SELECT ALL + 37 * col2 + + 74 + 46 - + ( + ( 8 ) ) * + col1 * 69 + + col2 + col2 FROM tab0 AS cor0
----
-11082
-42759
3429

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT + 84 + - 39 DIV - - col2 + - ( + 85 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6714
SELECT + 84 + - 39 / - - col2 + - ( + 85 ) FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT + ( COUNT( * ) ) FROM tab1 WHERE NULL NOT IN ( ( col1 ), 30, + CAST( NULL AS SIGNED ) / + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT + ( COUNT ( * ) ) FROM tab1 WHERE NULL NOT IN ( ( col1 ), 30, + CAST ( NULL AS INTEGER ) / + col1 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL + COUNT( * ) * - COUNT( ALL - ( + + col2 ) ) + + 80 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + COUNT ( * ) * - COUNT ( ALL - ( + + col2 ) ) + + 80 FROM tab1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT + 9 DIV + 31 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT + 9 / + 31 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT + - 41 * - + 83 FROM tab0 AS cor0
----
3403
3403
3403

query I rowsort
SELECT DISTINCT - 7 + 66 * - 61 * - 37 AS col0 FROM tab2 AS cor0
----
148955

onlyif mysql # aggregate syntax: 
query II rowsort label-6722
SELECT - - COUNT( * ) col1, COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 WHERE + 94 IS NOT NULL
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6722
SELECT - - COUNT ( * ) col1, COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 WHERE + 94 IS NOT NULL
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + col0 col2 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL 85 * + col1 * - col1 FROM tab2 AS cor0
----
-221085
-381565
-503965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT DISTINCT CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - - col0 * + col2 + - + 36 AS col1 FROM tab1 AS cor0
----
4860
4979
6152

query II rowsort
SELECT DISTINCT + + col0 + - 92 AS col1, + col0 * + + 14 AS col1 FROM tab0 AS cor0
----
-5
1218
-77
210
5
1358

query I rowsort
SELECT ALL + col2 + + col1 + + + col0 + + col1 FROM tab2 AS cor0
----
171
258
267

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL - - ( MIN( DISTINCT + 97 ) ) FROM tab1 AS cor0 WHERE + col0 + - col2 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - - ( MIN ( DISTINCT + 97 ) ) FROM tab1 AS cor0 WHERE + col0 + - col2 IS NOT NULL
----
97

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + - 25 ) BETWEEN + ( + col0 ) AND 40
----
15
81
47

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

skipif mysql # not compatible
query I rowsort label-6732
SELECT + ( - CAST ( - 78 AS INTEGER ) ) FROM tab2
----
78
78
78

query I rowsort
SELECT ALL 81 * + col0 FROM tab0
----
1215
7047
7857

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

query II rowsort
SELECT ALL - col2 * - col2 AS col0, + col1 + + + col1 FROM tab1
----
3481
10
4624
94
9216
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col0, - col2 col2 FROM tab0
----
705
-47
870
-10
9603
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col2 ) col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col0 * + + ( - + col0 ) - + 7 FROM tab2 cor0 WHERE NOT NULL >= col0 / - - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT + MAX( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT 64 + - + col0 >= - + col1
----
97

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + MAX ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT 64 + - + col0 >= - + col1
----
97

query I rowsort
SELECT 50 * ( - - col0 ) FROM tab0 cor0
----
4350
4850
750

query II rowsort
SELECT + 2 AS col0, + 24 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to e33e929f3f6475edd69eda7265e03f82

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 68 IS NULL
----

query I rowsort
SELECT 2 * + 77 FROM tab0
----
154
154
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT CAST( NULL AS SIGNED ) + + - 14 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6745
SELECT CAST ( NULL AS INTEGER ) + + - 14 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - 69 AS col2, + 41 AS col1 FROM tab1
----
-69
41
-69
41
-69
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col2 + 82 FROM tab2
----
23
59
40
42
58
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT ALL + col0 DIV - - col0 + - col0 - + - 75 AS col0 FROM tab1
----
-15
-9
25

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL + col0 / - - col0 + - col0 - + - 75 AS col0 FROM tab1
----
-15
-9
25

query I rowsort
SELECT DISTINCT ( + col2 ) * + 51 FROM tab0 AS cor0
----
2397
5049
510

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT - 52 DIV + + 72 * + 49 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6754
SELECT - 52 / + + 72 * + 49 FROM tab2 cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * - + col1 col0 FROM tab1
----
-1092
-3666
-390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT DISTINCT 67 * + CAST( col2 AS SIGNED ) * + col2 FROM tab2
----
107200
225388
35443

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT 67 * + CAST ( col2 AS INTEGER ) * + col2 FROM tab2
----
107200
225388
35443

onlyif mysql # DIV for integer division: 
query I rowsort label-6758
SELECT - col0 DIV - + ( + + col2 ) FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6758
SELECT - col0 / - + ( + + col2 ) FROM tab0
----
0
0
8

query I rowsort
SELECT - 77 * - col0 + + col0 FROM tab0
----
1170
6786
7566

query II rowsort
SELECT ALL col2 * col2 - + col0 + - col0, col1 - + + 15 + - + col1 AS col2 FROM tab0 AS cor0
----
-74
-15
2179
-15
9607
-15

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

query I rowsort
SELECT ALL - col1 + col2 + col0 - + + 17 AS col2 FROM tab0 cor0
----
-36
178
59

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

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

query I rowsort
SELECT DISTINCT col1 + - 25 FROM tab2 AS cor0
----
26
42
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT - 54 - - + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-6765
SELECT - 54 - - + col0 / + col0 AS col1 FROM tab0 AS cor0
----
-53
-53
-53

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

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

skipif mysql # not compatible
query III rowsort label-6767
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - ( - 78 ) * - col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT + 44 DIV - 7 + + 35 AS col1 FROM tab1 cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-6768
SELECT + 44 / - 7 + + 35 AS col1 FROM tab1 cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6769
SELECT + col1 * - 82 * - CAST( NULL AS SIGNED ) AS col2, 26 * + - col1 col2 FROM tab0 cor0
----
NULL
-2106
NULL
-26
NULL
-546

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6769
SELECT + col1 * - 82 * - CAST ( NULL AS INTEGER ) AS col2, 26 * + - col1 col2 FROM tab0 cor0
----
NULL
-2106
NULL
-26
NULL
-546

onlyif mysql # DIV for integer division: 
query I rowsort label-6770
SELECT + 49 DIV col0 * + col0 AS col0 FROM tab0 AS cor0
----
0
0
45

skipif mysql # not compatible
query I rowsort label-6770
SELECT + 49 / col0 * + col0 AS col0 FROM tab0 AS cor0
----
0
0
45

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

skipif mysql # not compatible
query I rowsort label-6771
SELECT - col1 / + 83 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6773
SELECT + 53 col2, 64 * + CAST( - col1 AS SIGNED ) * - 60 * + col2 AS col2 FROM tab0
----
53
14618880
53
380160
53
806400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6773
SELECT + 53 col2, 64 * + CAST ( - col1 AS INTEGER ) * - 60 * + col2 AS col2 FROM tab0
----
53
14618880
53
380160
53
806400

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT ALL - 14 DIV 52 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - 14 / 52 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - ( + + 67 ) FROM tab1
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL - MIN( ALL 90 ) AS col1 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL - MIN ( ALL 90 ) AS col1 FROM tab0
----
-90

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL SUM( DISTINCT 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL SUM ( DISTINCT 17 ) FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT DISTINCT + 86 * + MAX( + - 22 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT DISTINCT + 86 * + MAX ( + - 22 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----
NULL

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

query I rowsort
SELECT - 62 + - + col0 FROM tab1 AS cor0
----
-113
-147
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT - + CAST( NULL AS SIGNED ) * + col1 * - col0 + + - 22 * col0 AS col1 FROM tab1 AS cor0 WHERE col2 * - 88 * - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-6786
SELECT - + CAST ( NULL AS INTEGER ) * + col1 * - col0 + + - 22 * col0 AS col1 FROM tab1 AS cor0 WHERE col2 * - 88 * - col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + - col1 NOT IN ( - col1 + 62 * col1 * col0 ) )
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6790
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 * col1 + - + CAST( - col2 AS DECIMAL ) + - col1 * + col2 * - col1 + - col1 / col1 + 43
----

skipif mysql # not compatible
query III rowsort label-6790
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 * col1 + - + CAST ( - col2 AS REAL ) + - col1 * + col2 * - col1 + - col1 / col1 + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT ( + + COUNT( * ) ) + + + MIN( + col0 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT ( + + COUNT ( * ) ) + + + MIN ( + col0 ) FROM tab0 AS cor0
----
18

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

query I rowsort
SELECT col1 + - 66 AS col2 FROM tab1 AS cor0
----
-19
-52
-61

query II rowsort
SELECT DISTINCT col2 AS col1, + ( col1 ) + ( - col1 ) FROM tab1
----
59
0
68
0
96
0

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

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

query I rowsort
SELECT 47 * - 53 AS col0 FROM tab2
----
-2491
-2491
-2491

query I rowsort
SELECT col1 * - + col1 * - + col2 AS col0 FROM tab0
----
308367
4410
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT 88 DIV 66 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6798
SELECT 88 / 66 AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT COUNT( * ) * + 28 AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-6799
SELECT COUNT ( * ) * + 28 AS col2 FROM tab0
----
84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - + 29 NOT BETWEEN + + col2 + 40 + + col1 * - - 19 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 63 * + col2 AS col2 FROM tab2 WHERE - col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6802
SELECT - 84 - COUNT( * ) + - 34 DIV - - 7 + - 9 + 79 AS col1 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-6802
SELECT - 84 - COUNT ( * ) + - 34 / - - 7 + - 9 + 79 AS col1 FROM tab1 AS cor0
----
-21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - + 65 IN ( - col0 * + - col1 + + - 0, ( + col0 ) * + col0, col2 - - col0, + col1 * - - col2 * + ( + - col0 ) + - + col1 / - - 86, - col1 * col2 )
----

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - + 65 IN ( - col0 * + - col1 + + - 0, ( + col0 ) * + col0, col2 - - col0, + col1 * - - col2 * + ( + - col0 ) + - + col1 / - - 86, - col1 * col2 )
----

query I rowsort
SELECT - col2 + + col1 + col1 FROM tab0
----
-97
115
32

query I rowsort
SELECT ALL + 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT 68 * - COUNT( * ) FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT 68 * - COUNT ( * ) FROM tab2
----
-204

query I rowsort
SELECT DISTINCT - col2 * 25 FROM tab2
----
-1000
-1450
-575

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 76 - + 13 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 27 ) FROM tab2
----
27

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6820
SELECT ALL + col0 DIV col2 * col1 DIV - col1 AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + col0 / col2 * col1 / - col1 AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-1
-1
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT MIN( + + col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6822
SELECT MIN ( + + col1 ) col0 FROM tab1
----
5

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6826
SELECT + + col2 col2 FROM tab2 AS cor0 WHERE NOT 58 + - ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

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

query I rowsort
SELECT - 87 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

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

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

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

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT + col2 * - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-100
-2209
-9801

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 77 = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL - COUNT( + col1 ) + + 14 * - - 98 FROM tab1 AS cor0
----
1369

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - COUNT ( + col1 ) + + 14 * - - 98 FROM tab1 AS cor0
----
1369

query I rowsort
SELECT ALL - - 21 AS col2 FROM tab2 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT - 75 * + 70 - COUNT( * ) DIV - 7 AS col0 FROM tab2
----
-5250

skipif mysql # not compatible
query I rowsort label-6835
SELECT - 75 * + 70 - COUNT ( * ) / - 7 AS col0 FROM tab2
----
-5250

query I rowsort
SELECT + 10 FROM tab0 WHERE NULL = + col2 + - + 83
----

query I rowsort
SELECT ALL + col1 * 44 AS col1 FROM tab0
----
3564
44
924

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT DISTINCT - 42 DIV + + col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT - 42 / + + col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 cor0 WHERE NOT + 98 * col0 = - 62
----
-46
-64
-75

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

query I rowsort
SELECT - col0 * - 86 FROM tab2 cor0
----
3956
5504
6450

query I rowsort
SELECT + 23 AS col2 FROM tab0 cor0
----
23
23
23

query I rowsort
SELECT col1 * col1 + - 14 + - 80 FROM tab1 cor0
----
-69
102
2115

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

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - - col1 / - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT 90 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
5251
6052
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT - - col1 DIV ( + 67 ) FROM tab0 AS cor0
----
0
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT MIN( DISTINCT + ( + - 61 ) ) FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-6848
SELECT MIN ( DISTINCT + ( + - 61 ) ) FROM tab1
----
-61

query II rowsort
SELECT ALL + ( col2 ) AS col0, col1 AS col2 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT DISTINCT + COUNT( * ) * + 46 AS col0 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT + COUNT ( * ) * + 46 AS col0 FROM tab1
----
138

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * col0 / + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT - - 64 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-6852
SELECT - - 64 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
192

query I rowsort
SELECT + col2 * 52 FROM tab0
----
2444
5148
520

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

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

query I rowsort
SELECT ALL + ( + - col0 ) + col1 - col2 AS col0 FROM tab0 AS cor0
----
-195
-76
19

query I rowsort
SELECT ALL - + col2 + + + 4 + + col1 FROM tab2 AS cor0
----
13
32
41

query I rowsort
SELECT 71 + - - col2 FROM tab2 AS cor0
----
111
129
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - col1 NOT IN ( - 40, ( - 44 ) / + - 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT + 65 + - ( col1 ) FROM tab1 AS cor0
----
18
51
60

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

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

query I rowsort
SELECT ALL 56 * - col1 FROM tab2
----
-2856
-3752
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT DISTINCT MAX( ALL - ( - ( + col0 ) ) ) * 61 FROM tab1
----
5551

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT MAX ( ALL - ( - ( + col0 ) ) ) * 61 FROM tab1
----
5551

query II rowsort
SELECT DISTINCT - 49, col0 AS col0 FROM tab0
----
-49
15
-49
87
-49
97

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6867
SELECT - col0 - - - col2 AS col2, 37 DIV col2 - - 63 AS col1 FROM tab0
----
-196
63
-62
63
-97
66

skipif mysql # not compatible
query II rowsort label-6867
SELECT - col0 - - - col2 AS col2, 37 / col2 - - 63 AS col1 FROM tab0
----
-196
63
-62
63
-97
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6868
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * - 77 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6868
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * - 77 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col2 FROM tab1 AS cor0 WHERE + 97 IS NOT NULL
----
85

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

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

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

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

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

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT + 85 * col2 <> - 68
----

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

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

query I rowsort
SELECT DISTINCT + - col2 * - col1 * + + ( - col1 ) * 16 AS col0 FROM tab2 AS cor0
----
-3794560
-4165792
-957168

query I rowsort
SELECT col1 * + 54 FROM tab0
----
1134
4374
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT MAX( + - 16 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-6879
SELECT MAX ( + - 16 ) FROM tab1
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 0 * col1 + + ( + col0 ) / + 79 col0 FROM tab2 AS cor0 WHERE - col0 >= NULL
----

query I rowsort
SELECT - 3 + - col0 + - - col2 + + col2 + col1 * + col0 - - - col2 AS col1 FROM tab2 cor0
----
2320
4901
5005

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

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

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 78 * 28 NOT BETWEEN - col0 / + col0 AND ( col0 )
----

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

query I rowsort
SELECT DISTINCT - 73 * + col2 FROM tab0
----
-3431
-7227
-730

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6888
SELECT ALL CAST( NULL AS DECIMAL ) * 71 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL CAST ( NULL AS REAL ) * 71 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - col1 * - 89 AS col0 FROM tab1 WHERE NOT NULL >= ( col1 )
----

query I rowsort
SELECT ALL - col2 * - 53 AS col0 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT col2 = NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT col1 - col2 DIV + col1 AS col0 FROM tab1
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-6895
SELECT col1 - col2 / + col1 AS col0 FROM tab1
----
-6
46
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6896
SELECT 97 DIV ( COUNT( * ) ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-6896
SELECT 97 / ( COUNT ( * ) ) FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT 34 - - MAX( DISTINCT col2 ) FROM tab0
----
133

skipif mysql # not compatible
query I rowsort label-6897
SELECT 34 - - MAX ( DISTINCT col2 ) FROM tab0
----
133

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

skipif mysql # not compatible
query I rowsort label-6898
SELECT 3 / - COUNT ( * ) FROM tab1
----
-1

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

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

query I rowsort
SELECT col1 + col2 * ( col2 ) AS col1 FROM tab0
----
121
2290
9802

query I rowsort
SELECT - 32 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-32
-32
-32

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

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

query I rowsort
SELECT DISTINCT - 8 FROM tab0 WHERE ( NULL ) IS NULL
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT + MIN( col1 ) * 42 AS col2 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-6905
SELECT + MIN ( col1 ) * 42 AS col2 FROM tab1
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT - 28 * COUNT( + 72 / CAST( - 84 * - col2 AS SIGNED ) ) - MAX( - col1 ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-6906
SELECT - 28 * COUNT ( + 72 / CAST ( - 84 * - col2 AS INTEGER ) ) - MAX ( - col1 ) FROM tab1
----
-79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 + + 95 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 + + 95 IS NULL
----
3

query I rowsort
SELECT DISTINCT - 63 * + 87 FROM tab1 AS cor0
----
-5481

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT ( col2 ) DIV 61 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT ( col2 ) / 61 FROM tab1
----
0
1

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

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

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

query I rowsort
SELECT + + 97 * col1 FROM tab1 AS cor0
----
1358
4559
485

query I rowsort
SELECT + + 3 AS col1 FROM tab2 cor0
----
3
3
3

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

skipif mysql # not compatible
query I rowsort label-6916
SELECT + + 43 * + MIN ( ALL col1 * CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT - 40 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-6918
SELECT - 40 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + - COUNT( ALL + 78 ) * 45 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6920
SELECT + - COUNT ( ALL + 78 ) * 45 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT ALL + col0 + 65 AS col2 FROM tab2 AS cor0
----
111
129
140

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT DISTINCT - + col2 DIV - 5 FROM tab1 AS cor0
----
11
13
19

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT - + col2 / - 5 FROM tab1 AS cor0
----
11
13
19

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

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

query I rowsort
SELECT + 20 / + col2 - col0 / col0 FROM tab2 WHERE NOT ( NULL ) IN ( col0 )
----

query I rowsort
SELECT ALL ( - col2 ) + + 96 FROM tab0
----
-3
49
86

query I rowsort
SELECT - 52 FROM tab2 AS cor0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ALL + + 47 + 47 * + col1 FROM tab1 AS cor0
----
2256
282
705

query I rowsort
SELECT 19 + + col0 FROM tab1 WHERE 99 NOT BETWEEN NULL AND 14
----
104
110
70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT - + 70 DIV - col1 + - col1 - col0 FROM tab2 AS cor0
----
-141
-141
-96

skipif mysql # not compatible
query I rowsort label-6931
SELECT - + 70 / - col1 + - col1 - col0 FROM tab2 AS cor0
----
-141
-141
-96

query II rowsort
SELECT ALL - 58 AS col0, + 46 + 19 FROM tab1 AS cor0
----
-58
65
-58
65
-58
65

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

query I rowsort
SELECT + 43 * 3 + - 4 FROM tab2 AS cor0
----
125
125
125

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

query I rowsort
SELECT ALL + 19 + 54 AS col0 FROM tab1 AS cor0
----
73
73
73

query II rowsort
SELECT col1 AS col1, ( - + col2 ) + 22 AS col2 FROM tab1 AS cor0
----
14
-74
47
-46
5
-37

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

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

query I rowsort
SELECT - col2 * col2 + col1 FROM tab0 cor0 WHERE - col0 IN ( + col0 )
----

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

query I rowsort
SELECT ALL + col0 - + 78 FROM tab2
----
-14
-3
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6942
SELECT CAST( - + col1 AS SIGNED ), - col0 AS col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

skipif mysql # not compatible
query II rowsort label-6942
SELECT CAST ( - + col1 AS INTEGER ), - col0 AS col0 FROM tab0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT col2 + + CAST( 27 + col1 AS SIGNED ) FROM tab1 WHERE NOT - col1 * - - col0 + + 46 IS NULL
----
137
142
91

skipif mysql # not compatible
query I rowsort label-6943
SELECT col2 + + CAST ( 27 + col1 AS INTEGER ) FROM tab1 WHERE NOT - col1 * - - col0 + + 46 IS NULL
----
137
142
91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 88 col1 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT ALL 82 FROM tab0 WHERE + col1 + + col2 + - col2 / - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col0 FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 10 col2 FROM tab2
----
460
640
750

query I rowsort
SELECT ALL - + 78 AS col1 FROM tab1 cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6950
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - 78 > col2 * CAST( - col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6950
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - 78 > col2 * CAST ( - col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 AS col0 FROM tab2 cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-2295
-4851
-4958

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT - SUM( - 72 ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-6954
SELECT - SUM ( - 72 ) FROM tab0
----
216

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 71 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( - - ( + 23 ) )
----

query I rowsort
SELECT ALL + - 9 * + col1 AS col0 FROM tab0 AS cor0
----
-189
-729
-9

query I rowsort
SELECT DISTINCT + + 4 * - - col2 + 15 - - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 37 NOT BETWEEN NULL AND - + 31
----

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

query I rowsort
SELECT ALL - col1 + - + ( - 82 ) AS col2 FROM tab0 AS cor0
----
1
61
81

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

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

query I rowsort
SELECT ALL - 12 * + 77 FROM tab2 AS cor0
----
-924
-924
-924

query I rowsort
SELECT + col1 * + + ( col2 ) FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) * + 60 + + + COUNT( * ) AS col2 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-6967
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) * + 60 + + + COUNT ( * ) AS col2 FROM tab0
----
183

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

query I rowsort
SELECT + 36 * - - col0 AS col2 FROM tab0
----
3132
3492
540

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT - MAX( - col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - MAX ( - col1 ) AS col1 FROM tab2
----
51

query I rowsort
SELECT col1 * + - col0 * - - col2 + + 48 - - 87 AS col1 FROM tab2
----
-196985
-291315
-53823

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE ( + col2 + - col1 ) IS NOT NULL
----
46
64
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL SUM( DISTINCT - col2 ) - - + MAX( col2 ) + COUNT( * ) + - COUNT( * ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL SUM ( DISTINCT - col2 ) - - + MAX ( col2 ) + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-63

query II rowsort
SELECT DISTINCT + col0 * + + 35 AS col0, 11 AS col1 FROM tab2 cor0
----
1610
11
2240
11
2625
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT - - SUM( + - ( + col2 ) ) - - 65 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6978
SELECT - - SUM ( + - ( + col2 ) ) - - 65 FROM tab2 AS cor0
----
-56

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

query II rowsort
SELECT - + col2 - + - ( col1 ) AS col0, col1 + + col0 FROM tab2 AS cor0
----
28
97
37
141
9
142

query I rowsort
SELECT + + 94 FROM tab0 AS cor0 WHERE NULL NOT IN ( + ( + + 21 ), 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT + 8 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6982
SELECT + 8 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT - 59, ( - MAX( - + col1 ) ) + 72 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
123

skipif mysql # not compatible
query II rowsort label-6984
SELECT - 59, ( - MAX ( - + col1 ) ) + 72 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
123

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

skipif mysql # not compatible
query I rowsort label-6985
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 14, + col2 * col0 * - col2 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT SUM( DISTINCT ( col0 ) ) * - 52 AS col1 FROM tab2 WHERE NOT + - ( - col2 ) BETWEEN ( - col2 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT SUM ( DISTINCT ( col0 ) ) * - 52 AS col1 FROM tab2 WHERE NOT + - ( - col2 ) BETWEEN ( - col2 ) AND ( NULL )
----
NULL

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

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

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

query I rowsort
SELECT 8 * 66 AS col1 FROM tab0
----
528
528
528

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT 4 * - MIN( - + col2 ) FROM tab0 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-6993
SELECT 4 * - MIN ( - + col2 ) FROM tab0 AS cor0
----
396

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

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

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

query I rowsort
SELECT 5 * - col0 AS col0 FROM tab2
----
-230
-320
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6998
SELECT DISTINCT - 15 * + + ( + + CAST( + + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-135

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT - 15 * + + ( + + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT DISTINCT - COUNT( * ) * + - MIN( 19 ) * + - 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-13851

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT - COUNT ( * ) * + - MIN ( 19 ) * + - 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-13851

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7001
SELECT * FROM tab2 WHERE NOT - - 82 <= + ( CAST( - + 65 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7001
SELECT * FROM tab2 WHERE NOT - - 82 <= + ( CAST ( - + 65 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT ( - 36 ), + col0 FROM tab1
----
-36
51
-36
85
-36
91

query I rowsort
SELECT + col1 + col0 + - 50 AS col1 FROM tab2 AS cor0
----
47
91
92

query I rowsort
SELECT + - col1 + - + 77 FROM tab0 AS cor0
----
-158
-78
-98

query I rowsort
SELECT + 37 * - 25 * col1 * + 68 + + col2 AS col2 FROM tab2 AS cor0
----
-3207877
-4214242
-4843260

query I rowsort
SELECT + col2 * col0 + - col1 * - col0 FROM tab2 AS cor0
----
3404
7488
9375

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT + + COUNT( * ) * + 93 + - - COUNT( * ) * - - 10 FROM tab1 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-7008
SELECT + + COUNT ( * ) * + 93 + - - COUNT ( * ) * - - 10 FROM tab1 AS cor0
----
309

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7009
SELECT ALL * FROM tab0 WHERE NOT - col1 * + + ( col1 ) * - 36 + - col2 + CAST( + CAST( - - col2 AS DECIMAL ) AS SIGNED ) * col0 BETWEEN ( - col0 ) AND ( + col2 + 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7009
SELECT ALL * FROM tab0 WHERE NOT - col1 * + + ( col1 ) * - 36 + - col2 + CAST ( + CAST ( - - col2 AS REAL ) AS INTEGER ) * col0 BETWEEN ( - col0 ) AND ( + col2 + 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + COUNT( * ) * 21 AS col2 FROM tab2 WHERE NULL BETWEEN - + col0 AND - - 15
----
0

skipif mysql # not compatible
query I rowsort label-7010
SELECT + COUNT ( * ) * 21 AS col2 FROM tab2 WHERE NULL BETWEEN - + col0 AND - - 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT ALL ( + 28 ) * - + MAX( - + 56 ) AS col2 FROM tab0
----
1568

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL ( + 28 ) * - + MAX ( - + 56 ) AS col2 FROM tab0
----
1568

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7013
SELECT DISTINCT - + col2 + - col1 + - col1 DIV - col2 FROM tab0 AS cor0
----
-100
-127
-29

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - + col2 + - col1 + - col1 / - col2 FROM tab0 AS cor0
----
-100
-127
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT - col2 * col0 * - col1 - - 75 - - CAST( NULL AS SIGNED ) * - 28 - + col0 + 66 - + 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT - col2 * col0 * - col1 - - 75 - - CAST ( NULL AS INTEGER ) * - 28 - + col0 + 66 - + 18 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7015
SELECT ALL - MAX( ALL col0 ) DIV + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - MAX ( ALL col0 ) / + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-35

query I rowsort
SELECT ALL 40 * - 61 AS col1 FROM tab0 AS cor0
----
-2440
-2440
-2440

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT DISTINCT - 84 * + - COUNT( col1 ) FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT - 84 * + - COUNT ( col1 ) FROM tab1
----
252

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

query I rowsort
SELECT DISTINCT + col2 * - 74 + + - 69 FROM tab0 AS cor0
----
-3547
-7395
-809

query II rowsort
SELECT col1 AS col2, 32 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
32
21
32
81
32

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + col2 col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

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

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

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

query I rowsort
SELECT DISTINCT - ( - - 70 ) * - 91 + + col0 FROM tab2
----
6416
6434
6445

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

query I rowsort
SELECT - 29 * - col2 FROM tab0 WHERE NOT ( - + col2 * - col1 ) IS NULL
----
1363
2871
290

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT + 83 * 38 DIV - 68 AS col1 FROM tab0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-7029
SELECT + 83 * 38 / - 68 AS col1 FROM tab0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7030
SELECT - COUNT( * ) * - 11 AS col1, - MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
33
-99

skipif mysql # not compatible
query II rowsort label-7030
SELECT - COUNT ( * ) * - 11 AS col1, - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
33
-99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7031
SELECT - COUNT ( * ) * + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7033
SELECT + 56 + CAST( - col0 AS SIGNED ) AS col1, - col1 AS col0 FROM tab1
----
-29
-5
-35
-47
5
-14

skipif mysql # not compatible
query II rowsort label-7033
SELECT + 56 + CAST ( - col0 AS INTEGER ) AS col1, - col1 AS col0 FROM tab1
----
-29
-5
-35
-47
5
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT 66 + + MIN( + - 84 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-7034
SELECT 66 + + MIN ( + - 84 ) FROM tab0
----
-18

query I rowsort
SELECT DISTINCT - + col2 * col2 + - col1 + + ( + ( - 91 ) ) AS col2 FROM tab0 AS cor0
----
-212
-2381
-9893

query II rowsort
SELECT DISTINCT - col2 AS col0, - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - + col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - - col2 * + 47 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - 54 * + col1 FROM tab2 cor0
----
-2754
-3618
-4158

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT + col1 + col2 DIV - + col1 AS col2 FROM tab1
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-7040
SELECT + col1 + col2 / - + col1 AS col2 FROM tab1
----
-6
46
8

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 IN ( + + col1 ) OR NOT ( NULL NOT IN ( ( + ( col1 ) ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 82 ) + - col2 FROM tab2
----
24
42
59

query II rowsort
SELECT col1 + + - 95, + col0 AS col2 FROM tab2
----
-18
64
-28
75
-44
46

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

query I rowsort
SELECT DISTINCT col0 + + + col1 + - col2 AS col1 FROM tab0
----
-1
49
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 NOT IN ( - - 89 + 46, col0 * - 72 / - - col0, ( - - col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 + + col1 col0 FROM tab1 AS cor0
----
101
134
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 1 = NULL
----

query I rowsort
SELECT ALL - - col2 - - ( col2 ) FROM tab1 AS cor0
----
118
136
192

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

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

query I rowsort
SELECT DISTINCT col0 - - col2 * - + col2 * + + 45 FROM tab1
----
-156560
-207989
-414669

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT COUNT( * ) col0 FROM tab1 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-7052
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT COUNT( - 27 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7053
SELECT COUNT ( - 27 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

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

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

query I rowsort
SELECT ALL 78 * - 16 FROM tab1 AS cor0
----
-1248
-1248
-1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7059
SELECT + MAX( ALL - + col2 ) DIV - MIN( - + 99 ) + 94 FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-7059
SELECT + MAX ( ALL - + col2 ) / - MIN ( - + 99 ) + 94 FROM tab1 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT DISTINCT CAST( + 78 AS SIGNED ) * + col2 FROM tab0
----
3666
7722
780

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT CAST ( + 78 AS INTEGER ) * + col2 FROM tab0
----
3666
7722
780

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT 59 DIV - + ( col1 ) AS col0 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-7061
SELECT 59 / - + ( col1 ) AS col0 FROM tab1
----
-1
-11
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col1 AS col0, - col0 col2 FROM tab2
----
-2346
-46
-4928
-64
-5025
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7063
SELECT DISTINCT ( - col2 ) DIV col1 DIV col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT ( - col2 ) / col1 / col1 AS col2 FROM tab2
----
0

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

skipif mysql # not compatible
query I rowsort label-7064
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT ( 95 ) FROM tab0
----
95
95
95

query I rowsort
SELECT + 57 + + 59 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 94 * col2 * - + col0 AS col0 FROM tab1
----
-460224
-471410
-581672

query I rowsort
SELECT ALL + + col2 + - col2 AS col0 FROM tab2 WHERE NOT NULL <= col1 * - col1
----

query I rowsort
SELECT ALL 81 * + + col1 FROM tab2
----
4131
5427
6237

query II rowsort
SELECT ALL - 8 AS col0, col2 + + 1 AS col1 FROM tab0
----
-8
100
-8
11
-8
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7072
SELECT - ( col2 ) * col0 * - - col1 DIV col1 * - col0 AS col1 FROM tab0
----
10575
75690
931491

skipif mysql # not compatible
query I rowsort label-7072
SELECT - ( col2 ) * col0 * - - col1 / col1 * - col0 AS col1 FROM tab0
----
10575
75690
931491

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + ( + - 21 ) - + col2 + + + col1 NOT BETWEEN + 19 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * 3 * - - col1 AS col0 FROM tab0 WHERE NOT col1 IS NULL
----
-291
-3645
-5481

query I rowsort
SELECT + - col1 * - col2 + 8 AS col2 FROM tab0 AS cor0
----
107
218
3815

query I rowsort
SELECT DISTINCT - + ( + col2 ) + - - col1 + 93 AS col1 FROM tab0 AS cor0
----
-5
104
127

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

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

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

query I rowsort
SELECT + col1 + col2 - - - 11 * - - col1 FROM tab0 AS cor0
----
-200
-763
89

query I rowsort
SELECT col2 + 35 - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> ( col0 + - - col0 + + col2 + col1 / + 46 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE - 8 * col0 / 24 / 55 + - 86 <> - col0
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7082
SELECT - col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT - col0 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7084
SELECT ALL - 86 - + col1 + col0 AS col1, + col2 DIV col2 AS col2 FROM tab2
----
-78
1
-91
1
-99
1

skipif mysql # not compatible
query II rowsort label-7084
SELECT ALL - 86 - + col1 + col0 AS col1, + col2 / col2 AS col2 FROM tab2
----
-78
1
-91
1
-99
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT - COUNT( * ) col1 FROM tab0 WHERE NULL NOT IN ( + CAST( ( 6 ) AS SIGNED ), col1, + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ), + 60 * - - 40 + 49 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7087
SELECT - COUNT ( * ) col1 FROM tab0 WHERE NULL NOT IN ( + CAST ( ( 6 ) AS INTEGER ), col1, + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ), + 60 * - - 40 + 49 )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT + + 20 * - col0 - - - col1 + + 60 + - - col0 + + 88 DIV col2 FROM tab0 cor0
----
-1606
-1784
-305

skipif mysql # not compatible
query I rowsort label-7090
SELECT + + 20 * - col0 - - - col1 + + 60 + - - col0 + + 88 / col2 FROM tab0 cor0
----
-1606
-1784
-305

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7091
SELECT * FROM tab1 AS cor0 WHERE 4 * + CAST( col2 AS SIGNED ) <= - + col1 / + + ( col0 ) * + col1 * + - 7
----

skipif mysql # not compatible
query III rowsort label-7091
SELECT * FROM tab1 AS cor0 WHERE 4 * + CAST ( col2 AS INTEGER ) <= - + col1 / + + ( col0 ) * + col1 * + - 7
----

query II rowsort
SELECT ( - 90 ), col1 AS col1 FROM tab2
----
-90
51
-90
67
-90
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7093
SELECT + ( - CAST( NULL AS SIGNED ) ) col0, + 50 AS col2 FROM tab0
----
NULL
50
NULL
50
NULL
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT MIN( ALL col1 ) * - + COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7094
SELECT MIN ( ALL col1 ) * - + COUNT ( * ) FROM tab1
----
-15

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

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

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

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

query I rowsort
SELECT col2 * - - col2 - - 57 AS col2 FROM tab0 AS cor0
----
157
2266
9858

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 33, + 39 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7104
SELECT ALL + 34 * col0 DIV + 1 AS col1, col0 AS col0 FROM tab1
----
1734
51
2890
85
3094
91

skipif mysql # not compatible
query II rowsort label-7104
SELECT ALL + 34 * col0 / + 1 AS col1, col0 AS col0 FROM tab1
----
1734
51
2890
85
3094
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col2 + + + 50 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 40 * 55 * + ( - col1 ) FROM tab0
----
178200
2200
46200

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT + 44 DIV + + col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7108
SELECT + 44 / + + col0 FROM tab0
----
0
0
2

query II rowsort
SELECT DISTINCT 75 AS col0, - 39 - + col2 AS col0 FROM tab0
----
75
-138
75
-49
75
-86

query I rowsort
SELECT ALL - col2 + - col1 * - - col2 FROM tab0 AS cor0
----
-198
-220
-3854

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

skipif mysql # not compatible
query I rowsort label-7111
SELECT + + ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0 WHERE col0 / - ( col2 ) * + 40 * - col1 IS NOT NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT 8 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

query I rowsort
SELECT ALL ( + 0 ) AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT + col2 * - 28 AS col0, - col1 AS col1 FROM tab1
----
-1652
-5
-1904
-47
-2688
-14

query I rowsort
SELECT ALL - 56 + 68 FROM tab2
----
12
12
12

query II rowsort
SELECT ALL col1, - col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * col0 * 5 < + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL + + 55 + + - COUNT( * ) + - - 49 col2 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7120
SELECT ALL + + 55 + + - COUNT ( * ) + - - 49 col2 FROM tab2 AS cor0
----
101

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

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

query I rowsort
SELECT ALL - col2 * + - 74 + - col2 AS col2 FROM tab2 AS cor0
----
1679
2920
4234

query I rowsort
SELECT ALL - 93 + - col2 * 19 AS col1 FROM tab2 cor0
----
-1195
-530
-853

query I rowsort
SELECT ALL - - col2 - - - 66 FROM tab1 cor0
----
-7
2
30

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 - - 93 AS col2 FROM tab2
----
144
160
170

query I rowsort
SELECT ALL + 48 + - 41 + - 47 FROM tab0 AS cor0
----
-40
-40
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT COUNT( ALL - 20 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7132
SELECT COUNT ( ALL - 20 ) AS col2 FROM tab2 AS cor0
----
3

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

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT - SUM ( 3 ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL MAX( DISTINCT 53 ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL MAX ( DISTINCT 53 ) FROM tab1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT DISTINCT SUM( - 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7135
SELECT DISTINCT SUM ( - 16 ) FROM tab1
----
-48

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

query I rowsort
SELECT ALL + - col0 * - + col0 + + col2 FROM tab2 AS cor0
----
2139
4136
5683

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT col0 * col2 DIV - + col1 AS col0 FROM tab1 cor0
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-7138
SELECT col0 * col2 / - + col1 AS col0 FROM tab1 cor0
----
-1003
-131
-349

query II rowsort
SELECT DISTINCT + + 23 AS col0, + 80 FROM tab2 AS cor0
----
23
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT + 85 * + col2 AS col0 FROM tab2 WHERE NOT ( NULL >= + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7141
SELECT + 85 * + col2 AS col0 FROM tab2 WHERE NOT ( NULL >= + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT MAX( DISTINCT - 67 ) + - - COUNT( * ) + 70 + - 4 * - 58 FROM tab1
----
238

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT MAX ( DISTINCT - 67 ) + - - COUNT ( * ) + 70 + - 4 * - 58 FROM tab1
----
238

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL + 4 + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + 4 + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT col2 + + - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT + - 44 + - MIN( ALL 43 ) * 59 AS col2 FROM tab1 AS cor0
----
-2581

skipif mysql # not compatible
query I rowsort label-7146
SELECT + - 44 + - MIN ( ALL 43 ) * 59 AS col2 FROM tab1 AS cor0
----
-2581

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT IN ( - - col1, - 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 17 ) - - 70 * - col2 < + col2 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + 70 col2 FROM tab0 cor0
----
-11
49
69

query I rowsort
SELECT ALL col2 - - + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + 64 * + col1 AS col1 FROM tab2 AS cor0 WHERE col1 + + col1 * - + col0 + col1 * 11 * - ( + col1 ) / + col0 IS NOT NULL
----
3264
4288
4928

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

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

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

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

query II rowsort
SELECT + col2 AS col2, + col1 + - - col2 AS col1 FROM tab0
----
10
31
47
128
99
100

query I rowsort
SELECT DISTINCT 78 - - 78 - + col1 FROM tab2
----
105
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT DISTINCT + MIN( DISTINCT - + 24 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT + MIN ( DISTINCT - + 24 ) FROM tab1
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-7158
SELECT col0 DIV + - 71 col0, col0 * - col1 FROM tab1
----
-1
-425
-1
-4277
0
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7158
SELECT col0 / + - 71 col0, col0 * - col1 FROM tab1
----
-1
-425
-1
-4277
0
-714

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

query II rowsort
SELECT + + 51 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
51
-14
51
-47
51
-5

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

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

query I rowsort
SELECT ALL - 39 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL + MIN ( DISTINCT - 96 ) FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-7164
SELECT ALL col0 DIV - col2, + col1 AS col1 FROM tab0
----
-8
21
0
1
0
81

skipif mysql # not compatible
query II rowsort label-7164
SELECT ALL col0 / - col2, + col1 AS col1 FROM tab0
----
-8
21
0
1
0
81

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND + - 51 / + + col1
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 58 <> NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, + 21 FROM tab2
----
46
21
64
21
75
21

query I rowsort
SELECT DISTINCT - col1 * - - 52 AS col0 FROM tab1
----
-2444
-260
-728

query I rowsort
SELECT 21 * col1 AS col0 FROM tab1
----
105
294
987

query I rowsort
SELECT 44 * - 44 AS col2 FROM tab0
----
-1936
-1936
-1936

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

query I rowsort
SELECT col2 + col0 * + 46 FROM tab2
----
2139
2984
3508

query II rowsort
SELECT DISTINCT col0, 45 FROM tab0
----
15
45
87
45
97
45

query I rowsort
SELECT col1 + + 30 + + col1 FROM tab1
----
124
40
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT + 75 + - COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7178
SELECT + 75 + - COUNT ( * ) FROM tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT + + col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + - 58 + - - col2 AS col1 FROM tab0 AS cor0
----
-11
-48
41

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

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

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

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

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

query II rowsort
SELECT - - 87 - - + 12 + - - 59 + + - col1, col2 AS col2 FROM tab2 AS cor0
----
107
23
81
40
91
58

query II rowsort
SELECT ALL + - col1 + + + col0 * + - 49 * - col0 AS col1, ( - + col0 ) AS col0 FROM tab1 AS cor0
----
127435
-51
354020
-85
405722
-91

query I rowsort
SELECT 48 - - col1 AS col1 FROM tab1 AS cor0
----
53
62
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL + COUNT( * ) + 74 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL + COUNT ( * ) + 74 FROM tab1 AS cor0
----
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT + 75 + - + COUNT( * ) col0, + 87 * COUNT( * ) col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
72
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7189
SELECT + 75 + - + COUNT ( * ) col0, + 87 * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
72
261

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT DISTINCT + 14 + - CAST( + 27 AS SIGNED ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + 14 + - CAST ( + 27 AS INTEGER ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ALL col2 + + col0 * + - col1 * 88 FROM tab0 AS cor0
----
-106873
-160766
-8437

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

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( ( col0 - + col0 IS NULL ) )
----

query I rowsort
SELECT 94 + - + col2 - + 40 * - + 98 AS col2 FROM tab0
----
3915
3967
4004

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT DISTINCT - ( + 59 ) DIV - - 58 + + - col1 * 82 FROM tab0
----
-1723
-6643
-83

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - ( + 59 ) / - - 58 + + - col1 * 82 FROM tab0
----
-1723
-6643
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7196
SELECT + COUNT( * ) FROM tab0 WHERE NOT + 80 = - CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL ) * + - col2
----
0

skipif mysql # not compatible
query I rowsort label-7196
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + 80 = - CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL ) * + - col2
----
0

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

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

query I rowsort
SELECT + - col1 + - col2 FROM tab0 WHERE NOT 99 < - - col2
----
-100
-128
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT - col0 + - 82 FROM tab2 cor0
----
-128
-146
-157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL 98 + - + SUM( ALL col2 ) FROM tab1 AS cor0
----
-125

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL 98 + - + SUM ( ALL col2 ) FROM tab1 AS cor0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT + 88 + - COUNT( * ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7204
SELECT + 88 + - COUNT ( * ) FROM tab2 AS cor0
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-7205
SELECT DISTINCT col1 DIV - - col1 AS col1, + 23 * + col2 FROM tab2
----
1
1334
1
529
1
920

skipif mysql # not compatible
query II rowsort label-7205
SELECT DISTINCT col1 / - - col1 AS col1, + 23 * + col2 FROM tab2
----
1
1334
1
529
1
920

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT MAX( ALL col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7206
SELECT MAX ( ALL col2 ) FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 IN ( - - 52 ) AND NOT NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 71 <= 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT - col1 * - - col1 FROM tab1 AS cor0
----
-196
-2209
-25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT ALL CAST( - col1 AS SIGNED ) * + + 56 + + - col2 FROM tab1
----
-2700
-339
-880

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL CAST ( - col1 AS INTEGER ) * + + 56 + + - col2 FROM tab1
----
-2700
-339
-880

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 * - 63 col1 FROM tab2
----
-161280
-274050
-66654

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7221
SELECT - COUNT( * ) DIV + 22 * 50 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT - COUNT ( * ) / + 22 * 50 AS col0 FROM tab2
----
0

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

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

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

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

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

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

query I rowsort
SELECT + 72 + + col2 FROM tab1
----
131
140
168

query I rowsort
SELECT ALL + col0 + + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

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

query II rowsort
SELECT + + ( - col2 ) AS col0, col1 AS col2 FROM tab0 WHERE + 46 / + 55 * 32 IS NOT NULL
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7229
SELECT SUM( - 14 ), 55 AS col2 FROM tab1
----
-42
55

skipif mysql # not compatible
query II rowsort label-7229
SELECT SUM ( - 14 ), 55 AS col2 FROM tab1
----
-42
55

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

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

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

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 95 * - - col2 AND + + CAST ( + + col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - 25 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT - + COUNT( * ) * SUM( ALL col1 ) - + 20 AS col2 FROM tab0 AS cor0
----
-329

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT - + COUNT ( * ) * SUM ( ALL col1 ) - + 20 AS col2 FROM tab0 AS cor0
----
-329

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT ALL + 60 * 78 DIV - col2 AS col2 FROM tab2 AS cor0
----
-117
-203
-80

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + 60 * 78 / - col2 AS col2 FROM tab2 AS cor0
----
-117
-203
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7236
SELECT - col0 * - CAST( NULL AS SIGNED ) / - col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-7236
SELECT - col0 * - CAST ( NULL AS INTEGER ) / - col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT SUM( - 27 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-7237
SELECT SUM ( - 27 ) FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT DISTINCT COUNT( * ) col1, + 77 FROM tab0
----
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7238
SELECT DISTINCT COUNT ( * ) col1, + 77 FROM tab0
----
3
77

query II rowsort
SELECT col2, col1 * + 89 AS col1 FROM tab1
----
59
445
68
4183
96
1246

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 / + col0 < - + col1
----

query I rowsort
SELECT DISTINCT - col2 * + 76 FROM tab1
----
-4484
-5168
-7296

query II rowsort
SELECT ALL + - col1, - col1 - - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7244
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( + col0 - col1, - 49 * + CAST( NULL AS SIGNED ), + col1, 85, + 18 )
----

skipif mysql # not compatible
query III rowsort label-7244
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( + col0 - col1, - 49 * + CAST ( NULL AS INTEGER ), + col1, 85, + 18 )
----

query II rowsort
SELECT col0, - 76 AS col2 FROM tab0 AS cor0
----
15
-76
87
-76
97
-76

query I rowsort
SELECT - 97 * + 43 AS col0 FROM tab1 cor0
----
-4171
-4171
-4171

query I rowsort
SELECT col2 * + + col2 * - 75 FROM tab2
----
-120000
-252300
-39675

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 19 IS NULL
----

query I rowsort
SELECT 85 + - col0 + + col1 FROM tab2 cor0
----
77
90
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL + + col2 DIV + + ( + col2 ) - ( + col0 ) * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-2396
-5004
-5091

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + + col2 / + + ( + col2 ) - ( + col0 ) * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-2396
-5004
-5091

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 3 = + col1 * - col0 + - + col2 * + col0
----

query I rowsort
SELECT - col2 + - - col1 + + 61 + - - col0 FROM tab1 AS cor0
----
131
30
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7255
SELECT DISTINCT - 17 DIV col1 * + col0 + + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT - 17 / col1 * + col0 + + - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - 15 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7256
SELECT - 15 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL + col1 * col0 - + ( + 27 ) FROM tab1 AS cor0
----
398
4250
687

query I rowsort
SELECT col2 + 78 FROM tab1 AS cor0
----
137
146
174

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT ALL + ( + col1 ) * col2 + + + col2 + - 12 + col1 DIV - col1 + + 89 - + ( - col1 ) FROM tab1
----
1530
3387
435

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL + ( + col1 ) * col2 + + + col2 + - 12 + col1 / - col1 + + 89 - + ( - col1 ) FROM tab1
----
1530
3387
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( ALL col1 ) col2 FROM tab2 WHERE NOT NULL <= - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT - 74 DIV + ( - col0 ) col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7261
SELECT - 74 / + ( - col0 ) col0 FROM tab2
----
0
1
1

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

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

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

query I rowsort
SELECT DISTINCT - col0 * 92 FROM tab2 AS cor0
----
-4232
-5888
-6900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 col1 FROM tab1 cor0
----
21
54
82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7268
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT ALL + 64 AS col1, - 72 AS col1 FROM tab1 AS cor0
----
64
-72
64
-72
64
-72

query I rowsort
SELECT + - 86 * + + col0 + 62 FROM tab2 AS cor0
----
-3894
-5442
-6388

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

query I rowsort
SELECT + col0 * + - 34 AS col1 FROM tab1 AS cor0
----
-1734
-2890
-3094

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

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

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL + MIN ( DISTINCT CAST ( + 39 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
39

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * + 88 + col0 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + ( + col1 ), - col2 FROM tab1
----
14
-96
47
-68
5
-59

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

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

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

query I rowsort
SELECT ALL + col1 + + col0 * - col1 FROM tab2 cor0
----
-2295
-4851
-4958

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT MIN( ALL - 70 ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-7286
SELECT MIN ( ALL - 70 ) FROM tab1
----
-70

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

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

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

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

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

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

query II rowsort
SELECT + col2 AS col0, + 29 + - ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE 9 IS NOT NULL
----
10
39
47
76
99
128

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

query I rowsort
SELECT ALL - col0 * + - 52 * - col2 AS col1 FROM tab1
----
-254592
-260780
-321776

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL MIN( DISTINCT + 18 ) * - COUNT( * ) col0 FROM tab0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7294
SELECT ALL MIN ( DISTINCT + 18 ) * - COUNT ( * ) col0 FROM tab0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT + col0 + + CAST( + 51 AS SIGNED ) FROM tab1
----
102
136
142

skipif mysql # not compatible
query I rowsort label-7295
SELECT + col0 + + CAST ( + 51 AS INTEGER ) FROM tab1
----
102
136
142

query I rowsort
SELECT col1 + 77 AS col0 FROM tab0
----
158
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT - - 40 * + + MAX( ALL + col2 ) FROM tab1 cor0
----
3840

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT - - 40 * + + MAX ( ALL + col2 ) FROM tab1 cor0
----
3840

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7299
SELECT ALL col2 DIV - col1 + + col1 - - CAST( + 47 AS SIGNED ) * - col1 * - + col0 FROM tab0 AS cor0
----
4461
57186
85890

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL col2 / - col1 + + col1 - - CAST ( + 47 AS INTEGER ) * - col1 * - + col0 FROM tab0 AS cor0
----
4461
57186
85890

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL + 14 + - MAX( - + 35 ) AS col2 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL + 14 + - MAX ( - + 35 ) AS col2 FROM tab1 AS cor0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-51
-85
-91

query II rowsort
SELECT - col1, col2 - + col1 AS col0 FROM tab2
----
-51
-28
-67
-9
-77
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT ALL col0 DIV 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL col0 / 99 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT ALL + COUNT( DISTINCT - + 57 ) * + 19 * MAX( ALL - col1 ) FROM tab2 AS cor0
----
-969

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + COUNT ( DISTINCT - + 57 ) * + 19 * MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-969

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / - - col0 BETWEEN - 35 + col1 AND + - 87 + + + 89
----
15
81
47

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

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

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

query II rowsort
SELECT ALL 67, col0 + + col1 AS col2 FROM tab2 AS cor0
----
67
141
67
142
67
97

query I rowsort
SELECT - - 20 * - col0 FROM tab2 AS cor0
----
-1280
-1500
-920

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 10 / col1 < 21
----

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, col0 * - col2 * + 75 AS col1 FROM tab1 AS cor0
----
59
-376125
68
-464100
96
-367200

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

query II rowsort
SELECT ALL col1 AS col2, - 44 * col1 * + 79 * + col0 AS col1 FROM tab2
----
51
-8154696
67
-17466900
77
-17129728

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 29 - - col0 NOT BETWEEN - col2 AND col0 + + col2 * - + col1 / - 41
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT - SUM( DISTINCT 12 ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT - SUM ( DISTINCT 12 ) FROM tab1
----
-12

query II rowsort
SELECT col1, col2 * - - col2 FROM tab2
----
51
529
67
3364
77
1600

query II rowsort
SELECT 95 * + + 96 + col2, col1 - col1 * - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 31, + 55, col0, 31, 37 )
----

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

query II rowsort
SELECT DISTINCT col2, col0 * 70 * + 52 * + - 5 - + ( 58 ) AS col2 FROM tab0 AS cor0
----
10
-1583458
47
-273058
99
-1765458

query I rowsort
SELECT DISTINCT 75 * + - col1 FROM tab2
----
-3825
-5025
-5775

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

query I rowsort
SELECT - 67 * 81 + col1 FROM tab2 AS cor0
----
-5350
-5360
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT DISTINCT - COUNT( * ) * - 24 + - 41 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT - COUNT ( * ) * - 24 + - 41 FROM tab2 AS cor0
----
31

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

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

query I rowsort
SELECT ALL - 9 * + col1 FROM tab2
----
-459
-603
-693

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 8 IS NOT NULL
----

query II rowsort
SELECT ALL ( + col2 ) * + 11, 10 AS col1 FROM tab0
----
1089
10
110
10
517
10

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( + 19 ) ) <> col0 - - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 3 NOT IN ( - col2 )
----

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

query I rowsort
SELECT 56 + - col0 / + col2 FROM tab2 WHERE ( + 76 * + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + 3 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 28 * col2 - col2 FROM tab1
----
1593
1836
2592

query I rowsort
SELECT ALL 80 AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 - col2 col1 FROM tab0
----
-2
-39
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT + ( + ( COUNT( 28 ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7343
SELECT + ( + ( COUNT ( 28 ) ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT - col1 + - 81 DIV - col2 col0 FROM tab2
----
-48
-66
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7345
SELECT - col1 + - 81 / - col2 col0 FROM tab2
----
-48
-66
-75

query I rowsort
SELECT ALL + 23 AS col1 FROM tab2 WHERE col2 NOT IN ( 80 )
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + + col0 col0 FROM tab2
----
107
118
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT + 67 DIV 48 AS col0 FROM tab0 WHERE col2 + col2 * - col2 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7348
SELECT + 67 / 48 AS col0 FROM tab0 WHERE col2 + col2 * - col2 IS NOT NULL
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( 92 )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT ( - COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT ( - COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - COUNT( col1 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7352
SELECT - COUNT ( col1 ) col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT + ( - CAST( + col0 AS SIGNED ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7353
SELECT + ( - CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ( 93 ) FROM tab0 WHERE NOT NULL < col2
----

query I rowsort
SELECT col2 FROM tab1 WHERE ( col1 ) BETWEEN + ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7356
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE + CAST( ( col1 ) AS SIGNED ) <> ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE + CAST ( ( col1 ) AS INTEGER ) <> ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT MAX( ALL + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7357
SELECT MAX ( ALL + col0 ) FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab0
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT DISTINCT - 85 + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - 85 + col1 / + col1 AS col2 FROM tab1 AS cor0
----
-84

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab1 WHERE + 38 * col2 NOT BETWEEN 3 + + col1 AND - 78
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + - col0 col2 FROM tab1 WHERE ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT DISTINCT ( + 0 ) DIV + col2 FROM tab0 WHERE NOT col2 * - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT ( + 0 ) / + col2 FROM tab0 WHERE NOT col2 * - col0 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 <= NULL
----

query I rowsort
SELECT ALL - + 91 + col1 FROM tab1 AS cor0
----
-44
-77
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT DISTINCT - - 0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT - - 0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT col1 + col0 DIV + ( 95 ) AS col0 FROM tab0 AS cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-7370
SELECT col1 + col0 / + ( 95 ) AS col0 FROM tab0 AS cor0
----
2
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT ALL - 20 + + ( MIN( DISTINCT - 1 ) - - 59 ) AS col0 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL - 20 + + ( MIN ( DISTINCT - 1 ) - - 59 ) AS col0 FROM tab2 AS cor0
----
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 - - col1 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( col1 ) + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT - col0 DIV - 42 + col0 FROM tab0 AS cor0
----
15
89
99

skipif mysql # not compatible
query I rowsort label-7375
SELECT - col0 / - 42 + col0 FROM tab0 AS cor0
----
15
89
99

query I rowsort
SELECT + col2 + 92 FROM tab2 cor0
----
115
132
150

query III rowsort
SELECT * FROM tab2 WHERE + 85 NOT IN ( 70 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 47 + col2 FROM tab0
----
4099
4658
752

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT DISTINCT - 11 DIV + + col0 - + col2 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT - 11 / + + col0 - + col2 AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - col1 <> ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 90 - + 47 IN ( col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7382
SELECT DISTINCT + col2 * ( + col0 ) - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + col2 * ( + col0 ) - - CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT 33 * - - COUNT( * ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7383
SELECT 33 * - - COUNT ( * ) col2 FROM tab0
----
99

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL < + col2 - col1
----

query I rowsort
SELECT ALL - col0 + + 67 AS col2 FROM tab0 AS cor0 WHERE NOT - ( + col2 ) BETWEEN + col2 AND col0
----
-20
-30
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7386
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT COUNT( - + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7387
SELECT COUNT ( - + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 * col0 FROM tab2 cor0 WHERE NOT ( col0 - col0 ) BETWEEN + col1 AND ( - col1 / - col0 )
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7389
SELECT * FROM tab2 cor0 WHERE NOT + col1 + - col2 >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7389
SELECT * FROM tab2 cor0 WHERE NOT + col1 + - col2 >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL - ( + 11 ) * + COUNT( ALL - col2 ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL - ( + 11 ) * + COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7391
SELECT 49 DIV - col1 FROM tab0 AS cor0 WHERE NOT + col0 + col2 < - ( 59 )
----
-2
-49
0

skipif mysql # not compatible
query I rowsort label-7391
SELECT 49 / - col1 FROM tab0 AS cor0 WHERE NOT + col0 + col2 < - ( 59 )
----
-2
-49
0

query I rowsort
SELECT - col0 * col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7393
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col2 AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7393
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col2 AND ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 94 FROM tab1 WHERE + 4 IS NULL
----

query II rowsort
SELECT + 41, col0 * + col2 AS col2 FROM tab0 AS cor0
----
41
705
41
870
41
9603

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( + + col1 ) = ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7397
SELECT - 64 / + AVG ( DISTINCT - col2 * + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 97 / + col1 + ( - col1 ) AND CAST( - col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT - 64 / + AVG ( DISTINCT - col2 * + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 97 / + col1 + ( - col1 ) AND CAST ( - col0 AS INTEGER )
----
NULL

query I rowsort
SELECT col0 * + col2 + + + 27 AS col2 FROM tab0 AS cor0
----
732
897
9630

query I rowsort
SELECT ALL - col2 * + col0 + - col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT + col1 + - ( - col1 ) AS col1 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT - col2 + + - col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT ALL + 92 * 87 + - col0 + - 10 AS col0 FROM tab1 AS cor0
----
7903
7909
7943

query I rowsort
SELECT ALL 83 * col2 AS col2 FROM tab0
----
3901
8217
830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT DISTINCT - col2 * - 76 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - col2 * - 76 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT - COUNT( * ) * - 54 * 16 + - MAX( + col2 ) FROM tab0 WHERE NULL IS NULL
----
2493

skipif mysql # not compatible
query I rowsort label-7405
SELECT - COUNT ( * ) * - 54 * 16 + - MAX ( + col2 ) FROM tab0 WHERE NULL IS NULL
----
2493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 20 * - col2 col1 FROM tab2 WHERE - col1 IS NOT NULL
----
1160
460
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE NOT - 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 56 + - col0 AS col0 FROM tab2
----
1242
2176
3173

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL COUNT( DISTINCT - 88 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7409
SELECT ALL COUNT ( DISTINCT - 88 ) col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT DISTINCT 97 + - - MIN( DISTINCT 81 ) AS col2 FROM tab2
----
178

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT 97 + - - MIN ( DISTINCT 81 ) AS col2 FROM tab2
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7411
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL IN ( + CAST( col1 AS SIGNED ) * CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7411
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL IN ( + CAST ( col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT - 70 - + ( - col1 ) + - col0 FROM tab0 AS cor0
----
-136
-166
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7413
SELECT ALL * FROM tab2 WHERE NOT - col0 * - 82 + - 50 + - col0 * + ( - col2 - - ( - CAST( col1 AS SIGNED ) ) ) IN ( 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7413
SELECT ALL * FROM tab2 WHERE NOT - col0 * - 82 + - 50 + - col0 * + ( - col2 - - ( - CAST ( col1 AS INTEGER ) ) ) IN ( 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) NOT IN ( col0 * - 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7415
SELECT - col1 / CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT - col1 / CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT DISTINCT ( - + ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT ( - + ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 30 col2 FROM tab2 cor0
----
107
81
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7418
SELECT - + CAST( 47 AS SIGNED ) + - 15 AS col0 FROM tab0 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-7418
SELECT - + CAST ( 47 AS INTEGER ) + - 15 AS col0 FROM tab0 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - - col0 + + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT ( - - 74 ) + col1 AS col0 FROM tab2 AS cor0
----
125
141
151

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) NOT BETWEEN NULL AND 42 + + col2
----

query I rowsort
SELECT ALL - col1 + - 22 FROM tab2
----
-73
-89
-99

query II rowsort
SELECT DISTINCT 67 AS col1, - col1 FROM tab0
----
67
-1
67
-21
67
-81

query I rowsort
SELECT + 68 * - + col1 AS col0 FROM tab0
----
-1428
-5508
-68

query II rowsort
SELECT - col1 AS col2, - col0 FROM tab1
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT - 86 * + 37 FROM tab0
----
-3182
-3182
-3182

onlyif mysql # aggregate syntax: 
query II rowsort label-7427
SELECT + COUNT( * ) AS col0, 53 FROM tab2
----
3
53

skipif mysql # not compatible
query II rowsort label-7427
SELECT + COUNT ( * ) AS col0, 53 FROM tab2
----
3
53

query II rowsort
SELECT - col2 AS col2, col2 * + col0 AS col0 FROM tab1
----
-59
5015
-68
6188
-96
4896

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( + 28 )
----

query I rowsort
SELECT + 68 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 89 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN ( col0 ) AND ( + 47 )
----

query I rowsort
SELECT ALL - + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0 + + + 79 + - col0 - + col1 - + col1 AS col0, - col2 * - + 71 FROM tab1 AS cor0
----
-15
4828
51
6816
69
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - - 69 + + COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT ( 22 / - col2 ) NOT BETWEEN NULL AND + col2
----
69

skipif mysql # not compatible
query I rowsort label-7435
SELECT - - 69 + + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT ( 22 / - col2 ) NOT BETWEEN NULL AND + col2
----
69

query I rowsort
SELECT DISTINCT + - col1 * - col1 + - - col2 + 13 AS col1 FROM tab0 AS cor0
----
113
464
6621

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE ( NOT col0 >= - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( col1 ) BETWEEN - col0 AND - - 2 )
----

query I rowsort
SELECT 17 * - col0 * col0 FROM tab1 AS cor0
----
-122825
-140777
-44217

query I rowsort
SELECT 91 AS col0 FROM tab2 cor0 WHERE ( - + col0 NOT BETWEEN col0 + - col0 + - col2 AND NULL )
----
91
91
91

query I rowsort
SELECT ALL - ( + 91 ) AS col2 FROM tab2
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-7442
SELECT DISTINCT col1 * col2 * - - col1 AS col0, - ( + + col2 ) DIV 82 col1 FROM tab1
----
1475
0
150212
0
18816
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7442
SELECT DISTINCT col1 * col2 * - - col1 AS col0, - ( + + col2 ) / 82 col1 FROM tab1
----
1475
0
150212
0
18816
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 AS col0, 58 col2 FROM tab0 AS cor0
----
89
58
89
58
89
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT + COUNT( * ), 86 + 78 AS col2 FROM tab2 AS cor0
----
3
164

skipif mysql # not compatible
query II rowsort label-7444
SELECT + COUNT ( * ), 86 + 78 AS col2 FROM tab2 AS cor0
----
3
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL 31 + - 56 + - COUNT( col1 ) FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----
-25

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL 31 + - 56 + - COUNT ( col1 ) FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----
-25

query I rowsort
SELECT - 4 * - ( + col1 ) / - col2 AS col2 FROM tab2 WHERE ( + col1 - + 68 - + 80 * + + col1 / + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT + 75 * + - SUM( 75 ) AS col1 FROM tab2
----
-16875

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT + 75 * + - SUM ( 75 ) AS col1 FROM tab2
----
-16875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7448
SELECT 91 - CAST( + 13 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-7448
SELECT 91 - CAST ( + 13 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
78
78
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 61 <= NULL
----

query I rowsort
SELECT ALL - col1 + - 62 + col2 FROM tab2 AS cor0
----
-71
-90
-99

query I rowsort
SELECT + + 61 AS col0 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 AS cor0 WHERE NOT - 86 / + 85 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7453
SELECT - SUM( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - COUNT( ALL col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7454
SELECT - COUNT ( ALL col0 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT ALL col0 * + - col2 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT DISTINCT SUM( ALL + + col1 ) AS col2 FROM tab0 WHERE + 42 + col0 > + - 12
----
103

skipif mysql # not compatible
query I rowsort label-7456
SELECT DISTINCT SUM ( ALL + + col1 ) AS col2 FROM tab0 WHERE + 42 + col0 > + - 12
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT - MAX( ALL + + col0 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT - MAX ( ALL + + col0 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT ALL 43, - 21 * - 28 AS col0 FROM tab0
----
43
588
43
588
43
588

query I rowsort
SELECT + 39 AS col2 FROM tab0 AS cor0 WHERE NOT - - 47 IS NOT NULL AND NOT col2 * + + 59 IS NULL
----

query I rowsort
SELECT ALL + ( + col0 ) * ( + + col2 ) FROM tab0 AS cor0 WHERE + 24 < - - 76
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT + col0 * col0 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
210
7482
9312

skipif mysql # not compatible
query I rowsort label-7462
SELECT + col0 * col0 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
210
7482
9312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7463
SELECT ALL + COUNT( * ) DIV 40 FROM tab1 cor0 WHERE ( NULL ) BETWEEN + - ( + + 36 ) + - - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + COUNT ( * ) / 40 FROM tab1 cor0 WHERE ( NULL ) BETWEEN + - ( + + 36 ) + - - col0 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT ALL + SUM( + col1 ) + - - COUNT( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + SUM ( + col1 ) + - - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + col0 * + + col1 * - col2 + 21 AS col2 FROM tab0
----
-18249
-57084
-9582

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7466
SELECT + col1 * + ( - col1 ) + - - ( + col1 ) * - col1 + + + 87 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NULL < - col1
----

skipif mysql # not compatible
query I rowsort label-7466
SELECT + col1 * + ( - col1 ) + - - ( + col1 ) * - col1 + + + 87 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NULL < - col1
----

query II rowsort
SELECT ALL - 19 + 10 AS col1, col2 + - + col1 AS col1 FROM tab2
----
-9
-28
-9
-37
-9
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT DISTINCT - SUM( ALL + + col0 ), - 67 AS col0 FROM tab2
----
-185
-67

skipif mysql # not compatible
query II rowsort label-7468
SELECT DISTINCT - SUM ( ALL + + col0 ), - 67 AS col0 FROM tab2
----
-185
-67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7469
SELECT 74 * + col0 + + 80, - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3854
NULL
6370
NULL
6814
NULL

skipif mysql # not compatible
query II rowsort label-7469
SELECT 74 * + col0 + + 80, - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3854
NULL
6370
NULL
6814
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT - 43 + - 39 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - 43 + - 39 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 57 IS NOT NULL
----

query I rowsort
SELECT 92 * - - 68 FROM tab0
----
6256
6256
6256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 25 col0 FROM tab2 AS cor0
----
1275
1675
1925

query I rowsort
SELECT DISTINCT + 42 * + col0 AS col2 FROM tab2 AS cor0
----
1932
2688
3150

query I rowsort
SELECT + col0 * - + col1 - - - 41 - 12 + - + col0 * - + col1 AS col0 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT - 82 AS col2 FROM tab0 cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7477
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 / CAST( NULL AS DECIMAL ) <> - + col2 )
----

skipif mysql # not compatible
query III rowsort label-7477
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 / CAST ( NULL AS REAL ) <> - + col2 )
----

query II rowsort
SELECT ALL + col0 AS col2, col2 AS col0 FROM tab2 cor0
----
46
23
64
40
75
58

query I rowsort
SELECT - 39 FROM tab0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL ( COUNT( - col0 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL ( COUNT ( - col0 ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT + COUNT( * ) DIV COUNT( * ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7481
SELECT + COUNT ( * ) / COUNT ( * ) col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col2 * 87 * - - col2 * - + col0 AS col2 FROM tab0
----
2882745
756900
82710639

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7483
SELECT ALL * FROM tab1 WHERE NULL = + - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7483
SELECT ALL * FROM tab1 WHERE NULL = + - CAST ( + col0 AS INTEGER )
----

query II rowsort
SELECT ALL - 92 * + + col0, - col2 * + col1 * - + ( - - col2 ) AS col2 FROM tab2
----
-4232
26979
-5888
123200
-6900
225388

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT ALL - col2 DIV - 50 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - col2 / - 50 FROM tab1
----
1
1
1

query I rowsort
SELECT 69 * + + ( - 92 ) * - - 54 * - + 86 AS col2 FROM tab0
----
29480112
29480112
29480112

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * - col1, + col1, + 44 * + + ( 0 ) + + + ( - ( + + col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7488
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7488
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( 72 ) FROM tab2, tab0 cor0
----
72

query I rowsort
SELECT - + 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT DISTINCT + 13 DIV + - 61 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT + 13 / + - 61 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * - + col1 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 11 + + 89 * + + col2 * ( - col1 ) FROM tab2 AS cor0
----
-104459
-274208
-345932

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 5 + - col2 - + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL COUNT( - 53 ) * - - 99 + - 14 FROM tab2 AS cor0
----
283

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL COUNT ( - 53 ) * - - 99 + - 14 FROM tab2 AS cor0
----
283

onlyif mysql # DIV for integer division: 
query I rowsort label-7496
SELECT DISTINCT + col0 + - col0 + - col1 DIV col2 AS col1 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + col0 + - col0 + - col1 / col2 AS col1 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT ALL col0 + + - 80 + - 84 * + 7 FROM tab1 AS cor0
----
-577
-583
-617

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 22 NOT BETWEEN NULL AND ( col1 + - - col1 * + 77 / - ( col2 ) * + col0 + - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT ALL - CAST( NULL AS SIGNED ) * 90 + - - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - CAST ( NULL AS INTEGER ) * 90 + - - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - - col2 ) + 6 FROM tab1
----
102
65
74

query III rowsort
SELECT * FROM tab0 WHERE + ( col1 ) NOT BETWEEN NULL AND + 11
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL + MAX( DISTINCT + + col2 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7502
SELECT ALL + MAX ( DISTINCT + + col2 ) col1 FROM tab2
----
58

query I rowsort
SELECT 37 + col0 + + col2 AS col2 FROM tab1
----
181
184
196

query III rowsort
SELECT * FROM tab0 WHERE ( - 86 * - + col1 * 95 ) <= col2 + - - col2 + - - col0 + col1
----

query I rowsort
SELECT ALL 99 - + col1 + - col2 - - col0 AS col0 FROM tab2
----
46
49
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT 60 + COUNT( * ) * + - 52 AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-7506
SELECT 60 + COUNT ( * ) * + - 52 AS col1 FROM tab0
----
-96

query III rowsort
SELECT * FROM tab1 WHERE + 13 * + + 17 BETWEEN NULL AND 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL ( + COUNT( * ) ) + + 80 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL ( + COUNT ( * ) ) + + 80 FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT ALL + COUNT( * ) * + 32 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL + COUNT ( * ) * + 32 FROM tab0
----
96

query I rowsort
SELECT ( 74 ) + - + 43 AS col0 FROM tab2
----
31
31
31

query I rowsort
SELECT DISTINCT - 73 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - - SUM( DISTINCT - 47 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7512
SELECT - - SUM ( DISTINCT - 47 ) FROM tab0 AS cor0
----
-47

query I rowsort
SELECT - 96 AS col1 FROM tab1 cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7514
SELECT 82 - + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT 82 - + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 62 AS col0 FROM tab2
----
-1426
-2480
-3596

query I rowsort
SELECT - 49 + + - col0 * - + col2 FROM tab1 WHERE NOT + col1 + col2 IS NULL
----
4847
4966
6139

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7517
SELECT ALL 0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL 0 * - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + col1 * + + col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT col0 DIV 40 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7519
SELECT col0 / 40 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7520
SELECT + COUNT( * ) * - SUM( ALL + col2 ) * + 95 * + 48, + COUNT( * ) * - - 57 AS col0 FROM tab2 cor0
----
-1655280
171

skipif mysql # not compatible
query II rowsort label-7520
SELECT + COUNT ( * ) * - SUM ( ALL + col2 ) * + 95 * + 48, + COUNT ( * ) * - - 57 AS col0 FROM tab2 cor0
----
-1655280
171

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT - + col0 DIV + - col1 AS col2 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7521
SELECT - + col0 / + - col1 AS col2 FROM tab1 cor0
----
1
17
3

query I rowsort
SELECT DISTINCT + col1 + - col0 FROM tab1 WHERE - col1 + - - 67 * + 78 IS NOT NULL
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7523
SELECT ALL + + 5 AS col2, + COUNT( ALL col1 ) FROM tab1 cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-7523
SELECT ALL + + 5 AS col2, + COUNT ( ALL col1 ) FROM tab1 cor0
----
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT + SUM( ALL + 61 ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7524
SELECT + SUM ( ALL + 61 ) FROM tab2 AS cor0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7525
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) * + + CAST( + col1 AS SIGNED ) * + 26 * - ( - 4 ) - + 86 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7525
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) * + + CAST ( + col1 AS INTEGER ) * + 26 * - ( - 4 ) - + 86 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT COUNT( * ) * + - 63 DIV 7 col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7526
SELECT COUNT ( * ) * + - 63 / 7 col2 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 83 * - CAST( NULL AS SIGNED ) * col0 - col2 + + + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 83 * - CAST ( NULL AS INTEGER ) * col0 - col2 + + + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 47 + 77 FROM tab0
----
124
124
124

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT col0 DIV 61 + - col2 + col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7529
SELECT col0 / 61 + - col2 + col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + 61 + + - col1 FROM tab0 AS cor0
----
-20
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - 65 + - + SUM( ALL - + 60 ) AS col2 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-7531
SELECT - 65 + - + SUM ( ALL - + 60 ) AS col2 FROM tab2 AS cor0
----
115

query I rowsort
SELECT ALL - - 2 + col2 + + col1 AS col0 FROM tab2 AS cor0
----
119
127
76

query I rowsort
SELECT DISTINCT - col2 + - 21 FROM tab0 AS cor0
----
-120
-31
-68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 73 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + + col1
----

query I rowsort
SELECT - col2 + - col0 + - 89 FROM tab1 AS cor0
----
-233
-236
-248

query I rowsort
SELECT ALL col1 + - + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL + CAST( NULL AS SIGNED ) + - SUM( - col2 ) * - 36 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + CAST ( NULL AS INTEGER ) + - SUM ( - col2 ) * - 36 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT - 25 + COUNT( * ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT - 25 + COUNT ( * ) FROM tab2
----
-22

query I rowsort
SELECT ALL col1 - + + col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT - MIN( DISTINCT - col0 ) + + 68 FROM tab1 WHERE NULL NOT IN ( col1 + - col1, col1 * + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT - MIN ( DISTINCT - col0 ) + + 68 FROM tab1 WHERE NULL NOT IN ( col1 + - col1, col1 * + 50 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT DISTINCT COUNT( * ) - - 73 DIV 56 DIV - MAX( - 22 ) + MAX( + col0 ) AS col0 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT COUNT ( * ) - - 73 / 56 / - MAX ( - 22 ) + MAX ( + col0 ) AS col0 FROM tab0
----
100

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + - 54 ) NOT BETWEEN + 82 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 99 FROM tab1 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + COUNT( * ) - + SUM( DISTINCT col1 ) + - 43 FROM tab2
----
-235

skipif mysql # not compatible
query I rowsort label-7545
SELECT + COUNT ( * ) - + SUM ( DISTINCT col1 ) + - 43 FROM tab2
----
-235

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7546
SELECT 29 * - + col0 - + col0 AS col2, - CAST( NULL AS DECIMAL ) FROM tab2
----
-1380
NULL
-1920
NULL
-2250
NULL

skipif mysql # not compatible
query II rowsort label-7546
SELECT 29 * - + col0 - + col0 AS col2, - CAST ( NULL AS REAL ) FROM tab2
----
-1380
NULL
-1920
NULL
-2250
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT + ( - + 32 ) - - COUNT( * ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-7547
SELECT + ( - + 32 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT - + COUNT( * ) - + 23 AS col0 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7548
SELECT - + COUNT ( * ) - + 23 AS col0 FROM tab1 AS cor0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7549
SELECT CAST( NULL AS SIGNED ) + + MAX( + 29 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT CAST ( NULL AS INTEGER ) + + MAX ( + 29 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 68 + - col2 AS col1 FROM tab1 AS cor0
----
-28
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ALL COUNT( * ) * + 61 FROM tab1, tab2 AS cor0
----
549

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL COUNT ( * ) * + 61 FROM tab1, tab2 AS cor0
----
549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7552
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT DISTINCT 18 col1, - COUNT( * ) AS col1 FROM tab0
----
18
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7553
SELECT DISTINCT 18 col1, - COUNT ( * ) AS col1 FROM tab0
----
18
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT - - SUM( - 60 ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-540

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7554
SELECT DISTINCT - - SUM ( - 60 ) col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-540

query II rowsort
SELECT DISTINCT - + 55 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
-55
-51
-55
-85
-55
-91

query I rowsort
SELECT - + col0 * + 51 AS col0 FROM tab1 AS cor0
----
-2601
-4335
-4641

query II rowsort
SELECT ALL - + col2, col0 * col2 AS col1 FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7558
SELECT - CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7558
SELECT - CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL COUNT( * ) * + 95 col1 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7560
SELECT ALL COUNT ( * ) * + 95 col1 FROM tab0 AS cor0
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7561
SELECT col1, CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-7561
SELECT col1, CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, + ( - col1 ) + + ( + + col1 ) col0 FROM tab0 cor0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 37 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col2 * - - 88 * + - 51 FROM tab0
----
210936
444312
44880

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT + COUNT( * ) FROM tab0 WHERE NOT + + 16 / - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7565
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + + 16 / - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL MIN( ALL col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL MIN ( ALL col1 ) AS col1 FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT - - 11 + - + 19 * + COUNT( * ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT - - 11 + - + 19 * + COUNT ( * ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND 96
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col2 * + 95
----

query II rowsort
SELECT ALL col2 + col1 + - + col2 AS col2, - 83 AS col0 FROM tab1 AS cor0
----
14
-83
47
-83
5
-83

query I rowsort
SELECT DISTINCT col0 + + - col2 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-2241
-23
-9803

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT + AVG ( - col1 ) * + COUNT( * ) + + - 64 AS col1 FROM tab1 WHERE NOT + + 72 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + AVG ( - col1 ) * + COUNT ( * ) + + - 64 AS col1 FROM tab1 WHERE NOT + + 72 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 * 0 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 83 ) AS col1 FROM tab2
----
-83

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE + 2 * 96 NOT IN ( - 89 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= 92 + - 43
----
0

skipif mysql # not compatible
query I rowsort label-7578
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= 92 + - 43
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7579
SELECT col2 - 9 / col2 * - col2 * col0 * + col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT col2 - 9 / col2 * - col2 * col0 * + col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11 + + 65 col0, col2 + + - col0 AS col1 FROM tab0
----
76
-77
76
2
76
32

query II rowsort
SELECT ALL 21 - - col0, + col2 AS col2 FROM tab2
----
67
23
85
40
96
58

query III rowsort
SELECT * FROM tab0 WHERE - 91 * - col2 IN ( + 16, + col2, col2, - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT - 48 DIV col2 + + col1 FROM tab0
----
1
17
80

skipif mysql # not compatible
query I rowsort label-7583
SELECT - 48 / col2 + + col1 FROM tab0
----
1
17
80

query I rowsort
SELECT ALL + col0 - - 60 AS col1 FROM tab0
----
147
157
75

query I rowsort
SELECT ALL 7 + 23 - col2 AS col2 FROM tab2
----
-10
-28
7

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col0 > NULL )
----

query I rowsort
SELECT - 38 * col2 FROM tab0 WHERE NOT + 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT - MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7588
SELECT - MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT MIN( ALL + 27 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
27

skipif mysql # not compatible
query I rowsort label-7589
SELECT MIN ( ALL + 27 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7590
SELECT DISTINCT + + ( - CAST( NULL AS SIGNED ) ) col1 FROM tab1 WHERE + col0 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7590
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab1 WHERE + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 19 col0 FROM tab2 AS cor0
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7592
SELECT - - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT - - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 12 AS col2, col0 * col0 AS col0 FROM tab0 AS cor0
----
12
225
12
7569
12
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 71 * + - col0 col0 FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT ALL + + col1 * 90 FROM tab2 AS cor0
----
4590
6030
6930

query I rowsort
SELECT + 59 + ( + - 48 ) - - 75 AS col0 FROM tab0
----
86
86
86

query II rowsort
SELECT ALL col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT COUNT( + + 91 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT COUNT ( + + 91 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL 66 * MIN( ( 90 ) ) FROM tab2
----
5940

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL 66 * MIN ( ( 90 ) ) FROM tab2
----
5940

query III rowsort
SELECT * FROM tab2 WHERE NOT 71 + + - col2 - - col1 <> NULL
----

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab0 WHERE NOT - col1 + + col2 BETWEEN NULL AND - col0 + - + 95 - + col2 - + 18 + col0 * - col0 + - + 37 * - + col0
----
870
9603

query I rowsort
SELECT DISTINCT - col2 + - 67 * 16 AS col2 FROM tab2 AS cor0
----
-1095
-1112
-1130

query I rowsort
SELECT DISTINCT + col0 + col2 + + - 89 - - - col1 * + col2 FROM tab2 AS cor0
----
-1193
-3065
-3842

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7604
SELECT + ( - + SUM( ALL + col0 ) ) * - CAST( NULL AS DECIMAL ) + + 68 * - MIN( DISTINCT 35 ) + - 71 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT + ( - + SUM ( ALL + col0 ) ) * - CAST ( NULL AS REAL ) + + 68 * - MIN ( DISTINCT 35 ) + - 71 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + col2 + + col1 col0 FROM tab1 AS cor0
----
121
167
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT - - MIN( 81 ) AS col2 FROM tab2 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT - - MIN ( 81 ) AS col2 FROM tab2 WHERE + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT - 70 + CAST( NULL AS SIGNED ) * + + 36 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT - 70 + CAST ( NULL AS INTEGER ) * + + 36 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT + - MIN( DISTINCT 50 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-50

skipif mysql # not compatible
query I rowsort label-7609
SELECT + - MIN ( DISTINCT 50 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-50

query II rowsort
SELECT DISTINCT + - col2 + + - col1 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

query I rowsort
SELECT - - ( ( col1 ) ) + - + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7612
SELECT - 1 / col2 / + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT - 1 / col2 / + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 88 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL - COUNT( * ) + + COUNT( + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL - COUNT ( * ) + + COUNT ( + col0 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT ALL + col0 DIV col2 + 93 + + + col0 FROM tab1
----
144
179
185

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + col0 / col2 + 93 + + + col0 FROM tab1
----
144
179
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT 70 - - + ( - COUNT( * ) ) + ( + COUNT( * ) ) * - + 59 FROM tab0
----
-110

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT 70 - - + ( - COUNT ( * ) ) + ( + COUNT ( * ) ) * - + 59 FROM tab0
----
-110

query I rowsort
SELECT - col2 - + 62 AS col2 FROM tab0
----
-109
-161
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - COUNT( * ) * + 77 AS col0 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - COUNT ( * ) * + 77 AS col0 FROM tab0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7620
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT + col1 DIV - + col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7621
SELECT + col1 / - + col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT ALL 4 * - - 97 FROM tab0
----
388
388
388

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col0 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7624
SELECT + COUNT( DISTINCT + - 73 ) * + 45 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-7624
SELECT + COUNT ( DISTINCT + - 73 ) * + 45 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
45
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT ALL - MIN( col1 ) col2, + 32 FROM tab0 AS cor0 WHERE NOT + col0 / col0 NOT BETWEEN 39 + - + col2 + + 95 AND NULL
----
NULL
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7625
SELECT ALL - MIN ( col1 ) col2, + 32 FROM tab0 AS cor0 WHERE NOT + col0 / col0 NOT BETWEEN 39 + - + col2 + + 95 AND NULL
----
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT - + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT - + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7627
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN 92 - - col0 + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7627
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN 92 - - col0 + - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 59 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT MAX( - + 74 ) FROM tab1 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7629
SELECT MAX ( - + 74 ) FROM tab1 cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL + CAST( + col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7630
SELECT ALL + CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT COUNT( DISTINCT - 3 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT COUNT ( DISTINCT - 3 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT - COUNT( * ) + - ( + SUM( - 38 ) ) AS col0 FROM tab2 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT - COUNT ( * ) + - ( + SUM ( - 38 ) ) AS col0 FROM tab2 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + COUNT( * ) * - COUNT( * ) * - COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-7633
SELECT + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
27

query I rowsort
SELECT + col1 * + col1 * - - 71 FROM tab1
----
13916
156839
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT SUM( col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7635
SELECT SUM ( col1 ) AS col2 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL + MIN( + + 61 ) col1 FROM tab1
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7636
SELECT ALL + MIN ( + + 61 ) col1 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT ALL + COUNT( * ) + - COUNT( * ) + + ( COUNT( * ) ) * + SUM( col2 ) + + - SUM( + col0 ), + COUNT( * ) AS col1 FROM tab2
----
178
3

skipif mysql # not compatible
query II rowsort label-7637
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + + ( COUNT ( * ) ) * + SUM ( col2 ) + + - SUM ( + col0 ), + COUNT ( * ) AS col1 FROM tab2
----
178
3

query I rowsort
SELECT + col0 + + col2 + + - col1 FROM tab2
----
18
27
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7639
SELECT ALL * FROM tab1 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7639
SELECT ALL * FROM tab1 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < 1 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - + 26 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7641
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - + 26 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT MAX( + col0 ) - + 4 AS col1 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7642
SELECT MAX ( + col0 ) - + 4 AS col1 FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT ALL + COUNT( * ) - - CAST( + + 33 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( + col2 ) = NULL
----
33

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + COUNT ( * ) - - CAST ( + + 33 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( + col2 ) = NULL
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + col0 <= NULL
----

query I rowsort
SELECT ALL - - 41 + 28 AS col1 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT - - 83 * + + col2 + - 36 AS col2 FROM tab2 AS cor0
----
1873
3284
4778

query I rowsort
SELECT ( col2 ) * - + 23 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT DISTINCT col2 DIV 14 AS col2 FROM tab1
----
4
6

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT col2 / 14 AS col2 FROM tab1
----
4
6

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - col1 NOT IN ( - col2 / + col0, + 18 - + col0 + - - 13 )
----
46
64
75

query I rowsort
SELECT DISTINCT + ( 87 ) AS col2 FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - 9 * COUNT( * ) AS col1 FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7651
SELECT - 9 * COUNT ( * ) AS col1 FROM tab1 cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 49 ) col0 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT + 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT 69 + + - 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT 25 AS col1, + COUNT( * ) AS col1 FROM tab1
----
25
3

skipif mysql # not compatible
query II rowsort label-7655
SELECT 25 AS col1, + COUNT ( * ) AS col1 FROM tab1
----
25
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - COUNT( + 26 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7656
SELECT - COUNT ( + 26 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col2 * - - 9 + col1 FROM tab1 AS cor0
----
536
659
878

query II rowsort
SELECT ALL - 71 AS col0, + 42 FROM tab0 AS cor0
----
-71
42
-71
42
-71
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT - 36 + + COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7659
SELECT - 36 + + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT - col1 + + + col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT - - MIN( ALL + col0 ) + + COUNT( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-7661
SELECT - - MIN ( ALL + col0 ) + + COUNT ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT ALL 89 AS col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + 67 * 33 * - col2 BETWEEN NULL AND col0 - - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT - MAX( DISTINCT + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7664
SELECT - MAX ( DISTINCT + col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT DISTINCT - col0 / - - col0 - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + 72 * - 74 + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT - col0 / - - col0 - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + 72 * - 74 + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT + 24 * + - col1 * 91 FROM tab2
----
-111384
-146328
-168168

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT + COUNT( * ) + COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7668
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) col0 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7669
SELECT DISTINCT CAST( - col0 AS SIGNED ), - col2 AS col0 FROM tab2
----
-46
-23
-64
-40
-75
-58

skipif mysql # not compatible
query II rowsort label-7669
SELECT DISTINCT CAST ( - col0 AS INTEGER ), - col2 AS col0 FROM tab2
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT 13 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
1110
1230
677

query I rowsort
SELECT ALL ( + col2 ) + col1 * col0 * - 32 * - col1 + + + col1 FROM tab1 AS cor0
----
319982
6432723
68064

query II rowsort
SELECT col1 - col1 AS col1, 64 FROM tab2 AS cor0
----
0
64
0
64
0
64

query I rowsort
SELECT - 25 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - 98 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col0, col1 AS col0 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT + + col2 * - col0 + - + col0 * 75 FROM tab1 AS cor0
----
-11390
-13013
-8721

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT - 58 + + MIN( + ( - col2 ) ) + ( ( - + COUNT( * ) ) ) FROM tab2 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - 58 + + MIN ( + ( - col2 ) ) + ( ( - + COUNT ( * ) ) ) FROM tab2 AS cor0
----
-119

query I rowsort
SELECT DISTINCT + 48 + col0 * + + col2 + + 90 FROM tab2 AS cor0
----
1196
2698
4488

query I rowsort
SELECT - col2 * + + col2 * + col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= - col1 - - col0 - - 13 * - 84 * - ( - col0 ) * - col2 + + 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * + - 16 col0 FROM tab1 AS cor0
----
-1360
-1456
-816

query I rowsort
SELECT DISTINCT ( 44 ) FROM tab2 cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL col2 + + - 36 AS col2 FROM tab0 AS cor0 WHERE + col0 * + 47 IS NOT NULL
----
-26
11
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL MAX( ALL + col0 ) * 7 - 41 FROM tab2
----
484

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL MAX ( ALL + col0 ) * 7 - 41 FROM tab2
----
484

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7686
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7686
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 30 FROM tab0 WHERE NOT col2 <> - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT - ( - + SUM( ALL + col2 ) ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7688
SELECT - ( - + SUM ( ALL + col2 ) ) AS col2 FROM tab0
----
156

query II rowsort
SELECT ALL col1, - col2 + + col0 FROM tab2
----
51
23
67
17
77
24

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query II rowsort
SELECT ALL - col2 AS col2, + 55 FROM tab0 AS cor0
----
-10
55
-47
55
-99
55

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT col1 * - 56, - col1 + - 78 AS col1 FROM tab1
----
-2632
-125
-280
-83
-784
-92

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + - COUNT( 66 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7695
SELECT + - COUNT ( 66 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE col0 * + col2 - ( + + CAST( NULL AS SIGNED ) ) <> + col2 + 93 * + col0 / - col2
----
0

skipif mysql # not compatible
query I rowsort label-7696
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE col0 * + col2 - ( + + CAST ( NULL AS INTEGER ) ) <> + col2 + 93 * + col0 / - col2
----
0

query I rowsort
SELECT ALL - + col1 * + col0 * + col0 + - + col2 AS col1 FROM tab2 AS cor0
----
-107939
-315432
-376933

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7698
SELECT ALL - CAST( NULL AS DECIMAL ) * 91 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL - CAST ( NULL AS REAL ) * 91 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + - 54 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - ( 23 ) AS col2 FROM tab1
----
-23

query I rowsort
SELECT - 45 * + ( - col0 ) + + col1 AS col1 FROM tab1
----
2309
3830
4142

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 55 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT col2 * - - 6 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7705
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT col2 * 39 NOT BETWEEN + + col1 - - 18 AND NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= 69
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 26 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 43 * - 7 FROM tab0 AS cor0 WHERE NOT NULL = + col2
----

query II rowsort
SELECT - + col1 * + col0 AS col1, 68 * + col1 FROM tab2 AS cor0
----
-2346
3468
-4928
5236
-5025
4556

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 < + 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT ALL - 77 * col0 DIV + 65 AS col0 FROM tab1
----
-100
-107
-60

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL - 77 * col0 / + 65 AS col0 FROM tab1
----
-100
-107
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT - COUNT( * ) * + 56 AS col2 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-7714
SELECT - COUNT ( * ) * + 56 AS col2 FROM tab0
----
-168

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab0 WHERE NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL SUM( ALL - + col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL SUM ( ALL - + col2 ) AS col0 FROM tab2
----
-121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( - - 47 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT - ( + + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT - ( + + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL - col1 * + 65 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1365
-5265
-65

query I rowsort
SELECT DISTINCT + - ( - 34 ) * + + col2 AS col0 FROM tab1 AS cor0
----
2006
2312
3264

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 67 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7722
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 67 IS NOT NULL
----
9

query II rowsort
SELECT ALL + 61 AS col0, + 1 FROM tab2
----
61
1
61
1
61
1

query I rowsort
SELECT + ( col2 ) * - col1 + - col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT + - col1 DIV - col0 + - + col2 + + col0 FROM tab1 cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-7725
SELECT + - col1 / - col0 + - + col2 + + col0 FROM tab1 cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT - 26 + 77 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT ALL + CAST( NULL AS SIGNED ) + + - 17 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 17 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 77 + - 63 AS col2 FROM tab0 AS cor0
----
-140
-140
-140

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 68 - - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col2 col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT DISTINCT + col2 + 3 + + col2 DIV ( + col2 ) AS col1 FROM tab2 AS cor0
----
27
44
62

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT + col2 + 3 + + col2 / ( + col2 ) AS col1 FROM tab2 AS cor0
----
27
44
62

query I rowsort
SELECT ALL 10 + 68 * - - 32 AS col2 FROM tab1 AS cor0
----
2186
2186
2186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7734
SELECT 61, - col2 + col1 + + ( - CAST( NULL AS SIGNED ) ) / - 78 AS col2 FROM tab1 cor0
----
61
NULL
61
NULL
61
NULL

skipif mysql # not compatible
query II rowsort label-7734
SELECT 61, - col2 + col1 + + ( - CAST ( NULL AS INTEGER ) ) / - 78 AS col2 FROM tab1 cor0
----
61
NULL
61
NULL
61
NULL

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT 79 + - MAX( 14 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT 79 + - MAX ( 14 ) FROM tab2
----
65

query I rowsort
SELECT col1 - - ( 38 ) FROM tab1
----
43
52
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + 44 - - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7738
SELECT + 44 - - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL col2 - - - col1 + - + col0 AS col0 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT COUNT( + - ( + 24 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7740
SELECT COUNT ( + - ( + 24 ) ) FROM tab1
----
3

query I rowsort
SELECT - col0 * - 5 FROM tab0 AS cor0
----
435
485
75

query II rowsort
SELECT DISTINCT - col0 AS col0, - col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL - + MAX( DISTINCT + - 55 ) AS col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - + MAX ( DISTINCT + - 55 ) AS col1 FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7744
SELECT ALL - COUNT( * ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7744
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 73 IS NOT NULL
----

query II rowsort
SELECT col0 * - col0 * - col1 AS col0, + col1 FROM tab1 AS cor0
----
36125
5
36414
14
389207
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7747
SELECT DISTINCT - col0 * + 26 AS col1, CAST( + col0 AS SIGNED ) * + - 46 + + - 69 + - + col2 * - col1 FROM tab1 WHERE NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-7747
SELECT DISTINCT - col0 * + 26 AS col1, CAST ( + col0 AS INTEGER ) * + - 46 + + - 69 + - + col2 * - col1 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT - COUNT( * ) FROM tab2 WHERE NOT - - col0 * - - 54 <= + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-7748
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - - col0 * - - 54 <= + - col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL - MIN( DISTINCT - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL - MIN ( DISTINCT - col2 ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT + + col1 AS col1 FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND 42 * - col0
----

skipif mysql # not compatible
query I rowsort label-7750
SELECT + + col1 AS col1 FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND 42 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT SUM( DISTINCT 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-7751
SELECT SUM ( DISTINCT 62 ) FROM tab1
----
62

query I rowsort
SELECT DISTINCT - - 24 * col1 FROM tab1 AS cor0
----
1128
120
336

query I rowsort
SELECT ALL 2 * - col2 AS col1 FROM tab0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT DISTINCT - + COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT - + COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + - 24 * - - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT DISTINCT 79 + COUNT( * ) AS col2 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT 79 + COUNT ( * ) AS col2 FROM tab2 cor0
----
82

query I rowsort
SELECT DISTINCT + col1 + - - col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + + col0 - col1 AS col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL 75 - 3 AS col1 FROM tab1
----
72
72
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7760
SELECT DISTINCT - SUM( DISTINCT col1 ) - - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT - SUM ( DISTINCT col1 ) - - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL - SUM( - ( - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL - SUM ( - ( - col1 ) ) FROM tab2
----
-195

query I rowsort
SELECT - 21 + + - col0 FROM tab1
----
-106
-112
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT + CAST( - - col2 AS SIGNED ) + col2 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-7763
SELECT + CAST ( - - col2 AS INTEGER ) + col2 FROM tab2
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7764
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7764
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col0 * col0 AS col1 FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT + 23 AS col0 FROM tab1 WHERE + col2 NOT BETWEEN + col2 AND - 56
----
23
23
23

query I rowsort
SELECT DISTINCT 76 * - 52 FROM tab1
----
-3952

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 70 * - col0 * - 30 NOT BETWEEN NULL AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 14 * - col2 col2 FROM tab2 cor0
----
-22400
-47096
-7406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT ALL + ( - CAST( col1 AS SIGNED ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + ( - CAST ( col1 AS INTEGER ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - + 82 FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL col0 DIV 68 * + + 51 AS col1 FROM tab1 AS cor0
----
0
51
51

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL col0 / 68 * + + 51 AS col1 FROM tab1 AS cor0
----
0
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT - - SUM( - - col1 ) * - 37 FROM tab2 AS cor0 WHERE NOT ( + 7 ) <= - + col0
----
-7215

skipif mysql # not compatible
query I rowsort label-7773
SELECT - - SUM ( - - col1 ) * - 37 FROM tab2 AS cor0 WHERE NOT ( + 7 ) <= - + col0
----
-7215

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT MIN( - 33 ) AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT MIN ( - 33 ) AS col0 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT - + 73 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-73
-73
-73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 60 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 80 FROM tab2 AS cor0
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col2 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT + 56 * - 79 + MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-4447

skipif mysql # not compatible
query I rowsort label-7779
SELECT + 56 * - 79 + MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-4447

query I rowsort
SELECT + ( + 55 ) FROM tab0 cor0
----
55
55
55

query II rowsort
SELECT col0, - col1 + - 1 FROM tab2
----
46
-52
64
-78
75
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7782
SELECT DISTINCT + COUNT( * ) AS col1, SUM( DISTINCT col0 ) + + CAST( NULL AS DECIMAL ) * - COUNT( * ) * - 69 AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7782
SELECT DISTINCT + COUNT ( * ) AS col1, SUM ( DISTINCT col0 ) + + CAST ( NULL AS REAL ) * - COUNT ( * ) * - 69 AS col2 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT - MAX( ALL + + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT - MAX ( ALL + + col1 ) FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 59 * - + 25 > + col0
----

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 25 * col2 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 42 * + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + 29
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT CAST( 44 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT CAST ( 44 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7790
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7790
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 58 AS col2 FROM tab0 cor0
----
-15
58
-87
58
-97
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 * - col0 - + ( + - 61 ) + + col1 * - col2 col1, - ( + col0 ) + + col1 + + col2 AS col2 FROM tab0 AS cor0
----
-4841
113
-6500
-56
-7119
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT - SUM( 50 ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-7793
SELECT - SUM ( 50 ) AS col1 FROM tab0
----
-150

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) = ( col0 * 14 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + - col1 col0 FROM tab1 WHERE NOT ( 94 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + col2 FROM tab2 WHERE ( NULL ) < ( 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT 35 * - MIN( + 76 * + col2 ) AS col2 FROM tab2
----
-61180

skipif mysql # not compatible
query I rowsort label-7797
SELECT 35 * - MIN ( + 76 * + col2 ) AS col2 FROM tab2
----
-61180

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT COUNT( * ) * COUNT( ( - col1 ) ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7798
SELECT COUNT ( * ) * COUNT ( ( - col1 ) ) AS col0 FROM tab0
----
9

query I rowsort
SELECT col2 * + ( col1 ) AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT ALL 94 + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL 94 + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
103

query I rowsort
SELECT 40 * col1 FROM tab0
----
3240
40
840

query I rowsort
SELECT 78 * col1 AS col1 FROM tab1
----
1092
3666
390

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + + 2 * - col1 ) <> ( - col1 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 82 )
----

query I rowsort
SELECT 85 AS col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - 76 + col2 AS col0 FROM tab2
----
-18
-36
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 + col1 col0 FROM tab1 WHERE NOT col1 IS NULL
----
18
27
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 >= col0
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT ALL 9 DIV - col2 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7809
SELECT ALL 9 / - col2 col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT ALL + 96 DIV col2 AS col0 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL + 96 / col2 AS col0 FROM tab2
----
1
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT DISTINCT 30 DIV + 35 AS col2 FROM tab1 WHERE NOT col0 * + ( + col2 * col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT 30 / + 35 AS col2 FROM tab1 WHERE NOT col0 * + ( + col2 * col1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL + 63 * - COUNT( * ) FROM tab1 WHERE col2 * - col0 IS NOT NULL
----
-189

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + 63 * - COUNT ( * ) FROM tab1 WHERE col2 * - col0 IS NOT NULL
----
-189

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col2 + col0 * 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7814
SELECT * FROM tab2 WHERE col2 * CAST( - 36 * 89 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7814
SELECT * FROM tab2 WHERE col2 * CAST ( - 36 * 89 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7815
SELECT MAX( DISTINCT + 94 ) DIV COUNT( ALL col1 * - ( + 62 ) ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-7815
SELECT MAX ( DISTINCT + 94 ) / COUNT ( ALL col1 * - ( + 62 ) ) FROM tab2
----
31

query I rowsort
SELECT - col0 - + ( col0 ) * + col1 FROM tab2
----
-2392
-4992
-5100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7817
SELECT CAST( 18 AS SIGNED ) DIV - col1 FROM tab0
----
-18
0
0

skipif mysql # not compatible
query I rowsort label-7817
SELECT CAST ( 18 AS INTEGER ) / - col1 FROM tab0
----
-18
0
0

query I rowsort
SELECT 86 - + col1 FROM tab2
----
19
35
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + 38 * - col0 FROM tab1 AS cor0
----
-1938
-3230
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT MAX( - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7821
SELECT MAX ( - col0 ) AS col0 FROM tab2
----
-46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 96 * 58 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 96 AS col1 FROM tab2 cor0 CROSS JOIN tab2
----
9 values hashing to c89b545346f99713888a7934e4caa539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 + + col1 * - col2 col1 FROM tab2 AS cor0 WHERE + col0 / + col2 NOT BETWEEN NULL AND ( 5 ) + + 97
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT DISTINCT - COUNT( ALL - 85 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT - COUNT ( ALL - 85 ) / + COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col1 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + 25 * col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND + 35 * - col0
----

query I rowsort
SELECT DISTINCT - col2 + col2 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
1035
2520
4292

query I rowsort
SELECT ALL 77 * - - col2 FROM tab1
----
4543
5236
7392

query I rowsort
SELECT 10 * - col2 FROM tab1
----
-590
-680
-960

query I rowsort
SELECT 3 * + 6 AS col0 FROM tab1
----
18
18
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7832
SELECT COUNT( * ) AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) * 72 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7832
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * 72 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT MIN( DISTINCT + + 51 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT MIN ( DISTINCT + + 51 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL - ( col0 ) + - 17 * col1 AS col0 FROM tab1 cor0
----
-170
-289
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT DISTINCT COUNT( * ) + + 22 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT COUNT ( * ) + + 22 FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT 27 + - 34 AS col0 FROM tab1 WHERE NOT - - 75 + + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 89 AS col1, + col0 FROM tab2
----
-89
46
-89
64
-89
75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE ( 43 ) IS NULL
----

query I rowsort
SELECT - - 80 - col2 FROM tab0 AS cor0
----
-19
33
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - - col0 ) = ( - col1 )
----

query I rowsort
SELECT ALL + + ( + col0 ) + 1 AS col0 FROM tab0 AS cor0
----
16
88
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 * col1 + - - 23 col2 FROM tab0 AS cor0
----
-1048
-28
-4108

query I rowsort
SELECT ALL - 34 * col1 * + 54 + - col2 AS col2 FROM tab2 AS cor0
----
-123070
-141412
-93659

query I rowsort
SELECT - 45 + + + 43 * - + 12 FROM tab0 AS cor0
----
-561
-561
-561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT - CAST( + col2 AS SIGNED ) + + - col0 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-7848
SELECT - CAST ( + col2 AS INTEGER ) + + - col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT - 78 - + + 88 AS col2 FROM tab1 AS cor0
----
-166

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7850
SELECT ALL - - 11 * - + col1 + + 18 * + CAST( NULL AS DECIMAL ) 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-7850
SELECT ALL - - 11 * - + col1 + + 18 * + CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * 56 col1 FROM tab2
----
1568
1568
1568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7852
SELECT - col2 + CAST( NULL AS SIGNED ), - 59 AS col0 FROM tab2
----
NULL
-59
NULL
-59
NULL
-59

skipif mysql # not compatible
query II rowsort label-7852
SELECT - col2 + CAST ( NULL AS INTEGER ), - 59 AS col0 FROM tab2
----
NULL
-59
NULL
-59
NULL
-59

query I rowsort
SELECT DISTINCT + col0 - + - col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL 95 - + 10 * - MIN( + 68 ) AS col0 FROM tab2
----
775

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL 95 - + 10 * - MIN ( + 68 ) AS col0 FROM tab2
----
775

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + ( + 35 ) ) NOT BETWEEN + 77 AND + ( - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + ( col0 ) / col2 NOT IN ( + col2 )
----

query I rowsort
SELECT - ( - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - COUNT( ALL col0 ) * + COUNT( * ) - + 81 FROM tab1 AS cor0 WHERE NOT ( NOT ( - 7 + - col2 ) NOT BETWEEN NULL AND + col1 * col1 )
----
-81

skipif mysql # not compatible
query I rowsort label-7859
SELECT - COUNT ( ALL col0 ) * + COUNT ( * ) - + 81 FROM tab1 AS cor0 WHERE NOT ( NOT ( - 7 + - col2 ) NOT BETWEEN NULL AND + col1 * col1 )
----
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 38
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 21 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7862
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) - + - col2 ) <= ( - col0 * - 0 )
----

skipif mysql # not compatible
query III rowsort label-7862
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) - + - col2 ) <= ( - col0 * - 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + + COUNT( * ) * MAX( + col2 ) FROM tab1 cor0
----
288

skipif mysql # not compatible
query I rowsort label-7863
SELECT + + COUNT ( * ) * MAX ( + col2 ) FROM tab1 cor0
----
288

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL = + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT COUNT( * ) * + - 46 FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT COUNT ( * ) * + - 46 FROM tab1 WHERE NOT NULL IN ( + col2 )
----
0

query II rowsort
SELECT - col2, + 44 AS col0 FROM tab2
----
-23
44
-40
44
-58
44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 71 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 52 AS col0 FROM tab2
----
52

query II rowsort
SELECT ALL + col1 AS col0, 86 * + + ( col1 ) + col2 FROM tab0 AS cor0
----
1
185
21
1816
81
7013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT ( col0 ) + + CAST( col2 AS SIGNED ) * col2 + col2 AS col0 FROM tab2 cor0
----
1704
3497
598

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT ( col0 ) + + CAST ( col2 AS INTEGER ) * col2 + col2 AS col0 FROM tab2 cor0
----
1704
3497
598

query I rowsort
SELECT DISTINCT - 44 * + - col2 AS col1 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT ALL col0 + - + 95 + ( - 14 ) + + - col0 AS col2 FROM tab1 AS cor0
----
-109
-109
-109

query I rowsort
SELECT DISTINCT - col2 * - 99 + - + col0 * - col1 AS col0 FROM tab0 AS cor0
----
2817
5868
9898

query II rowsort
SELECT + col1 * - + col2 AS col2, 95 + - 38 + col2 * - ( - col2 ) AS col1 FROM tab0
----
-210
157
-3807
2266
-99
9858

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL ( - MAX( ALL col0 ) ) AS col1 FROM tab1 WHERE - 46 + - col2 NOT IN ( + + col0 )
----
-91

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL ( - MAX ( ALL col0 ) ) AS col1 FROM tab1 WHERE - 46 + - col2 NOT IN ( + + col0 )
----
-91

query I rowsort
SELECT col2 / 31 * - col0 AS col1 FROM tab1 WHERE col2 + - 31 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 29 + + - col0 * - col0 * + col1 FROM tab1 AS cor0
----
35980
36008
387844

query II rowsort
SELECT + 38 AS col2, - col0 FROM tab0 cor0
----
38
-15
38
-87
38
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT 56, - ( + COUNT( * ) ) col2 FROM tab2 AS cor0
----
56
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7879
SELECT 56, - ( + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
56
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - - col0 < - col1 OR NOT + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 89 <= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT DISTINCT - col1 DIV - 70 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - col1 / - 70 AS col1 FROM tab0
----
0
1

query I rowsort
SELECT - col2 + - ( - 88 ) + - 61 FROM tab1
----
-32
-41
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-7884
SELECT col1 DIV + + col1, col0 DIV + - 1 AS col0 FROM tab2 AS cor0
----
1
-46
1
-64
1
-75

skipif mysql # not compatible
query II rowsort label-7884
SELECT col1 / + + col1, col0 / + - 1 AS col0 FROM tab2 AS cor0
----
1
-46
1
-64
1
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT - ( + + col1 ) * CAST( - - col0 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
-1262
-1837
-196

skipif mysql # not compatible
query I rowsort label-7885
SELECT - ( + + col1 ) * CAST ( - - col0 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
-1262
-1837
-196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 81 = - col0 * col2
----

query I rowsort
SELECT DISTINCT + col2 + + col0 + - col2 * col2 FROM tab2 AS cor0
----
-1496
-3231
-460

onlyif mysql # DIV for integer division: 
query II rowsort label-7888
SELECT + 97 DIV - 58 col1, 81 AS col2 FROM tab0 AS cor0
----
-1
81
-1
81
-1
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7888
SELECT + 97 / - 58 col1, 81 AS col2 FROM tab0 AS cor0
----
-1
81
-1
81
-1
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 60 + + col0 AS col2, - 37 + + col1 col2 FROM tab0 AS cor0
----
-45
44
27
-16
37
-36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 * + 48 * - + 44 + + col0 / col0 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - 55 AS col1 FROM tab1
----
-3245
-3740
-5280

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL + CAST( - 82 AS SIGNED ) AS col1 FROM tab0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + CAST ( - 82 AS INTEGER ) AS col1 FROM tab0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col1 col0 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT - 0 * + col1 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7897
SELECT DISTINCT * FROM tab2 WHERE col2 * + + CAST( + 42 AS DECIMAL ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7897
SELECT DISTINCT * FROM tab2 WHERE col2 * + + CAST ( + 42 AS REAL ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT + COUNT( * ) + - 30 AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + COUNT ( * ) + - 30 AS col1 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT + COUNT( * ) + 11 AS col0 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT + COUNT ( * ) + 11 AS col0 FROM tab1 AS cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab0 AS cor0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT + - ( COUNT( DISTINCT + col2 ) ) * SUM( col2 ) AS col2 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-7903
SELECT + - ( COUNT ( DISTINCT + col2 ) ) * SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
-363

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + col0 * + ( - col0 ) + 69 + 1 AND - col2
----

query I rowsort
SELECT + - 97 * col2 AS col2 FROM tab0 AS cor0
----
-4559
-9603
-970

onlyif mysql # DIV for integer division: 
query I rowsort label-7906
SELECT ALL + 17 DIV 51 - + col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL + 17 / 51 - + col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - col2 * + ( - - 75 ) AS col0 FROM tab0
----
-3525
-7425
-750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + col1 col2 FROM tab2
----
111
121
95

query II rowsort
SELECT DISTINCT ( - ( + - col1 ) ) AS col1, 65 FROM tab2
----
51
65
67
65
77
65

query I rowsort
SELECT - 22 * - + 4 + + 35 AS col2 FROM tab0
----
123
123
123

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT 2 + - - 22 + - - 11 DIV 9 FROM tab0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-7911
SELECT 2 + - - 22 + - - 11 / 9 FROM tab0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - COUNT( + col2 ) + + 49 AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-7912
SELECT - COUNT ( + col2 ) + + 49 AS col0 FROM tab1
----
46

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE - col0 < - col1 * + + col1 + - 29 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + ( - + 81 ) + col0 + - + col1 * + 62 * - col0 col2 FROM tab0
----
113372
6122
75356

query I rowsort
SELECT DISTINCT + 10 + + - col2 AS col1 FROM tab0
----
-37
-89
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT - col1 * - CAST( NULL AS SIGNED ) + + col1 * - col2 FROM tab2 AS cor0 WHERE col2 < + col2 + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT - col1 * - CAST ( NULL AS INTEGER ) + + col1 * - col2 FROM tab2 AS cor0 WHERE col2 < + col2 + col2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 + - - ( col0 ) / + col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + - + col1 + + col2 * + - 30 FROM tab1 AS cor0
----
-1690
-1996
-2843

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( ( col2 + + col2 = NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( ( col2 + + col2 = NULL ) )
----
0

query I rowsort
SELECT DISTINCT - 37 + + col1 FROM tab1 AS cor0
----
-23
-32
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL 66 * + + ( COUNT( * ) ) + COUNT( ALL + col1 ) + + COUNT( * ) FROM tab0 cor0
----
204

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL 66 * + + ( COUNT ( * ) ) + COUNT ( ALL + col1 ) + + COUNT ( * ) FROM tab0 cor0
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 col1 FROM tab1 cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT - - col1 + - + col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT 15 AS col2, - 66, + col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to e20aa1f5b86b0bb8afb83c60fc417d6e

onlyif mysql # aggregate syntax: 
query II rowsort label-7926
SELECT + 58, - COUNT( * ) col0 FROM tab2 AS cor0
----
58
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7926
SELECT + 58, - COUNT ( * ) col0 FROM tab2 AS cor0
----
58
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 61 ) IS NULL
----

query II rowsort
SELECT - col0 AS col2, + col0 * + - col0 + + ( col0 ) * - 11 FROM tab2 AS cor0
----
-46
-2622
-64
-4800
-75
-6450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + ( - 82 ) ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT DISTINCT CAST( + ( - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT CAST ( + ( - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - 51 * - col0 * col1 * col0 + 68 AS col2 FROM tab0 AS cor0
----
479927
8106467
929543

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT ( - COUNT( ALL - ( + 93 ) ) ) FROM tab0 cor0 WHERE ( NOT - col0 IS NULL ) OR NOT - col1 - 97 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT ( - COUNT ( ALL - ( + 93 ) ) ) FROM tab0 cor0 WHERE ( NOT - col0 IS NULL ) OR NOT - col1 - 97 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + + SUM( - 61 ) AS col0 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-7934
SELECT + + SUM ( - 61 ) AS col0 FROM tab0 AS cor0
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT + CAST( - COUNT( * ) AS SIGNED ) - - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7935
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( col2 ) col0 FROM tab1 WHERE - col1 NOT IN ( 57, col2 * - col2 )
----
110
115
64

query I rowsort
SELECT + - ( - col0 ) + - 91 + + - 71 FROM tab2 AS cor0
----
-116
-87
-98

query I rowsort
SELECT 51 + - 69 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - + col0 + - 6 AS col1 FROM tab1 AS cor0
----
-57
-91
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - - MAX( ALL - col2 ) + - 94 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-7940
SELECT - - MAX ( ALL - col2 ) + - 94 FROM tab2 AS cor0
----
-117

query I rowsort
SELECT - col0 * ( col0 ) * + + col2 + - col2 + + 39 FROM tab2 AS cor0
----
-163841
-326269
-48652

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7942
SELECT DISTINCT - CAST( NULL AS SIGNED ), + col0 * + + col0 AS col2 FROM tab2 AS cor0
----
NULL
2116
NULL
4096
NULL
5625

skipif mysql # not compatible
query II rowsort label-7942
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + col0 * + + col0 AS col2 FROM tab2 AS cor0
----
NULL
2116
NULL
4096
NULL
5625

query I rowsort
SELECT 2 * + - col1 FROM tab2 AS cor0
----
-102
-134
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col1 FROM tab0
----
70
70
70

query I rowsort
SELECT ALL - 44 + 98 + - col1 + + 64 AS col0 FROM tab1
----
104
113
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL + MIN( - ( + - 50 ) ) * - 13 AS col1 FROM tab1
----
-650

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL + MIN ( - ( + - 50 ) ) * - 13 AS col1 FROM tab1
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL COUNT( ALL + col0 ) - - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 * 32 * col2 / + ( - col2 ) * - col0 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL COUNT ( ALL + col0 ) - - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 * 32 * col2 / + ( - col2 ) * - col0 * col1 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 39 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT - + 64 * + COUNT( * ) FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-7949
SELECT - + 64 * + COUNT ( * ) FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT ALL - SUM( ALL + col0 ) * + COUNT( * ) col1 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7950
SELECT ALL - SUM ( ALL + col0 ) * + COUNT ( * ) col1 FROM tab2 AS cor0
----
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT DISTINCT + col1 DIV + - 72 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + col1 / + - 72 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT ALL 68 DIV - 35 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL 68 / - 35 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 9 FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7955
SELECT DISTINCT ( + ( + COUNT( * ) ) ) col2, COUNT( * ) * - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
3
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7955
SELECT DISTINCT ( + ( + COUNT ( * ) ) ) col2, COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
3
-12

query I rowsort
SELECT DISTINCT + ( 93 ) FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 cor0 WHERE NOT 57 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col0 FROM tab1 AS cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT ( - - ( CAST( NULL AS SIGNED ) ) ) / 87 - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT ( - - ( CAST ( NULL AS INTEGER ) ) ) / 87 - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT DISTINCT col2 DIV + + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT col2 / + + col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL - MAX( ALL - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - MAX ( ALL - col2 ) FROM tab2
----
23

query II rowsort
SELECT col0, + 19 AS col1 FROM tab1
----
51
19
85
19
91
19

onlyif mysql # aggregate syntax: 
query II rowsort label-7964
SELECT 82 AS col1, + COUNT( * ) FROM tab0
----
82
3

skipif mysql # not compatible
query II rowsort label-7964
SELECT 82 AS col1, + COUNT ( * ) FROM tab0
----
82
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, ( + col1 ) col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7966
SELECT ALL col1 DIV + col2 + + col2 col1 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7966
SELECT ALL col1 / + col2 + + col2 col1 FROM tab2 AS cor0
----
25
41
59

query II rowsort
SELECT DISTINCT + col1 AS col1, + 40 FROM tab1 cor0
----
14
40
47
40
5
40

query II rowsort
SELECT ALL col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT + - col1 * + col0 + + col2 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL - + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL - + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7971
SELECT DISTINCT * FROM tab0 WHERE NOT + 5 BETWEEN - + col2 / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 22 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7971
SELECT DISTINCT * FROM tab0 WHERE NOT + 5 BETWEEN - + col2 / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 22 AND NULL
----

query I rowsort
SELECT - 42 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT + COUNT( ALL + - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7973
SELECT + COUNT ( ALL + - col2 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <= + + col0 * - col0 * + + col2
----

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <= + + col0 * - col0 * + + col2
----

query I rowsort
SELECT ALL + col1 * - 53 + + col2 * col0 AS col2 FROM tab0
----
-243
-3588
9550

query II rowsort
SELECT ALL col1, - col0 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL - MAX( - ( + col1 ) ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL - MAX ( - ( + col1 ) ) AS col2 FROM tab1
----
5

query I rowsort
SELECT DISTINCT + col0 * - + col0 FROM tab0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col2 col0 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT ALL - col2 + - 80 FROM tab0 AS cor0
----
-127
-179
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT MAX( - 98 ) * + 22 * + - COUNT( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
6468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7981
SELECT MAX ( - 98 ) * + 22 * + - COUNT ( DISTINCT col0 ) col0 FROM tab2 AS cor0
----
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT - + MAX( ALL 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7982
SELECT - + MAX ( ALL 39 ) FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL 75 + - COUNT( ALL - + ( col0 ) ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL 75 + - COUNT ( ALL - + ( col0 ) ) FROM tab1
----
72

query I rowsort
SELECT DISTINCT 9 * - - col2 FROM tab1
----
531
612
864

query I rowsort
SELECT col1 * + + 61 FROM tab1
----
2867
305
854

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT DISTINCT - 27 DIV 7 * 78 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT - 27 / 7 * 78 FROM tab0 AS cor0
----
-234

onlyif mysql # aggregate syntax: 
query II rowsort label-7987
SELECT DISTINCT - COUNT( ALL col0 ), - SUM( col1 ) col0 FROM tab2 AS cor0
----
-3
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7987
SELECT DISTINCT - COUNT ( ALL col0 ), - SUM ( col1 ) col0 FROM tab2 AS cor0
----
-3
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT - 13 * + - COUNT( * ) col0 FROM tab1 cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7988
SELECT - 13 * + - COUNT ( * ) col0 FROM tab1 cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7989
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( + 77 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7989
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( + 77 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL - COUNT( * ) * - - SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL - COUNT ( * ) * - - SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
-363

query I rowsort
SELECT 72 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT ALL - MIN( DISTINCT + - 7 ) * - COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - MIN ( DISTINCT + - 7 ) * - COUNT ( * ) FROM tab1
----
-21

query I rowsort
SELECT ALL 82 * - col1 * - col1 AS col2 FROM tab2
----
213282
368098
486178

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT 14 DIV + 84 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7994
SELECT 14 / + 84 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 19 col1 FROM tab1
----
-1121
-1292
-1824

query I rowsort
SELECT 97 + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col0, ( - col0 ) + + 72 FROM tab0 AS cor0
----
15
57
87
-15
97
-25

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7999
SELECT ( - AVG ( ( - 5 ) ) ) + COUNT( * ) AS col2, - COUNT( * ) FROM tab1 cor0 WHERE col1 BETWEEN ( + 22 * col1 * - + 54 ) AND 40 - - + ( + CAST( NULL AS DECIMAL ) )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7999
SELECT ( - AVG ( ( - 5 ) ) ) + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 cor0 WHERE col1 BETWEEN ( + 22 * col1 * - + 54 ) AND 40 - - + ( + CAST ( NULL AS REAL ) )
----
NULL
0

query III rowsort
SELECT * FROM tab2 WHERE - - 19 <= ( col0 * - + col0 * + ( + + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT DISTINCT SUM( + col2 ) * 90 + - - 18 FROM tab2
----
10908

skipif mysql # not compatible
query I rowsort label-8001
SELECT DISTINCT SUM ( + col2 ) * 90 + - - 18 FROM tab2
----
10908

query I rowsort
SELECT col2 + - ( - ( - 8 ) ) FROM tab1
----
51
60
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8004
SELECT - 77 DIV + CAST( - ( + + 64 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-8004
SELECT - 77 / + CAST ( - ( + + 64 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col0 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT - 27 + 33 + - col2 FROM tab2 cor0
----
-17
-34
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT DISTINCT + - ( - + col1 ) + col1 * col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + - ( - + col1 ) + col1 * col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + ( - + ( - col2 ) ) + - 71 AS col0 FROM tab0 AS cor0
----
-118
-170
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( col2 ) col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT - SUM( ALL - 98 ) * 44 + - COUNT( * ) + + - SUM( ALL + ( - + col0 ) ) FROM tab2 cor0
----
13118

skipif mysql # not compatible
query I rowsort label-8010
SELECT - SUM ( ALL - 98 ) * 44 + - COUNT ( * ) + + - SUM ( ALL + ( - + col0 ) ) FROM tab2 cor0
----
13118

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT + 98 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT + 98 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 WHERE NULL NOT IN ( + - ( + col0 ), 92 + + - col2, + 66 - - + col2, - + 20, col2 )
----

query I rowsort
SELECT + 54 - 83 + + - col2 FROM tab0
----
-128
-39
-76

query I rowsort
SELECT + ( - + col0 ) + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT col0 * 50 * - col0 * + - col2 DIV col2 - + - 1 FROM tab0
----
11251
378451
470451

skipif mysql # not compatible
query I rowsort label-8015
SELECT col0 * 50 * - col0 * + - col2 / col2 - + - 1 FROM tab0
----
11251
378451
470451

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT 12 + SUM( - + col1 ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8016
SELECT 12 + SUM ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 70 + + - col2 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT - col0, - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT + + col2, - 23 FROM tab2 AS cor0
----
23
-23
40
-23
58
-23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 16 * - col2 + col0 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL + ( + ( + 91 ) ) * - 57 + + COUNT( * ) * 22 FROM tab1 AS cor0
----
-5121

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL + ( + ( + 91 ) ) * - 57 + + COUNT ( * ) * 22 FROM tab1 AS cor0
----
-5121

query II rowsort
SELECT ALL + + 9, + col2 AS col1 FROM tab2 AS cor0
----
9
23
9
40
9
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 94 * - - 21 col2 FROM tab1 AS cor0
----
-1974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT ALL col0 * + + col0 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL col0 * + + col0 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( + + 17 ) - - - col1 * + col1 AND + col2
----

query I rowsort
SELECT + 85 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT ALL 35 DIV col1 * + - col2 + col1 DIV - col2 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL 35 / col1 * + - col2 + col1 / - col2 AS col1 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8029
SELECT + col0 + + + col2 DIV col0 col1 FROM tab0
----
18
87
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8029
SELECT + col0 + + + col2 / col0 col1 FROM tab0
----
18
87
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 + col1 AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 87 + + col1, col0 FROM tab0 AS cor0
----
-6
15
-66
87
-86
97

query I rowsort
SELECT + col2 + - ( ( + col0 ) ) * col0 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT DISTINCT col0 * + 21 AS col0 FROM tab1 AS cor0
----
1071
1785
1911

query I rowsort
SELECT 13 * col1 FROM tab0
----
1053
13
273

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8036
SELECT - col0 AS col2, 24 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query II rowsort label-8036
SELECT - col0 AS col2, 24 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 89 * - + col2 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + ( 78 ) FROM tab1 AS cor0
----
129
163
169

query I rowsort
SELECT DISTINCT + - 59 - + + col0 FROM tab2 cor0
----
-105
-123
-134

query I rowsort
SELECT 59 + + - col2 - - + 7 FROM tab1
----
-2
-30
7

query II rowsort
SELECT DISTINCT + col1, col0 AS col0 FROM tab1 WHERE NULL <> + 77
----

query I rowsort
SELECT ALL col2 * + 90 AS col2 FROM tab2
----
2070
3600
5220

query I rowsort
SELECT ALL ( + 10 ) - 30 AS col2 FROM tab2
----
-20
-20
-20

query II rowsort
SELECT ALL + col1 * + + 71, col1 AS col2 FROM tab2 cor0
----
3621
51
4757
67
5467
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT - COUNT( DISTINCT + ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT - COUNT ( DISTINCT + ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 31 * 38 AS col1 FROM tab1 AS cor0
----
-1178
-1178
-1178

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 17
----
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 17
----
0

query I rowsort
SELECT ALL 12 AS col0 FROM tab2, tab2 AS cor0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT 20 * - + ( col0 ) FROM tab0
----
-1740
-1940
-300

query I rowsort
SELECT ALL + 54 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL + MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8053
SELECT + 97 * + MIN( - + col1 ) * - CAST( NULL AS DECIMAL ) + - 3 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT + 97 * + MIN ( - + col1 ) * - CAST ( NULL AS REAL ) + - 3 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8055
SELECT ALL + 19 * + ( 31 ) * ( + COUNT( * ) ) AS col2, - 47 FROM tab0 AS cor0
----
1767
-47

skipif mysql # not compatible
query II rowsort label-8055
SELECT ALL + 19 * + ( 31 ) * ( + COUNT ( * ) ) AS col2, - 47 FROM tab0 AS cor0
----
1767
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT ( + SUM( + - col2 ) ) AS col0, 36 FROM tab1 AS cor0
----
-223
36

skipif mysql # not compatible
query II rowsort label-8056
SELECT ( + SUM ( + - col2 ) ) AS col0, 36 FROM tab1 AS cor0
----
-223
36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN - col1 + + 56 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT 26 + MAX( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8058
SELECT 26 + MAX ( DISTINCT - + col2 ) AS col2 FROM tab0 AS cor0
----
16

query I rowsort
SELECT - - 27 * - - col0 FROM tab0 AS cor0 WHERE NOT - 96 IS NULL
----
2349
2619
405

query I rowsort
SELECT DISTINCT + col1 * 59 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT 98 * + col1 AS col1 FROM tab2
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT DISTINCT + MAX( + + col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT + MAX ( + + col0 ) FROM tab2
----
75

query I rowsort
SELECT DISTINCT 10 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 89 * - 3 FROM tab0 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT MAX( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8065
SELECT MAX ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - - col2 + 67 + - - 90 + - 37 AS col2 FROM tab0 AS cor0
----
130
167
219

query III rowsort
SELECT * FROM tab1 WHERE ( - + col1 ) / - col0 - + 50 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL + COUNT( * ) * 96 + COUNT( * ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL + COUNT ( * ) * 96 + COUNT ( * ) FROM tab2 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8069
SELECT - CAST( NULL AS SIGNED ) * + + 77 / + 8 * - col1, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8069
SELECT - CAST ( NULL AS INTEGER ) * + + 77 / + 8 * - col1, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( 17 ) ) NOT IN ( - col0, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 67 - + - col2 AS col0 FROM tab0 AS cor0
----
114
166
77

query I rowsort
SELECT - 20 AS col1 FROM tab0 cor0 WHERE 86 IS NOT NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 BETWEEN + - 12 * 14 / CAST( NULL AS DECIMAL ) / - col1 + 45 AND + col2 * - col1 + - 6 * + + 57 - col2
----

skipif mysql # not compatible
query III rowsort label-8073
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 BETWEEN + - 12 * 14 / CAST ( NULL AS REAL ) / - col1 + 45 AND + col2 * - col1 + - 6 * + + 57 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - - MAX( DISTINCT - ( - 12 ) ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8074
SELECT - - MAX ( DISTINCT - ( - 12 ) ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT - + 88 + + + ( COUNT( * ) ) + + COUNT( * ) AS col2 FROM tab1 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT - + 88 + + + ( COUNT ( * ) ) + + COUNT ( * ) AS col2 FROM tab1 cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT col2 - CAST( + col2 AS SIGNED ) - col2 * + col0 + col1 + + col0 FROM tab1
----
-4831
-4925
-6050

skipif mysql # not compatible
query I rowsort label-8076
SELECT col2 - CAST ( + col2 AS INTEGER ) - col2 * + col0 + col1 + + col0 FROM tab1
----
-4831
-4925
-6050

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT + MIN( - - col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT + MIN ( - - col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT DISTINCT + col0 * - - 12 FROM tab1
----
1020
1092
612

query II rowsort
SELECT ALL - col1 AS col0, col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
99
-21
10
-81
47

query I rowsort
SELECT ( + col1 ) * - - col0 + + col1 FROM tab1
----
430
4324
728

query III rowsort
SELECT * FROM tab2 WHERE NOT 28 BETWEEN + col1 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT + 1, - COUNT( * ) * - 95 col0 FROM tab1
----
1
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8082
SELECT + 1, - COUNT ( * ) * - 95 col0 FROM tab1
----
1
285

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT 21 <> NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT - - COUNT( * ) AS col0 FROM tab0 WHERE NOT ( - 46 ) > - col0
----
1

skipif mysql # not compatible
query I rowsort label-8084
SELECT - - COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( - 46 ) > - col0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 * col2 col2 FROM tab1 AS cor0
----
-1770
-2040
-2880

query I rowsort
SELECT ALL + col1 * ( - + col1 ) FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8087
SELECT DISTINCT + 11 DIV + col1 - - col0 - - col1 * 1 - col2 DIV + col2 FROM tab1 AS cor0
----
137
64
91

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT + 11 / + col1 - - col0 - - col1 * 1 - col2 / + col2 FROM tab1 AS cor0
----
137
64
91

query I rowsort
SELECT DISTINCT col0 - - col1 * 75 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1662
172
6090

query II rowsort
SELECT col1 AS col0, + col1 * + 96 + + - 87 + + + 34 - col2 AS col1 FROM tab0 AS cor0
----
1
-56
21
1953
81
7676

query I rowsort
SELECT DISTINCT - - 41 * ( 47 ) * + col2 + - col1 - - col2 * 34 FROM tab2 AS cor0
----
113671
45052
78363

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT + MIN( - + col0 ) * + - COUNT( * ) + + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + MIN ( - + col0 ) * + - COUNT ( * ) + + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
264

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col2 >= + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL MIN( + 15 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL MIN ( + 15 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT 27 * MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
-2673

skipif mysql # not compatible
query I rowsort label-8096
SELECT 27 * MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
-2673

query II rowsort
SELECT - col2 * + 43, 12 + + ( + col2 ) AS col1 FROM tab1
----
-2537
71
-2924
80
-4128
108

query I rowsort
SELECT col1 + - 17 AS col1 FROM tab1
----
-12
-3
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT + col0 + + - ( + col1 ) + - col2 DIV - ( 84 ) FROM tab1
----
38
44
80

skipif mysql # not compatible
query I rowsort label-8099
SELECT + col0 + + - ( + col1 ) + - col2 / - ( 84 ) FROM tab1
----
38
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT COUNT( * ) + 72 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8100
SELECT COUNT ( * ) + 72 FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8101
SELECT - COUNT( + col1 ) + + CAST( NULL AS SIGNED ) * 54 + - 20, COUNT( * ) col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8101
SELECT - COUNT ( + col1 ) + + CAST ( NULL AS INTEGER ) * 54 + - 20, COUNT ( * ) col2 FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8102
SELECT ALL - + 32 + - CAST( NULL AS SIGNED ) AS col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8102
SELECT ALL - + 32 + - CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL col0 * - 45 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2295
-3825
-4095

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - SUM( + + 3 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8105
SELECT - SUM ( + + 3 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - col1 IS NULL
----
1
21
81

query I rowsort
SELECT ALL 4 * - col0 AS col1 FROM tab1
----
-204
-340
-364

query II rowsort
SELECT ALL + + col2 * - col2 * - - col1 AS col1, col2 FROM tab2 AS cor0
----
-123200
40
-225388
58
-26979
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT DISTINCT col0 DIV + - col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT col0 / + - col2 FROM tab1 cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + + col0 AND NULL OR ( - 23 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL - SUM( - - ( + col0 ) ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL - SUM ( - - ( + col0 ) ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8112
SELECT DISTINCT + + col0 + - CAST( + CAST( + - ( col2 ) AS SIGNED ) AS SIGNED ) - + 28, + col0 col1 FROM tab0 AS cor0
----
168
97
34
15
69
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8112
SELECT DISTINCT + + col0 + - CAST ( + CAST ( + - ( col2 ) AS INTEGER ) AS INTEGER ) - + 28, + col0 col1 FROM tab0 AS cor0
----
168
97
34
15
69
87

query I rowsort
SELECT + col1 + ( 72 ) AS col0 FROM tab1 AS cor0
----
119
77
86

query I rowsort
SELECT DISTINCT - 7 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8115
SELECT DISTINCT - 41, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-41
3

skipif mysql # not compatible
query II rowsort label-8115
SELECT DISTINCT - 41, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-41
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col2 FROM tab1 WHERE NULL IS NULL
----
-76
-76
-76

query I rowsort
SELECT 48 * + + 42 AS col1 FROM tab0
----
2016
2016
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL - ( + SUM( DISTINCT col1 ) ) * + 51 AS col1 FROM tab2
----
-9945

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - ( + SUM ( DISTINCT col1 ) ) * + 51 AS col1 FROM tab2
----
-9945

query II rowsort
SELECT DISTINCT - col1 * - 95 AS col0, col1 AS col0 FROM tab2
----
4845
51
6365
67
7315
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 / + 72 col0 FROM tab1 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8121
SELECT + col0 DIV col0 * + 10 FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-8121
SELECT + col0 / col0 * + 10 FROM tab2 AS cor0
----
10
10
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 IN ( col1, + 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * + 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 53 * - - 82 + col2 + + + col2 FROM tab0 AS cor0
----
4366
4440
4544

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8125
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 80 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 1 col0 FROM tab0 AS cor0
----
-2
-22
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8128
SELECT ALL - + CAST( NULL AS DECIMAL ) * 82 / - + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - + CAST ( NULL AS REAL ) * 82 / - + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 > - - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( - - col2 ) / + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8133
SELECT 43 AS col2, + MIN( - 73 ) FROM tab1
----
43
-73

skipif mysql # not compatible
query II rowsort label-8133
SELECT 43 AS col2, + MIN ( - 73 ) FROM tab1
----
43
-73

query I rowsort
SELECT - - ( + ( + - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL = col2 + - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT - ( - 65 ) DIV 57 DIV col0 - + col0 + + - col1 DIV 24 FROM tab0 AS cor0
----
-18
-87
-97

skipif mysql # not compatible
query I rowsort label-8136
SELECT - ( - 65 ) / 57 / col0 - + col0 + + - col1 / 24 FROM tab0 AS cor0
----
-18
-87
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 / - col1 IS NULL OR NOT + 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col0 FROM tab2 AS cor0 WHERE - 2 / col0 < NULL
----

query I rowsort
SELECT + 72 + + col0 FROM tab1 AS cor0
----
123
157
163

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8141
SELECT ALL - 60 * + col2 + - + col1 - + 91 + + ( + + ( col1 ) ) + - - CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8141
SELECT ALL - 60 * + col2 + - + col1 - + 91 + + ( + + ( col1 ) ) + - - CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - COUNT( * ) * - COUNT( * ) + - 7 col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8142
SELECT - COUNT ( * ) * - COUNT ( * ) + - 7 col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NOT col0 IS NULL
----
-3

query I rowsort
SELECT - + 40 AS col0 FROM tab1 AS cor0
----
-40
-40
-40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > - + ( - - col1 ) * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 10 AS col0 FROM tab2 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL + MIN( - ( - col0 ) ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + MIN ( - ( - col0 ) ) FROM tab1 cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 33, + 87 col1 FROM tab0 AS cor0
----
2673
87
33
87
693
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT ALL + COUNT( DISTINCT 12 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + COUNT ( DISTINCT 12 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + SUM( ALL + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8150
SELECT + SUM ( ALL + - col2 ) FROM tab2
----
-121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + - col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT COUNT( 15 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8153
SELECT COUNT ( 15 ) FROM tab2
----
3

query I rowsort
SELECT ALL col2 * + + 72 * + col1 FROM tab0
----
15120
274104
7128

query I rowsort
SELECT DISTINCT + 27 FROM tab2 WHERE - - col1 <= NULL
----

query I rowsort
SELECT + col2 * + 71 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
4189
4828
6816

query II rowsort
SELECT col1 * col1 + + + 6 - - col0, + 74 AS col2 FROM tab2 AS cor0
----
2653
74
4570
74
5999
74

query II rowsort
SELECT ALL + col1, - 26 FROM tab0 AS cor0
----
1
-26
21
-26
81
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8159
SELECT + col1, CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8159
SELECT + col1, CAST ( NULL AS REAL ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8160
SELECT DISTINCT + 68 col1, - MAX( + 50 ) FROM tab2 AS cor0
----
68
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8160
SELECT DISTINCT + 68 col1, - MAX ( + 50 ) FROM tab2 AS cor0
----
68
-50

query I rowsort
SELECT DISTINCT - col1 * + + col0 * - col1 FROM tab2
----
119646
336675
379456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT + CAST( AVG ( + 35 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-8162
SELECT + CAST ( AVG ( + 35 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
35

query I rowsort
SELECT ALL + + 35 * - 23 - + - 88 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aef10b411d366ef2ecf26d6966196c41

query I rowsort
SELECT DISTINCT col0 + - 64 + + col2 AS col2 FROM tab0
----
-2
132
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT DISTINCT COUNT( * ) * 74 AS col1 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT COUNT ( * ) * 74 AS col1 FROM tab0 AS cor0
----
222

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + 91 AND - 65
----

query II rowsort
SELECT ALL + - col1 * + - col0 * - + col2 * + col1 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
-383670
-10
-4625505
-47
-9603
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL + - COUNT( * ) + MIN( DISTINCT - 25 ) AS col2 FROM tab1 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL + - COUNT ( * ) + MIN ( DISTINCT - 25 ) AS col2 FROM tab1 cor0
----
-28

query I rowsort
SELECT + + 34 + - + col1 AS col0 FROM tab1 AS cor0
----
-13
20
29

query II rowsort
SELECT DISTINCT 94 + + col1, - col0 AS col1 FROM tab2 cor0
----
145
-46
161
-75
171
-64

query I rowsort
SELECT col0 + - + 7 FROM tab0
----
8
80
90

query I rowsort
SELECT + AVG ( - col2 ) + - - 26 FROM tab0 WHERE + 21 IS NULL
----
NULL

query I rowsort
SELECT - col1 * + - col2 + + col0 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE 91 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8175
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE 91 IS NOT NULL
----
-3

query II rowsort
SELECT - col1 * col0 * + 25 * - 13 + col1 AS col2, - 78 FROM tab1
----
138130
-78
1390072
-78
232064
-78

query I rowsort
SELECT + 71 + + - 52 AS col2 FROM tab1
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col0 col1 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT + col0 * - col1 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT + col0 * - col1 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 - - + col1, + col2 col1 FROM tab1
----
110
96
115
68
64
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8181
SELECT DISTINCT - MIN( - + CAST( NULL AS DECIMAL ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8181
SELECT DISTINCT - MIN ( - + CAST ( NULL AS REAL ) ) col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 27 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > col1 * + + 3
----
91
47
68

query II rowsort
SELECT ALL - col0 AS col0, 46 * - col1 FROM tab1 AS cor0
----
-51
-644
-85
-230
-91
-2162

query I rowsort
SELECT - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT ( + - SUM( - col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT ( + - SUM ( - col0 ) ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 6 < NULL
----

query I rowsort
SELECT ALL + col2 * col0 * - col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + col1 * + col1 + + 60 AS col1 FROM tab1 AS cor0
----
2269
256
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8190
SELECT ALL + COUNT( * ) * - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL + COUNT ( * ) * - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8191
SELECT ALL - ( - - COUNT( * ) ) DIV + ( - 68 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL - ( - - COUNT ( * ) ) / + ( - 68 ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8192
SELECT DISTINCT col0 * col0 col0, + CAST( NULL AS SIGNED ) + + + col1 FROM tab0
----
225
NULL
7569
NULL
9409
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8192
SELECT DISTINCT col0 * col0 col0, + CAST ( NULL AS INTEGER ) + + + col1 FROM tab0
----
225
NULL
7569
NULL
9409
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE - - 61 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE - - 61 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - COUNT( DISTINCT + col0 ) * + 98 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) * + 98 FROM tab2 AS cor0
----
-294

query II rowsort
SELECT ALL - - col0 AS col1, - 67 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 35 * + ( - ( col0 ) ) AS col0 FROM tab2
----
-1610
-2240
-2625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8197
SELECT - - CAST( - ( 43 ) AS SIGNED ) + - 15 FROM tab1 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-8197
SELECT - - CAST ( - ( 43 ) AS INTEGER ) + - 15 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8198
SELECT DISTINCT + COUNT( * ) + MAX( col2 ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
102
3

skipif mysql # not compatible
query II rowsort label-8198
SELECT DISTINCT + COUNT ( * ) + MAX ( col2 ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
102
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 >= NULL
----

query I rowsort
SELECT + + 25 + + + col2 FROM tab1 AS cor0
----
121
84
93

query I rowsort
SELECT 9 + - 62 FROM tab0 AS cor0
----
-53
-53
-53

query II rowsort
SELECT - + col2 AS col2, 61 + - col2 AS col1 FROM tab1 AS cor0
----
-59
2
-68
-7
-96
-35

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + col1 NOT IN ( - - ( + - ( - 30 ) ), col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 70 <= - + 78 * - 14 / ( ( - col2 ) )
----

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 80 + - col0 AS col2 FROM tab1 AS cor0 WHERE - 0 IS NULL
----

query I rowsort
SELECT + ( + + col2 ) AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL col2 * + col0 + + col2 FROM tab0 WHERE NOT - col0 IS NULL
----
752
880
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-8209
SELECT col0 DIV col2 - + col0 AS col1 FROM tab1 AS cor0
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-8209
SELECT col0 / col2 - + col0 AS col1 FROM tab1 AS cor0
----
-51
-84
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8210
SELECT DISTINCT - COUNT( * ) + 6 * + + SUM( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT - COUNT ( * ) + 6 * + + SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT + COUNT( * ) + - - 16 col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8211
SELECT DISTINCT + COUNT ( * ) + - - 16 col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT - col1 + + + 29 FROM tab0 AS cor0
----
-52
28
8

query I rowsort
SELECT - ( - col1 ) FROM tab0 AS cor0 WHERE - 59 + + col2 * 81 + + 35 NOT BETWEEN NULL AND + + col0
----
1
21
81

query I rowsort
SELECT + 21 * col0 AS col0 FROM tab2 WHERE NOT 84 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col2 col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8216
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8216
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT + 50 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 69 AS col2 FROM tab1 AS cor0
----
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 42 NOT IN ( - + col1 * - col2 / + col2 * 97, - 0 * - col1 * + 33 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * + col1 col0 FROM tab2 cor0
----
2703
3551
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT - - MAX( ALL + col2 ) * - - COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8222
SELECT - - MAX ( ALL + col2 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
174

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + - ( + 26 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8224
SELECT ALL + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8224
SELECT ALL + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + MIN( - + col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8225
SELECT + MIN ( - + col1 ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-8227
SELECT COUNT( * ) col0, - 28 FROM tab2
----
3
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8227
SELECT COUNT ( * ) col0, - 28 FROM tab2
----
3
-28

query I rowsort
SELECT DISTINCT - + 20 FROM tab1 WHERE + col0 * + - 58 - - 99 + + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT COUNT( * ) * 60 AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT COUNT ( * ) * 60 AS col2 FROM tab2 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + ( + + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + ( + + col0 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT ALL + col1 * + - CAST( - col1 AS SIGNED ) * - + CAST( - col2 AS SIGNED ) + + 94 + col0 FROM tab0 AS cor0
----
290
308476
4591

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + col1 * + - CAST ( - col1 AS INTEGER ) * - + CAST ( - col2 AS INTEGER ) + + 94 + col0 FROM tab0 AS cor0
----
290
308476
4591

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT DISTINCT + 30 + - MAX( DISTINCT 42 ), + 99 col1 FROM tab0
----
-12
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8232
SELECT DISTINCT + 30 + - MAX ( DISTINCT 42 ), + 99 col1 FROM tab0
----
-12
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT 73 * COUNT( - col1 ) FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-8234
SELECT 73 * COUNT ( - col1 ) FROM tab0
----
219

query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab1 WHERE NULL > - 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT DISTINCT - + 77 + - col0 * - - col0 + + 93 + + col2 * col1 * - + col1 + - + col2 DIV + col0 + + col0 col0 FROM tab1 AS cor0
----
-158386
-21351
-8599

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8236
SELECT DISTINCT - + 77 + - col0 * - - col0 + + 93 + + col2 * col1 * - + col1 + - + col2 / + col0 + + col0 col0 FROM tab1 AS cor0
----
-158386
-21351
-8599

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT DISTINCT + MIN( + - ( - col0 ) ) AS col2 FROM tab1 AS cor0 WHERE col0 - col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT + MIN ( + - ( - col0 ) ) AS col2 FROM tab1 AS cor0 WHERE col0 - col2 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8238
SELECT * FROM tab0 AS cor0 WHERE 84 - - + CAST( + col1 AS SIGNED ) * - CAST( + 28 AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8238
SELECT * FROM tab0 AS cor0 WHERE 84 - - + CAST ( + col1 AS INTEGER ) * - CAST ( + 28 AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 88 + + col0 AS col1 FROM tab1 AS cor0
----
139
173
179

query I rowsort
SELECT ALL col2 + - - 72 + col0 * - 93 AS col2 FROM tab0 AS cor0
----
-1276
-8009
-8850

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL - COUNT( * ) + + - COUNT( * ) - + 17 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) - + 17 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT ( - + col0 ) - - col1 + 99 AS col0 FROM tab1 AS cor0
----
19
55
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8243
SELECT + - COUNT( * ) + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8243
SELECT + - COUNT ( * ) + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL col0 + + col0 * - CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-340
-4186
-663

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL col0 + + col0 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT DISTINCT + col1 - - + col1 AS col0 FROM tab0
----
162
2
42

query I rowsort
SELECT col1 + + + col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL - COUNT( * ) - - - 4 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - COUNT ( * ) - - - 4 FROM tab0
----
-7

query I rowsort
SELECT col0 + - 75 FROM tab2
----
-11
-29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8249
SELECT + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT DISTINCT - col0 - 68 FROM tab2
----
-114
-132
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8251
SELECT ALL CAST( + + 65 AS SIGNED ) * + 88 AS col2, COUNT( * ) AS col2 FROM tab1
----
5720
3

skipif mysql # not compatible
query II rowsort label-8251
SELECT ALL CAST ( + + 65 AS INTEGER ) * + 88 AS col2, COUNT ( * ) AS col2 FROM tab1
----
5720
3

query I rowsort
SELECT DISTINCT - 57 + + col0 FROM tab0
----
-42
30
40

query I rowsort
SELECT 60 * - col0 + + col1 + + 83 FROM tab2 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL - 4 + + 26 FROM tab1 AS cor0
----
22
22
22

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 57 * col0 IS NOT NULL
----

query II rowsort
SELECT + + col0, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL 59 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT MIN( DISTINCT + col0 ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8258
SELECT MIN ( DISTINCT + col0 ) col1 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col0 FROM tab1 WHERE NULL >= col0 * 77
----

query I rowsort
SELECT DISTINCT - 62 * - col2 FROM tab2 WHERE col1 NOT IN ( + ( ( col0 ) ) )
----
1426
2480
3596

query I rowsort
SELECT ALL + col1 + + 70 AS col0 FROM tab2 WHERE + col2 NOT IN ( - col1 )
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT MAX( 65 ) + ( 85 + 57 ) AS col2 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-8262
SELECT MAX ( 65 ) + ( 85 + 57 ) AS col2 FROM tab2
----
207

query I rowsort
SELECT + col2 + 93 * + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1398
4439
524

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + - 93 col1 FROM tab1
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT - 35 <= ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT - 35 <= ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8267
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * - col0 + + ( col1 + + col0 * col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8267
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * - col0 + + ( col1 + + col0 * col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * - MIN( col0 ) AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * - MIN ( col0 ) AS col1 FROM tab0
----
-42

query I rowsort
SELECT ALL + ( - col2 ) + col0 FROM tab2 WHERE - col2 / col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - 19 - + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT + COUNT( + ( col1 ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8271
SELECT + COUNT ( + ( col1 ) ) col0 FROM tab1
----
3

query I rowsort
SELECT 5 + - col1 FROM tab2
----
-46
-62
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8273
SELECT + CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8273
SELECT + CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 45 col1 FROM tab2
----
22
32
6

query I rowsort
SELECT DISTINCT + 7 + col1 AS col2 FROM tab1
----
12
21
54

query III rowsort
SELECT * FROM tab2 WHERE + ( col1 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col1 + 17 BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NULL <> 25
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= 34 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE 37 + - col1 < - col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * col2 + 0 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT + 23 AS col1 FROM tab0 AS cor0 WHERE col0 + 52 IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT + col1 * + 9 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT DISTINCT + 88 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT + 88 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1
----
NULL

query I rowsort
SELECT - 77 + - col2 AS col0 FROM tab1
----
-136
-145
-173

query I rowsort
SELECT DISTINCT + 49 FROM tab2 AS cor0 CROSS JOIN tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL SUM( ALL - col0 ) * MIN( DISTINCT col1 * + col0 ) AS col2 FROM tab1
----
-96475

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL SUM ( ALL - col0 ) * MIN ( DISTINCT col1 * + col0 ) AS col2 FROM tab1
----
-96475

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT SUM( 45 ) AS col1 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8289
SELECT SUM ( 45 ) AS col1 FROM tab0 AS cor0
----
135

query I rowsort
SELECT DISTINCT - col2 + + 65 AS col0 FROM tab1 AS cor0
----
-3
-31
6

query I rowsort
SELECT ALL - col1 + 46 AS col0 FROM tab0 AS cor0
----
-35
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + + SUM( ALL 38 ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8292
SELECT + + SUM ( ALL 38 ) FROM tab1 AS cor0
----
114

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 + - col1 FROM tab1 AS cor0
----
-3486
-4671
-9230

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 + 51 ) IS NULL
----

query I rowsort
SELECT DISTINCT 24 FROM tab2 AS cor0 WHERE - col2 + + col2 * ( + col1 - + col0 ) IS NULL
----

query I rowsort
SELECT ALL + + 75 - + col2 AS col0 FROM tab2 cor0
----
17
35
52

query I rowsort
SELECT ALL + 24 * + 17 AS col0 FROM tab1
----
408
408
408

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL 95 - - MIN( DISTINCT + col0 ) FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL 95 - - MIN ( DISTINCT + col0 ) FROM tab1
----
146

query I rowsort
SELECT ALL col1 + + col1 FROM tab0 WHERE 17 <> - 43
----
162
2
42

query I rowsort
SELECT 70 - + + col0 + col2 * ( ( col2 ) + 8 ) FROM tab0
----
10566
163
2640

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( col1 - + col0 / + 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT COUNT( * ) - - + 4 + + COUNT( ALL col0 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8303
SELECT COUNT ( * ) - - + 4 + + COUNT ( ALL col0 ) AS col1 FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 + 25 ) < ( + col1 )
----
85
5
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8305
SELECT col0 / col2 + - col1 AS col2 FROM tab1 WHERE CAST( col2 AS SIGNED ) * - CAST( NULL AS DECIMAL ) BETWEEN + 4 AND + col2
----

skipif mysql # not compatible
query I rowsort label-8305
SELECT col0 / col2 + - col1 AS col2 FROM tab1 WHERE CAST ( col2 AS INTEGER ) * - CAST ( NULL AS REAL ) BETWEEN + 4 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT DISTINCT + col2 * - CAST( 39 AS SIGNED ) col0 FROM tab2
----
-1560
-2262
-897

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8306
SELECT DISTINCT + col2 * - CAST ( 39 AS INTEGER ) col0 FROM tab2
----
-1560
-2262
-897

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 16 + - col1 * col0 ) IN ( + col2 + - ( col2 ) * 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - col0 ) * + 85 FROM tab1 AS cor0
----
4335
7225
7735

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 77 / col0 <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 78 col1 FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT - - SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL - 1 * 99 AS col2 FROM tab1
----
-99
-99
-99

query I rowsort
SELECT DISTINCT col0 * + col1 * + col2 AS col0 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT CAST( + 26 AS SIGNED ) AS col0 FROM tab0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-8315
SELECT CAST ( + 26 AS INTEGER ) AS col0 FROM tab0
----
26
26
26

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE + col0 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND NULL OR NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8318
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND 75
----

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 + - 24 + col2 * + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8319
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 + - 24 + col2 * + col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL + SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - col1 * - 88 AS col1 FROM tab2 cor0
----
4488
5896
6776

query I rowsort
SELECT DISTINCT + col0 * 34 FROM tab1 AS cor0
----
1734
2890
3094

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 3 * col1 / - col0 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) = 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 48 ) AS col0 FROM tab2
----
-48

query III rowsort
SELECT ALL * FROM tab2 WHERE + 5 * + ( col1 ) - + 81 / col1 BETWEEN col0 AND ( ( col2 ) ) - + col2 * col2
----

query I rowsort
SELECT 2 + - col1 FROM tab0
----
-19
-79
1

query I rowsort
SELECT ( + col1 ) + - + 47 + + col1 AS col1 FROM tab1
----
-19
-37
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL - col1 + - col2 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE - - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - col1 + - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - - col1 = NULL
----

query I rowsort
SELECT + 46 + - col2 + - 99 FROM tab0
----
-100
-152
-63

query I rowsort
SELECT DISTINCT 34 * 75 FROM tab1 WHERE NULL BETWEEN ( + 16 + - 56 + col0 * col1 ) AND 84 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8332
SELECT ALL CAST( NULL AS SIGNED ) / - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT 27 + + - COUNT( DISTINCT + 50 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-8333
SELECT 27 + + - COUNT ( DISTINCT + 50 ) FROM tab2
----
26

query I rowsort
SELECT + ( + col0 ) + + 55 AS col2 FROM tab0 AS cor0
----
142
152
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT ALL + + col1 * + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + + col1 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND + 56 - 40 * - 7
----

query II rowsort
SELECT 28 AS col2, col1 FROM tab1
----
28
14
28
47
28
5

query III rowsort
SELECT * FROM tab2 WHERE ( 80 ) + + - col0 - - 11 NOT IN ( ( 59 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + - - col1 AS col1 FROM tab2 WHERE NULL >= ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT DISTINCT COUNT( ALL col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT COUNT ( ALL col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT 61 FROM tab2 WHERE ( NULL ) IN ( col0 + - 24 * - - col0 )
----

query I rowsort
SELECT DISTINCT col1 * - 25 AS col0 FROM tab1 AS cor0
----
-1175
-125
-350

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE + 15 / 8 <= - - col2
----
-15
-87
-97

query I rowsort
SELECT ALL + 40 + + ( - ( + 37 ) ) * + - col2 - 24 FROM tab2 AS cor0
----
1496
2162
867

query I rowsort
SELECT col1 + - 30 * + col0 * - col1 * - 27 + - 73 FROM tab0 AS cor0
----
-1479922
-78642
-984142

query I rowsort
SELECT DISTINCT - - col2 + 58 FROM tab1 AS cor0
----
117
126
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT MAX( DISTINCT 76 ) + - 47 AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-8347
SELECT MAX ( DISTINCT 76 ) + - 47 AS col2 FROM tab1
----
29

query III rowsort
SELECT * FROM tab0 WHERE + 57 IN ( - 58 )
----

query I rowsort
SELECT DISTINCT col2 - 63 FROM tab2
----
-23
-40
-5

query I rowsort
SELECT col0 + 38 AS col1 FROM tab0
----
125
135
53

query I rowsort
SELECT + 26 + - col0 FROM tab1
----
-25
-59
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8352
SELECT DISTINCT COUNT( * ) - 55 DIV - - SUM( col1 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8352
SELECT DISTINCT COUNT ( * ) - 55 / - - SUM ( col1 ) col2 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT ALL - col1 DIV ( + + 78 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL - col1 / ( + + 78 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 36 * - - 81 AS col1 FROM tab1
----
2916

query I rowsort
SELECT 8 * col1 AS col0 FROM tab2
----
408
536
616

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + 20 ) IS NOT NULL
----

query I rowsort
SELECT + 86 * - col0 FROM tab0
----
-1290
-7482
-8342

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 IN ( + + 29 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - + col0 ) + - - col1 + 80 <= ( ( - ( col0 ) ) * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 57 * + + col2 FROM tab0 AS cor0
----
2679
5643
570

query I rowsort
SELECT DISTINCT + col0 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT + + COUNT( * ) * + + MAX( col1 ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8363
SELECT + + COUNT ( * ) * + + MAX ( col1 ) FROM tab1 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT COUNT( - 70 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8364
SELECT COUNT ( - 70 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT COUNT( - 38 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8365
SELECT COUNT ( - 38 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL - 5 + - + col0 FROM tab2 AS cor0
----
-51
-69
-80

query I rowsort
SELECT 1 + - col2 * - 52 AS col2 FROM tab0 AS cor0
----
2445
5149
521

onlyif mysql # DIV for integer division: 
query I rowsort label-8368
SELECT col0 DIV - + ( ( + col2 ) ) + col2 + - col2 + 26 + + 35 * - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-10
-10
-9

skipif mysql # not compatible
query I rowsort label-8368
SELECT col0 / - + ( ( + col2 ) ) + col2 + - col2 + 26 + + 35 * - col2 / col2 AS col1 FROM tab1 AS cor0
----
-10
-10
-9

query II rowsort
SELECT ALL + col2 + 42 AS col1, - 61 AS col0 FROM tab1 AS cor0
----
101
-61
110
-61
138
-61

query I rowsort
SELECT DISTINCT - ( - + col1 ) * - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8371
SELECT + COUNT( * ) + - - ( - ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8371
SELECT + COUNT ( * ) + - - ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8372
SELECT + 17 + 4 AS col2, + 4 * - COUNT( * ) FROM tab2 AS cor0
----
21
-12

skipif mysql # not compatible
query II rowsort label-8372
SELECT + 17 + 4 AS col2, + 4 * - COUNT ( * ) FROM tab2 AS cor0
----
21
-12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > + ( - + 3 ) * - col0 * col2 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8374
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= - CAST( 95 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8374
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= - CAST ( 95 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT CAST( NULL AS SIGNED ) * + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT CAST ( NULL AS INTEGER ) * + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 93 + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 BETWEEN + col0 * - col1 * + col0 AND + - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT - MIN( + + 16 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-8378
SELECT - MIN ( + + 16 ) FROM tab0 AS cor0
----
-16

query II rowsort
SELECT ALL + 89 AS col2, col0 FROM tab2 AS cor0 WHERE - col2 + + 5 < col0 + - col2
----
89
46
89
64
89
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + - MIN( col0 ) + - MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-8380
SELECT + - MIN ( col0 ) + - MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
29

onlyif mysql # DIV for integer division: 
query III rowsort label-8381
SELECT DISTINCT col2 DIV 9 DIV - col1 col1, col2 AS col1, - col1 * + + ( + - col0 ) FROM tab0 AS cor0
----
9 values hashing to de1afc8058152963cbd7ec829460e130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8381
SELECT DISTINCT col2 / 9 / - col1 col1, col2 AS col1, - col1 * + + ( + - col0 ) FROM tab0 AS cor0
----
9 values hashing to de1afc8058152963cbd7ec829460e130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL + CAST( NULL AS SIGNED ) * + - 93 col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8382
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 93 col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 85 IN ( + 84 + + + col0 )
----

query I rowsort
SELECT ALL 95 + - 92 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT - MAX( ALL - - 3 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT - MAX ( ALL - - 3 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8386
SELECT ALL 98 + - ( + 10 ) + - + COUNT( * ), + 46 AS col2 FROM tab0 AS cor0
----
85
46

skipif mysql # not compatible
query II rowsort label-8386
SELECT ALL 98 + - ( + 10 ) + - + COUNT ( * ), + 46 AS col2 FROM tab0 AS cor0
----
85
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8387
SELECT + 11 DIV + + 44 - MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8387
SELECT + 11 / + + 44 - MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT 31 - - + 43 AS col0 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT + ( + col2 ) - col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 + - + 14 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8391
SELECT 62 - col0 * 76 AS col2 FROM tab2 WHERE col1 NOT IN ( + + CAST( NULL AS DECIMAL ) * + CAST( col0 AS SIGNED ) * + col0 / - + col2 + - 69 ) AND + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8391
SELECT 62 - col0 * 76 AS col2 FROM tab2 WHERE col1 NOT IN ( + + CAST ( NULL AS REAL ) * + CAST ( col0 AS INTEGER ) * + col0 / - + col2 + - 69 ) AND + col1 IS NULL
----

query I rowsort
SELECT - col0 * 92 FROM tab0
----
-1380
-8004
-8924

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8393
SELECT + COUNT( - - CAST( col0 AS DECIMAL ) ) * 56 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-8393
SELECT + COUNT ( - - CAST ( col0 AS REAL ) ) * 56 FROM tab1
----
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 44 col2 FROM tab1 AS cor0
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL - SUM( col1 ) col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT ALL - SUM ( col1 ) col0 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 < + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT - 62 * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
558

skipif mysql # not compatible
query I rowsort label-8397
SELECT - 62 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT MAX( DISTINCT - + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT MAX ( DISTINCT - + col2 ) AS col1 FROM tab0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8399
SELECT DISTINCT + col2 DIV + 60 col0 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8399
SELECT DISTINCT + col2 / + 60 col0 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 48 )
----

query I rowsort
SELECT ALL ( 21 ) AS col0 FROM tab0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT col1 - - 50 * 14 * - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 - - + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT DISTINCT SUM( + col1 ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT SUM ( + col1 ) AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL + + COUNT( DISTINCT - 61 ) + - MAX( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8405
SELECT ALL + + COUNT ( DISTINCT - 61 ) + - MAX ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT - col0 + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 = + col2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + col2 + - - col2 * col1 * 61 * - col1 AS col0 FROM tab2 AS cor0
----
-14466656
-15881949
-3649134

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - col1 - - ( 22 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT DISTINCT - - 76 + - - CAST( 12 AS SIGNED ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT - - 76 + - - CAST ( 12 AS INTEGER ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT - 81 * - col0 AS col2 FROM tab1 AS cor0
----
4131
6885
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT + CAST( NULL AS SIGNED ) * - col1 + col2 + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT + CAST ( NULL AS INTEGER ) * - col1 + col2 + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 * + - ( - 11 ), + col2 FROM tab0
----
1067
99
165
47
957
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT + col1 * 42 * 7 + + col1 * + CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT + col1 * 42 * 7 + + col1 * + CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL + MAX( + - 27 ) col0 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8415
SELECT ALL + MAX ( + - 27 ) col0 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-8416
SELECT col2 DIV - - col1 + col1 AS col0, - 98 AS col0 FROM tab1
----
16
-98
20
-98
48
-98

skipif mysql # not compatible
query II rowsort label-8416
SELECT col2 / - - col1 + col1 AS col0, - 98 AS col0 FROM tab1
----
16
-98
20
-98
48
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - 79 * - 1 + + COUNT( * ) * - + 42 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-8417
SELECT - 79 * - 1 + + COUNT ( * ) * - + 42 FROM tab0
----
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 24 < - + 76
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * ( - - 56 ) NOT BETWEEN NULL AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 31 + col1 FROM tab0 cor0
----
112
32
52

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT MAX( ALL + + CAST( - + col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8422
SELECT MAX ( ALL + + CAST ( - + col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-23

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query II rowsort
SELECT ALL col0, - ( - - col2 ) FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + - + 79 + - col1 + - - col0 + + col1 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + - + 79 + - col1 + - - col0 + + col1 FROM tab0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT - COUNT( 52 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT - COUNT ( 52 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT DISTINCT SUM( + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT SUM ( + col2 ) FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8428
SELECT col1, - col0 + CAST( - col1 AS SIGNED ) + - col2 * - 82 * - ( + ( + 5 ) ) FROM tab1 AS cor0
----
14
-39425
47
-28018
5
-24280

skipif mysql # not compatible
query II rowsort label-8428
SELECT col1, - col0 + CAST ( - col1 AS INTEGER ) + - col2 * - 82 * - ( + ( + 5 ) ) FROM tab1 AS cor0
----
14
-39425
47
-28018
5
-24280

query II rowsort
SELECT ALL + col2, 46 + + - col1 + col0 FROM tab1 AS cor0
----
59
126
68
90
96
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8430
SELECT + CAST( - - 94 AS SIGNED ) DIV + ( + - 25 ) FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8430
SELECT + CAST ( - - 94 AS INTEGER ) / + ( + - 25 ) FROM tab2 AS cor0
----
-3
-3
-3

query II rowsort
SELECT + 45, + ( - col0 ) + - - col1 AS col2 FROM tab2 AS cor0
----
45
-8
45
13
45
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8432
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - CAST( NULL AS SIGNED ) + + - col2 + - + 75
----

skipif mysql # not compatible
query III rowsort label-8432
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - CAST ( NULL AS INTEGER ) + + - col2 + - + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + SUM( DISTINCT + + col2 ) col1 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8433
SELECT + SUM ( DISTINCT + + col2 ) col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT + COUNT( ALL - col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8434
SELECT + COUNT ( ALL - col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 56 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT + COUNT( * ) + - ( + + 15 ) col1 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8436
SELECT + COUNT ( * ) + - ( + + 15 ) col1 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL - COUNT( * ) * + 52 * + - 97 + + - 94 AS col1 FROM tab1 AS cor0
----
15038

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - COUNT ( * ) * + 52 * + - 97 + + - 94 AS col1 FROM tab1 AS cor0
----
15038

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 > 54 + + col0 - + col2 * - + 13 OR col1 / + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 35 + + col2 - + + 92 AS col1 FROM tab0 AS cor0
----
-117
-28
-80

query I rowsort
SELECT + + col0 + + + 87 FROM tab0 AS cor0
----
102
174
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL - COUNT( ALL - ( - col0 ) ) + - 77 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - COUNT ( ALL - ( - col0 ) ) + - 77 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT - col2 * - + col2 + col0 + - 56 FROM tab2 AS cor0
----
1608
3383
519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8443
SELECT - 94 * - 11 + - 96 + + 6 * + - col1 FROM tab1 AS cor0 WHERE 99 + col0 / + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8443
SELECT - 94 * - 11 + - 96 + + 6 * + - col1 FROM tab1 AS cor0 WHERE 99 + col0 / + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col1 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - SUM( 4 ) * - SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
2388

skipif mysql # not compatible
query I rowsort label-8445
SELECT - SUM ( 4 ) * - SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
2388

query I rowsort
SELECT - col0 * + 34 * - 0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + 97 / col1 + + col1 NOT BETWEEN NULL AND + + col2 + + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT COUNT( * ) * COUNT( - col1 ) * + MIN( + 26 ) AS col2 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT COUNT ( * ) * COUNT ( - col1 ) * + MIN ( + 26 ) AS col2 FROM tab2
----
234

query II rowsort
SELECT ALL - col1 AS col2, - col1 AS col1 FROM tab0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 69 / + + col1 / - - 44 NOT IN ( + - col0, - ( 1 ), - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2, col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT ALL 57 * - + 19 FROM tab1
----
-1083
-1083
-1083

query I rowsort
SELECT DISTINCT - col1 + - + col2 + - col2 FROM tab0
----
-175
-199
-41

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + 30 IS NOT NULL )
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT - CAST( NULL AS SIGNED ) + - + SUM( ALL ( 85 ) ) * + 62 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT - CAST ( NULL AS INTEGER ) + - + SUM ( ALL ( 85 ) ) * + 62 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - - col2 * + col0 + - col2 * col0 * + col1 AS col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
129948
270810
401472

query I rowsort
SELECT 88 AS col0 FROM tab0 cor0
----
88
88
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 72 >= col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT - MIN( ( - 22 ) ) AS col1 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8459
SELECT - MIN ( ( - 22 ) ) AS col1 FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL MAX( ALL + col1 ) * + - MIN( - 82 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL MAX ( ALL + col1 ) * + - MIN ( - 82 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8461
SELECT ALL + + ( + - 23 ), - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-23
3

skipif mysql # not compatible
query II rowsort label-8461
SELECT ALL + + ( + - 23 ), - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-23
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8462
SELECT CAST( NULL AS SIGNED ) AS col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8462
SELECT CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - ( + col0 ) AS col1 FROM tab2
----
46
-46
64
-64
75
-75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + ( ( + col2 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col0 + - col0 / - - 77 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8466
SELECT + col2 * - CAST( col1 AS SIGNED ) + col2 AS col1, + 33 col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col0 + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8466
SELECT + col2 * - CAST ( col1 AS INTEGER ) + col2 AS col1, + 33 col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT 62 * + COUNT( - 37 ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-8467
SELECT 62 * + COUNT ( - 37 ) FROM tab0
----
186

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IN ( + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * ( - col1 ) + - - col0 + 47 * ( 73 ) AS col2 FROM tab2 cor0
----
6078
7995
9424

onlyif mysql # aggregate syntax: 
query II rowsort label-8470
SELECT DISTINCT MAX( + 14 ) AS col0, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
14
9

skipif mysql # not compatible
query II rowsort label-8470
SELECT DISTINCT MAX ( + 14 ) AS col0, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
14
9

query I rowsort
SELECT 76 + - ( + 31 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT - MIN( + + ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8472
SELECT - MIN ( + + ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 64 * + col1 AS col1 FROM tab0 AS cor0
----
1344
5184
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT + COUNT( DISTINCT + 53 ) col2 FROM tab2 AS cor0 WHERE col2 + - 72 + + col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8475
SELECT + COUNT ( DISTINCT + 53 ) col2 FROM tab2 AS cor0 WHERE col2 + - 72 + + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 * - 44 / - col0 + 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT DISTINCT - 9 + + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT - 9 + + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8478
SELECT ALL CAST( NULL AS DECIMAL ) + + 32 * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL CAST ( NULL AS REAL ) + + 32 * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8479
SELECT COUNT( * ) + - SUM( ALL col1 ), COUNT( * ) AS col1 FROM tab2
----
-192
3

skipif mysql # not compatible
query II rowsort label-8479
SELECT COUNT ( * ) + - SUM ( ALL col1 ), COUNT ( * ) AS col1 FROM tab2
----
-192
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT col0 + + - col2 DIV - col2 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-8480
SELECT col0 + + - col2 / - col2 FROM tab0
----
16
88
98

query I rowsort
SELECT col1 + - - 79 * 25 - + + col1 AS col2 FROM tab2
----
1975
1975
1975

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT COUNT( * ) + + + 68 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-8482
SELECT COUNT ( * ) + + + 68 FROM tab1
----
71

query I rowsort
SELECT - 67 + - + 65 FROM tab1
----
-132
-132
-132

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * + + col1 > + col0
----

query I rowsort
SELECT col0 FROM tab0 WHERE + 63 BETWEEN col2 / - - col1 - - + col1 + + 82 * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT DISTINCT COUNT( * ) * + MAX( ALL - - 64 ) * + COUNT( ALL + - col0 ) AS col2 FROM tab0
----
576

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT COUNT ( * ) * + MAX ( ALL - - 64 ) * + COUNT ( ALL + - col0 ) AS col2 FROM tab0
----
576

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT SUM( 60 ) + 34 * - - 58 AS col1 FROM tab2
----
2152

skipif mysql # not compatible
query I rowsort label-8488
SELECT SUM ( 60 ) + 34 * - - 58 AS col1 FROM tab2
----
2152

query I rowsort
SELECT - col0 - - col0 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8490
SELECT + ( + + ( - SUM( DISTINCT - col1 ) ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT + ( + + ( - SUM ( DISTINCT - col1 ) ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - + 74 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 28 + + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8493
SELECT ALL - CAST( NULL AS DECIMAL ) / - + 14 - - 8 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - CAST ( NULL AS REAL ) / - + 14 - - 8 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2, + col1 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - + ( + 68 ) FROM tab1 AS cor0
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, 6 FROM tab0 AS cor0
----
10
6
47
6
99
6

query II rowsort
SELECT DISTINCT - 78 AS col1, + ( - - col2 ) FROM tab0 AS cor0
----
-78
10
-78
47
-78
99

query II rowsort
SELECT - 18 AS col2, 85 AS col2 FROM tab1 AS cor0
----
-18
85
-18
85
-18
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col0 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8500
SELECT ALL CAST( NULL AS DECIMAL ) * - 23 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL CAST ( NULL AS REAL ) * - 23 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT col1 DIV + - col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8501
SELECT col1 / + - col1 AS col1 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT 23 * + - col1, + col1 FROM tab1
----
-1081
47
-115
5
-322
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8503
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 77 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8503
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 77 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8504
SELECT DISTINCT + 2 / + - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT + 2 / + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + 88 - col2 FROM tab1 AS cor0
----
88

query I rowsort
SELECT - col0 * - - col1 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - ( + col2 ) IS NOT NULL )
----

query I rowsort
SELECT + + 88 * 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61802abc0ec45f6561695c890e11068e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col0 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - MAX( + col0 ) + + + COUNT( * ) col1 FROM tab0 cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8511
SELECT - MAX ( + col0 ) + + + COUNT ( * ) col1 FROM tab0 cor0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8512
SELECT ALL + COUNT( * ) + - - COUNT( * ) DIV + 33 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) / + 33 AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - - 23 + + + 7 * col2 col1 FROM tab2 AS cor0
----
161
263
371

query I rowsort
SELECT ALL + col0 + - - 74 AS col0 FROM tab2 AS cor0
----
120
138
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT - CAST( 25 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-8515
SELECT - CAST ( 25 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-25
-25
-25

query II rowsort
SELECT - col1, col0 * - - col1 AS col0 FROM tab1 AS cor0
----
-14
714
-47
4277
-5
425

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8517
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col1 - col0, col0, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - + CAST( NULL AS DECIMAL ) + col0, + 92, + - col1 )
----

skipif mysql # not compatible
query III rowsort label-8517
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col1 - col0, col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + CAST ( NULL AS REAL ) + col0, + 92, + - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 8 + col2 / col2 + col0 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 46 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - col2 col0 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL - + 82 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 70 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - + 82 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 70 <= NULL
----
0

query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 56 = + 10
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL + MIN( ALL col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + MIN ( ALL col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * + col2 * - - 33 / 54 / + - col2 + + + 39 NOT BETWEEN + + col1 + + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 0 * + + 1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT DISTINCT + MIN( - 93 ) * + SUM( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-6138

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT + MIN ( - 93 ) * + SUM ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-6138

query I rowsort
SELECT ALL - ( - + col0 ) * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 30 <> 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT DISTINCT 90 DIV 55 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT 90 / 55 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - + 71 * col0 * 38 AS col0 FROM tab0 AS cor0
----
-234726
-261706
-40470

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / - col2 BETWEEN + 73 * 77 + 97 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 52 * - - 45 FROM tab1
----
2340
2340
2340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 89 col1, + 47 AS col2 FROM tab0
----
89
47

query II rowsort
SELECT DISTINCT + col1 AS col2, 58 FROM tab0
----
1
58
21
58
81
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT 92 DIV + 42 AS col1 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8536
SELECT 92 / + 42 AS col1 FROM tab1
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8537
SELECT * FROM tab0 WHERE NOT col1 IN ( - CAST( col1 AS SIGNED ), 25 * - + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8537
SELECT * FROM tab0 WHERE NOT col1 IN ( - CAST ( col1 AS INTEGER ), 25 * - + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT - COUNT( * ) + - 38 AS col2 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-8538
SELECT - COUNT ( * ) + - 38 AS col2 FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT MIN( DISTINCT + col1 ) + + SUM( col2 ) * + 16 FROM tab1
----
3573

skipif mysql # not compatible
query I rowsort label-8539
SELECT MIN ( DISTINCT + col1 ) + + SUM ( col2 ) * + 16 FROM tab1
----
3573

query II rowsort
SELECT ALL + col2 AS col0, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + col2 * - - 71 FROM tab0 AS cor0
----
3337
7029
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8542
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + MIN( + 32 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + MIN ( + 32 ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 69 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8544
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT SUM( - 45 ) AS col0 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT SUM ( - 45 ) AS col0 FROM tab1
----
-135

query I rowsort
SELECT DISTINCT - - 68 FROM tab2 cor0
----
68

query I rowsort
SELECT ALL + 68 FROM tab0 AS cor0 WHERE col2 = + col1
----

query II rowsort
SELECT 91 + - ( - col0 ) * - - 2 + - col2 AS col1, 99 - col1 FROM tab0 AS cor0
----
186
98
255
78
74
18

query I rowsort
SELECT ALL - 90 FROM tab1 WHERE + + ( col1 ) / col2 <= col2
----
-90
-90
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 84 <> NULL
----

query I rowsort
SELECT + col1 + - - col2 AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL - col0 * - col0 - + + col1 AS col0 FROM tab0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + SUM( ALL - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8554
SELECT + SUM ( ALL - col0 ) FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( + 36 ) + + col0 * col2 < col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + - + ( - + 96 ) BETWEEN + col1 + col2 + 99 * - col1 AND - col2 + - col1 + col1
----

query II rowsort
SELECT ALL - col0 * + 57 AS col0, + col1 * - 30 * - col0 FROM tab0 AS cor0
----
-4959
54810
-5529
2910
-855
36450

query II rowsort
SELECT DISTINCT - col1 * - + 83, + 97 AS col0 FROM tab0 AS cor0
----
1743
97
6723
97
83
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT - col0 + - 53 DIV - - col1 AS col1 FROM tab0 AS cor0
----
-15
-150
-89

skipif mysql # not compatible
query I rowsort label-8559
SELECT - col0 + - 53 / - - col1 AS col1 FROM tab0 AS cor0
----
-15
-150
-89

query I rowsort
SELECT ALL + 42 * + col2 AS col1 FROM tab2 AS cor0
----
1680
2436
966

query I rowsort
SELECT ALL - 73 * - - col1 * + col2 FROM tab2 AS cor0
----
-224840
-283678
-85629

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT - + 23 * - 27 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
624

skipif mysql # not compatible
query I rowsort label-8562
SELECT - + 23 * - 27 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
624

query I rowsort
SELECT - + 23 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * - - col2 AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL + - AVG ( ALL + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT col2 + - - col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + ( + + col0 ) AND col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT - 73 + - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - 73 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT 58 + MIN( DISTINCT - 13 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8570
SELECT 58 + MIN ( DISTINCT - 13 ) AS col0 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT - SUM( ALL - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT - SUM ( ALL - col2 ) FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8572
SELECT ( - + CAST( + col2 AS SIGNED ) ) DIV - col1 + - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8572
SELECT ( - + CAST ( + col2 AS INTEGER ) ) / - col1 + - col2 AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT ALL 60 + - CAST( NULL AS SIGNED ) - 64 + + - 37 * + col0 + col0 - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL 60 + - CAST ( NULL AS INTEGER ) - 64 + + - 37 * + col0 + col0 - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT - + COUNT( ALL - - col1 ) * - 3 AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8575
SELECT - + COUNT ( ALL - - col1 ) * - 3 AS col1 FROM tab2 cor0
----
9

query II rowsort
SELECT col1 AS col0, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col2 * - col0 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT - + CAST( SUM( DISTINCT - 40 ) AS SIGNED ) - - - COUNT( * ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8578
SELECT - + CAST ( SUM ( DISTINCT - 40 ) AS INTEGER ) - - - COUNT ( * ) FROM tab0 AS cor0
----
37

query I rowsort
SELECT DISTINCT col2 - - col2 + - col1 FROM tab2
----
-5
3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT + COUNT( * ) * + + 68 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-8580
SELECT + COUNT ( * ) * + + 68 FROM tab0
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT + 9 DIV + col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT + 9 / + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - - 92 * + + col0 AS col2 FROM tab1 AS cor0
----
4692
7820
8372

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8583
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( + col1 AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-8583
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( + col1 AS INTEGER ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT MIN( col2 ) col2 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8584
SELECT DISTINCT MIN ( col2 ) col2 FROM tab1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8585
SELECT - + CAST( NULL AS SIGNED ) - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT - + CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, + col1 col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8587
SELECT ALL - col1 AS col0, - 9 + + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8587
SELECT ALL - col1 AS col0, - 9 + + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL - col1 * + 3 + + + col1 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8589
SELECT - - ( - - 67 ) + - 82 DIV + col1, - col1 * col1 AS col0 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
51
-25
62
-196
66
-2209

skipif mysql # not compatible
query II rowsort label-8589
SELECT - - ( - - 67 ) + - 82 / + col1, - col1 * col1 AS col0 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
-25
62
-196
66
-2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col2 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8592
SELECT - 77 DIV + col0 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8592
SELECT - 77 / + col0 col2 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE col2 IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 43 + + 28 AS col1, + 5 FROM tab0
----
71
5
71
5
71
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL - COUNT( ALL 98 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL - COUNT ( ALL 98 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT col2 * col0 + ( + + col0 ) FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT + ( ( - - col0 ) ) * + 29 AS col2 FROM tab2
----
1334
1856
2175

query I rowsort
SELECT + col0 + + - 50 * - + col1 AS col0 FROM tab2
----
2596
3425
3914

query I rowsort
SELECT ALL + + ( + col1 ) - - - col0 FROM tab1 WHERE + col1 * - + 24 > - + 4
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8600
SELECT DISTINCT - + SUM( + 19 ) + + - 6 DIV - + COUNT( * ) FROM tab0 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT - + SUM ( + 19 ) + + - 6 / - + COUNT ( * ) FROM tab0 cor0
----
-55

query I rowsort
SELECT DISTINCT - col2 + + + 43 + + + 84 AS col2 FROM tab0 AS cor0
----
117
28
80

query I rowsort
SELECT DISTINCT + 91 + + col1 FROM tab1 cor0
----
105
138
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-71

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL - - col1 * - 92 + + + 55 AS col0 FROM tab2 cor0
----
-4637
-6109
-7029

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE - 55 IS NULL
----

query I rowsort
SELECT ALL + col2 * + ( 13 ) * + col1 - + col0 + + col1 FROM tab2 AS cor0
----
15254
40053
50510

onlyif mysql # DIV for integer division: 
query II rowsort label-8608
SELECT DISTINCT + col2 DIV col0 + + - col0 AS col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

skipif mysql # not compatible
query II rowsort label-8608
SELECT DISTINCT + col2 / col0 + + - col0 AS col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL 89 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL - 86 * MIN( col1 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL - 86 * MIN ( col1 ) FROM tab0
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-8611
SELECT - col1 AS col0, - col1 DIV - col1 AS col1 FROM tab2
----
-51
1
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-8611
SELECT - col1 AS col0, - col1 / - col1 AS col1 FROM tab2
----
-51
1
-67
1
-77
1

query I rowsort
SELECT DISTINCT - col1 * - - col1 * col2 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT + ( - COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8613
SELECT + ( - COUNT ( * ) ) col0 FROM tab1
----
-3

query II rowsort
SELECT ALL 46, + col1 + - + col2 + - + 76 * - col0 AS col0 FROM tab1
----
46
3794
46
6406
46
6895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT - col2 * - CAST( - col1 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-8615
SELECT - col2 * - CAST ( - col1 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT DISTINCT 94 DIV col2 AS col2 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT 94 / col2 AS col2 FROM tab0
----
0
2
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NOT - ( + ( 26 ) ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT ALL - col2 DIV + col1 + + 3 FROM tab0 AS cor0
----
-96
3
3

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - col2 / + col1 + + 3 FROM tab0 AS cor0
----
-96
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 34
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8621
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 9 AS col2, 45 AS col0 FROM tab0 AS cor0
----
9
45
9
45
9
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8623
SELECT DISTINCT 54, col1 AS col2, + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 947288db2477fd6f16e2638b30e6a3f3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8623
SELECT DISTINCT 54, col1 AS col2, + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 947288db2477fd6f16e2638b30e6a3f3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8624
SELECT CAST( - SUM( + col0 ) AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT - 35 * - + col1 NOT BETWEEN + ( + CAST( NULL AS SIGNED ) ) * + col0 + - 18 / + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT CAST ( - SUM ( + col0 ) AS REAL ) FROM tab2 AS cor0 WHERE NOT - 35 * - + col1 NOT BETWEEN + ( + CAST ( NULL AS INTEGER ) ) * + col0 + - 18 / + col2 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8625
SELECT + COUNT( * ) - - 47 FROM tab2 AS cor0 WHERE NOT ( col2 ) / + col2 * 57 + - CAST( + - ( - + 78 ) AS SIGNED ) IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-8625
SELECT + COUNT ( * ) - - 47 FROM tab2 AS cor0 WHERE NOT ( col2 ) / + col2 * 57 + - CAST ( + - ( - + 78 ) AS INTEGER ) IS NOT NULL
----
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8626
SELECT ALL - - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8626
SELECT ALL - - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8627
SELECT DISTINCT 86 * + col1 + + col0 + 6 DIV - CAST( 10 AS SIGNED ) + + col2 * col1 AS col2 FROM tab2 AS cor0
----
5605
9723
9766

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT 86 * + col1 + + col0 + 6 / - CAST ( 10 AS INTEGER ) + + col2 * col1 AS col2 FROM tab2 AS cor0
----
5605
9723
9766

query I rowsort
SELECT - - 84 - - - 89 AS col0 FROM tab1 AS cor0 WHERE + col2 * col0 IS NOT NULL
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8630
SELECT DISTINCT + 71 / ( - - col1 ) * - col2 FROM tab0 AS cor0 WHERE NOT + CAST( col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + 71 / ( - - col1 ) * - col2 FROM tab0 AS cor0 WHERE NOT + CAST ( col2 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL - + COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - + COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - + col0 + col0 + col1 AND NULL
----

query I rowsort
SELECT ALL - - 48 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT - COUNT( DISTINCT + 6 ) * 0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT - COUNT ( DISTINCT + 6 ) * 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - 86 + - 40 FROM tab1 AS cor0
----
-126
-126
-126

query I rowsort
SELECT ALL col0 - col0 * - + col0 AS col0 FROM tab0 AS cor0
----
240
7656
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col0 FROM tab0 AS cor0 WHERE - 86 = + col0 + + + col0
----

query II rowsort
SELECT col2 + - col2, col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT ALL - + col2 + - col1 + - 17 FROM tab2 AS cor0
----
-134
-142
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT DISTINCT 25 / + 59 + + 0 * - CAST( NULL AS SIGNED ) + - 47 * col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT 25 / + 59 + + 0 * - CAST ( NULL AS INTEGER ) + - 47 * col0 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > col1 * 8 - - + 31 + + col1 * + 57
----

query I rowsort
SELECT + + col0 * col2 + - - col0 FROM tab1 cor0
----
4947
5100
6279

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL + COUNT( * ) * + 69 AS col0 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL + COUNT ( * ) * + 69 AS col0 FROM tab2 AS cor0
----
207

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 31 - - col1 + + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + + col2 AND 99
----

query II rowsort
SELECT col0, + col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT - - 75 AS col2 FROM tab0 AS cor0
----
75

query II rowsort
SELECT + + 77 AS col1, col0 + col1 * + col1 FROM tab2 AS cor0
----
77
2647
77
4564
77
5993

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT - COUNT( * ) * + 48 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT - COUNT ( * ) * + 48 FROM tab0 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT MAX( col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8652
SELECT MAX ( col1 ) AS col2 FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8654
SELECT + COUNT( * ) AS col0, - MAX( DISTINCT - + col1 ) FROM tab2
----
3
51

skipif mysql # not compatible
query II rowsort label-8654
SELECT + COUNT ( * ) AS col0, - MAX ( DISTINCT - + col1 ) FROM tab2
----
3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL - COUNT( * ) * - 73 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL - COUNT ( * ) * - 73 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col1 * 52 * col1 * + 35 * + col1 + - + col2 * - col0 FROM tab0 AS cor0
----
-16854150
-967221915
7783

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT + SUM( - 90 ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT + SUM ( - 90 ) FROM tab1 AS cor0
----
-270

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab1 WHERE NOT - 70 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8660
SELECT ALL 42 * + - CAST( NULL AS SIGNED ) * - COUNT( * ) - - + 43 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL 42 * + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - - + 43 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT 18 + + col2 AS col0, + col1 - col0 * col0 FROM tab0
----
117
-9408
28
-7548
65
-144

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT + - CAST( - col2 AS SIGNED ) FROM tab1 WHERE 15 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8663
SELECT + - CAST ( - col2 AS INTEGER ) FROM tab1 WHERE 15 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col0 * - col1 + - ( col0 ) FROM tab1
----
-4368
-510
-765

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 78 > + 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8666
SELECT - + CAST( - col0 AS SIGNED ) AS col2, 5 FROM tab0 cor0
----
15
5
87
5
97
5

skipif mysql # not compatible
query II rowsort label-8666
SELECT - + CAST ( - col0 AS INTEGER ) AS col2, 5 FROM tab0 cor0
----
15
5
87
5
97
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 24 AND ( - 16 )
----

query I rowsort
SELECT ALL + col2 * - + col1 - + - col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT - col0 - - + col2 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ALL - COUNT( * ) + 91 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - COUNT ( * ) + 91 FROM tab2 WHERE NOT - col2 IS NOT NULL
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT + ( + ( + MAX( - 36 ) ) ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-8671
SELECT + ( + ( + MAX ( - 36 ) ) ) AS col2 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT DISTINCT - + SUM( ALL + 71 ) FROM tab1 cor0
----
-213

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - + SUM ( ALL + 71 ) FROM tab1 cor0
----
-213

onlyif mysql # aggregate syntax: 
query II rowsort label-8673
SELECT DISTINCT - COUNT( * ) col2, - 87 FROM tab1 AS cor0
----
-3
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8673
SELECT DISTINCT - COUNT ( * ) col2, - 87 FROM tab1 AS cor0
----
-3
-87

query I rowsort
SELECT + col2 * + col0 * col2 * - + ( - col0 ) AS col1 FROM tab2 AS cor0
----
1119364
18922500
6553600

query I rowsort
SELECT DISTINCT 58 * + - col0 FROM tab1 AS cor0
----
-2958
-4930
-5278

query I rowsort
SELECT ALL + 33 * - col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8677
SELECT ALL COUNT( * ) * + 44 AS col0, + COUNT( * ) * - - CAST( - COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab1
----
132
-6

skipif mysql # not compatible
query II rowsort label-8677
SELECT ALL COUNT ( * ) * + 44 AS col0, + COUNT ( * ) * - - CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab1
----
132
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT - 64 * - MIN( + 34 ) AS col1 FROM tab1
----
2176

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - 64 * - MIN ( + 34 ) AS col1 FROM tab1
----
2176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT DISTINCT + SUM( DISTINCT - - 9 ) DIV - 75 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + SUM ( DISTINCT - - 9 ) / - 75 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col1 * - + 5 AS col2 FROM tab1 AS cor0
----
235
25
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT ALL + 43 DIV + - 14 FROM tab0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + 43 / + - 14 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col2 AS col0, - 48 * + - col0 * + - 42 AS col1 FROM tab2 AS cor0
----
23
-92736
40
-129024
58
-151200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col2 + - 94 = - 9
----

query I rowsort
SELECT ALL 78 + - + 79 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL COUNT( * ) * + + 19 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL COUNT ( * ) * + + 19 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
57

query I rowsort
SELECT DISTINCT - + col1 + - col2 * - col2 * - 76 AS col0 FROM tab1 AS cor0
----
-264561
-351471
-700430

query I rowsort
SELECT ALL col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT + 75 - + 18 * + COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + 75 - + 18 * + COUNT ( * ) FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL - MAX( ALL 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL - MAX ( ALL 98 ) FROM tab1
----
-98

query I rowsort
SELECT DISTINCT - ( - 0 ) + - + 58 AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL COUNT( DISTINCT col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL COUNT ( DISTINCT col1 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT + col0, col2 + - col2 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT - - col1 DIV col1 + + 79 + - 30 FROM tab1 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8696
SELECT - - col1 / col1 + + 79 + - 30 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT - - col2 + + + col0 * + 2 FROM tab2 AS cor0
----
115
168
208

query II rowsort
SELECT + - 15 + + col2 AS col1, - col0 FROM tab0 AS cor0
----
-5
-87
32
-15
84
-97

query I rowsort
SELECT DISTINCT 8 - + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-417
-4269
-706

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT + COUNT( DISTINCT col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT + COUNT ( DISTINCT col2 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + ( + col0 ), + col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT + CAST( + 26 AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif mysql # not compatible
query I rowsort label-8702
SELECT + CAST ( + 26 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT - + 39 DIV + ( + - 89 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8704
SELECT - + 39 / + ( + - 89 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8706
SELECT - 49 * - col2 - - - CAST( - 24 AS SIGNED ) FROM tab2 cor0
----
1151
1984
2866

skipif mysql # not compatible
query I rowsort label-8706
SELECT - 49 * - col2 - - - CAST ( - 24 AS INTEGER ) FROM tab2 cor0
----
1151
1984
2866

query II rowsort
SELECT DISTINCT + col1, - 4 * col2 AS col2 FROM tab0
----
1
-396
21
-40
81
-188

query II rowsort
SELECT - 44 AS col1, col2 * - - col2 FROM tab2
----
-44
1600
-44
3364
-44
529

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT + 1 >= NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT + MAX( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8710
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 + - 41 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8712
SELECT DISTINCT col0 DIV + 35 + col1 AS col1 FROM tab0
----
23
3
81

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT col0 / + 35 + col1 AS col1 FROM tab0
----
23
3
81

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + + - 19 + + 37 * + - 61 + - 56 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL - ( + - COUNT( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - ( + - COUNT ( DISTINCT - - col1 ) ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - 7 col2 FROM tab1 AS cor0
----
329
35
98

query I rowsort
SELECT - 65 + - col1 FROM tab2
----
-116
-132
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT + 64 * 92 + + MAX( col2 ) FROM tab1
----
5984

skipif mysql # not compatible
query I rowsort label-8717
SELECT + 64 * 92 + + MAX ( col2 ) FROM tab1
----
5984

query I rowsort
SELECT ALL - AVG ( - 10 ) - + 2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( 74 )
----
NULL

query I rowsort
SELECT col1 + + col1 * - 98 FROM tab1
----
-1358
-4559
-485

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT - col0 - col0 DIV - col1 FROM tab2
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-8720
SELECT - col0 - col0 / - col1 FROM tab2
----
-46
-64
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT col1 + - col2 * - col2 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col2 * + col0 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8721
SELECT col1 + - col2 * - col2 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col2 * + col0 - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - col1 * 47 FROM tab1
----
-2209
-235
-658

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND - ( 81 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 76 ) IN ( col2 )
----

query I rowsort
SELECT col2 * 4 FROM tab0
----
188
396
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT DISTINCT 31 DIV - 40 - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT 31 / - 40 - COUNT ( * ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE col1 + + 29 > col0 + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - col2 - + 50 < - col1
----
3

skipif mysql # not compatible
query I rowsort label-8728
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - col2 - + 50 < - col1
----
3

query I rowsort
SELECT DISTINCT col1 + 41 FROM tab2
----
108
118
92

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT COUNT( * ) * + 66 AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-8731
SELECT COUNT ( * ) * + 66 AS col1 FROM tab0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT 86 * COUNT( * ) FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-8732
SELECT 86 * COUNT ( * ) FROM tab0
----
258

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col1 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT - ( SUM( ALL + col0 ) ) * - COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT - ( SUM ( ALL + col0 ) ) * - COUNT ( * ) FROM tab1
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT ALL - 97 DIV - 38 + col0 col0 FROM tab1
----
53
87
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8735
SELECT ALL - 97 / - 38 + col0 col0 FROM tab1
----
53
87
93

query I rowsort
SELECT + 72 * col0 AS col1 FROM tab1
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + 28 * + COUNT( ALL 31 ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 28 * + COUNT ( ALL 31 ) FROM tab2
----
84

query I rowsort
SELECT - 62 * + col2 AS col2 FROM tab0
----
-2914
-6138
-620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT + ( + CAST( NULL AS SIGNED ) ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT + ( + CAST ( NULL AS INTEGER ) ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab1
----
84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT + col0 - + col2 * col1 AS col2 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT MIN( ALL + 58 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT MIN ( ALL + 58 ) FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8744
SELECT ALL * FROM tab0 WHERE NOT + col0 * ( ( + 84 ) ) NOT BETWEEN ( CAST( NULL AS SIGNED ) * col2 ) AND ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-8744
SELECT ALL * FROM tab0 WHERE NOT + col0 * ( ( + 84 ) ) NOT BETWEEN ( CAST ( NULL AS INTEGER ) * col2 ) AND ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE 44 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT CAST( + 25 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-8746
SELECT CAST ( + 25 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT - SUM( ALL 29 ) AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - SUM ( ALL 29 ) AS col2 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT - COUNT( ALL - col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8748
SELECT - COUNT ( ALL - col0 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-8749
SELECT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT + 10 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0 cor0
----
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - 38 * - MIN( - col2 ) FROM tab2 cor0
----
-2204

skipif mysql # not compatible
query I rowsort label-8753
SELECT - 38 * - MIN ( - col2 ) FROM tab2 cor0
----
-2204

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 >= 55
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + + col2 / col0 col1 FROM tab0 AS cor0 WHERE NOT - col1 * - 52 IS NOT NULL
----

query I rowsort
SELECT - + ( + 65 ) FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT col2 DIV + 41 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8757
SELECT col2 / + 41 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT + 28 * 63 FROM tab2 AS cor0
----
1764
1764
1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT - MAX( - 70 ) AS col2 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT - MAX ( - 70 ) AS col2 FROM tab1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT MAX( DISTINCT + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8761
SELECT MAX ( DISTINCT + col2 ) FROM tab1
----
96

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT ( + 92 ) = ( col1 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT MIN( DISTINCT + 83 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT MIN ( DISTINCT + 83 ) FROM tab0
----
83

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT - 26 * - col0 - 11 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT - ( MAX( col0 ) ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8765
SELECT - ( MAX ( col0 ) ) AS col2 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT 5 * + col1 AS col1 FROM tab2 WHERE col2 <> + col2
----

query I rowsort
SELECT DISTINCT col0 * - 59 + + col1 AS col0 FROM tab2
----
-2663
-3699
-4358

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8768
SELECT * FROM tab0 WHERE NOT ( col2 + CAST( NULL AS SIGNED ) ) BETWEEN + 76 * - 65 AND - col0
----

skipif mysql # not compatible
query III rowsort label-8768
SELECT * FROM tab0 WHERE NOT ( col2 + CAST ( NULL AS INTEGER ) ) BETWEEN + 76 * - 65 AND - col0
----

query I rowsort
SELECT ALL + col1 + 96 * 40 AS col2 FROM tab0 cor0
----
3841
3861
3921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT CAST( 67 AS SIGNED ) FROM tab0 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-8770
SELECT CAST ( 67 AS INTEGER ) FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT - 84 * + ( col2 ) * 90 + + col2 FROM tab2 AS cor0
----
-173857
-302360
-438422

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT + COUNT( DISTINCT + 39 ) AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-8772
SELECT + COUNT ( DISTINCT + 39 ) AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
1

query I rowsort
SELECT DISTINCT col0 * 57 AS col1 FROM tab1 WHERE NOT ( + col1 + col2 ) IS NULL
----
2907
4845
5187

query I rowsort
SELECT DISTINCT + col1 + + - col0 * + ( + 37 ) AS col2 FROM tab0
----
-3198
-3588
-474

query I rowsort
SELECT DISTINCT col2 + - ( col2 ) * + 65 FROM tab2
----
-1472
-2560
-3712

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - 48 ) IS NULL
----

query I rowsort
SELECT ALL - 39 - - 11 AS col0 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL col0 + 72 AS col1 FROM tab0 AS cor0
----
159
169
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + col1 + - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT - - COUNT( ALL + - 4 ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8780
SELECT - - COUNT ( ALL + - 4 ) col0 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 - + col1, col0 * - col0 col2 FROM tab1
----
-10
-7225
-28
-2601
-94
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL MAX( ALL col2 ) - + 9 AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL MAX ( ALL col2 ) - + 9 AS col0 FROM tab0
----
90

query II rowsort
SELECT DISTINCT col0 - + col0, + col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT DISTINCT - 48 * - col1 - 0 AS col2 FROM tab2
----
2448
3216
3696

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT DISTINCT 0 * + ( 67 ) DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT 0 * + ( 67 ) / - col2 FROM tab1
----
0

query I rowsort
SELECT - 88 * + 63 * - - ( + col0 ) FROM tab2
----
-255024
-354816
-415800

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab1 AS cor0 WHERE NOT ( + - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT - col0 DIV - 9 AS col0 FROM tab2 AS cor0
----
5
7
8

skipif mysql # not compatible
query I rowsort label-8788
SELECT - col0 / - 9 AS col0 FROM tab2 AS cor0
----
5
7
8

query II rowsort
SELECT - + col1 * + + 10, + col1 FROM tab0 AS cor0
----
-10
1
-210
21
-810
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8790
SELECT + col2 DIV - col1 + col1 FROM tab2 AS cor0 WHERE NOT ( + CAST( 50 AS SIGNED ) ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8790
SELECT + col2 / - col1 + col1 FROM tab2 AS cor0 WHERE NOT ( + CAST ( 50 AS INTEGER ) ) IS NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( + + col1 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8792
SELECT * FROM tab1 WHERE NOT ( 49 ) > + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8792
SELECT * FROM tab1 WHERE NOT ( 49 ) > + CAST ( - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL - MAX( - 67 ) AS col2 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL - MAX ( - 67 ) AS col2 FROM tab0
----
67

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( 98 ) + + + 82 NOT IN ( + col2 * + ( - 69 ) + + col1 )
----

query I rowsort
SELECT ALL 16 + + - col0 + col0 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT IN ( - 32, + 53 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8796
SELECT ALL + 85 DIV - col0 + + + col2 FROM tab1 AS cor0
----
58
68
95

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + 85 / - col0 + + + col2 FROM tab1 AS cor0
----
58
68
95

query I rowsort
SELECT DISTINCT - col1 + col2 * 14 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + - col2 + + 24 - + + col1 / 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL + + MIN( DISTINCT - - 2 ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + + MIN ( DISTINCT - - 2 ) AS col1 FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, col2 * - + 31 * - 30 col1 FROM tab0 AS cor0
----
-1
92070
-21
9300
-81
43710

query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 14 - - 20, - 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8802
SELECT + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8802
SELECT + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 74 * 64 + 72 * col0 / + col2 NOT BETWEEN col1 * - 99 AND 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8804
SELECT COUNT( * ) AS col2, 67 FROM tab0
----
3
67

skipif mysql # not compatible
query II rowsort label-8804
SELECT COUNT ( * ) AS col2, 67 FROM tab0
----
3
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8805
SELECT ALL + CAST( + + 5 AS SIGNED ) AS col0 FROM tab0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + CAST ( + + 5 AS INTEGER ) AS col0 FROM tab0
----
5
5
5

query I rowsort
SELECT + 11 + - - col2 FROM tab1
----
107
70
79

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col2 ) <= - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT 50 + + - 14 DIV + SUM( ALL + 96 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-8808
SELECT 50 + + - 14 / + SUM ( ALL + 96 ) FROM tab0
----
50

query II rowsort
SELECT ALL 73 AS col1, + 72 + 40 + col1 FROM tab1
----
73
117
73
126
73
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8810
SELECT ALL * FROM tab2 WHERE - 29 IN ( ( CAST( - col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-8810
SELECT ALL * FROM tab2 WHERE - 29 IN ( ( CAST ( - col1 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 WHERE + + 37 / + col2 + col0 - + - 76 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8811
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 WHERE + + 37 / + col2 + col0 - + - 76 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT ALL col1 DIV - + 30 - + col0 * + ( col2 ) FROM tab2 AS cor0 WHERE col2 + + - ( + col0 ) IS NOT NULL
----
-1059
-2562
-4352

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL col1 / - + 30 - + col0 * + ( col2 ) FROM tab2 AS cor0 WHERE col2 + + - ( + col0 ) IS NOT NULL
----
-1059
-2562
-4352

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL COUNT( DISTINCT + 76 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL COUNT ( DISTINCT + 76 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT 48 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-8815
SELECT 48 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
144

query I rowsort
SELECT DISTINCT 24 * - - 46 * - - col0 FROM tab2
----
50784
70656
82800

query I rowsort
SELECT col1 - + 45 + - + col2 FROM tab1
----
-127
-66
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT - col0 - col1 DIV col1 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-8818
SELECT - col0 - col1 / col1 FROM tab0
----
-16
-88
-98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 59 + col0 AS col0 FROM tab1 AS cor0
----
-8
26
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT - + col1 DIV + + col0 + - 85 + + col2 FROM tab0 AS cor0
----
-43
-75
14

skipif mysql # not compatible
query I rowsort label-8821
SELECT - + col1 / + + col0 + - 85 + + col2 FROM tab0 AS cor0
----
-43
-75
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT + 83 - + MAX( ALL col0 ) FROM tab0 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT + 83 - + MAX ( ALL col0 ) FROM tab0 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT + COUNT( * ) + 85 AS col2 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + COUNT ( * ) + 85 AS col2 FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - COUNT( ( + col0 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8825
SELECT - COUNT ( ( + col0 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ( ( 61 ) ) AS col1 FROM tab1
----
61
61
61

query II rowsort
SELECT 51 AS col2, + 29 AS col1 FROM tab2
----
51
29
51
29
51
29

query I rowsort
SELECT + + ( - col1 ) FROM tab1 WHERE NOT + col2 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT 48 * - + SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT 48 * - + SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 5 + + - col1 AS col0 FROM tab1 WHERE - 0 / + col0 + - + 46 IS NOT NULL
----
-42
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT MIN( col0 ) - - 56 AS col2 FROM tab1 WHERE NOT ( col2 ) NOT IN ( col1 * - 95 + col0, - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT MIN ( col0 ) - - 56 AS col2 FROM tab1 WHERE NOT ( col2 ) NOT IN ( col1 * - 95 + col0, - 14 )
----
NULL

query I rowsort
SELECT col0 * col2 * + 4 FROM tab2
----
10240
17400
4232

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL + 62 DIV + - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + 62 / + - col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col1 > col1
----
59
68
96

query II rowsort
SELECT DISTINCT 21, + ( + col0 ) FROM tab2 AS cor0
----
21
46
21
64
21
75

query I rowsort
SELECT + ( - 41 ) AS col2 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL - ( + - ( ( col0 ) ) ) AS col0 FROM tab0 WHERE + ( + 29 ) > + col2 * 28
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT ALL CAST( COUNT( * ) AS SIGNED ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8838
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT DISTINCT - + col2 * + col1 + CAST( NULL AS SIGNED ) * - - 26 / 56 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT - + col2 * + col1 + CAST ( NULL AS INTEGER ) * - - 26 / 56 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT DISTINCT + ( - MAX( - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + ( - MAX ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT + col1 <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8843
SELECT 96 * col0 + - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8843
SELECT 96 * col0 + - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8844
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8844
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - col1 * + - ( - col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE - 45 NOT BETWEEN ( 42 ) AND ( col1 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 col1 FROM tab1 WHERE NULL NOT BETWEEN - 75 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 19 * + 66 AS col2 FROM tab1
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - COUNT( * ) * + 66 col2 FROM tab2
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8850
SELECT - COUNT ( * ) * + 66 col2 FROM tab2
----
-198

query III rowsort
SELECT * FROM tab1 WHERE + col1 IN ( 59, - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + col2 * + + col1 + + - 56 - + col0 + col2 * - 65 AND ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8853
SELECT DISTINCT + 93 DIV + col1 FROM tab0
----
1
4
93

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT + 93 / + col1 FROM tab0
----
1
4
93

query I rowsort
SELECT ALL - col2 * - + col2 + + col0 FROM tab1
----
3566
4715
9267

query I rowsort
SELECT - + col0 FROM tab1 WHERE - ( + col0 ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( - 38 ) NOT IN ( - col2 + + ( CAST( col2 AS SIGNED ) ) )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8856
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( - 38 ) NOT IN ( - col2 + + ( CAST ( col2 AS INTEGER ) ) )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT - COUNT( + col0 ) + COUNT( * ) + - 58 * COUNT( * ) * 42 * 77 FROM tab0 AS cor0
----
-562716

skipif mysql # not compatible
query I rowsort label-8857
SELECT - COUNT ( + col0 ) + COUNT ( * ) + - 58 * COUNT ( * ) * 42 * 77 FROM tab0 AS cor0
----
-562716

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT 72 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8858
SELECT 72 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8859
SELECT + CAST( NULL AS DECIMAL ) + - - 33 - 42 * + - ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT + CAST ( NULL AS REAL ) + - - 33 - 42 * + - ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( - 95 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8861
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - + col1 AS SIGNED ) - - + 23 + col1 BETWEEN + ( - 79 ) AND col2
----
87
21
10

skipif mysql # not compatible
query III rowsort label-8861
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - + col1 AS INTEGER ) - - + 23 + col1 BETWEEN + ( - 79 ) AND col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT COUNT( ALL 9 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8862
SELECT COUNT ( ALL 9 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 25 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - col1 ) + - - 92 * + col2 >= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 74 + - ( col0 ) FROM tab1 AS cor0
----
-11
-17
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - COUNT( + 76 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8866
SELECT - COUNT ( + 76 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL + MIN( - + 18 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + MIN ( - + 18 ) FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8869
SELECT col2, + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8869
SELECT col2, + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL + MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL + MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

query II rowsort
SELECT col1 AS col0, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT COUNT( * ) AS col1, + 33 * - 28 * - 18 AS col2 FROM tab2, tab1 AS cor0
----
9
16632

skipif mysql # not compatible
query II rowsort label-8873
SELECT COUNT ( * ) AS col1, + 33 * - 28 * - 18 AS col2 FROM tab2, tab1 AS cor0
----
9
16632

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8874
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 79 ) / 80 BETWEEN ( NULL ) AND CAST( + + ( - 4 ) AS SIGNED ) * + col1 / - ( + col0 ) * + col2 + + 17 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8874
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 79 ) / 80 BETWEEN ( NULL ) AND CAST ( + + ( - 4 ) AS INTEGER ) * + col1 / - ( + col0 ) * + col2 + + 17 + CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + ( - + col1 ) ) AS col0 FROM tab1
----
14
47
5

query II rowsort
SELECT DISTINCT - ( - - col0 ), col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT - 12 * col2 DIV col0 FROM tab2 AS cor0
----
-6
-7
-9

skipif mysql # not compatible
query I rowsort label-8878
SELECT - 12 * col2 / col0 FROM tab2 AS cor0
----
-6
-7
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 * + 71 / - col0 ) <> col0 * + 36 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT + COUNT( 61 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8882
SELECT + COUNT ( 61 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * col0 + col0 FROM tab1 cor0 WHERE + 75 IS NOT NULL
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT 66 * COUNT( + col1 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT 66 * COUNT ( + col1 ) FROM tab2 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-8885
SELECT ALL - + ( - 84 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - + ( - 84 ) / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT col1 * + - 49 * - col1 DIV 1 FROM tab2 AS cor0
----
127449
219961
290521

skipif mysql # not compatible
query I rowsort label-8886
SELECT col1 * + - 49 * - col1 / 1 FROM tab2 AS cor0
----
127449
219961
290521

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN + 18 + + col1 * - col1 AND + - 82
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / col0 + - col1 NOT IN ( + - col1 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - ( - - col1 ) AS col1, col0 + col2 * - col0 * + 40 + col0 * - 71 FROM tab2
----
-51
-45540
-67
-179250
-77
-106880

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8891
SELECT ALL COUNT( - 3 ) DIV + 37 * + 60 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL COUNT ( - 3 ) / + 37 * + 60 FROM tab2
----
0

query I rowsort
SELECT ALL - ( 48 ) FROM tab1
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col0 FROM tab0
----
42
42
42

query I rowsort
SELECT col0 + col2 - col1 AS col2 FROM tab0
----
-19
195
76

query I rowsort
SELECT col0 * - - col1 * 58 + col1 * - col1 AS col0 FROM tab0
----
105525
5625
63909

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT DISTINCT + 44 + - 7 DIV + col1 col1 FROM tab2
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8896
SELECT DISTINCT + 44 + - 7 / + col1 col1 FROM tab2
----
44

query I rowsort
SELECT + 90 * ( - col1 ) + + col0 - + ( + - 8 ) FROM tab2
----
-4536
-5947
-6858

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT - + COUNT( * ) AS col0 FROM tab1 WHERE col2 / 14 - + col1 + - col1 <= + 92
----
-3

skipif mysql # not compatible
query I rowsort label-8898
SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE col2 / 14 - + col1 + - col1 <= + 92
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - MIN( - ( + col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8899
SELECT - MIN ( - ( + col0 ) ) FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-8900
SELECT DISTINCT col1 + - col0 DIV + - col1 + col2 AS col1, col0 FROM tab0 cor0
----
128
15
197
97
35
87

skipif mysql # not compatible
query II rowsort label-8900
SELECT DISTINCT col1 + - col0 / + - col1 + col2 AS col1, col0 FROM tab0 cor0
----
128
15
197
97
35
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT ALL 94 + - COUNT( * ) AS col1, 32 FROM tab0 AS cor0
----
91
32

skipif mysql # not compatible
query II rowsort label-8901
SELECT ALL 94 + - COUNT ( * ) AS col1, 32 FROM tab0 AS cor0
----
91
32

query I rowsort
SELECT - col1 * - - col2 - + col2 * + - col2 * + col0 + col2 AS col1 FROM tab0
----
29375
8500
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + MIN( DISTINCT - - 53 ) FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8904
SELECT + MIN ( DISTINCT - - 53 ) FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8905
SELECT 0 DIV - - ( 63 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8905
SELECT 0 / - - ( 63 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 72 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT - MIN( ALL - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8907
SELECT - MIN ( ALL - col2 ) FROM tab0
----
99

query II rowsort
SELECT + col0 AS col2, col1 + + col2 FROM tab2
----
46
74
64
117
75
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, + col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + - 53 FROM tab2 WHERE NULL = NULL
----

query II rowsort
SELECT + 69 AS col2, - 34 FROM tab1
----
69
-34
69
-34
69
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8912
SELECT ALL + - ( - - col1 ), col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-8912
SELECT ALL + - ( - - col1 ), col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

query I rowsort
SELECT DISTINCT - col0 + + 54 + - 66 + - + col1 FROM tab2
----
-109
-153
-154

query I rowsort
SELECT - 12 AS col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL - SUM( - col2 ) + 92 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL - SUM ( - col2 ) + 92 FROM tab2
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT + 56 DIV + - col2 * + - 16 + - col2 + - col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-8916
SELECT + 56 / + - col2 * + - 16 + - col2 + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL + 54 + 23 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8918
SELECT ALL - COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col2 ) * - 73 - + 24 + - col1 <> + col0 + + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + ( 38 ) + + - col1 AS col1 FROM tab2 AS cor0
----
-105
-115
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + 24 * - COUNT( * ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8921
SELECT + 24 * - COUNT ( * ) FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT SUM( ( col0 ) ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT SUM ( ( col0 ) ) AS col0 FROM tab0
----
199

query I rowsort
SELECT DISTINCT col0 * + - col2 * + 79 * - col0 FROM tab1
----
19725984
33675725
44485532

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 <> - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + - ( - - 67 ), + col1, + col0 + - col2, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 + + + col1 col2 FROM tab1 WHERE - 82 BETWEEN - - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8927
SELECT ALL + + col0 + + col1 * - CAST( NULL AS DECIMAL ), ( + col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8927
SELECT ALL + + col0 + + col1 * - CAST ( NULL AS REAL ), ( + col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT ALL + + col2 + - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL + + col2 + - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT DISTINCT col2 * - - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT col2 * - - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col2 ) col1, 73 FROM tab1 cor0
----
59
73
68
73
96
73

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab1 AS cor0 WHERE NOT ( + 99 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8932
SELECT - col2 * col2 + + - col1 * 46 / + CAST( NULL AS DECIMAL ) AS col0, + 48 FROM tab0 AS cor0
----
NULL
48
NULL
48
NULL
48

skipif mysql # not compatible
query II rowsort label-8932
SELECT - col2 * col2 + + - col1 * 46 / + CAST ( NULL AS REAL ) AS col0, + 48 FROM tab0 AS cor0
----
NULL
48
NULL
48
NULL
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT DISTINCT 40 DIV col2 - - col0 FROM tab2 AS cor0
----
47
65
75

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT 40 / col2 - - col0 FROM tab2 AS cor0
----
47
65
75

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( + - 13 <> + + col2 * - 50 + + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT + 15 DIV ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8935
SELECT + 15 / ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + + MAX( DISTINCT + + 32 ) AS col0 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + + MAX ( DISTINCT + + 32 ) AS col0 FROM tab1 AS cor0
----
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col1 + col0 + + + 60 AND + col2
----

query II rowsort
SELECT ALL col0, 26 * - 26 + - 21 FROM tab0 WHERE col1 NOT BETWEEN + 19 AND col2
----
15
-697
87
-697
97
-697

query I rowsort
SELECT + - col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - COUNT( * ) + - SUM( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8940
SELECT - COUNT ( * ) + - SUM ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col0 - col2 )
----

query I rowsort
SELECT + + col2 + - + col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + 90 + - 75 AS col1 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT + 61 * + + col0 FROM tab0 AS cor0
----
5307
5917
915

onlyif mysql # aggregate syntax: 
query II rowsort label-8945
SELECT ALL COUNT( + col2 ) AS col0, COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8945
SELECT ALL COUNT ( + col2 ) AS col0, COUNT ( * ) AS col0 FROM tab0
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > + - col1
----

query II rowsort
SELECT 3, col0 FROM tab1
----
3
51
3
85
3
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT COUNT( * ) * MIN( DISTINCT - col0 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8948
SELECT COUNT ( * ) * MIN ( DISTINCT - col0 ) FROM tab1
----
-273

query II rowsort
SELECT ALL + col0 + + 74 AS col0, + 93 AS col2 FROM tab1 AS cor0
----
125
93
159
93
165
93

query I rowsort
SELECT DISTINCT - 85 * col0 + - + col2 + col0 - + col2 - col1 * col1 FROM tab2 AS cor0
----
-10905
-11385
-6511

query III rowsort
SELECT DISTINCT col0 AS col1, + col2 * col2 * - + col1 AS col2, - - col1 FROM tab0 AS cor0
----
9 values hashing to 1d629bca0d729e063fcaabe23ea1448c

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT ALL + MIN( DISTINCT - - col2 ) + + SUM( - + col2 ) + - + 72 FROM tab0 AS cor0
----
-218

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + MIN ( DISTINCT - - col2 ) + + SUM ( - + col2 ) + - + 72 FROM tab0 AS cor0
----
-218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT COUNT( DISTINCT + col1 ) - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT COUNT ( DISTINCT + col1 ) - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 + - + col0, col2 + + col0 FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL + COUNT( + 76 ) - - + 12 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + COUNT ( + 76 ) - - + 12 FROM tab2
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 / - + 12 IS NULL
----

query I rowsort
SELECT ( - + col0 ) + ( + 89 ) FROM tab0
----
-8
2
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT + MAX( - - 25 ) + + - COUNT( * ) + + - 20 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8958
SELECT + MAX ( - - 25 ) + + - COUNT ( * ) + + - 20 FROM tab1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT + SUM( ALL - + 61 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT + SUM ( ALL - + 61 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 98 * - col2 FROM tab0
----
-4606
-9702
-980

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - + 11 / + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8962
SELECT SUM( ALL + col2 ), COUNT( - col2 ) AS col1 FROM tab0
----
156
3

skipif mysql # not compatible
query II rowsort label-8962
SELECT SUM ( ALL + col2 ), COUNT ( - col2 ) AS col1 FROM tab0
----
156
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 24 ) col1 FROM tab0
----
24
24
24

query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL <> + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ( + MAX( ALL 70 ) ) * - 91 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - + 74 * - col0 * + col0 + - + 55, - col0 + + col2 * - col1, - - col1 * 85, + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT ( + MAX ( ALL 70 ) ) * - 91 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - + 74 * - col0 * + col0 + - + 55, - col0 + + col2 * - col1, - - col1 * 85, + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL + SUM( DISTINCT + 18 ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + SUM ( DISTINCT + 18 ) AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT - col2 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 + + col1 + + col1 * + + col2 ) > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT + - ( COUNT( * ) ) * - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8969
SELECT + - ( COUNT ( * ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT + SUM( ALL 47 ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT + SUM ( ALL 47 ) FROM tab1 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL - 50 * - COUNT( * ) - COUNT( * ) + - + COUNT( ALL + col2 ) AS col0 FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - 50 * - COUNT ( * ) - COUNT ( * ) + - + COUNT ( ALL + col2 ) AS col0 FROM tab0 WHERE - col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + 63 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT - col2 DIV ( - 30 ) AS col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8973
SELECT - col2 / ( - 30 ) AS col1 FROM tab1
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - - col2 col2, - col1 * 2 + - - col1 AS col2 FROM tab0
----
210
-21
3807
-81
99
-1

query I rowsort
SELECT + + ( - col2 ) * 95 AS col1 FROM tab1 AS cor0
----
-5605
-6460
-9120

query I rowsort
SELECT 26 + - col1 AS col0 FROM tab1 AS cor0
----
-21
12
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT - MIN( DISTINCT + col2 ) + ( - 80 ) FROM tab1 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT - MIN ( DISTINCT + col2 ) + ( - 80 ) FROM tab1 AS cor0
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT + ( + 56 ) DIV + 66 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT + ( + 56 ) / + 66 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT + + CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8979
SELECT + + CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 89 * + + 77 FROM tab0 AS cor0
----
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT DISTINCT COUNT( + col1 ) - COUNT( DISTINCT + col2 ) * - 23 AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT COUNT ( + col1 ) - COUNT ( DISTINCT + col2 ) * - 23 AS col2 FROM tab0
----
72

query I rowsort
SELECT + col1 - + 42 AS col1 FROM tab0
----
-21
-41
39

query I rowsort
SELECT + col0 - 69 AS col1 FROM tab2
----
-23
-5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT MIN( ALL - col0 ) - - 96 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8984
SELECT MIN ( ALL - col0 ) - - 96 AS col2 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + - col2, + 51 + + col2 * + 41 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8986
SELECT ALL COUNT( ALL - 42 ) DIV - COUNT( * ) + - + 55 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL COUNT ( ALL - 42 ) / - COUNT ( * ) + - + 55 FROM tab2
----
-56

query I rowsort
SELECT - 21 * + 4 FROM tab2 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT + ( + + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8988
SELECT + ( + + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT DISTINCT + col1 AS col2, 72 FROM tab2 AS cor0
----
51
72
67
72
77
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - MAX( - + 26 ) * 88 AS col1 FROM tab1 AS cor0
----
2288

skipif mysql # not compatible
query I rowsort label-8990
SELECT - MAX ( - + 26 ) * 88 AS col1 FROM tab1 AS cor0
----
2288

query II rowsort
SELECT ALL 12 * - + 19 AS col2, - 31 AS col1 FROM tab1 cor0
----
-228
-31
-228
-31
-228
-31

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT - SUM( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8993
SELECT - SUM ( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ), - 37 + + 99 col1 FROM tab0 AS cor0
----
9
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8994
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ), - 37 + + 99 col1 FROM tab0 AS cor0
----
9
62

query I rowsort
SELECT ALL + col0 * + 48 + 59 AS col0 FROM tab1 AS cor0
----
2507
4139
4427

query I rowsort
SELECT ALL 21 * + + col1 * 47 FROM tab2
----
50337
66129
75999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8997
SELECT MIN( - - col0 ) + 93 + + + 22 DIV + 32 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-8997
SELECT MIN ( - - col0 ) + 93 + + + 22 / + 32 FROM tab1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - COUNT( * ) + + - 33 AS col0 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8998
SELECT - COUNT ( * ) + + - 33 AS col0 FROM tab2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT + col1 DIV - + col0 + - 92 * + + col1 * - col1 FROM tab1
----
18032
203228
2300

skipif mysql # not compatible
query I rowsort label-8999
SELECT + col1 / - + col0 + - 92 * + + col1 * - col1 FROM tab1
----
18032
203228
2300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 3 col1 FROM tab1
----
62
71
99

query I rowsort
SELECT col2 + + col2 * col1 * + ( + 55 ) FROM tab2 AS cor0
----
169440
213788
64538

query I rowsort
SELECT + 41 + - col2 FROM tab1 AS cor0
----
-18
-27
-55

query I rowsort
SELECT DISTINCT + 77 * - + col1 FROM tab2 cor0
----
-3927
-5159
-5929

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, ( - col2 ) + + - col2, + col2, - + 41 * + 23 )
----

query I rowsort
SELECT ALL col0 + - + ( col1 ) AS col1 FROM tab1 cor0
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9006
SELECT - col0 * 83 DIV - col2 + + col2 DIV 48 FROM tab1 AS cor0
----
112
120
46

skipif mysql # not compatible
query I rowsort label-9006
SELECT - col0 * 83 / - col2 + + col2 / 48 FROM tab1 AS cor0
----
112
120
46

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col1 AS col1 FROM tab0 cor0
----
1134
1806
96

query II rowsort
SELECT 56 + + col1, col0 FROM tab2 AS cor0
----
107
46
123
75
133
64

query I rowsort
SELECT + - 54 + col0 + - + 86 * 7 + 94 AS col0 FROM tab2 AS cor0
----
-487
-498
-516

query I rowsort
SELECT DISTINCT col2 + + - col1 * + + col0 FROM tab2 cor0
----
-2323
-4888
-4967

query I rowsort
SELECT + 30 + - 33 + + 10 AS col1 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL 12 - + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL 12 - + COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL 79 + - MAX( DISTINCT 32 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL 79 + - MAX ( DISTINCT 32 ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT COUNT( * ) AS col0 FROM tab1 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9014
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT DISTINCT - col1 DIV 71 - col0 + - col2 - + 31 + - col1 AS col0 FROM tab2
----
-151
-213
-231

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - col1 / 71 - col0 + - col2 - + 31 + - col1 AS col0 FROM tab2
----
-151
-213
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col0 FROM tab1, tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ( MIN( col0 ) ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9017
SELECT ( MIN ( col0 ) ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT + + MIN( ALL + + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9018
SELECT + + MIN ( ALL + + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT ALL + CAST( 23 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + CAST ( 23 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
23
23
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) = col0 * + 3 + + - col0 * + 44 + + + col1
----

query II rowsort
SELECT - ( + col0 ), + col0 FROM tab1
----
-51
51
-85
85
-91
91

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT - + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT col2 <> 37
----
0

skipif mysql # not compatible
query I rowsort label-9023
SELECT - + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT col2 <> 37
----
0

query I rowsort
SELECT ALL col0 * - col1 * - - 2 AS col1 FROM tab0 AS cor0
----
-194
-2430
-3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9025
SELECT SUM( 94 ) + + - 42 AS col0, - 38 FROM tab1 AS cor0 WHERE NOT NULL >= + col0 + + CAST( NULL AS SIGNED )
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-9025
SELECT SUM ( 94 ) + + - 42 AS col0, - 38 FROM tab1 AS cor0 WHERE NOT NULL >= + col0 + + CAST ( NULL AS INTEGER )
----
NULL
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT col1 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT col1 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + SUM( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9027
SELECT + SUM ( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT DISTINCT - - 53 AS col0, 79 - - col1 AS col1 FROM tab1 AS cor0
----
53
126
53
84
53
93

query I rowsort
SELECT - col2 * - - col2 * col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN + 42 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT ALL - 20 FROM tab0 WHERE NOT col2 < - ( - col1 ) * + col1 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 20 FROM tab0 WHERE NOT col2 < - ( - col1 ) * + col1 - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT COUNT( - 3 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT COUNT ( - 3 ) AS col1 FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT col2 DIV 83 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9033
SELECT col2 / 83 AS col2 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9034
SELECT + 1 AS col1 FROM tab2 WHERE - CAST( + col0 AS DECIMAL ) + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 1 AS col1 FROM tab2 WHERE - CAST ( + col0 AS REAL ) + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT col2 * + col1 * col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT col2 * + col1 * col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col2 + + col2 + + - col0 AS col0, 1 FROM tab1 AS cor0
----
141
1
33
1
45
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT - - col2 + - + col0 + - - col2 + + col0 / + 49 / - CAST( + 20 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL <= + ( 55 ) * + ( + + col0 ) * col2 + col2
----

skipif mysql # not compatible
query I rowsort label-9037
SELECT - - col2 + - + col0 + - - col2 + + col0 / + 49 / - CAST ( + 20 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL <= + ( 55 ) * + ( + + col0 ) * col2 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT DISTINCT - col1 - col2 DIV - col0 + col2 FROM tab1
----
21
54
83

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT - col1 - col2 / - col0 + col2 FROM tab1
----
21
54
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col1 FROM tab1, tab0 AS cor0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9040
SELECT - COUNT( * ) * + COUNT( * ) + - 45 col0, + ( - COUNT( * ) ) * - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
-54
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9040
SELECT - COUNT ( * ) * + COUNT ( * ) + - 45 col0, + ( - COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
-54
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9041
SELECT + - 45 * - + ( - 11 ), + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-495
NULL

skipif mysql # not compatible
query II rowsort label-9041
SELECT + - 45 * - + ( - 11 ), + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-495
NULL

query II rowsort
SELECT - col0 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9043
SELECT DISTINCT col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9043
SELECT DISTINCT col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT ALL - col1 * - 71 * 8 * 85 FROM tab2 AS cor0 WHERE NOT 94 + + 97 * - col1 + - col0 IS NULL
----
2462280
3234760
3717560

query I rowsort
SELECT DISTINCT col2 - 62 - + - col0 * - + col1 FROM tab1 AS cor0
----
-4271
-428
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT + + CAST( - 32 AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
-109
-83
-99

skipif mysql # not compatible
query I rowsort label-9046
SELECT + + CAST ( - 32 AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
-109
-83
-99

query I rowsort
SELECT + col2 + + - col2 AS col2 FROM tab2 AS cor0 WHERE ( col1 * - + 94 ) NOT BETWEEN ( NULL ) AND + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 - + - 76 col1 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT - col2 - + 0 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 76 * col2 + + + col1 * + 8 AS col1 FROM tab0 AS cor0
----
4220
7532
928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + 15 * + ( 68 ) col2 FROM tab2 cor0
----
-943
-953
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + COUNT( - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9052
SELECT + COUNT ( - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT 95 * + - ( + COUNT( * ) ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT 95 * + - ( + COUNT ( * ) ) FROM tab2
----
-285

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 40
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 13 + - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 49 * + 85 FROM tab1 AS cor0 WHERE NOT + ( - + col1 ) * - - col2 + + + col2 / - + col2 * - 38 IS NULL
----
4165
4165
4165

onlyif mysql # DIV for integer division: 
query II rowsort label-9057
SELECT ALL 16 AS col0, - 73 DIV col0 FROM tab1
----
16
-1
16
0
16
0

skipif mysql # not compatible
query II rowsort label-9057
SELECT ALL 16 AS col0, - 73 / col0 FROM tab1
----
16
-1
16
0
16
0

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col2 * - + col0 / 7
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= + col1 * + ( - col0 ) * + ( + + 55 )
----

query I rowsort
SELECT DISTINCT + - 69 * + col1 * col2 FROM tab1 AS cor0
----
-20355
-220524
-92736

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL ( COUNT( * ) ) + ( + COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL ( COUNT ( * ) ) + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT + COUNT( - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT + COUNT ( - col2 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + 80 FROM tab0 WHERE NOT - col1 NOT IN ( - + col0 + - col2, + col1, + 30, - - col1 + - ( 21 ) + + 94 * 32, + + col2 * - 20 / - 37, - col0 )
----

query I rowsort
SELECT - col1 * - col0 + - - 36 FROM tab0
----
1251
133
1863

query II rowsort
SELECT ALL col1, + col1 + + + 47 AS col0 FROM tab2
----
51
98
67
114
77
124

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9068
SELECT DISTINCT col1 AS col0, col1 DIV + col1 FROM tab1
----
14
1
47
1
5
1

skipif mysql # not compatible
query II rowsort label-9068
SELECT DISTINCT col1 AS col0, col1 / + col1 FROM tab1
----
14
1
47
1
5
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9069
SELECT + CAST( MIN( + 15 ) AS SIGNED ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9069
SELECT + CAST ( MIN ( + 15 ) AS INTEGER ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9070
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NULL )
----

query II rowsort
SELECT col1, col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL MIN( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT + + CAST( 87 AS SIGNED ) FROM tab2 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-9073
SELECT + + CAST ( 87 AS INTEGER ) FROM tab2 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col1 ) col0 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9075
SELECT 71, 16 DIV - - col0 AS col1 FROM tab0
----
71
0
71
0
71
1

skipif mysql # not compatible
query II rowsort label-9075
SELECT 71, 16 / - - col0 AS col1 FROM tab0
----
71
0
71
0
71
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 7 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 = - - col1
----

query II rowsort
SELECT col2, 20 FROM tab2
----
23
20
40
20
58
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT DISTINCT col0 DIV 96 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT col0 / 96 FROM tab2
----
0

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT - + CAST( NULL AS SIGNED ) * + col0 / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT - + CAST ( NULL AS INTEGER ) * + col0 / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9082
SELECT ALL - 71 AS col1, - ( - - 3 ) DIV + 50 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-71
-3

skipif mysql # not compatible
query II rowsort label-9082
SELECT ALL - 71 AS col1, - ( - - 3 ) / + 50 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-71
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT DISTINCT + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 + - 73 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 65 col0 FROM tab0 AS cor0
----
-5655
-6305
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL + MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL + MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT DISTINCT + - 64 + + col1 + - 38 DIV 77 AS col0 FROM tab0 AS cor0
----
-43
-63
17

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT + - 64 + + col1 + - 38 / 77 AS col0 FROM tab0 AS cor0
----
-43
-63
17

query I rowsort
SELECT DISTINCT + - 72 * 64 AS col2 FROM tab1 WHERE NOT + col1 / + col0 IS NULL
----
-4608

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 32 + - 48 - - 76 - - - col1 NOT BETWEEN - col0 + - col2 AND - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9090
SELECT ALL - + 10 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-30

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - + 10 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT - 24 * + COUNT( * ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9091
SELECT - 24 * + COUNT ( * ) FROM tab2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9092
SELECT ALL col0 - - col1 * col2 * + CAST( + + col1 AS SIGNED ) * - - col0 / + col2 AS col2, CAST( NULL AS SIGNED ) / + 92 + - 53 + col0 * - + col2 * - col0 + 33 * + 65 * - 78 AS col0 FROM tab2 WHERE NOT + + col2 >= NULL
----

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL col0 - - col1 * col2 * + CAST ( + + col1 AS INTEGER ) * - - col0 / + col2 AS col2, CAST ( NULL AS INTEGER ) / + 92 + - 53 + col0 * - + col2 * - col0 + 33 * + 65 * - 78 AS col0 FROM tab2 WHERE NOT + + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - - COUNT( * ) + + - 4 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9093
SELECT - - COUNT ( * ) + + - 4 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 < - col2
----

query I rowsort
SELECT ALL - 6 * col1 AS col1 FROM tab1
----
-282
-30
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT COUNT( * ) * - 27 AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9096
SELECT COUNT ( * ) * - 27 AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9097
SELECT ALL + 39 col1, COUNT( * ) AS col1 FROM tab2
----
39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9097
SELECT ALL + 39 col1, COUNT ( * ) AS col1 FROM tab2
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT + + COUNT( col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT + + COUNT ( col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 AS col2, + 82 col0 FROM tab1 AS cor0
----
-51
82
-85
82
-91
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT - ( MAX( - - 64 ) ) * 39 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-2496

skipif mysql # not compatible
query I rowsort label-9101
SELECT - ( MAX ( - - 64 ) ) * 39 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT col2 DIV - - col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9102
SELECT col2 / - - col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9103
SELECT ALL col2 AS col0, + ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9103
SELECT ALL col2 AS col0, + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL + 66 FROM tab0 AS cor0 WHERE NOT + col2 * - col2 <= + 11
----

query II rowsort
SELECT - - 34 AS col2, 13 * + col2 AS col1 FROM tab0 AS cor0
----
34
1287
34
130
34
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT - + 18 * + - col0 - + col1 + col2 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT - + 18 * + - col0 - + col1 + col2 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT + - COUNT( * ) col0 FROM tab1 AS cor0 WHERE + 74 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9107
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE + 74 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 86 * + - 62 FROM tab1, tab2 AS cor0
----
-5332

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9109
SELECT CAST( + col0 AS SIGNED ), col1 DIV + col0 AS col2 FROM tab0
----
15
5
87
0
97
0

skipif mysql # not compatible
query II rowsort label-9109
SELECT CAST ( + col0 AS INTEGER ), col1 / + col0 AS col2 FROM tab0
----
15
5
87
0
97
0

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT + col2 + ( - + col0 ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT - SUM( DISTINCT - - col0 ) * + 98 FROM tab1 cor0
----
-22246

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT - SUM ( DISTINCT - - col0 ) * + 98 FROM tab1 cor0
----
-22246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col2 FROM tab0 AS cor0
----
79

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col2 ) BETWEEN - col0 AND - 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = col2 - - + col2 * col2
----

query I rowsort
SELECT - col0 * - 51 + + + 79 + + col1 * - col0 * - col1 * - 81 FROM tab1 cor0
----
-16277819
-167711
-806996

query II rowsort
SELECT ALL - ( + - 15 ), + 88 / + 1 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9118
SELECT DISTINCT 57 + - - 81 DIV - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT 57 + - - 81 / - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
84

query I rowsort
SELECT + col2 + - 55 FROM tab2 cor0
----
-15
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - 75 + COUNT( * ) * - MIN( + - col0 ) AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-9120
SELECT - 75 + COUNT ( * ) * - MIN ( + - col0 ) AS col2 FROM tab1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT 81 + - col2 * + + CAST( col2 AS SIGNED ) * - col2 * - col1 AS col2 FROM tab1
----
-1026814
-12386223
-14778223

skipif mysql # not compatible
query I rowsort label-9121
SELECT 81 + - col2 * + + CAST ( col2 AS INTEGER ) * - col2 * - col1 AS col2 FROM tab1
----
-1026814
-12386223
-14778223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9122
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ( + + col1 ) * col0 * ( col0 ) + + - col0 FROM tab1
----
36040
36363
389116

query I rowsort
SELECT DISTINCT col2 * + + 7 AS col1 FROM tab1
----
413
476
672

query I rowsort
SELECT DISTINCT 37 + + - 37 FROM tab0 AS cor0
----
0

query II rowsort
SELECT 65 - + 99 AS col1, - col0 AS col1 FROM tab0 AS cor0
----
-34
-15
-34
-87
-34
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT col1 DIV - + col2 AS col0 FROM tab2 WHERE NOT ( + - 93 ) IS NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9127
SELECT col1 / - + col2 AS col0 FROM tab2 WHERE NOT ( + - 93 ) IS NULL
----
-1
-1
-2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 35 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 + 94 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT col0 * ( - - ( + - col0 ) ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT + + 10 * - col1 + + col1 DIV - col0 FROM tab1 AS cor0
----
-140
-470
-50

skipif mysql # not compatible
query I rowsort label-9131
SELECT + + 10 * - col1 + + col1 / - col0 FROM tab1 AS cor0
----
-140
-470
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-9132
SELECT - + col2 col1, + 25 DIV col1 + + 54 AS col2 FROM tab2 cor0
----
-23
54
-40
54
-58
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9132
SELECT - + col2 col1, + 25 / col1 + + 54 AS col2 FROM tab2 cor0
----
-23
54
-40
54
-58
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col2 * - - col2 FROM tab0 AS cor0
----
-15
2209
-87
100
-97
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-9134
SELECT - - 41 * 81 DIV + 10 FROM tab1 cor0
----
332
332
332

skipif mysql # not compatible
query I rowsort label-9134
SELECT - - 41 * 81 / + 10 FROM tab1 cor0
----
332
332
332

query II rowsort
SELECT DISTINCT 93 * + col2 AS col2, + 81 AS col1 FROM tab0
----
4371
81
9207
81
930
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT + 22 * + COUNT( * ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT + 22 * + COUNT ( * ) AS col1 FROM tab1
----
66

query I rowsort
SELECT - 10 FROM tab1 WHERE NOT - 41 NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT + col1 * - CAST( NULL AS SIGNED ) * - col2 + + col2 AS col1 FROM tab0 WHERE NOT col2 <> + CAST( + + 86 AS SIGNED ) + col0 AND ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9138
SELECT + col1 * - CAST ( NULL AS INTEGER ) * - col2 + + col2 AS col1 FROM tab0 WHERE NOT col2 <> + CAST ( + + 86 AS INTEGER ) + col0 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9140
SELECT ALL - col1 AS col1, - CAST( NULL AS SIGNED ) / - 29 / 78 + + - col1 AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9140
SELECT ALL - col1 AS col1, - CAST ( NULL AS INTEGER ) / - 29 / 78 + + - col1 AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 72, 14 col0 FROM tab0
----
-72
14

query I rowsort
SELECT - - col0 * - 33 * - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9143
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9143
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NULL ) < 82 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT COUNT( * ) DIV 45 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9145
SELECT COUNT ( * ) / 45 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE + + 53 IS NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 cor0 WHERE ( + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT + - COUNT( DISTINCT - col0 ) + - 30 + + + COUNT( ALL + 42 ) - + - 35 AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT + - COUNT ( DISTINCT - col0 ) + - 30 + + + COUNT ( ALL + 42 ) - + - 35 AS col1 FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 AS cor0 WHERE - col1 IN ( - col2, - 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT DISTINCT + ( - col0 ) + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9150
SELECT DISTINCT + ( - col0 ) + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 IN ( + col2 + col2, - col1 - + 76 )
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT - ( - + ( - col2 ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + ( col1 ) - + col0 + - 44 FROM tab0
----
-110
-140
22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9154
SELECT DISTINCT + 86, col1 + - + 2 / CAST( NULL AS DECIMAL ) / - col1 * CAST( NULL AS SIGNED ) * col0 + + + 97 * - col0 AS col0 FROM tab2
----
86
NULL

skipif mysql # not compatible
query II rowsort label-9154
SELECT DISTINCT + 86, col1 + - + 2 / CAST ( NULL AS REAL ) / - col1 * CAST ( NULL AS INTEGER ) * col0 + + + 97 * - col0 AS col0 FROM tab2
----
86
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> ( col1 - - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9156
SELECT COUNT( * ) + - ( + 99 ) DIV 91 AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9156
SELECT COUNT ( * ) + - ( + 99 ) / 91 AS col1 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT SUM( - 35 ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT SUM ( - 35 ) FROM tab0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT - 86 + MIN( - 37 ) AS col1 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-9158
SELECT - 86 + MIN ( - 37 ) AS col1 FROM tab1
----
-123

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 1 FROM tab0 WHERE + col0 IN ( col0 / - col1 )
----

query I rowsort
SELECT ALL 37 + - 72 AS col1 FROM tab1
----
-35
-35
-35

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( + 22 ) - 96 * + 72 ) BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9163
SELECT DISTINCT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) ) <= ( - 86 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-9163
SELECT DISTINCT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) ) <= ( - 86 * + col1 )
----

query I rowsort
SELECT - 0 + + 58 FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL COUNT( * ) FROM tab2 WHERE 36 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL COUNT ( * ) FROM tab2 WHERE 36 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col0 * + col1 + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 29 * col0 + 49 * - col2 FROM tab1
----
-3225
-426
-693

query I rowsort
SELECT DISTINCT 0 + - 30 AS col1 FROM tab0 WHERE ( NULL ) <> ( col2 )
----

query I rowsort
SELECT ALL - 35 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + SUM( ALL - 73 ) FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-9170
SELECT + SUM ( ALL - 73 ) FROM tab0
----
-219

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN + col1 AND - col1 - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT DISTINCT + col2 * CAST( + col2 AS SIGNED ) + + 70 FROM tab1
----
3551
4694
9286

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + col2 * CAST ( + col2 AS INTEGER ) + + 70 FROM tab1
----
3551
4694
9286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT - ( CAST( SUM( ALL col2 ) AS SIGNED ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT - ( CAST ( SUM ( ALL col2 ) AS INTEGER ) ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT - COUNT( col2 ) AS col0 FROM tab0 WHERE NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT - COUNT ( col2 ) AS col0 FROM tab0 WHERE NULL <> col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 61 col1 FROM tab1 WHERE NOT - col2 + col1 * 71 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 80 >= - col2 * ( 82 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT col0 * col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT MIN( + 37 ) AS col0 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-9178
SELECT MIN ( + 37 ) AS col0 FROM tab0
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9179
SELECT DISTINCT ( CAST( - 42 AS DECIMAL ) ) * col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT ( CAST ( - 42 AS REAL ) ) * col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT MAX( ALL 39 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-9180
SELECT MAX ( ALL 39 ) FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ( MAX( DISTINCT 58 ) ) AS col1 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-9181
SELECT ( MAX ( DISTINCT 58 ) ) AS col1 FROM tab1
----
58

query I rowsort
SELECT - ( col1 ) - + col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT + 39 * 97 FROM tab1
----
3783
3783
3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE ( col1 ) IN ( - col0 )
----

query I rowsort
SELECT ALL col0 * - 13 + 68 AS col1 FROM tab2 AS cor0
----
-530
-764
-907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9186
SELECT 30 + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 21 * + 95 + + col2 * + 94 IN ( ( - col2 ) )
----
53
70
88

skipif mysql # not compatible
query I rowsort label-9186
SELECT 30 + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 21 * + 95 + + col2 * + 94 IN ( ( - col2 ) )
----
53
70
88

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col0 * col0 NOT IN ( col1 * col0 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( - 22 ) FROM tab1 WHERE NOT NULL = col0 * + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT 79 DIV 93 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9189
SELECT 79 / 93 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * + 43 AS col0 FROM tab2
----
1978
2752
3225

query I rowsort
SELECT - 8 - + 9 AS col1 FROM tab2
----
-17
-17
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT - + col1 DIV col1 + + col1 DIV col0 FROM tab0 AS cor0
----
-1
-1
4

skipif mysql # not compatible
query I rowsort label-9192
SELECT - + col1 / col1 + + col1 / col0 FROM tab0 AS cor0
----
-1
-1
4

query I rowsort
SELECT + + col1 + - 45 FROM tab1 cor0
----
-31
-40
2

query I rowsort
SELECT ALL - col0 + col2 * + 54 FROM tab1 AS cor0
----
3101
3581
5133

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + col1 / + col1 )
----

query I rowsort
SELECT ALL + + 81 + + col2 AS col2 FROM tab1 cor0
----
140
149
177

query I rowsort
SELECT DISTINCT + col0 - 52 AS col0 FROM tab1 AS cor0
----
-1
33
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9198
SELECT ALL + - ( + COUNT( * ) ) DIV COUNT( * ) - + 25 * + COUNT( * ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + - ( + COUNT ( * ) ) / COUNT ( * ) - + 25 * + COUNT ( * ) FROM tab0 AS cor0
----
-76

query I rowsort
SELECT 25 + + 1 FROM tab2
----
26
26
26

query I rowsort
SELECT 32 * - 56 * col0 FROM tab0
----
-155904
-173824
-26880

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + MAX( 23 ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-9201
SELECT + MAX ( 23 ) FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ( + + 97 ) * COUNT( * ) AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-9202
SELECT ( + + 97 ) * COUNT ( * ) AS col0 FROM tab1
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT CAST( - col0 AS SIGNED ) * - col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-9203
SELECT CAST ( - col0 AS INTEGER ) * - col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT col0 * + - ( 67 ) FROM tab0
----
-1005
-5829
-6499

query I rowsort
SELECT DISTINCT - col0 * + ( - col2 ) * - col2 + + 79 AS col0 FROM tab2
----
-102321
-24255
-252221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT ALL + 72 + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL + 72 + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 68 * + col2 >= + 81 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9211
SELECT ALL + COUNT( * ) DIV + 49 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + COUNT ( * ) / + 49 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL + - 75 + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + - 75 + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

query I rowsort
SELECT + ( + 68 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - 14 * col1 AS col1 FROM tab2
----
-1078
-714
-938

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 < ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 64 + + ( col0 ) + + col2 col2 FROM tab1
----
14
211
47
223
5
208

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT + COUNT( * ) * - 52 AS col2 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT + COUNT ( * ) * - 52 AS col2 FROM tab2 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL + - COUNT( + + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + - COUNT ( + + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9219
SELECT MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col0 + ( 89 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * ( - col2 ) BETWEEN + 74 AND - 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 IN ( + 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col1 AS col0, - 68 + - 81 * 96 AS col2 FROM tab1 AS cor0
----
-14
-7844
-47
-7844
-5
-7844

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT + - MAX( - - col0 ) col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9224
SELECT DISTINCT + - MAX ( - - col0 ) col1 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9225
SELECT ( + CAST( NULL AS DECIMAL ) ) * - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT ( + CAST ( NULL AS REAL ) ) * - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9227
SELECT 23 DIV + - col0 col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9227
SELECT 23 / + - col0 col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT + 54 * + MIN( + 95 ) FROM tab1
----
5130

skipif mysql # not compatible
query I rowsort label-9228
SELECT + 54 * + MIN ( + 95 ) FROM tab1
----
5130

query II rowsort
SELECT 57 * col1, col1 + + col0 AS col1 FROM tab2
----
2907
97
3819
142
4389
141

query I rowsort
SELECT + col0 * + 61 AS col0 FROM tab1
----
3111
5185
5551

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 82 NOT IN ( col0 - + col2 )
----

query I rowsort
SELECT ALL + 22 AS col0 FROM tab0 WHERE NULL NOT IN ( - ( 83 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( + col1 ) ) col1 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 90 col0 FROM tab2 WHERE NULL IS NULL
----
2070
3600
5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT DISTINCT 87 * col0 AS col2 FROM tab0 AS cor0 WHERE - col2 * + CAST( + col0 AS SIGNED ) * - 43 + + CAST( - col1 AS SIGNED ) IS NOT NULL
----
1305
7569
8439

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT 87 * col0 AS col2 FROM tab0 AS cor0 WHERE - col2 * + CAST ( + col0 AS INTEGER ) * - 43 + + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
1305
7569
8439

query I rowsort
SELECT - - ( - 95 ) * 9 * + 96 * ( - col0 ) + - col1 * + 43 FROM tab1 AS cor0
----
4185478
6976585
7467259

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL 29 - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
26

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL 29 - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
26

query I rowsort
SELECT col0 * - col1 + + 15 AS col0 FROM tab2 cor0
----
-2331
-4913
-5010

query I rowsort
SELECT - + col1 FROM tab2 WHERE - col0 + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9240
SELECT * FROM tab0 WHERE col0 NOT IN ( CAST( - 69 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9240
SELECT * FROM tab0 WHERE col0 NOT IN ( CAST ( - 69 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 91 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 15 / - 44 * - - 3 )
----

query I rowsort
SELECT - col0 * col2 AS col1 FROM tab0 AS cor0 WHERE col2 / + 66 - - - col2 IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 86 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT ALL + CAST( NULL AS SIGNED ) * - + col1 + - col2 - col1 + + col1 + - ( col1 ) / - 69 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL + CAST ( NULL AS INTEGER ) * - + col1 + - col2 - col1 + + col1 + - ( col1 ) / - 69 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL - ( - MAX( ALL + 43 ) ) - - ( 30 ) AS col0 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - ( - MAX ( ALL + 43 ) ) - - ( 30 ) AS col0 FROM tab2 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + 10 AS col0 FROM tab0 AS cor0
----
-5
-77
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT col1 * col1 - + col2 DIV col0 FROM tab1 AS cor0
----
195
2209
25

skipif mysql # not compatible
query I rowsort label-9248
SELECT col1 * col1 - + col2 / col0 FROM tab1 AS cor0
----
195
2209
25

query I rowsort
SELECT DISTINCT + col2 * + + col1 - + - 60 + + + 9 AS col2 FROM tab2 AS cor0
----
1242
3149
3955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 - - - col0 col1 FROM tab1 AS cor0
----
-22
-28
12

query III rowsort
SELECT * FROM tab1 WHERE NULL >= ( - ( + 92 ) )
----

query I rowsort
SELECT DISTINCT + 38 * + col2 AS col0 FROM tab2
----
1520
2204
874

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9253
SELECT DISTINCT + 0 * - + ( + CAST( NULL AS DECIMAL ) ) * - col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT + 0 * - + ( + CAST ( NULL AS REAL ) ) * - col0 AS col2 FROM tab2
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT DISTINCT MIN( DISTINCT + 69 ) DIV - MIN( DISTINCT + col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9255
SELECT DISTINCT MIN ( DISTINCT + 69 ) / - MIN ( DISTINCT + col2 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + 44 ) NOT IN ( - - col1 + - col2 * + + 63 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT ALL - - col2 DIV - + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - - col2 / - + col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9258
SELECT + 56, - col1 * + CAST( NULL AS SIGNED ) * - 31 + - - col1 * - 71 / - 68 AS col2 FROM tab0 AS cor0
----
56
NULL
56
NULL
56
NULL

skipif mysql # not compatible
query II rowsort label-9258
SELECT + 56, - col1 * + CAST ( NULL AS INTEGER ) * - 31 + - - col1 * - 71 / - 68 AS col2 FROM tab0 AS cor0
----
56
NULL
56
NULL
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL - COUNT( DISTINCT - 83 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - COUNT ( DISTINCT - 83 ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col0 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9261
SELECT DISTINCT * FROM tab1 WHERE + CAST( 77 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9261
SELECT DISTINCT * FROM tab1 WHERE + CAST ( 77 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT - COUNT( * ) - + + COUNT( * ) - + - 67 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9262
SELECT - COUNT ( * ) - + + COUNT ( * ) - + - 67 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL - col1 AS col2 FROM tab0 WHERE ( - 38 + + - col1 - - - col1 * + 22 * col1 - CAST( NULL AS SIGNED ) / - col1 ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - col1 AS col2 FROM tab0 WHERE ( - 38 + + - col1 - - - col1 * + 22 * col1 - CAST ( NULL AS INTEGER ) / - col1 ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL col0 * 15 FROM tab2
----
1125
690
960

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT DISTINCT - 88 DIV 15 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - 88 / 15 FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9266
SELECT ALL + - 51 DIV - col1 AS col2, col2 + 85 AS col0 FROM tab1 AS cor0
----
1
153
10
144
3
181

skipif mysql # not compatible
query II rowsort label-9266
SELECT ALL + - 51 / - col1 AS col2, col2 + 85 AS col0 FROM tab1 AS cor0
----
1
153
10
144
3
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col1 FROM tab2 cor0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT + 63 + - 28 + 69 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT + 63 + - 28 + 69 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT - CAST( NULL AS SIGNED ) * - 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT - CAST ( NULL AS INTEGER ) * - 75 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT + col0 + + + 25 DIV + 30 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9270
SELECT + col0 + + + 25 / + 30 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT 16 + - + 39 + - ( - col2 ) AS col0 FROM tab2
----
0
17
35

query I rowsort
SELECT DISTINCT - 61 + col1 * col0 FROM tab1 WHERE NOT + ( + - col0 ) / col0 IS NULL
----
364
4216
653

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE - + col2 NOT IN ( - 64 )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col0 + + - 35 FROM tab1 AS cor0
----
16
50
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT DISTINCT COUNT( * ), - 92 - + - 66 AS col2 FROM tab0 AS cor0
----
3
-26

skipif mysql # not compatible
query II rowsort label-9275
SELECT DISTINCT COUNT ( * ), - 92 - + - 66 AS col2 FROM tab0 AS cor0
----
3
-26

query I rowsort
SELECT - 69 - col0 AS col2 FROM tab0
----
-156
-166
-84

query I rowsort
SELECT DISTINCT - - 13 + - 86 + - col1 + 69 + + 0 AS col1 FROM tab2 AS cor0
----
-55
-71
-81

query I rowsort
SELECT ALL col1 + - - col0 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + col0 * + - 73 + - col2 FROM tab2 cor0
----
-3381
-4712
-5533

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9280
SELECT ALL + col2 - - col2 + - - CAST( - col2 AS SIGNED ) AS col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-9280
SELECT ALL + col2 - - col2 + - - CAST ( - col2 AS INTEGER ) AS col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9281
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( + + col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9281
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( + + col2 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT - CAST( NULL AS SIGNED ) * + - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT - CAST ( NULL AS INTEGER ) * + - col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9284
SELECT DISTINCT MIN( col0 ) * 48 AS col1, + ( + - 98 ) * 59 FROM tab1
----
2448
-5782

skipif mysql # not compatible
query II rowsort label-9284
SELECT DISTINCT MIN ( col0 ) * 48 AS col1, + ( + - 98 ) * 59 FROM tab1
----
2448
-5782

query II rowsort
SELECT col0, col2 * col1 AS col2 FROM tab0
----
15
3807
87
210
97
99

query I rowsort
SELECT ALL - 51 * - 11 FROM tab0
----
561
561
561

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT COUNT( col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9287
SELECT COUNT ( col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT ALL 73 DIV - 47 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL 73 / - 47 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9290
SELECT ALL COUNT( * ) AS col2, + 62 * - + COUNT( * ) FROM tab1
----
3
-186

skipif mysql # not compatible
query II rowsort label-9290
SELECT ALL COUNT ( * ) AS col2, + 62 * - + COUNT ( * ) FROM tab1
----
3
-186

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + 36 - - - 61 - - - ( 7 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * - col1 col2 FROM tab1 AS cor0
----
2867
305
854

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT - 4 DIV + - 99 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9293
SELECT - 4 / + - 99 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9294
SELECT 18 DIV 80 * - 51 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9294
SELECT 18 / 80 * - 51 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT ALL col0 * 69 FROM tab1 AS cor0 WHERE NOT + 52 < ( - 59 )
----
3519
5865
6279

query I rowsort
SELECT col1 + + - col0 FROM tab2 AS cor0
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col2, + col1 * + + 23 FROM tab1 cor0
----
-51
322
-85
115
-91
1081

query I rowsort
SELECT + + 23 AS col1 FROM tab2 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL SUM( + 41 ) AS col0 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL SUM ( + 41 ) AS col0 FROM tab0 AS cor0
----
123

query I rowsort
SELECT DISTINCT col2 * + col0 - col1 + 98 FROM tab0 AS cor0
----
722
947
9700

query I rowsort
SELECT + col2 * 71 FROM tab2 AS cor0
----
1633
2840
4118

query I rowsort
SELECT DISTINCT 7 * + 95 FROM tab1
----
665

query II rowsort
SELECT col2 * - col2, - col1 * + col1 + 20 + - - col1 + col2 AS col1 FROM tab1
----
-3481
59
-4624
-2074
-9216
-66

query I rowsort
SELECT DISTINCT col0 + + 66 FROM tab2 WHERE NULL BETWEEN ( + + 24 + - - 81 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( 29 <> - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( 29 <> - 77 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 0 - - + col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9308
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0 / + col1 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9308
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0 / + col1 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - ( - col1 ) + + 40 AS col0 FROM tab0 AS cor0
----
121
41
61

query I rowsort
SELECT DISTINCT 46 * + - col1 + + 95 AS col1 FROM tab1 AS cor0
----
-135
-2067
-549

query I rowsort
SELECT col0 * 89 + - + col0 + - col0 + - 50 FROM tab0 AS cor0
----
1255
7519
8389

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 7 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND + col2
----

query I rowsort
SELECT ALL + col2 + + + 98 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT - - col2 - - col2 * ( + 52 ) * + col0 AS col1 FROM tab0 cor0
----
36707
45250
499455

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 15 < - + 3 / - + 96
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 35 * col0 > NULL
----

query I rowsort
SELECT ALL 0 AS col1 FROM tab1 cor0 WHERE NOT + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + col0 = + 75 * col0 + + + col1
----

query II rowsort
SELECT - col0, + 72 * + + 97 * + col2 + + 0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 94 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT DISTINCT - + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT - + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL COUNT( * ) * + 15 col1 FROM tab2
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT ALL COUNT ( * ) * + 15 col1 FROM tab2
----
45

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col1 * + ( + 63 ), - col1 col0 FROM tab0
----
13230
-21
239841
-81
6237
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT + MIN( ALL + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT + MIN ( ALL + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + + SUM( ALL + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-9327
SELECT + + SUM ( ALL + col2 ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + 4 * 23 * COUNT( * ) AS col1 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-9328
SELECT + 4 * 23 * COUNT ( * ) AS col1 FROM tab0
----
276

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col0 >= ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9330
SELECT + CAST( - + 73 AS SIGNED ) * - COUNT( + CAST( - + col0 AS DECIMAL ) ) AS col0 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-9330
SELECT + CAST ( - + 73 AS INTEGER ) * - COUNT ( + CAST ( - + col0 AS REAL ) ) AS col0 FROM tab1
----
219

query II rowsort
SELECT - - col2 * - 48, + col2 FROM tab0 AS cor0
----
-2256
47
-4752
99
-480
10

query I rowsort
SELECT + 48 AS col1 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT col0 + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
174
194
30

query I rowsort
SELECT ALL + ( 93 ) AS col2 FROM tab2
----
93
93
93

query I rowsort
SELECT DISTINCT + col2 * - + col0 + + + col1 + 75 FROM tab1
----
-4807
-4935
-6066

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + col2 * - - 62 AS col0 FROM tab0 AS cor0
----
2914
6138
620

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 50 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT COUNT( * ) + + 79 AS col0 FROM tab0 cor0
----
82

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT COUNT ( * ) + + 79 AS col0 FROM tab0 cor0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9340
SELECT DISTINCT COUNT( - col2 ) * - 29 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, col0 + + + CAST( ( - + ( - ( + - CAST( + 6 AS SIGNED ) ) ) ) AS DECIMAL ), + - CAST( - col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT COUNT ( - col2 ) * - 29 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1, col0 + + + CAST ( ( - + ( - ( + - CAST ( + 6 AS INTEGER ) ) ) ) AS REAL ), + - CAST ( - col0 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9341
SELECT - + CAST( NULL AS SIGNED ) + - + 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT - + CAST ( NULL AS INTEGER ) + - + 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + 9 + + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9342
SELECT + 9 + + - COUNT ( * ) FROM tab2
----
6

query II rowsort
SELECT ALL + col2 AS col2, - col2 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT COUNT( * ) + + COUNT( ALL - 89 ) * - + 6 AS col1 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-9344
SELECT COUNT ( * ) + + COUNT ( ALL - 89 ) * - + 6 AS col1 FROM tab1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT ALL MIN( col2 ), 23 FROM tab2
----
23
23

skipif mysql # not compatible
query II rowsort label-9345
SELECT ALL MIN ( col2 ), 23 FROM tab2
----
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 44 ) col2 FROM tab0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT ( col1 ) DIV + 7 AS col1 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-9347
SELECT ( col1 ) / + 7 AS col1 FROM tab2
----
11
7
9

query I rowsort
SELECT DISTINCT - col0 + - + col2 + - + col1 AS col1 FROM tab0
----
-118
-143
-197

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 21 = - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT DISTINCT - + col2 + + 92 DIV col2 * col1 * + col2 FROM tab2 AS cor0
----
3828
4669
6120

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT - + col2 + + 92 / col2 * col1 * + col2 FROM tab2 AS cor0
----
3828
4669
6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT - col2 - + CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-9351
SELECT - col2 - + CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL - + SUM( ALL 72 ) AS col2 FROM tab0 cor0 WHERE ( + 29 ) >= - + col1 + + 54
----
-72

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - + SUM ( ALL 72 ) AS col2 FROM tab0 cor0 WHERE ( + 29 ) >= - + col1 + + 54
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9353
SELECT DISTINCT - 61 + COUNT( * ) DIV - ( - MIN( DISTINCT 72 ) ) AS col0 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT - 61 + COUNT ( * ) / - ( - MIN ( DISTINCT 72 ) ) AS col0 FROM tab1
----
-61

query I rowsort
SELECT col2 + + col1 FROM tab1 WHERE ( NOT + col1 + + + col1 IS NULL ) OR NOT - col0 + - 4 IS NOT NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9355
SELECT ALL + COUNT( * ) AS col1, - COUNT( * ) FROM tab1 WHERE col1 * + col0 * + + col2 / + 13 <= + + col0
----
0
0

skipif mysql # not compatible
query II rowsort label-9355
SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 WHERE col1 * + col0 * + + col2 / + 13 <= + + col0
----
0
0

query I rowsort
SELECT col0 + + 36 FROM tab0
----
123
133
51

query I rowsort
SELECT ALL - + 25 FROM tab2 cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL SUM( ALL + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL SUM ( ALL + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9359
SELECT + COUNT( DISTINCT col1 ), CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9359
SELECT + COUNT ( DISTINCT col1 ), CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT + ( + + col2 ) AS col0 FROM tab0
----
10
47
99

query II rowsort
SELECT + col0 AS col0, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - MIN( 70 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT - MIN ( 70 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9364
SELECT ALL COUNT( * ), + 54 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL COUNT ( * ), + 54 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
3
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 * + ( - - col1 ) + - - col2 FROM tab2 AS cor0
----
2624
4547
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT + COUNT( * ) * ( + 25 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9367
SELECT + COUNT ( * ) * ( + 25 ) FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9368
SELECT DISTINCT - COUNT( * ) + + - ( + ( + - CAST( NULL AS DECIMAL ) ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT - COUNT ( * ) + + - ( + ( + - CAST ( NULL AS REAL ) ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + + 77 FROM tab2 AS cor0
----
-3542
-4928
-5775

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col2 * - 13 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) / + col0 + - - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) / + col0 + - - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - - 42 + col0 FROM tab1 cor0
----
122
79
86

query I rowsort
SELECT 98 FROM tab2 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT - 0 * + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 77 + - + col2 FROM tab2
----
19
37
54

query I rowsort
SELECT 95 + + col1 FROM tab0
----
116
176
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT + COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9377
SELECT + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT CAST( NULL AS SIGNED ) + ( + col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT CAST ( NULL AS INTEGER ) + ( + col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9379
SELECT - COUNT( * ) col2 FROM tab2 cor0 WHERE + col0 * + - 11 NOT IN ( + - col2, 3 * - col2, + - 7, - 13 * + CAST( NULL AS DECIMAL ) * + + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9379
SELECT - COUNT ( * ) col2 FROM tab2 cor0 WHERE + col0 * + - 11 NOT IN ( + - col2, 3 * - col2, + - 7, - 13 * + CAST ( NULL AS REAL ) * + + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT + 51 * - + SUM( DISTINCT + - col2 ) AS col0 FROM tab1
----
11373

skipif mysql # not compatible
query I rowsort label-9380
SELECT + 51 * - + SUM ( DISTINCT + - col2 ) AS col0 FROM tab1
----
11373

query I rowsort
SELECT DISTINCT - - 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + + col1 AS col1, 46 col1, + col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 58138cfe2b62229f041bda1767bd5ba5

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT - + 65 DIV - 2 col2 FROM tab1 AS cor0 WHERE NOT + 49 IS NULL
----
32
32
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9383
SELECT - + 65 / - 2 col2 FROM tab1 AS cor0 WHERE NOT + 49 IS NULL
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL - MIN( - - ( + + col0 ) ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - MIN ( - - ( + + col0 ) ) FROM tab0 cor0
----
-15

query II rowsort
SELECT - + col2 AS col2, 60 FROM tab1 AS cor0
----
-59
60
-68
60
-96
60

query I rowsort
SELECT ALL ( 70 ) AS col0 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL - MAX( col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - MAX ( col0 ) FROM tab1
----
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 - - - col0 <= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 40 ) FROM tab2
----
-40

query I rowsort
SELECT 9 + + col1 * + - col0 FROM tab2
----
-2337
-4919
-5016

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - + 44 * - - col1 - - + 16 + ( 6 ) * - col2 * + + 53, 45 * 40, ( col2 ) * + col1 - - col1 + - 39 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9393
SELECT ALL * FROM tab1 cor0 WHERE ( NOT ( ( ( - - CAST( NULL AS SIGNED ) ) IS NOT NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9393
SELECT ALL * FROM tab1 cor0 WHERE ( NOT ( ( ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT - COUNT( * ) + + - 44 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9394
SELECT - COUNT ( * ) + + - 44 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ALL col2 * ( + ( + col2 ) ) * + col1 AS col2 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT - 52 * - col0 FROM tab1 AS cor0
----
2652
4420
4732

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + 6 NOT BETWEEN ( + 82 ) AND NULL
----

query II rowsort
SELECT DISTINCT 70, - col1 AS col0 FROM tab2
----
70
-51
70
-67
70
-77

query I rowsort
SELECT - - 57 + - 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 26 + col1 + 42 * - col2 * col2 AS col1 FROM tab1 AS cor0
----
-146223
-194187
-387084

query I rowsort
SELECT ALL col1 + + + col1 AS col2 FROM tab2 cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( 0 ) + + 13 col0 FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT 3 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9403
SELECT 3 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT ALL 15 * - + CAST( - 30 AS SIGNED ) * col2 + col0 AS col2 FROM tab0 AS cor0
----
21165
44647
4587

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL 15 * - + CAST ( - 30 AS INTEGER ) * col2 + col0 AS col2 FROM tab0 AS cor0
----
21165
44647
4587

query I rowsort
SELECT ALL col1 * - - 79 * - col0 - + col0 AS col1 FROM tab1
----
-33660
-337974
-56457

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT MIN( DISTINCT + - 9 ) + - COUNT( * ) col2 FROM tab2
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9406
SELECT MIN ( DISTINCT + - 9 ) + - COUNT ( * ) col2 FROM tab2
----
-12

query I rowsort
SELECT + col1 + 84 FROM tab1
----
131
89
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9408
SELECT ALL + COUNT( * ) * + 93, - MIN( col2 ) - + 69 AS col1 FROM tab2
----
279
-92

skipif mysql # not compatible
query II rowsort label-9408
SELECT ALL + COUNT ( * ) * + 93, - MIN ( col2 ) - + 69 AS col1 FROM tab2
----
279
-92

query III rowsort
SELECT * FROM tab1 WHERE col1 <> - col0 - + col0 - - col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - col1 ) * - col2 - col0 AS col2 FROM tab2
----
1127
3016
3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 70 - - 90 col1 FROM tab1
----
116
79
88

query III rowsort
SELECT * FROM tab2 WHERE + - col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9413
SELECT * FROM tab2 WHERE 71 BETWEEN - + 10 + col0 + CAST( NULL AS SIGNED ) AND - - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9413
SELECT * FROM tab2 WHERE 71 BETWEEN - + 10 + col0 + CAST ( NULL AS INTEGER ) AND - - ( col0 )
----

query I rowsort
SELECT - 70 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query II rowsort
SELECT + col2, - col1 * col2 FROM tab2
----
23
-1173
40
-3080
58
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT ALL 30 * + - CAST( - - SUM( - col2 ) AS SIGNED ) FROM tab1
----
6690

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL 30 * + - CAST ( - - SUM ( - col2 ) AS INTEGER ) FROM tab1
----
6690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) * + ( - + 91 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) * + ( - + 91 ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 76 AND - 59 * - 18 * + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT DISTINCT - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT ALL + col0 DIV - - col1 col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9420
SELECT ALL + col0 / - - col1 col1 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT 50 DIV ( + col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9421
SELECT 50 / ( + col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( - 16 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9423
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( - 16 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT col1 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT col1 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT + - CAST( - + 82 AS SIGNED ) FROM tab1 cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-9426
SELECT + - CAST ( - + 82 AS INTEGER ) FROM tab1 cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 0 * - 29 col1, 75 FROM tab0
----
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT 29 DIV + - 48 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT 29 / + - 48 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT + MIN( DISTINCT + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT + MIN ( DISTINCT + col1 ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT - AVG ( col1 ) FROM tab0 WHERE 42 + col0 IS NULL
----
NULL

query I rowsort
SELECT 67 FROM tab1 WHERE NOT + col0 IS NULL
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 87 > + 87
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT DISTINCT ( + 23 ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT ( + 23 ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - - col1 AND + col1 AND NOT + col2 < + 10
----

query I rowsort
SELECT col2 + col1 * 75 FROM tab2 AS cor0
----
3848
5083
5815

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT DISTINCT - + COUNT( * ) + - 51 AS col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT - + COUNT ( * ) + - 51 AS col1 FROM tab2 AS cor0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT col0 + + col2 DIV - 68 AS col2 FROM tab0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-9438
SELECT col0 + + col2 / - 68 AS col2 FROM tab0
----
15
87
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL ) > col1 * + - 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9440
SELECT * FROM tab2 WHERE ( NOT NULL BETWEEN NULL AND + CAST( 28 AS SIGNED ) / - - col1 )
----

skipif mysql # not compatible
query III rowsort label-9440
SELECT * FROM tab2 WHERE ( NOT NULL BETWEEN NULL AND + CAST ( 28 AS INTEGER ) / - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT - 91 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-9441
SELECT - 91 / col2 AS col2 FROM tab0 AS cor0
----
-1
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT + + 28 + + SUM( DISTINCT 95 ) FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT + + 28 + + SUM ( DISTINCT 95 ) FROM tab2 AS cor0
----
123

query I rowsort
SELECT DISTINCT 75 + + col0 FROM tab2 AS cor0
----
121
139
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - + - col0 * + - 36 col0 FROM tab0 AS cor0
----
-3122
-3393
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT + 65 - + MAX( + + col0 ) FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9445
SELECT + 65 - + MAX ( + + col0 ) FROM tab1 AS cor0
----
-26

query III rowsort
SELECT * FROM tab1 WHERE ( + ( - - col1 ) ) > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + + COUNT( * ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9447
SELECT + + COUNT ( * ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + 27 + + 72 * + 93 * MAX( col0 ) FROM tab0
----
649539

skipif mysql # not compatible
query I rowsort label-9448
SELECT + 27 + + 72 * + 93 * MAX ( col0 ) FROM tab0
----
649539

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT + - 17 DIV col1 FROM tab0 AS cor0
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT + - 17 / col1 FROM tab0 AS cor0
----
-17
0
0

query I rowsort
SELECT - col1 + - col1 FROM tab2 cor0 WHERE NOT ( NULL > col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT - col2 DIV col1 * + + col0 AS col2 FROM tab0 cor0
----
-9603
0
0

skipif mysql # not compatible
query I rowsort label-9451
SELECT - col2 / col1 * + + col0 AS col2 FROM tab0 cor0
----
-9603
0
0

query I rowsort
SELECT ALL - ( - - col2 ) * col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT - 80 AS col0, 93 * col1 * - + 4 AS col1 FROM tab1 AS cor0
----
-80
-17484
-80
-1860
-80
-5208

query I rowsort
SELECT ALL - col1 * + + col1 AS col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT 26 + - COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
17

skipif mysql # not compatible
query I rowsort label-9455
SELECT 26 + - COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
17

query I rowsort
SELECT + col1 * ( - col0 ) AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL - 64 FROM tab2 cor0 WHERE - col1 + - col2 + - col0 + col0 IS NOT NULL
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT ALL - ( + + 87 ) AS col1, + SUM( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-87
-185

skipif mysql # not compatible
query II rowsort label-9458
SELECT ALL - ( + + 87 ) AS col1, + SUM ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-87
-185

query I rowsort
SELECT DISTINCT - col2 * + - col1 * - col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT + + 99 * 16 AS col1 FROM tab1 AS cor0
----
1584
1584
1584

query I rowsort
SELECT DISTINCT - 44 * + col0 FROM tab1 WHERE NOT ( col2 - - 80 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + 17 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT ALL - COUNT( * ) DIV + 15 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - COUNT ( * ) / + 15 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( - ( - col0 ) ) <= + col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - col1 + 73 FROM tab2
----
-4
22
6

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - col0 + - 99 * col2 FROM tab2
----
-117
-161
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9468
SELECT DISTINCT - 57 col2, + col1 * + - ( + CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2
----
-57
2346
-57
4928
-57
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9468
SELECT DISTINCT - 57 col2, + col1 * + - ( + CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2
----
-57
2346
-57
4928
-57
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9469
SELECT ALL * FROM tab2 WHERE NOT CAST( + 84 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9469
SELECT ALL * FROM tab2 WHERE NOT CAST ( + 84 AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9470
SELECT ALL + col2 DIV + 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL + col2 / + 82 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( - col2 ) + + - col0 AS col1 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT 54 - + col2 + + 61 - + col2 AS col2 FROM tab1
----
-21
-3
-77

query I rowsort
SELECT + col0 + - col0 AS col1 FROM tab1 AS cor0 WHERE - col0 + col0 - - col0 * + col1 < + 68
----

query I rowsort
SELECT col1 + - + col0 * col2 * - 72 FROM tab0 AS cor0
----
50841
62661
691417

query II rowsort
SELECT ALL 58 - col2, + col1 AS col2 FROM tab1 cor0
----
-1
5
-10
47
-38
14

query I rowsort
SELECT - 25 + - col0 FROM tab0 AS cor0
----
-112
-122
-40

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( col1 / - 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT ALL + col0 DIV - 67 + + col2 AS col0 FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + col0 / - 67 + + col2 AS col0 FROM tab1
----
58
67
96

query I rowsort
SELECT ALL col1 * col1 - 79 FROM tab0
----
-78
362
6482

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 + 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT MIN( col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9481
SELECT MIN ( col2 ) FROM tab0
----
10

query I rowsort
SELECT DISTINCT - col0 - 96 AS col1 FROM tab2
----
-142
-160
-171

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + - 57 / - col1
----

query I rowsort
SELECT DISTINCT 91 * - - 19 * + + col1 AS col1 FROM tab2
----
115843
133133
88179

query I rowsort
SELECT col1 * - 15 FROM tab2
----
-1005
-1155
-765

query II rowsort
SELECT + ( + - col0 ) AS col1, 19 - + col2 AS col0 FROM tab1
----
-51
-77
-85
-40
-91
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9487
SELECT DISTINCT + - SUM( - col1 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
195
3

skipif mysql # not compatible
query II rowsort label-9487
SELECT DISTINCT + - SUM ( - col1 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
195
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 = col0 * + 83 / + + 93 + + + 66 * - + ( + ( 20 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - 78 * + 5 FROM tab0 AS cor0
----
-31590
-390
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 * + + 54 col0 FROM tab2 AS cor0
----
-126684
-266112
-271350

query I rowsort
SELECT ( 0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9492
SELECT col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9492
SELECT col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + COUNT( ALL - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9493
SELECT + COUNT ( ALL - col1 ) FROM tab0
----
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL <> NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( col0 )
----

query I rowsort
SELECT DISTINCT + + col2 + - 93 AS col2 FROM tab2 AS cor0
----
-35
-53
-70

query I rowsort
SELECT - 4 AS col0 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + col1, + 30 )
----

query I rowsort
SELECT DISTINCT 16 * - 69 AS col1 FROM tab1 AS cor0
----
-1104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col1 col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT ALL + 3 DIV + 21 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + 3 / + 21 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT - CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT - CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT + - 1 * + COUNT( * ) * 6 FROM tab2 WHERE NOT - ( + col1 ) NOT BETWEEN NULL AND - - 49
----
0

skipif mysql # not compatible
query I rowsort label-9503
SELECT + - 1 * + COUNT ( * ) * 6 FROM tab2 WHERE NOT - ( + col1 ) NOT BETWEEN NULL AND - - 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9504
SELECT - col2 DIV - - col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9504
SELECT - col2 / - - col1 FROM tab0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - 8 * + + COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9505
SELECT - 8 * + + COUNT ( * ) FROM tab1
----
-24

query I rowsort
SELECT ALL col1 + - col0 + - col1 + + + col1 AS col0 FROM tab2
----
-8
13
5

query II rowsort
SELECT DISTINCT - ( - 13 ) AS col1, col1 AS col0 FROM tab0
----
13
1
13
21
13
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT ALL 34 DIV + - 55 + + col1 + - 81 FROM tab2
----
-14
-30
-4

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL 34 / + - 55 + + col1 + - 81 FROM tab2
----
-14
-30
-4

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab2 WHERE + ( + col0 ) IS NOT NULL
----
39

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + ( + 63 ) = + 56 * - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9511
SELECT ALL + COUNT( * ) DIV - + 8 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9511
SELECT ALL + COUNT ( * ) / - + 8 col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT COUNT( * ) + 61 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9512
SELECT COUNT ( * ) + 61 FROM tab1 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + + 89 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 24 + 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9515
SELECT ALL + CAST( - ( col1 ) AS SIGNED ) AS col1, col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

skipif mysql # not compatible
query II rowsort label-9515
SELECT ALL + CAST ( - ( col1 ) AS INTEGER ) AS col1, col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT + 80 + - - 77 AS col2 FROM tab0
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT + + COUNT( * ), ( + 28 ) AS col2 FROM tab2 AS cor0
----
3
28

skipif mysql # not compatible
query II rowsort label-9517
SELECT + + COUNT ( * ), ( + 28 ) AS col2 FROM tab2 AS cor0
----
3
28

query I rowsort
SELECT + col0 - + ( + - col0 ) FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL col2 + - col2 * col2 + - 50 - CAST( + + col2 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
-140
-2212
-9752

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL col2 + - col2 * col2 + - 50 - CAST ( + + col2 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
-140
-2212
-9752

query I rowsort
SELECT DISTINCT + 49 + + - col2 + 53 AS col2 FROM tab1 AS cor0
----
34
43
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT - - ( - - col0 ) - + - col1 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT - - ( - - col0 ) - + - col1 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 3 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 IN ( col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT + SUM( ( + - 46 ) ) AS col2 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-9525
SELECT + SUM ( ( + - 46 ) ) AS col2 FROM tab0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT - COUNT( ALL - + col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9526
SELECT - COUNT ( ALL - + col0 ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT - col0 AS col2, col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9528
SELECT - - ( + CAST( col1 AS SIGNED ) ) DIV col2 col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9528
SELECT - - ( + CAST ( col1 AS INTEGER ) ) / col2 col1 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL + MAX( ALL col0 ) * 87 col0 FROM tab2 AS cor0
----
6525

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9529
SELECT ALL + MAX ( ALL col0 ) * 87 col0 FROM tab2 AS cor0
----
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT COUNT( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9530
SELECT COUNT ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9531
SELECT DISTINCT col2 AS col2, + CAST( 63 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
63
68
63
96
63

skipif mysql # not compatible
query II rowsort label-9531
SELECT DISTINCT col2 AS col2, + CAST ( 63 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
63
68
63
96
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT DISTINCT - 45 + - - 36 DIV - col1 FROM tab1 AS cor0
----
-45
-47
-52

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT - 45 + - - 36 / - col1 FROM tab1 AS cor0
----
-45
-47
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9533
SELECT ALL - - CAST( NULL AS SIGNED ) + - + COUNT( * ) - SUM( + + 11 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 6 / + 50 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) - SUM ( + + 11 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 6 / + 50 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9534
SELECT + MIN( ALL col2 ) AS col2, 89 DIV - 91 FROM tab0 AS cor0
----
10
0

skipif mysql # not compatible
query II rowsort label-9534
SELECT + MIN ( ALL col2 ) AS col2, 89 / - 91 FROM tab0 AS cor0
----
10
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9535
SELECT + CAST( + + col2 AS SIGNED ) DIV - - 64 + - ( - col1 ) FROM tab0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-9535
SELECT + CAST ( + + col2 AS INTEGER ) / - - 64 + - ( - col1 ) FROM tab0
----
2
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT DISTINCT - + col0 + + CAST( 12 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - + col0 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - + col0 + + CAST ( 12 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - + col0 * + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT col0 DIV - 18 + - 6 FROM tab0
----
-10
-11
-6

skipif mysql # not compatible
query I rowsort label-9537
SELECT col0 / - 18 + - 6 FROM tab0
----
-10
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT 98 + ( - - MAX( - 51 ) ) * - 30 * 68 * + 93 + - COUNT( ALL col2 ) FROM tab0
----
9675815

skipif mysql # not compatible
query I rowsort label-9538
SELECT 98 + ( - - MAX ( - 51 ) ) * - 30 * 68 * + 93 + - COUNT ( ALL col2 ) FROM tab0
----
9675815

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9539
SELECT - col2 + + - CAST( + - col1 AS SIGNED ) AS col0, - 87 col1 FROM tab1
----
-21
-87
-54
-87
-82
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9539
SELECT - col2 + + - CAST ( + - col1 AS INTEGER ) AS col0, - 87 col1 FROM tab1
----
-21
-87
-54
-87
-82
-87

query I rowsort
SELECT ALL - ( - col0 ) * - + ( 48 ) + col2 + + - col0 FROM tab1
----
-2403
-4106
-4391

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN col2 * + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT DISTINCT - COUNT( * ) * - + 86 + + 51 AS col2 FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) * CAST( - + col2 AS SIGNED ) + col0 + + col1 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - COUNT ( * ) * - + 86 + + 51 AS col2 FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * CAST ( - + col2 AS INTEGER ) + col0 + + col1 IS NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT + 81 * COUNT( * ) - + + 9 * - 48 FROM tab2 AS cor0
----
675

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + 81 * COUNT ( * ) - + + 9 * - 48 FROM tab2 AS cor0
----
675

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 63 IS NULL
----

query I rowsort
SELECT DISTINCT - 80 - - 14 AS col1 FROM tab2
----
-66

query I rowsort
SELECT ALL 15 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT + col1 + CAST( NULL AS SIGNED ) * + 38 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT + col1 + CAST ( NULL AS INTEGER ) * + 38 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * - 18 + + + col0 FROM tab1 AS cor0
----
175
303
937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9549
SELECT DISTINCT ( - + COUNT( * ) ) DIV + 60 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT ( - + COUNT ( * ) ) / + 60 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-3

query I rowsort
SELECT + 26 * - 19 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 - - 87 + - col0 IS NULL
----
-494
-494
-494

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9553
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 - + col1 + col0 + + - CAST( NULL AS SIGNED ) * - + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9553
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 - + col1 + col0 + + - CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - 86 ) col0 FROM tab1 AS cor0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9555
SELECT + CAST( + - CAST( + 40 AS SIGNED ) AS SIGNED ) AS col1, + col1 DIV + + col2 FROM tab1
----
-40
0
-40
0
-40
0

skipif mysql # not compatible
query II rowsort label-9555
SELECT + CAST ( + - CAST ( + 40 AS INTEGER ) AS INTEGER ) AS col1, + col1 / + + col2 FROM tab1
----
-40
0
-40
0
-40
0

query I rowsort
SELECT ALL + - col0 * + 85 + - - col2 FROM tab2 WHERE 88 IS NOT NULL
----
-3887
-5400
-6317

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9557
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) = - - col2
----

skipif mysql # not compatible
query III rowsort label-9557
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) = - - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN - col1 / - 77 AND col0 + - col2 * - col0
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( - col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 * 57 * 74 * - ( col1 ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT + ( - + COUNT( * ) ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9561
SELECT + ( - + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT + CAST( NULL AS SIGNED ) * + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9562
SELECT + CAST ( NULL AS INTEGER ) * + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL - SUM( - ( 70 ) ) col2 FROM tab1
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9563
SELECT ALL - SUM ( - ( 70 ) ) col2 FROM tab1
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT DISTINCT - 87 DIV - 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT - 87 / - 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9565
SELECT DISTINCT col1, 4 + CAST( NULL AS DECIMAL ) - + col2 AS col1, + col1 * ( - col2 ) FROM tab1
----
9 values hashing to de81f057f2285dd80142a8167ebe726d

skipif mysql # not compatible
query III rowsort label-9565
SELECT DISTINCT col1, 4 + CAST ( NULL AS REAL ) - + col2 AS col1, + col1 * ( - col2 ) FROM tab1
----
9 values hashing to de81f057f2285dd80142a8167ebe726d

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - - col1 <> - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 20 * ( 97 ) + + col0 AS col2 FROM tab2 AS cor0
----
-1865
-1876
-1894

query I rowsort
SELECT - + 82 AS col0 FROM tab0 AS cor0
----
-82
-82
-82

query III rowsort
SELECT + - col2 AS col0, + col2 AS col1, - + 22 AS col1 FROM tab2 AS cor0
----
9 values hashing to ff64f3b4d1169090500057d367cc4331

query II rowsort
SELECT - + col0 AS col2, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT - 95 AS col0 FROM tab1 cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9573
SELECT + SUM( - col0 ), 22 AS col1 FROM tab0 cor0
----
-199
22

skipif mysql # not compatible
query II rowsort label-9573
SELECT + SUM ( - col0 ), 22 AS col1 FROM tab0 cor0
----
-199
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9574
SELECT + COUNT( * ) col2, + ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9574
SELECT + COUNT ( * ) col2, + ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT + - 99, + col1 FROM tab2 AS cor0
----
-99
51
-99
67
-99
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - ( + 44 ) FROM tab0 AS cor0
----
15
-44
87
-44
97
-44

query II rowsort
SELECT DISTINCT col1, 76 * col1 AS col2 FROM tab2 AS cor0
----
51
3876
67
5092
77
5852

onlyif mysql # DIV for integer division: 
query I rowsort label-9578
SELECT DISTINCT 54 + col0 + + col1 DIV + - col0 + col2 + + col1 AS col0 FROM tab2
----
173
234
254

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT 54 + col0 + + col1 / + - col0 + col2 + + col1 AS col0 FROM tab2
----
173
234
254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL - CAST( + COUNT( ALL - 33 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - CAST ( + COUNT ( ALL - 33 ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT + + col0 + - col1 AS col0 FROM tab1 WHERE ( NOT - 60 >= - col2 )
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * 55 * + + col1, - ( + col0 ) + + col2 col2 FROM tab0
----
24255
-77
360855
32
55
2

query I rowsort
SELECT ALL - 41 * col2 FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT SUM( ALL - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT SUM ( ALL - col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT + col2 * + + 18 + col2 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT + - 94 + + + ( + 38 ) FROM tab1 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT - COUNT( - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9587
SELECT - COUNT ( - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT + col2 + - col2 + - col1 * 93 FROM tab0 cor0
----
-1953
-7533
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT - col2 / + + col1 + CAST( NULL AS SIGNED ) * + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT - col2 / + + col1 + CAST ( NULL AS INTEGER ) * + 30 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( - col1 ) * col0 < NULL
----

query I rowsort
SELECT DISTINCT - ( - - 67 ) AS col0 FROM tab1 AS cor0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT DISTINCT + col1 DIV + - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT + col1 / + - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9593
SELECT - - COUNT( - col0 ) DIV + 90 col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9593
SELECT - - COUNT ( - col0 ) / + 90 col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + 34 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - 77 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9595
SELECT - 77 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-231

query II rowsort
SELECT + - 99, 80 AS col1 FROM tab0 AS cor0
----
-99
80
-99
80
-99
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - MAX( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9597
SELECT - MAX ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col2, + 17 FROM tab2 AS cor0
----
-46
17
-64
17
-75
17

query II rowsort
SELECT DISTINCT - - col1, + col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 14 col2 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT + COUNT( * ) * - 43 + ( + COUNT( * ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + COUNT ( * ) * - 43 + ( + COUNT ( * ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 47 * + col1 AS col1 FROM tab0
----
3807
47
987

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9605
SELECT ALL col0 DIV 40 AS col1, + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-9605
SELECT ALL col0 / 40 AS col1, + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
1
NULL
1
NULL
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9606
SELECT DISTINCT - 8 DIV - + COUNT( - 83 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - 8 / - + COUNT ( - 83 ) FROM tab2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9607
SELECT ALL col2 DIV - col1, col1 AS col2 FROM tab0 AS cor0
----
-99
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL col2 / - col1, col1 AS col2 FROM tab0 AS cor0
----
-99
1
0
21
0
81

query I rowsort
SELECT + 7 FROM tab0 AS cor0 WHERE NOT 31 IS NOT NULL
----

query I rowsort
SELECT + - 89 * + col0 * - col0 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
11805990
54657210
67067910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9610
SELECT DISTINCT - 71 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 / - CAST( - + col1 AS SIGNED ) ) < 6
----

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT - 71 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 / - CAST ( - + col1 AS INTEGER ) ) < 6
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 = + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - 65 * + 18 * - COUNT( col2 ) FROM tab1
----
3510

skipif mysql # not compatible
query I rowsort label-9612
SELECT - 65 * + 18 * - COUNT ( col2 ) FROM tab1
----
3510

query I rowsort
SELECT DISTINCT col1 + - 69 AS col2 FROM tab1 AS cor0
----
-22
-55
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT - COUNT( * ) + 45 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9614
SELECT - COUNT ( * ) + 45 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT col0 * - + col0 + + CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-2550
-7140
-8190

skipif mysql # not compatible
query I rowsort label-9615
SELECT col0 * - + col0 + + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-2550
-7140
-8190

query I rowsort
SELECT ALL + + 0 + + - 24 FROM tab2 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT col2 + + + CAST( NULL AS SIGNED ) + - 40 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT col2 + + + CAST ( NULL AS INTEGER ) + - 40 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col1 >= + + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT DISTINCT col2 DIV + col1 + - 88 AS col0 FROM tab0
----
-88
11

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT col2 / + col1 + - 88 AS col0 FROM tab0
----
-88
11

query I rowsort
SELECT 83 + - - col1 FROM tab2
----
134
150
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9622
SELECT - MIN( - 6 ) * + COUNT( * ) * - COUNT( * ) DIV + COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9622
SELECT - MIN ( - 6 ) * + COUNT ( * ) * - COUNT ( * ) / + COUNT ( * ) FROM tab2
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 57 col0 FROM tab1
----
2679
285
798

query II rowsort
SELECT 92, 39 AS col2 FROM tab0
----
92
39
92
39
92
39

query I rowsort
SELECT col0 * 90 AS col0 FROM tab1
----
4590
7650
8190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9626
SELECT + - 40, + 24 DIV - + COUNT( * ) - + - MAX( ALL - col1 ) AS col0 FROM tab1 WHERE ( - + 56 ) NOT BETWEEN + + col2 AND col1
----
-40
-13

skipif mysql # not compatible
query II rowsort label-9626
SELECT + - 40, + 24 / - + COUNT ( * ) - + - MAX ( ALL - col1 ) AS col0 FROM tab1 WHERE ( - + 56 ) NOT BETWEEN + + col2 AND col1
----
-40
-13

query II rowsort
SELECT ALL - 87 * 67 AS col1, - col2 AS col2 FROM tab1
----
-5829
-59
-5829
-68
-5829
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-9628
SELECT DISTINCT - ( + col1 ) DIV + ( + + col0 ) + col0 + col1, 37 AS col0 FROM tab2
----
140
37
142
37
96
37

skipif mysql # not compatible
query II rowsort label-9628
SELECT DISTINCT - ( + col1 ) / + ( + + col0 ) + col0 + col1, 37 AS col0 FROM tab2
----
140
37
142
37
96
37

query I rowsort
SELECT 98 * + 48 AS col1 FROM tab2
----
4704
4704
4704

query I rowsort
SELECT ALL 26 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
26
26
26

query I rowsort
SELECT col1 * - ( 88 ) * - + col1 * + col1 FROM tab1
----
11000
241472
9136424

query II rowsort
SELECT + + 45, col0 + + ( 58 ) + - col0 AS col0 FROM tab1 AS cor0
----
45
58
45
58
45
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT + + 0 + - + COUNT( * ) + - 59 AS col2 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT + + 0 + - + COUNT ( * ) + - 59 AS col2 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - 24 + - col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col0 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col1 FROM tab0
----
51
51
51

query I rowsort
SELECT 26 * + + 36 * 38 FROM tab1
----
35568
35568
35568

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT - COUNT( * ) * - COUNT( - + col1 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - COUNT ( * ) * - COUNT ( - + col1 ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT + MIN( + 82 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9640
SELECT + MIN ( + 82 ) FROM tab0 AS cor0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT DISTINCT ( - col2 ) DIV + col1 - + + col0 col2 FROM tab1
----
-57
-92
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9641
SELECT DISTINCT ( - col2 ) / + col1 - + + col0 col2 FROM tab1
----
-57
-92
-96

query I rowsort
SELECT ALL - 80 * - col1 AS col2 FROM tab2
----
4080
5360
6160

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT - ( col0 ) DIV 43 AS col2 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT - ( col0 ) / 43 AS col2 FROM tab0
----
-2
-2
0

query I rowsort
SELECT ALL 38 FROM tab1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT 71 * - col2 FROM tab1
----
-4189
-4828
-6816

onlyif mysql # DIV for integer division: 
query I rowsort label-9646
SELECT 20 DIV - 88 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9646
SELECT 20 / - 88 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT ALL + 79 * - col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + 79 * - col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL 0 + CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL 0 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - 19 IS NULL
----

query I rowsort
SELECT + col2 + - 58 FROM tab2
----
-18
-35
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT DISTINCT - 2 DIV - col2 + + col2 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - 2 / - col2 + + col2 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + ( 40 ) + + col0 AS col2 FROM tab1
----
125
131
91

query I rowsort
SELECT col2 * col2 + + 24 FROM tab2
----
1624
3388
553

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL SUM( + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL SUM ( + col0 ) AS col0 FROM tab2
----
185

query III rowsort
SELECT * FROM tab1 WHERE - 1 * col0 > - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT MIN( ALL col2 ) * - ( - COUNT( * ) ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-9658
SELECT MIN ( ALL col2 ) * - ( - COUNT ( * ) ) AS col0 FROM tab1
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 43 col1 FROM tab0 WHERE col0 / + col1 + - col0 IS NOT NULL
----
-124
-44
-64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND 32 * col1 - - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT - 4 + SUM( + col0 - + 62 ) col0 FROM tab1
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9661
SELECT - 4 + SUM ( + col0 - + 62 ) col0 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT ALL 32 * - COUNT( * ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL 32 * - COUNT ( * ) FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT + 88 + 13 * COUNT( * ) FROM tab2
----
127

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + 88 + 13 * COUNT ( * ) FROM tab2
----
127

query III rowsort
SELECT * FROM tab1 WHERE NOT + 44 * 65 IN ( 88 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 68 ) AS col0 FROM tab1
----
68
68
68

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT ( 14 ) BETWEEN NULL AND + 66 - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT DISTINCT 66 DIV - COUNT( * ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT 66 / - COUNT ( * ) AS col2 FROM tab2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT 56 DIV MAX( DISTINCT 64 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT 56 / MAX ( DISTINCT 64 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT col1 - ( 18 ) * - 76 AS col1 FROM tab1
----
1373
1382
1415

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT ALL COUNT( * ) + + 0 AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL COUNT ( * ) + + 0 AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT col1 DIV col1 col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9671
SELECT col1 / col1 col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE ( - col1 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT DISTINCT - col2 DIV col1 + + 77 DIV 75 col1 FROM tab0
----
-98
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9674
SELECT DISTINCT - col2 / col1 + + 77 / 75 col1 FROM tab0
----
-98
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9675
SELECT DISTINCT + CAST( NULL AS SIGNED ) + MAX( col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + MAX ( col0 ) FROM tab2
----
NULL

query I rowsort
SELECT col1 * ( - 11 ) FROM tab1
----
-154
-517
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT - 36 * COUNT( col2 ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-9677
SELECT - 36 * COUNT ( col2 ) FROM tab2
----
-108

query I rowsort
SELECT ALL 56 - + col0 * - 74 AS col1 FROM tab1 WHERE NULL = - 30
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 63 + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT DISTINCT ( + col2 ) + col0 FROM tab2 cor0
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT - ( COUNT( * ) ) DIV 66 FROM tab0 cor0 WHERE NOT - col2 + + col1 NOT BETWEEN ( NULL ) AND + 46 * col2
----
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT - ( COUNT ( * ) ) / 66 FROM tab0 cor0 WHERE NOT - col2 + + col1 NOT BETWEEN ( NULL ) AND + 46 * col2
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 ) <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL - COUNT( + 10 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL - COUNT ( + 10 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9685
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9685
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IN ( col0 )
----

query I rowsort
SELECT ALL 94 * col0 FROM tab1
----
4794
7990
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ( ( COUNT( * ) ) ) * - 23 FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9687
SELECT ( ( COUNT ( * ) ) ) * - 23 FROM tab0 cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - ( - COUNT( * ) ) * SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-9688
SELECT - ( - COUNT ( * ) ) * SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
198

query I rowsort
SELECT - 33 * - 2 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col0 AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT ALL CAST( + COUNT( ALL col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL CAST ( + COUNT ( ALL col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 48 + + col0 FROM tab1 AS cor0 WHERE NOT ( col1 * col1 + - col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + 17 * COUNT( * ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9693
SELECT + 17 * COUNT ( * ) FROM tab0 AS cor0
----
51

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT 93 - - col0 IN ( + col0 )
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 46 * - 88 AS col1 FROM tab0 cor0
----
4048
4048
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col1 AS col0 FROM tab1 cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col1 AS col0 FROM tab1 cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 * + col2 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT col2 DIV + col1 AS col0 FROM tab0 WHERE NOT ( col1 * 54 ) IS NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-9700
SELECT col2 / + col1 AS col0 FROM tab0 WHERE NOT ( col1 * 54 ) IS NULL
----
0
0
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT DISTINCT col2 DIV + ( col1 ) AS col0 FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT col2 / + ( col1 ) AS col0 FROM tab0
----
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL col1 * 0 FROM tab1 WHERE col1 + - 33 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL + SUM( ALL + - 58 ) AS col0 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + SUM ( ALL + - 58 ) AS col0 FROM tab1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT - 21 * + COUNT( * ) + + 10 AS col2 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-9705
SELECT - 21 * + COUNT ( * ) + + 10 AS col2 FROM tab2
----
-53

query I rowsort
SELECT ALL - 30 + + 65 * 3 AS col1 FROM tab2
----
165
165
165

query I rowsort
SELECT col1 + col1 * 7 FROM tab1 AS cor0 WHERE NOT + col0 + 40 >= + col0
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col2 + + 66 NOT BETWEEN NULL AND + col0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT + MIN( + col1 ) + - SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT + MIN ( + col1 ) + - SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT DISTINCT + COUNT( * ) AS col2, 19 AS col0 FROM tab1
----
3
19

skipif mysql # not compatible
query II rowsort label-9710
SELECT DISTINCT + COUNT ( * ) AS col2, 19 AS col0 FROM tab1
----
3
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL - MIN( + ( - ( - col2 ) ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL - MIN ( + ( - ( - col2 ) ) ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT + col2 * col2 AS col2 FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9713
SELECT ALL + COUNT( * ) - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE col1 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL + COUNT ( * ) - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE col1 * - col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * col0 - - col0 AS col0 FROM tab0 AS cor0
----
-210
-7482
-9312

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 19 <> + + ( + ( + 57 ) ) / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 5 + - - col1 * + + col0 AS col1 FROM tab2 cor0
----
2351
4933
5030

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9717
SELECT ALL * FROM tab1 AS cor0 WHERE - 37 < ( ( - CAST( NULL AS DECIMAL ) ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-9717
SELECT ALL * FROM tab1 AS cor0 WHERE - 37 < ( ( - CAST ( NULL AS REAL ) ) * - col1 )
----

query I rowsort
SELECT 53 * - col1 + - 12 AS col0 FROM tab2 AS cor0 WHERE ( ( + + col1 ) ) <> ( - col0 )
----
-2715
-3563
-4093

query I rowsort
SELECT ALL + col0 - - col1 + col0 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT + COUNT( - - ( - col1 ) ) * + 50 + - MAX( ALL col2 + + ( + col1 ) * + 76 ) AS col0 FROM tab1 AS cor0
----
-3490

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + COUNT ( - - ( - col1 ) ) * + 50 + - MAX ( ALL col2 + + ( + col1 ) * + 76 ) AS col0 FROM tab1 AS cor0
----
-3490

query I rowsort
SELECT + AVG ( - + col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 6 AS col1 FROM tab2 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT - 4 * + COUNT( * ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-9723
SELECT - 4 * + COUNT ( * ) AS col2 FROM tab1
----
-12

query I rowsort
SELECT DISTINCT - col1 * col1 - - - col0 FROM tab2
----
-2647
-4564
-5993

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 84 * + + col0 + - col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT + 71 * + col1 * - col0 * - 42 * 94 AS col0 FROM tab1
----
119130900
1198877316
200139912

query II rowsort
SELECT ALL - 85 - - 90 AS col1, 15 AS col1 FROM tab1
----
5
15
5
15
5
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9728
SELECT - col0 DIV - 29 AS col1 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-9728
SELECT - col0 / - 29 AS col1 FROM tab0
----
0
3
3

query I rowsort
SELECT + 38 - col1 + - col1 FROM tab1
----
-56
10
28

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9730
SELECT * FROM tab0 WHERE NOT 31 >= CAST( NULL AS DECIMAL ) * ( col1 )
----

skipif mysql # not compatible
query III rowsort label-9730
SELECT * FROM tab0 WHERE NOT 31 >= CAST ( NULL AS REAL ) * ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9731
SELECT * FROM tab2 cor0 WHERE NOT - CAST( 40 AS SIGNED ) / + col2 > col2 * 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9731
SELECT * FROM tab2 cor0 WHERE NOT - CAST ( 40 AS INTEGER ) / + col2 > col2 * 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT - 69 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT - 69 / + col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / + 1 IN ( - col0 * + 72 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 3 AS col2 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT + ( + 36 ) AS col1 FROM tab0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT - SUM( ALL ( + ( - col0 ) ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9736
SELECT - SUM ( ALL ( + ( - col0 ) ) ) FROM tab0
----
199

query I rowsort
SELECT - 5 * + - 22 FROM tab1
----
110
110
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL + SUM( DISTINCT 54 ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + SUM ( DISTINCT 54 ) AS col0 FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 85
----

query II rowsort
SELECT DISTINCT - col0 AS col1, ( + 91 ) FROM tab1 AS cor0
----
-51
91
-85
91
-91
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 32 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT - + 33 * + + ( + MIN( DISTINCT + + col0 ) ) FROM tab1 cor0
----
-1683

skipif mysql # not compatible
query I rowsort label-9742
SELECT - + 33 * + + ( + MIN ( DISTINCT + + col0 ) ) FROM tab1 cor0
----
-1683

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col0 * - 45 FROM tab0 AS cor0
----
3915
4365
675

query I rowsort
SELECT ALL - col0 * - 63 AS col0 FROM tab0 AS cor0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT SUM( + + 4 ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9746
SELECT SUM ( + + 4 ) AS col1 FROM tab0 AS cor0
----
12

query II rowsort
SELECT - + 60 AS col2, ( - - 88 ) AS col0 FROM tab0 AS cor0
----
-60
88
-60
88
-60
88

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 21 BETWEEN ( - + col2 + + 7 ) AND ( - col1 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 col2 FROM tab0
----
-5

query II rowsort
SELECT ALL + col1 AS col1, col2 + - 9 AS col0 FROM tab2
----
51
14
67
49
77
31

query II rowsort
SELECT ALL + 45 AS col0, 94 * + col2 FROM tab2
----
45
2162
45
3760
45
5452

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9752
SELECT CAST( NULL AS SIGNED ) col0, + CAST( - 27 AS SIGNED ) * - 25 col1 FROM tab2
----
NULL
675
NULL
675
NULL
675

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9752
SELECT CAST ( NULL AS INTEGER ) col0, + CAST ( - 27 AS INTEGER ) * - 25 col1 FROM tab2
----
NULL
675
NULL
675
NULL
675

query I rowsort
SELECT DISTINCT + 28 + col0 FROM tab0 cor0
----
115
125
43

query I rowsort
SELECT ALL col1 + + + 3 AS col2 FROM tab2 AS cor0
----
54
70
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9755
SELECT ALL 16 AS col2, ( + - SUM( DISTINCT col1 ) ) FROM tab0 AS cor0
----
16
-103

skipif mysql # not compatible
query II rowsort label-9755
SELECT ALL 16 AS col2, ( + - SUM ( DISTINCT col1 ) ) FROM tab0 AS cor0
----
16
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE 64 = - col0
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE 64 = - col0
----
0

query I rowsort
SELECT 15 * - 55 + + + col2 FROM tab0 cor0
----
-726
-778
-815

query I rowsort
SELECT - + 82 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL + col2 + + 23 * - - ( - 25 ) AS col0 FROM tab1
----
-479
-507
-516

query I rowsort
SELECT - 76 AS col1 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT ALL - ( + - col2 ) * - + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 ) IS NULL )
----

query I rowsort
SELECT ALL + + 69 - - col0 * + col1 + + col0 * - - col1 FROM tab2 AS cor0
----
10119
4761
9925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9764
SELECT + col1 - + 62 AS col0, CAST( NULL AS SIGNED ) * + - 65 AS col0 FROM tab2 AS cor0
----
-11
NULL
15
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9764
SELECT + col1 - + 62 AS col0, CAST ( NULL AS INTEGER ) * + - 65 AS col0 FROM tab2 AS cor0
----
-11
NULL
15
NULL
5
NULL

query I rowsort
SELECT + col0 - - col1 + - + col2 + col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT ALL + ( + col1 ) * + CAST( NULL AS SIGNED ) - col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + - - ( col1 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + ( + col1 ) * + CAST ( NULL AS INTEGER ) - col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 + - - ( col1 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT MAX( + ( - - CAST( NULL AS SIGNED ) ) ) * + 45 - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT MAX ( + ( - - CAST ( NULL AS INTEGER ) ) ) * + 45 - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 38 ) <> NULL
----

query I rowsort
SELECT - col0 - - + 48 AS col1 FROM tab2
----
-16
-27
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL + 39 - - COUNT( * ) + + - 69 AS col1 FROM tab2 WHERE - 63 IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL + 39 - - COUNT ( * ) + + - 69 AS col1 FROM tab2 WHERE - 63 IS NULL
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + ( 93 ) * + COUNT( * ) col0 FROM tab2
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9771
SELECT + ( 93 ) * + COUNT ( * ) col0 FROM tab2
----
279

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - - 70 * + 95 * + 79 ) > NULL
----

query I rowsort
SELECT ALL 16 * - col2 * col2 FROM tab1
----
-147456
-55696
-73984

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT + + MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + + MIN ( - col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT 84 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT MAX( col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT MAX ( col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT 96 - + - 2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT 31 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
31

query I rowsort
SELECT + - 0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT ( - col2 ) AS col1, col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT ALL 75 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL 75 / - col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT - COUNT( * ) * - - COUNT( * ) + - + COUNT( * ) * - 38 + + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
270

skipif mysql # not compatible
query I rowsort label-9782
SELECT - COUNT ( * ) * - - COUNT ( * ) + - + COUNT ( * ) * - 38 + + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
270

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 74 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN col0 * + 74 + + ( 68 ) * ( 21 ) AND ( NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col0 FROM tab2 cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT MAX( DISTINCT + 39 ) FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-9786
SELECT MAX ( DISTINCT + 39 ) FROM tab1 cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9787
SELECT ALL * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) <> - col0 + + col2 + + col1 * col2
----

skipif mysql # not compatible
query III rowsort label-9787
SELECT ALL * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) <> - col0 + + col2 + + col1 * col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 76 = - ( - + col2 ) * + - col2 + + col1 + - + col2 * - + 95 * ( 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + 68 * + - COUNT( * ) * - 21 FROM tab0 AS cor0
----
4284

skipif mysql # not compatible
query I rowsort label-9789
SELECT + 68 * + - COUNT ( * ) * - 21 FROM tab0 AS cor0
----
4284

query I rowsort
SELECT + ( col0 ) * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT ( 21 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT ( 21 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT + - col2 * + - CAST( + + CAST( + col1 AS SIGNED ) AS SIGNED ) col2 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9793
SELECT + - col2 * + - CAST ( + + CAST ( + col1 AS INTEGER ) AS INTEGER ) col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL + + CAST( - + 70 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL + + CAST ( - + 70 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL ( + 45 ) FROM tab2
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT - SUM( ALL - 69 ) + + ( + COUNT( * ) ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-9796
SELECT - SUM ( ALL - 69 ) + + ( + COUNT ( * ) ) FROM tab2
----
210

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < 64 * 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - SUM( 40 ) + + 28 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-9798
SELECT - SUM ( 40 ) + + 28 FROM tab1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9799
SELECT COUNT( * ) * - COUNT( * ) FROM tab0 WHERE + col2 IN ( + 76 - + - 86, + col0 + - CAST( - col0 AS SIGNED ) - - col1 * ( 77 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9799
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE + col2 IN ( + 76 - + - 86, + col0 + - CAST ( - col0 AS INTEGER ) - - col1 * ( 77 ) )
----
0

query I rowsort
SELECT ( col0 ) + col0 * + col1 * - + 27 FROM tab1
----
-11390
-115388
-19227

query I rowsort
SELECT ALL col2 * - col2 + col0 FROM tab2
----
-1536
-3289
-483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col1 col2 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL 92 * + col0 AS col2 FROM tab2
----
4232
5888
6900

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 78 + - col0 / + col2 ) BETWEEN - col1 AND 89 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - col2 ) + + col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - 63 AS col0 FROM tab0 AS cor0 WHERE ( 48 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT COUNT( * ) + + + 36 col2 FROM tab0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9807
SELECT COUNT ( * ) + + + 36 col2 FROM tab0
----
39

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col0 * + col1 + - - col1 FROM tab0
----
-1
-2511
1638

query I rowsort
SELECT DISTINCT 93 * + col2 AS col1 FROM tab0 AS cor0
----
4371
9207
930

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9810
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) - + col2 NOT BETWEEN - - ( + 33 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9810
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - + col2 NOT BETWEEN - - ( + 33 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 = col2 * + + 51
----
23
40
58

query I rowsort
SELECT - 64 + + col2 AS col2 FROM tab1 AS cor0
----
-5
32
4

query I rowsort
SELECT ALL - col0 + - 29 FROM tab1 AS cor0
----
-114
-120
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL - - COUNT( * ) * ( + 94 ) * + COUNT( * ) + + 44 FROM tab0 cor0
----
890

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL - - COUNT ( * ) * ( + 94 ) * + COUNT ( * ) + + 44 FROM tab0 cor0
----
890

onlyif mysql # aggregate syntax: 
query II rowsort label-9815
SELECT 23, COUNT( ( - + 48 ) ) * + - 59 AS col2 FROM tab0 AS cor0
----
23
-177

skipif mysql # not compatible
query II rowsort label-9815
SELECT 23, COUNT ( ( - + 48 ) ) * + - 59 AS col2 FROM tab0 AS cor0
----
23
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT SUM( + col0 ) * + + SUM( + - col0 ) AS col2 FROM tab1
----
-51529

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT SUM ( + col0 ) * + + SUM ( + - col0 ) AS col2 FROM tab1
----
-51529

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9817
SELECT ALL col2 * + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL col2 * + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 * - col0 col1, - col1 AS col0 FROM tab0
----
-2088
-21
-2328
-1
-360
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT DISTINCT 98 DIV + 91 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT 98 / + 91 FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9821
SELECT COUNT( * ) * - 28 * - COUNT( * ), AVG ( ALL + + ( col0 ) ) / - CAST( NULL AS SIGNED ) / - - COUNT( * ) col2 FROM tab1
----
252
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9821
SELECT COUNT ( * ) * - 28 * - COUNT ( * ), AVG ( ALL + + ( col0 ) ) / - CAST ( NULL AS INTEGER ) / - - COUNT ( * ) col2 FROM tab1
----
252
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9822
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + - col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - CAST ( NULL AS REAL ) * + - col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9824
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <> col1 / - col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9824
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 <> col1 / - col2 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - ( + col0 ) * + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query II rowsort label-9826
SELECT ALL + 86 * 71 * - 83 AS col1, + COUNT( * ) col2 FROM tab1
----
-506798
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9826
SELECT ALL + 86 * 71 * - 83 AS col1, + COUNT ( * ) col2 FROM tab1
----
-506798
3

query I rowsort
SELECT 37 * 81 FROM tab2 cor0 WHERE NOT - 12 IS NULL
----
2997
2997
2997

query I rowsort
SELECT ALL + col1 + 44 AS col2 FROM tab1 cor0
----
49
58
91

query I rowsort
SELECT + + 79 * col2 * + + 58 AS col2 FROM tab1 AS cor0
----
270338
311576
439872

query I rowsort
SELECT ALL + - col0 * + 22 AS col2 FROM tab2 AS cor0
----
-1012
-1408
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL 59 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL 59 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
56

query I rowsort
SELECT + col2 * + + 64 AS col2 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT - 70 * + + col0 FROM tab2
----
-3220
-4480
-5250

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT + CAST( NULL AS SIGNED ) * + - col0 / + 32 * - 37 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT + CAST ( NULL AS INTEGER ) * + - col0 / + 32 * - 37 * col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ) col0, 10 * + col2 FROM tab0
----
1
990
21
100
81
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + + - 30 col2, col0 col2 FROM tab1
----
29
85
38
91
66
51

query I rowsort
SELECT - 17 * - - col2 + col0 FROM tab1
----
-1065
-1581
-918

query I rowsort
SELECT ALL - col0 + - 80 - + + col1 FROM tab2
----
-177
-221
-222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9840
SELECT + + ( 11 ) * 77 + ( + 4 ) + + CAST( NULL AS SIGNED ) * + CAST( COUNT( * ) AS SIGNED ) + - + COUNT( * ) * - 86 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT + + ( 11 ) * 77 + ( + 4 ) + + CAST ( NULL AS INTEGER ) * + CAST ( COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) * - 86 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9841
SELECT + - CAST( + + 75 AS SIGNED ) * + + COUNT( * ) + 30 AS col1 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9841
SELECT + - CAST ( + + 75 AS INTEGER ) * + + COUNT ( * ) + 30 AS col1 FROM tab0 AS cor0
----
-195

query II rowsort
SELECT - 82 + + + 52, col2 + - + 35 AS col0 FROM tab1 AS cor0
----
-30
24
-30
33
-30
61

query I rowsort
SELECT + 38 FROM tab0 WHERE NULL <= - col1
----

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
31

query I rowsort
SELECT - col1 * + col1 * + + col1 AS col2 FROM tab0
----
-1
-531441
-9261

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9847
SELECT col0 DIV + - 87 AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT col0 / + - 87 AS col2 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT - - 20 * - col0 FROM tab0 AS cor0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT - SUM( + ( + - col1 ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9849
SELECT - SUM ( + ( + - col1 ) ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9850
SELECT - col1 / - - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT - col1 / - - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT + col1 DIV - + 3 AS col2 FROM tab0 AS cor0
----
-27
-7
0

skipif mysql # not compatible
query I rowsort label-9851
SELECT + col1 / - + 3 AS col2 FROM tab0 AS cor0
----
-27
-7
0

query I rowsort
SELECT - + 33 AS col1 FROM tab0 cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9853
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - ( + CAST( + - CAST( 93 AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9853
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - ( + CAST ( + - CAST ( 93 AS INTEGER ) AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - - col2 * + col1 * + col0 + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
197080
291392
53935

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col0 * - col1 * - - ( - 88 ) + - + col2
----

query I rowsort
SELECT ALL - + 25 AS col0 FROM tab0 WHERE NULL IS NULL
----
-25
-25
-25

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT 9 * SUM( ALL - - 76 ) FROM tab0
----
2052

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT 9 * SUM ( ALL - - 76 ) FROM tab0
----
2052

query II rowsort
SELECT col0, col0 AS col2 FROM tab0 WHERE NOT - 20 * + col1 + col2 IS NULL
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT - 75 * + + ( - + MAX( DISTINCT 78 ) ) * - COUNT( * ) AS col2 FROM tab0
----
-17550

skipif mysql # not compatible
query I rowsort label-9860
SELECT - 75 * + + ( - + MAX ( DISTINCT 78 ) ) * - COUNT ( * ) AS col2 FROM tab0
----
-17550

query II rowsort
SELECT + col2, + col2 + 24 AS col0 FROM tab1
----
59
83
68
92
96
120

query I rowsort
SELECT - col0 * + - col1 - col2 FROM tab0 AS cor0
----
-2
1168
1817

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9863
SELECT + col2, - CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-9863
SELECT + col2, - CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + SUM( DISTINCT - - 27 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9864
SELECT + SUM ( DISTINCT - - 27 ) AS col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT - ( - + 88 ) AS col0 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT ALL - MAX( ALL col0 ) + COUNT( * ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL - MAX ( ALL col0 ) + COUNT ( * ) FROM tab2 AS cor0
----
-72

query II rowsort
SELECT ALL - 11 * col0, 54 AS col2 FROM tab1 AS cor0
----
-1001
54
-561
54
-935
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + 50 col0 FROM tab1 cor0
----
42
42
42

query I rowsort
SELECT - - col0 FROM tab2 cor0 WHERE NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT - ( + COUNT( * ) ) AS col0 FROM tab1 WHERE ( col0 > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT - ( + COUNT ( * ) ) AS col0 FROM tab1 WHERE ( col0 > NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1 WHERE NOT ( ( NULL ) BETWEEN col2 AND + + col0 - + col0 + - 91 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT col0 + col2 DIV + 95 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9872
SELECT col0 + col2 / + 95 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + 79 * - col1 FROM tab1
----
-1106
-3713
-395

query III rowsort
SELECT * FROM tab1 WHERE + + 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + + 4 AS col2 FROM tab2 cor0
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT - + MAX( + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col2 - + + ( - col2 ) IS NOT NULL
----
-75

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT - + MAX ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE - col2 - + + ( - col2 ) IS NOT NULL
----
-75

query I rowsort
SELECT ALL ( + - col1 ) + + + 4 AS col0 FROM tab2 AS cor0
----
-47
-63
-73

query I rowsort
SELECT ALL - 82 - - ( - col0 ) + col0 FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9879
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT 30 AS col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + MAX( ALL + + 59 ) - - COUNT( * ) AS col1 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-9881
SELECT + MAX ( ALL + + 59 ) - - COUNT ( * ) AS col1 FROM tab0
----
62

query I rowsort
SELECT + col0 - - - col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT - CAST( - 77 AS SIGNED ) + + - col2 AS col1 FROM tab2
----
19
37
54

skipif mysql # not compatible
query I rowsort label-9883
SELECT - CAST ( - 77 AS INTEGER ) + + - col2 AS col1 FROM tab2
----
19
37
54

query I rowsort
SELECT DISTINCT + 34 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 27 * + 36 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - COUNT( * ) * - 98 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-9886
SELECT - COUNT ( * ) * - 98 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT DISTINCT ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 64 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9889
SELECT COUNT( * ) DIV 9 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9889
SELECT COUNT ( * ) / 9 col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT - 20 DIV + col1 FROM tab0 AS cor0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT - 20 / + col1 FROM tab0 AS cor0
----
-20
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT DISTINCT - CAST( - 94 AS SIGNED ) * 43 AS col2 FROM tab1 AS cor0
----
4042

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - CAST ( - 94 AS INTEGER ) * 43 AS col2 FROM tab1 AS cor0
----
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT COUNT( DISTINCT - - 17 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9892
SELECT COUNT ( DISTINCT - - 17 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT MAX( + 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9893
SELECT MAX ( + 14 ) FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT DISTINCT - MAX( + - 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - MAX ( + - 80 ) FROM tab0
----
80

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE 22 + - col2 + - - 18 * + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT + CAST( + + 12 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-9896
SELECT + CAST ( + + 12 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab0 cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + 43 NOT BETWEEN 27 AND - 39 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
31

query I rowsort
SELECT + col0 * - col2 * 62 + col2 + 45 AS col0 FROM tab1
----
-303411
-310826
-383543

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT - CAST( - 84 AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT - CAST ( - 84 AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND + - 64
----
0

skipif mysql # not compatible
query I rowsort label-9904
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND + - 64
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT 96 + - MIN( - col2 ) AS col0, - 25 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-9905
SELECT 96 + - MIN ( - col2 ) AS col0, - 25 FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL
-25

query I rowsort
SELECT + 87 * col2 + + 98 + - + ( - + col0 ) FROM tab1 AS cor0
----
5316
6105
8501

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL - SUM( + - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - SUM ( + - col2 ) AS col1 FROM tab0 AS cor0
----
156

query II rowsort
SELECT col1 AS col1, col0 AS col2 FROM tab1 cor0
----
14
51
47
91
5
85

query I rowsort
SELECT 53 * - + col1 * + + col1 FROM tab2
----
-137853
-237917
-314237

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT - 13 - - COUNT( * ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT - 13 - - COUNT ( * ) AS col2 FROM tab0
----
-10

query II rowsort
SELECT - 97 + col2, col1 FROM tab1
----
-1
14
-29
47
-38
5

query I rowsort
SELECT - 52 + - 84 + - + 23 FROM tab2 AS cor0
----
-159
-159
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT - + 9 + 78 - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - + 9 + 78 - COUNT ( * ) FROM tab0 AS cor0
----
66

query II rowsort
SELECT DISTINCT + 61 + - - 65, + col2 FROM tab0 AS cor0
----
126
10
126
47
126
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9916
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + - col0 * + 22 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9916
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + - col0 * + 22 + + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT - - 54 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9918
SELECT ALL col1 * + + 71 * - 99, CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
-330363
-68
-35145
-59
-98406
-96

skipif mysql # not compatible
query II rowsort label-9918
SELECT ALL col1 * + + 71 * - 99, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
-330363
-68
-35145
-59
-98406
-96

query I rowsort
SELECT 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - MAX( + 1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9920
SELECT - MAX ( + 1 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT MIN( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT MIN ( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col1 - col0 * - 17 AS col0 FROM tab1 AS cor0 WHERE NOT + 7 + + - col1 IS NULL
----
1440
1500
853

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9923
SELECT + CAST( NULL AS SIGNED ) + + 49 AS col2, - col1 AS col0 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9923
SELECT + CAST ( NULL AS INTEGER ) + + 49 AS col2, - col1 AS col0 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9924
SELECT COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 / - 98 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT - 92 DIV - 45 AS col1 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9926
SELECT - 92 / - 45 AS col1 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL + MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
58

query II rowsort
SELECT DISTINCT col1 AS col2, ( + col2 ) AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 + - - col1 + - + 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT + SUM( DISTINCT + 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-9930
SELECT + SUM ( DISTINCT + 94 ) FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT - CAST( NULL AS SIGNED ) / - 68 AS col1 FROM tab1 WHERE NOT NULL > + - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9931
SELECT - CAST ( NULL AS INTEGER ) / - 68 AS col1 FROM tab1 WHERE NOT NULL > + - CAST ( col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT - CAST( col2 AS SIGNED ) + + 88 AS col0 FROM tab2
----
30
48
65

skipif mysql # not compatible
query I rowsort label-9932
SELECT - CAST ( col2 AS INTEGER ) + + 88 AS col0 FROM tab2
----
30
48
65

query I rowsort
SELECT ALL col0 - col2 - ( col2 ) + - col2 FROM tab2 WHERE + 38 NOT IN ( - 70, ( col2 ) )
----
-23
-56
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT DISTINCT + SUM( ALL 94 ) AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT + SUM ( ALL 94 ) AS col2 FROM tab1
----
282

query I rowsort
SELECT - col1 / 13 FROM tab2 WHERE NOT ( - col2 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - 10 col0 FROM tab2
----
41
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT MAX( col0 ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-9937
SELECT MAX ( col0 ) AS col1 FROM tab2 cor0
----
75

query I rowsort
SELECT - 31 AS col0 FROM tab2 cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT ALL CAST( NULL AS SIGNED ) * + col0 + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT + 96 + + SUM( col2 ) FROM tab1 AS cor0
----
319

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + 96 + + SUM ( col2 ) FROM tab1 AS cor0
----
319

query I rowsort
SELECT DISTINCT - col1 + + - 84 * - ( col0 ) * - col1 * - col0 - 69 FROM tab1 AS cor0
----
3034426
3058693
32693272

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT + 88 - - COUNT( * ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT + 88 - - COUNT ( * ) FROM tab0 AS cor0
----
91

query I rowsort
SELECT ALL col1 * + 3 + + - 26 AS col0 FROM tab2 AS cor0
----
127
175
205

query I rowsort
SELECT ALL - 27 - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT + 65 + + COUNT( * ) AS col0 FROM tab0 cor0
----
68

skipif mysql # not compatible
query I rowsort label-9945
SELECT + 65 + + COUNT ( * ) AS col0 FROM tab0 cor0
----
68

query I rowsort
SELECT + 98 * + - col1 + 86 FROM tab1
----
-1286
-404
-4520

query I rowsort
SELECT DISTINCT col2 * col0 + - - 1 FROM tab1
----
4897
5016
6189

query I rowsort
SELECT + col0 * + + 50 FROM tab0
----
4350
4850
750

query III rowsort
SELECT * FROM tab1 WHERE + 10 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 * col0 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9951
SELECT SUM( DISTINCT + col2 ) DIV + - MIN( - + ( col0 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT SUM ( DISTINCT + col2 ) / + - MIN ( - + ( col0 ) ) AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + col2 col2 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + col2 * + col0
----

query I rowsort
SELECT ALL col0 * + 18 FROM tab1
----
1530
1638
918

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT DISTINCT SUM( col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9955
SELECT DISTINCT SUM ( col0 ) col2 FROM tab0
----
199

query I rowsort
SELECT + col2 - + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL >= 12 + - - col0
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * + col2 + - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9961
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + - col1 AS SIGNED ) > col2 * - + 83 / col1
----
15
81
47

skipif mysql # not compatible
query III rowsort label-9961
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + - col1 AS INTEGER ) > col2 * - + 83 / col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query III rowsort label-9962
SELECT + 43 AS col1, + COUNT( * ), + 16 + - 83 - - 77 * + ( - COUNT( + - col2 ) ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
43
0
-67

skipif mysql # not compatible
query III rowsort label-9962
SELECT + 43 AS col1, + COUNT ( * ), + 16 + - 83 - - 77 * + ( - COUNT ( + - col2 ) ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
43
0
-67

query I rowsort
SELECT DISTINCT + 55 AS col1 FROM tab0 AS cor0 WHERE NOT - 93 = + col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT ALL - + CAST( ( - - 10 ) AS SIGNED ) FROM tab2 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - + CAST ( ( - - 10 ) AS INTEGER ) FROM tab2 AS cor0
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( col2 ) + + col1 col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + 65 * + - 82 * COUNT( ALL - - 35 ) AS col0 FROM tab2 AS cor0
----
-15990

skipif mysql # not compatible
query I rowsort label-9966
SELECT + 65 * + - 82 * COUNT ( ALL - - 35 ) AS col0 FROM tab2 AS cor0
----
-15990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9967
SELECT CAST( + col1 AS SIGNED ) * - col2 + - 54, 50 AS col1 FROM tab0
----
-153
50
-264
50
-3861
50

skipif mysql # not compatible
query II rowsort label-9967
SELECT CAST ( + col1 AS INTEGER ) * - col2 + - 54, 50 AS col1 FROM tab0
----
-153
50
-264
50
-3861
50

query I rowsort
SELECT + 60 * - + ( - ( - col1 ) ) AS col0 FROM tab2
----
-3060
-4020
-4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col0 AS col2 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT ALL 20 FROM tab2 WHERE - col0 * + - 10 BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9971
SELECT ALL - col1, CAST( - 35 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-35
-67
-35
-77
-35

skipif mysql # not compatible
query II rowsort label-9971
SELECT ALL - col1, CAST ( - 35 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-35
-67
-35
-77
-35

query II rowsort
SELECT ALL - 61, - ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-61
-14
-61
-47
-61
-5

query I rowsort
SELECT + 2 + 46 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT col1 * col2 + + col0 * + 30 AS col2 FROM tab2 AS cor0
----
2553
5000
6136

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9976
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) = - ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-9976
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) = - ( - col2 )
----

query I rowsort
SELECT DISTINCT + ( - col2 ) + 53 AS col0 FROM tab2 AS cor0
----
-5
13
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL - 47 + + MIN( ALL - - col0 ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - 47 + + MIN ( ALL - - col0 ) FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL + MAX( - 47 ) * + + 15 AS col2 FROM tab0 WHERE - - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + MAX ( - 47 ) * + + 15 AS col2 FROM tab0 WHERE - - col0 IS NULL
----
NULL

query II rowsort
SELECT col0 / + 10 AS col2, - col0 FROM tab0 WHERE - - col0 >= NULL
----

query I rowsort
SELECT - 89 * col2 AS col1 FROM tab0 WHERE + + col2 IS NOT NULL
----
-4183
-8811
-890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT DISTINCT - + col2 - col1 + - + col0 AS col0 FROM tab1 WHERE NOT + - col0 * + 70 + + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - + col2 - col1 + - + col0 AS col0 FROM tab1 WHERE NOT + - col0 * + 70 + + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col1 + + col0 * col0 AS col0 FROM tab0 WHERE NOT - - 66 IS NULL
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT - SUM( ALL + 74 ) FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-9984
SELECT - SUM ( ALL + 74 ) FROM tab0 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT - - MIN( + 39 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9985
SELECT - - MIN ( + 39 ) FROM tab2 AS cor0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9986
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < + col1 * CAST( NULL AS DECIMAL ) + + + col0
----

skipif mysql # not compatible
query III rowsort label-9986
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < + col1 * CAST ( NULL AS REAL ) + + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT ALL + 6 * - CAST( - + ( col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
306
402
462

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + 6 * - CAST ( - + ( col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
306
402
462

query I rowsort
SELECT ALL + ( - - 53 ) AS col2 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT + ( MAX( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9989
SELECT + ( MAX ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 <= NULL
----

query I rowsort
SELECT DISTINCT ( - 63 ) AS col1 FROM tab2
----
-63

query I rowsort
SELECT ALL + col1 - - - 24 AS col1 FROM tab1 AS cor0 WHERE - col2 + + 30 IS NULL
----

query I rowsort
SELECT ALL + - 98 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT DISTINCT + + COUNT( DISTINCT - + col2 ) AS col0, - COUNT( * ) FROM tab0 WHERE NOT col2 IS NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-9994
SELECT DISTINCT + + COUNT ( DISTINCT - + col2 ) AS col0, - COUNT ( * ) FROM tab0 WHERE NOT col2 IS NULL
----
3
-3

query I rowsort
SELECT col1 + + + col0 * - + ( 79 ) FROM tab1
----
-4015
-6710
-7142

query I rowsort
SELECT + col2 * - ( + 53 ) + + col0 + + + col2 * + col2 FROM tab0
----
-267
-343
4651

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT ALL col1 DIV col1 + + 40 + - col1 * + - 2 AS col1 FROM tab0
----
203
43
83

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL col1 / col1 + + 40 + - col1 * + - 2 AS col1 FROM tab0
----
203
43
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT SUM( col0 ) + - + 42 FROM tab1
----
185

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT SUM ( col0 ) + - + 42 FROM tab1
----
185

query I rowsort
SELECT ALL + - col0 * col2 + - ( - 49 ) FROM tab2 AS cor0
----
-1009
-2511
-4301

